1 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18 [m4_warning([this file was generated for autoconf 2.68.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically `autoreconf'.])])
23 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
25 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28 # Written by Gordon Matzigkeit, 1996
30 # This file is free software; the Free Software Foundation gives
31 # unlimited permission to copy and/or distribute it, with or without
32 # modifications, as long as this notice is preserved.
34 m4_define([_LT_COPYING], [dnl
35 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38 # Written by Gordon Matzigkeit, 1996
40 # This file is part of GNU Libtool.
42 # GNU Libtool is free software; you can redistribute it and/or
43 # modify it under the terms of the GNU General Public License as
44 # published by the Free Software Foundation; either version 2 of
45 # the License, or (at your option) any later version.
47 # As a special exception to the GNU General Public License,
48 # if you distribute this file as part of a program or library that
49 # is built using GNU Libtool, you may include this file under the
50 # same distribution terms that you use for the rest of that program.
52 # GNU Libtool is distributed in the hope that it will be useful,
53 # but WITHOUT ANY WARRANTY; without even the implied warranty of
54 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
55 # GNU General Public License for more details.
57 # You should have received a copy of the GNU General Public License
58 # along with GNU Libtool; see the file COPYING. If not, a copy
59 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
60 # obtained by writing to the Free Software Foundation, Inc.,
61 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
65 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
66 # -----------------------------------------------------------
67 # If this macro is not defined by Autoconf, define it here.
68 m4_ifdef([AC_PROVIDE_IFELSE],
70 [m4_define([AC_PROVIDE_IFELSE],
71 [m4_ifdef([AC_PROVIDE_$1],
77 AC_DEFUN([AC_PROG_LIBTOOL],
78 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
79 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
80 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
81 AC_PROVIDE_IFELSE([AC_PROG_CXX],
83 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
85 dnl And a similar setup for Fortran 77 support
86 AC_PROVIDE_IFELSE([AC_PROG_F77],
88 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
91 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
92 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
93 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
94 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
96 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
98 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
100 [ifdef([AC_PROG_GCJ],
101 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
102 ifdef([A][M_PROG_GCJ],
103 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
104 ifdef([LT_AC_PROG_GCJ],
105 [define([LT_AC_PROG_GCJ],
106 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
107 ])])# AC_PROG_LIBTOOL
112 AC_DEFUN([_AC_PROG_LIBTOOL],
113 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
114 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
115 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
116 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
118 # This can be used to rebuild libtool when needed
119 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
121 # Always use our own libtool.
122 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
125 # Prevent multiple expansion
126 define([AC_PROG_LIBTOOL], [])
132 AC_DEFUN([AC_LIBTOOL_SETUP],
134 AC_REQUIRE([AC_ENABLE_SHARED])dnl
135 AC_REQUIRE([AC_ENABLE_STATIC])dnl
136 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
137 AC_REQUIRE([AC_CANONICAL_HOST])dnl
138 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
139 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
140 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
142 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
144 _LT_DECL([], [host_alias], [0], [The host system])dnl
145 _LT_DECL([], [host], [0])dnl
146 _LT_DECL([], [host_os], [0])dnl
148 _LT_DECL([], [build_alias], [0], [The build system])dnl
149 _LT_DECL([], [build], [0])dnl
150 _LT_DECL([], [build_os], [0])dnl
152 AC_REQUIRE([AC_PROG_CC])dnl
153 AC_REQUIRE([AC_PROG_LD])dnl
154 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
155 AC_REQUIRE([AC_PROG_NM])dnl
157 AC_REQUIRE([AC_PROG_LN_S])dnl
158 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
159 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
160 AC_REQUIRE([AC_OBJEXT])dnl
161 AC_REQUIRE([AC_EXEEXT])dnl
163 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
164 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
165 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
167 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
168 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
169 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
170 m4_require([_LT_CMD_RELOAD])dnl
171 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
172 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
173 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
174 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
175 m4_require([_LT_WITH_SYSROOT])dnl
177 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
178 _LT_AC_PROG_ECHO_BACKSLASH
182 # AIX sometimes has problems with the GCC collect2 program. For some
183 # reason, if we set the COLLECT_NAMES environment variable, the problems
184 # vanish in a puff of smoke.
185 if test "X${COLLECT_NAMES+set}" != Xset; then
192 # Sed substitution that helps us do robust quoting. It backslashifies
193 # metacharacters that are still active within double-quoted strings.
194 Xsed='sed -e 1s/^X//'
195 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
197 # Same as above, but do not quote variable references.
198 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
200 # Sed substitution to delay expansion of an escaped shell variable in a
201 # double_quote_subst'ed string.
202 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
204 # Sed substitution to avoid accidental globbing in evaled expressions
205 no_glob_subst='s/\*/\\\*/g'
211 default_ofile=libtool
214 # All known linkers require a `.a' archive for static linking (except MSVC,
215 # which needs '.lib').
217 ltmain="$ac_aux_dir/ltmain.sh"
218 ofile="$default_ofile"
219 with_gnu_ld="$lt_cv_prog_gnu_ld"
221 AC_CHECK_TOOL(AR, ar, false)
222 AC_CHECK_TOOL(RANLIB, ranlib, :)
223 AC_CHECK_TOOL(STRIP, strip, :)
228 # Set sane defaults for various variables
229 test -z "$AR" && AR=ar
230 test -z "$AR_FLAGS" && AR_FLAGS=cru
231 test -z "$AS" && AS=as
232 test -z "$CC" && CC=cc
233 test -z "$LTCC" && LTCC=$CC
234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
235 test -z "$DLLTOOL" && DLLTOOL=dlltool
236 test -z "$LD" && LD=ld
237 test -z "$LN_S" && LN_S="ln -s"
238 test -z "$MAGIC_CMD" && MAGIC_CMD=file
239 test -z "$NM" && NM=nm
240 test -z "$SED" && SED=sed
241 test -z "$OBJDUMP" && OBJDUMP=objdump
242 test -z "$RANLIB" && RANLIB=:
243 test -z "$STRIP" && STRIP=:
244 test -z "$ac_objext" && ac_objext=o
246 # Determine commands to create old-style static archives.
247 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
248 old_postinstall_cmds='chmod 644 $oldlib'
249 old_postuninstall_cmds=
251 if test -n "$RANLIB"; then
254 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
260 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
263 _LT_CC_BASENAME([$compiler])
265 # Only perform the check for file, if the check method requires it
266 case $deplibs_check_method in
268 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
274 _LT_REQUIRED_DARWIN_CHECKS
276 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
277 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
278 enable_win32_dll=yes, enable_win32_dll=no)
280 AC_ARG_ENABLE([libtool-lock],
281 [AC_HELP_STRING([--disable-libtool-lock],
282 [avoid locking (might break parallel builds)])])
283 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
286 [AC_HELP_STRING([--with-pic],
287 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
288 [pic_mode="$withval"],
290 test -z "$pic_mode" && pic_mode=default
292 # Use C for the default configuration in the libtool script
294 AC_LIBTOOL_LANG_C_CONFIG
299 # _LT_AC_SYS_COMPILER
300 # -------------------
301 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
302 # variables for single and double quote escaping we saved from calls
303 # to _LT_DECL, we can put quote escaped variables declarations
304 # into `config.status', and then the shell code to quote escape them in
305 # for loops in `config.status'. Finally, any additional code accumulated
306 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
307 m4_defun([_LT_CONFIG_COMMANDS],
308 [AC_PROVIDE_IFELSE([LT_OUTPUT],
309 dnl If the libtool generation code has been placed in $CONFIG_LT,
310 dnl instead of duplicating it all over again into config.status,
311 dnl then we will have config.status run $CONFIG_LT later, so it
312 dnl needs to know what name is stored there:
313 [AC_CONFIG_COMMANDS([libtool],
314 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
315 dnl If the libtool generation code is destined for config.status,
316 dnl expand the accumulated commands and init code now:
317 [AC_CONFIG_COMMANDS([libtool],
318 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
319 ])#_LT_CONFIG_COMMANDS
323 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
326 # The HP-UX ksh and POSIX shell print the target directory to stdout
328 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
330 sed_quote_subst='$sed_quote_subst'
331 double_quote_subst='$double_quote_subst'
332 delay_variable_subst='$delay_variable_subst'
333 _LT_CONFIG_STATUS_DECLARATIONS
336 compiler='$compiler_DEFAULT'
338 # A function that is used when there is no print builtin or printf.
339 func_fallback_echo ()
341 eval 'cat <<_LTECHO_EOF
346 # Quote evaled strings.
347 for var in lt_decl_all_varnames([[ \
348 ]], lt_decl_quote_varnames); do
349 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
350 *[[\\\\\\\`\\"\\\$]]*)
351 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
354 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
359 # Double-quote double-evaled strings.
360 for var in lt_decl_all_varnames([[ \
361 ]], lt_decl_dquote_varnames); do
362 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
363 *[[\\\\\\\`\\"\\\$]]*)
364 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
367 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
372 _LT_OUTPUT_LIBTOOL_INIT
375 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
376 # ------------------------------------
377 # Generate a child script FILE with all initialization necessary to
378 # reuse the environment learned by the parent script, and make the
379 # file executable. If COMMENT is supplied, it is inserted after the
380 # `#!' sequence but before initialization text begins. After this
381 # macro, additional text can be appended to FILE to form the body of
382 # the child script. The macro ends with non-zero status if the
383 # file could not be fully written (such as if the disk is full).
384 m4_ifdef([AS_INIT_GENERATED],
385 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
386 [m4_defun([_LT_GENERATED_FILE_INIT],
387 [m4_require([AS_PREPARE])]dnl
388 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
390 cat >$1 <<_ASEOF || lt_write_fail=1
392 # Generated by $as_me.
394 SHELL=\${CONFIG_SHELL-$SHELL}
397 cat >>$1 <<\_ASEOF || lt_write_fail=1
400 exec AS_MESSAGE_FD>&1
402 test $lt_write_fail = 0 && chmod +x $1[]dnl
403 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
407 # This macro allows early generation of the libtool script (before
408 # AC_OUTPUT is called), incase it is used in configure for compilation
410 AC_DEFUN([LT_OUTPUT],
411 [: ${CONFIG_LT=./config.lt}
412 AC_MSG_NOTICE([creating $CONFIG_LT])
413 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
414 [# Run this file to recreate a libtool stub with the current configuration.])
416 cat >>"$CONFIG_LT" <<\_LTEOF
418 exec AS_MESSAGE_LOG_FD>>config.log
421 AS_BOX([Running $as_me.])
422 } >&AS_MESSAGE_LOG_FD
425 \`$as_me' creates a local libtool stub from the current configuration,
426 for use in further configure time tests before the real libtool is
429 Usage: $[0] [[OPTIONS]]
431 -h, --help print this help, then exit
432 -V, --version print version number, then exit
433 -q, --quiet do not print progress messages
434 -d, --debug don't remove temporary files
436 Report bugs to <bug-libtool@gnu.org>."
439 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
440 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
441 configured by $[0], generated by m4_PACKAGE_STRING.
443 Copyright (C) 2011 Free Software Foundation, Inc.
444 This config.lt script is free software; the Free Software Foundation
445 gives unlimited permision to copy, distribute and modify it."
450 --version | --v* | -V )
451 echo "$lt_cl_version"; exit 0 ;;
453 echo "$lt_cl_help"; exit 0 ;;
454 --debug | --d* | -d )
456 --quiet | --q* | --silent | --s* | -q )
459 -*) AC_MSG_ERROR([unrecognized option: $[1]
460 Try \`$[0] --help' for more information.]) ;;
462 *) AC_MSG_ERROR([unrecognized argument: $[1]
463 Try \`$[0] --help' for more information.]) ;;
468 if $lt_cl_silent; then
469 exec AS_MESSAGE_FD>/dev/null
473 cat >>"$CONFIG_LT" <<_LTEOF
474 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
477 cat >>"$CONFIG_LT" <<\_LTEOF
478 AC_MSG_NOTICE([creating $ofile])
479 _LT_OUTPUT_LIBTOOL_COMMANDS
482 chmod +x "$CONFIG_LT"
484 # configure is writing to config.log, but config.lt does its own redirection,
485 # appending to config.log, which fails on DOS, as config.log is still kept
486 # open by configure. Here we exec the FD to /dev/null, effectively closing
487 # config.log, so it can be properly (re)opened and appended to by config.lt.
489 test "$silent" = yes &&
490 lt_config_lt_args="$lt_config_lt_args --quiet"
491 exec AS_MESSAGE_LOG_FD>/dev/null
492 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
493 exec AS_MESSAGE_LOG_FD>>config.log
494 $lt_cl_success || AS_EXIT(1)
500 # If TAG is the built-in tag, create an initial libtool script with a
501 # default configuration from the untagged config vars. Otherwise add code
502 # to config.status for appending the configuration named by TAG from the
503 # matching tagged config vars.
504 m4_defun([_LT_CONFIG],
505 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
506 _LT_CONFIG_SAVE_COMMANDS([
507 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
508 m4_if(_LT_TAG, [C], [
509 # See if we are running on zsh, and set the options which allow our
510 # commands through without removal of \ escapes.
511 if test -n "${ZSH_VERSION+set}" ; then
516 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
519 cat <<_LT_EOF >> "$cfgfile"
522 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
523 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
524 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
525 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
530 # ### BEGIN LIBTOOL CONFIG
531 _LT_LIBTOOL_CONFIG_VARS
533 # ### END LIBTOOL CONFIG
539 cat <<\_LT_EOF >> "$cfgfile"
540 # AIX sometimes has problems with the GCC collect2 program. For some
541 # reason, if we set the COLLECT_NAMES environment variable, the problems
542 # vanish in a puff of smoke.
543 if test "X${COLLECT_NAMES+set}" != Xset; then
553 # We use sed instead of cat because bash on DJGPP gets confused if
554 # if finds mixed CR/LF and LF-only lines. Since sed operates in
555 # text mode, it properly converts lines to CR/LF. This bash problem
556 # is reportedly fixed, but why not run on old versions too?
557 sed '$q' "$ltmain" >> "$cfgfile" \
558 || (rm -f "$cfgfile"; exit 1)
560 _LT_PROG_REPLACE_SHELLFNS
562 mv -f "$cfgfile" "$ofile" ||
563 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
566 [cat <<_LT_EOF >> "$ofile"
568 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
569 dnl in a comment (ie after a #).
570 # ### BEGIN LIBTOOL TAG CONFIG: $1
571 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
572 # ### END LIBTOOL TAG CONFIG: $1
579 TIMESTAMP='$TIMESTAMP'
582 ])dnl /_LT_CONFIG_SAVE_COMMANDS
586 # LT_SUPPORTED_TAG(TAG)
587 # ---------------------
588 # Trace this macro to discover what tags are supported by the libtool
589 # --tag option, using:
590 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
591 AC_DEFUN([LT_SUPPORTED_TAG], [])
594 # C support is built-in for now
595 m4_define([_LT_LANG_C_enabled], [])
596 m4_define([_LT_TAGS], [])
601 # Enable libtool support for the given language if not already enabled.
603 [AC_BEFORE([$0], [LT_OUTPUT])dnl
606 [C++], [_LT_LANG(CXX)],
607 [Go], [_LT_LANG(GO)],
608 [Java], [_LT_LANG(GCJ)],
609 [Fortran 77], [_LT_LANG(F77)],
610 [Fortran], [_LT_LANG(FC)],
611 [Windows Resource], [_LT_LANG(RC)],
612 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
614 [m4_fatal([$0: unsupported language: "$1"])])])dnl
621 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
622 [LT_SUPPORTED_TAG([$1])dnl
623 m4_append([_LT_TAGS], [$1 ])dnl
624 m4_define([_LT_LANG_]$1[_enabled], [])dnl
625 _LT_LANG_$1_CONFIG($1)])dnl
629 m4_ifndef([AC_PROG_GO], [
630 # NOTE: This macro has been submitted for inclusion into #
631 # GNU Autoconf as AC_PROG_GO. When it is available in #
632 # a released version of Autoconf we should remove this #
633 # macro and use it instead. #
634 m4_defun([AC_PROG_GO],
636 AC_ARG_VAR([GOC], [Go compiler command])dnl
637 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
638 _AC_ARG_VAR_LDFLAGS()dnl
639 AC_CHECK_TOOL(GOC, gccgo)
640 if test -z "$GOC"; then
641 if test -n "$ac_tool_prefix"; then
642 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
645 if test -z "$GOC"; then
646 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
652 # _LT_LANG_DEFAULT_CONFIG
653 # -----------------------
654 m4_defun([_LT_LANG_DEFAULT_CONFIG],
655 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
657 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
659 AC_PROVIDE_IFELSE([AC_PROG_F77],
661 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
663 AC_PROVIDE_IFELSE([AC_PROG_FC],
665 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
667 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
668 dnl pulling things in needlessly.
669 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
671 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
673 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
675 [m4_ifdef([AC_PROG_GCJ],
676 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
677 m4_ifdef([A][M_PROG_GCJ],
678 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
679 m4_ifdef([LT_PROG_GCJ],
680 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
682 AC_PROVIDE_IFELSE([AC_PROG_GO],
684 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
686 AC_PROVIDE_IFELSE([LT_PROG_RC],
688 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
689 ])# _LT_LANG_DEFAULT_CONFIG
692 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
693 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
694 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
695 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
696 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
697 dnl aclocal-1.4 backwards compatibility:
698 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
699 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
700 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
701 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
702 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
707 m4_defun([_LT_TAG_COMPILER],
708 [AC_REQUIRE([AC_PROG_CC])dnl
710 # If no C compiler was specified, use CC.
713 # If no C compiler flags were specified, use CFLAGS.
714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
716 # Allow CC to be a program name with arguments.
718 ])# _LT_AC_SYS_COMPILER
721 # _LT_CC_BASENAME(CC)
722 # -------------------
723 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
724 AC_DEFUN([_LT_CC_BASENAME],
725 [for cc_temp in $1""; do
727 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
728 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
733 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
737 # _LT_COMPILER_BOILERPLATE
738 # ------------------------
739 # Check for compiler boilerplate output or warnings with
740 # the simple compiler test code.
741 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
742 [AC_REQUIRE([LT_AC_PROG_SED])dnl
743 ac_outfile=conftest.$ac_objext
744 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
746 _lt_compiler_boilerplate=`cat conftest.err`
748 ])# _LT_COMPILER_BOILERPLATE
751 # _LT_LINKER_BOILERPLATE
752 # ----------------------
753 # Check for linker boilerplate output or warnings with
754 # the simple link test code.
755 AC_DEFUN([_LT_LINKER_BOILERPLATE],
756 [AC_REQUIRE([LT_AC_PROG_SED])dnl
757 ac_outfile=conftest.$ac_objext
758 echo "$lt_simple_link_test_code" >conftest.$ac_ext
759 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
760 _lt_linker_boilerplate=`cat conftest.err`
762 ])# _LT_LINKER_BOILERPLATE
764 # _LT_REQUIRED_DARWIN_CHECKS
765 # --------------------------
766 # Check for some things on darwin
767 AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
770 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
771 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
773 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
774 [lt_cv_apple_cc_single_mod=no
775 if test -z "${LT_MULTI_MODULE}"; then
776 # By default we will add the -single_module flag. You can override
777 # by either setting the environment variable LT_MULTI_MODULE
778 # non-empty at configure time, or by adding -multi_module to the
780 rm -rf libconftest.dylib*
781 echo "int foo(void){return 1;}" > conftest.c
782 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
783 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
784 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
785 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
787 # If there is a non-empty error log, and "single_module"
788 # appears in it, assume the flag caused a linker warning
789 if test -s conftest.err && $GREP single_module conftest.err; then
790 cat conftest.err >&AS_MESSAGE_LOG_FD
791 # Otherwise, if the output was created with a 0 exit code from
792 # the compiler, it worked.
793 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
794 lt_cv_apple_cc_single_mod=yes
796 cat conftest.err >&AS_MESSAGE_LOG_FD
798 rm -rf libconftest.dylib*
802 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
803 [lt_cv_ld_exported_symbols_list],
804 [lt_cv_ld_exported_symbols_list=no
805 save_LDFLAGS=$LDFLAGS
806 echo "_main" > conftest.sym
807 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
808 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
809 [lt_cv_ld_exported_symbols_list=yes],
810 [lt_cv_ld_exported_symbols_list=no])
811 LDFLAGS="$save_LDFLAGS"
814 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
815 [lt_cv_ld_force_load=no
816 cat > conftest.c << _LT_EOF
817 int forced_loaded() { return 2;}
819 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
820 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
821 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
822 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
823 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
824 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
825 cat > conftest.c << _LT_EOF
826 int main() { return 0;}
828 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
829 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
831 if test -s conftest.err && $GREP force_load conftest.err; then
832 cat conftest.err >&AS_MESSAGE_LOG_FD
833 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
834 lt_cv_ld_force_load=yes
836 cat conftest.err >&AS_MESSAGE_LOG_FD
838 rm -f conftest.err libconftest.a conftest conftest.c
842 rhapsody* | darwin1.[[0123]])
843 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
845 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
847 # if running on 10.5 or later, the deployment target defaults
848 # to the OS version, if on x86, and 10.4, the deployment
849 # target defaults to 10.4. Don't you love it?
850 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
851 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
852 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
854 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
856 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
860 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
861 _lt_dar_single_mod='$single_module'
863 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
864 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
866 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
868 if test "$DSYMUTIL" != ":"; then
869 _lt_dsymutil="~$DSYMUTIL \$lib || :"
878 # _LT_DARWIN_LINKER_FEATURES([TAG])
879 # ---------------------------------
880 # Checks for linker and compiler features on darwin
881 m4_defun([_LT_DARWIN_LINKER_FEATURES],
883 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
884 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
885 _LT_TAGVAR(hardcode_direct, $1)=no
886 _LT_TAGVAR(hardcode_automatic, $1)=yes
887 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
888 if test "$lt_cv_ld_force_load" = "yes"; then
889 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
890 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
891 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
893 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
895 _LT_TAGVAR(link_all_deplibs, $1)=yes
896 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
898 ifort*) _lt_dar_can_shared=yes ;;
899 *) _lt_dar_can_shared=$GCC ;;
901 if test "$_lt_dar_can_shared" = "yes"; then
902 output_verbose_link_cmd=func_echo_all
903 _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}"
904 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
905 _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}"
906 _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}"
908 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
909 _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}"
910 _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}"
914 _LT_TAGVAR(ld_shlibs, $1)=no
918 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
919 # ----------------------------------
920 # Links a minimal program and checks the executable
921 # for the system default hardcoded library path. In most cases,
922 # this is /usr/lib:/lib, but when the MPI compilers are used
923 # the location of the communication and MPI libs are included too.
924 # If we don't find anything, use the default library path according
925 # to the aix ld manual.
926 # Store the results from the different compilers for each TAGNAME.
927 # Allow to override them for all tags through lt_cv_aix_libpath.
928 m4_defun([_LT_SYS_MODULE_PATH_AIX],
929 [m4_require([_LT_DECL_SED])dnl
930 if test "${lt_cv_aix_libpath+set}" = set; then
931 aix_libpath=$lt_cv_aix_libpath
933 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
934 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
935 lt_aix_libpath_sed='[
936 /Import File Strings/,/^$/ {
938 s/^0 *\([^ ]*\) *$/\1/
942 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
943 # Check for a 64-bit object if we didn't find anything.
944 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
945 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
947 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
948 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
951 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
953 ])# _LT_AC_SYS_LIBPATH_AIX
956 # _LT_AC_SHELL_INIT(ARG)
957 # ----------------------
958 AC_DEFUN([_LT_AC_SHELL_INIT],
959 [ifdef([AC_DIVERSION_NOTICE],
960 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
961 [AC_DIVERT_PUSH(NOTICE)])
964 ])# _LT_AC_SHELL_INIT
967 # _LT_AC_PROG_ECHO_BACKSLASH
968 # --------------------------
969 # Add some code to the start of the generated configure script which
970 # will find an echo command which doesn't interpret backslashes.
971 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
973 # Check that we are running under the correct shell.
974 SHELL=${CONFIG_SHELL-/bin/sh}
978 # Remove one level of quotation (which was required for Make).
979 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
983 AC_MSG_CHECKING([how to print strings])
984 # Test print first, because it will be a builtin if present.
985 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
986 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
988 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
991 # Restart under the correct shell.
992 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
995 if test "X[$]1" = X--fallback-echo; then
996 # used as fallback echo
1004 # The HP-UX ksh and POSIX shell print the target directory to stdout
1006 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1008 if test -z "$ECHO"; then
1009 if test "X${echo_test_string+set}" != Xset; then
1010 # find a string as large as possible, as long as the shell can cope with it
1011 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1012 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1013 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1014 echo_test_string=`eval $cmd` &&
1015 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1022 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1023 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1024 test "X$echo_testing_string" = "X$echo_test_string"; then
1027 # The Solaris, AIX, and Digital Unix default echo programs unquote
1028 # backslashes. This makes it impossible to quote backslashes using
1029 # echo "$something" | sed 's/\\/\\\\/g'
1031 # So, first we look for a working echo in the user's PATH.
1033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1034 for dir in $PATH /usr/ucb; do
1036 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1037 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1038 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1039 test "X$echo_testing_string" = "X$echo_test_string"; then
1048 AC_DEFUN([_LT_WITH_SYSROOT],
1049 [AC_MSG_CHECKING([for sysroot])
1050 AC_ARG_WITH([sysroot],
1051 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1052 (or the compiler's sysroot if not specified).],
1053 [], [with_sysroot=no])
1055 dnl lt_sysroot will always be passed unquoted. We quote it here
1056 dnl in case the user passed a directory name.
1058 case ${with_sysroot} in #(
1060 if test "$GCC" = yes; then
1061 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1065 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1070 AC_MSG_RESULT([${with_sysroot}])
1071 AC_MSG_ERROR([The sysroot must be an absolute path.])
1075 AC_MSG_RESULT([${lt_sysroot:-no}])
1076 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1077 [dependent libraries, and in which our libraries should be installed.])])
1081 m4_defun([_LT_ENABLE_LOCK],
1082 [AC_ARG_ENABLE([libtool-lock],
1083 [AC_HELP_STRING([--disable-libtool-lock],
1084 [avoid locking (might break parallel builds)])])
1085 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1087 # Some flags need to be propagated to the compiler or linker for good
1091 # Find out which ABI we are using.
1092 echo 'int i;' > conftest.$ac_ext
1093 if AC_TRY_EVAL(ac_compile); then
1094 case `/usr/bin/file conftest.$ac_objext` in
1106 # Find out which ABI we are using.
1107 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1108 if AC_TRY_EVAL(ac_compile); then
1109 if test "$lt_cv_prog_gnu_ld" = yes; then
1110 case `/usr/bin/file conftest.$ac_objext` in
1112 LD="${LD-ld} -melf32bsmip"
1115 LD="${LD-ld} -melf32bmipn32"
1118 LD="${LD-ld} -melf64bmip"
1122 case `/usr/bin/file conftest.$ac_objext` in
1138 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1139 s390*-*linux*|sparc*-*linux*)
1140 # Find out which ABI we are using.
1141 echo 'int i;' > conftest.$ac_ext
1142 if AC_TRY_EVAL(ac_compile); then
1143 case `/usr/bin/file conftest.o` in
1146 x86_64-*kfreebsd*-gnu)
1147 LD="${LD-ld} -m elf_i386_fbsd"
1150 LD="${LD-ld} -m elf_i386"
1152 ppc64-*linux*|powerpc64-*linux*)
1153 LD="${LD-ld} -m elf32ppclinux"
1156 LD="${LD-ld} -m elf_s390"
1159 LD="${LD-ld} -m elf32_sparc"
1166 x86_64-*kfreebsd*-gnu)
1167 LD="${LD-ld} -m elf_x86_64_fbsd"
1170 LD="${LD-ld} -m elf_x86_64"
1172 ppc*-*linux*|powerpc*-*linux*)
1173 LD="${LD-ld} -m elf64ppc"
1176 LD="${LD-ld} -m elf64_s390"
1179 LD="${LD-ld} -m elf64_sparc"
1189 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1190 SAVE_CFLAGS="$CFLAGS"
1191 CFLAGS="$CFLAGS -belf"
1192 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1194 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1196 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1197 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1198 CFLAGS="$SAVE_CFLAGS"
1202 # Find out which ABI we are using.
1203 echo 'int i;' > conftest.$ac_ext
1204 if AC_TRY_EVAL(ac_compile); then
1205 case `/usr/bin/file conftest.o` in
1207 case $lt_cv_prog_gnu_ld in
1211 LD="${LD-ld} -m elf_x86_64"
1214 LD="${LD-ld} -m elf64_sparc"
1217 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1218 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1223 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1234 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1235 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1236 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1237 AC_CHECK_TOOL(AS, as, false)
1238 AC_CHECK_TOOL(OBJDUMP, objdump, false)
1243 need_locks="$enable_libtool_lock"
1249 m4_defun([_LT_PROG_AR],
1250 [AC_CHECK_TOOLS(AR, [ar], false)
1253 _LT_DECL([], [AR], [1], [The archiver])
1254 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1256 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1257 [lt_cv_ar_at_file=no
1258 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1259 [echo conftest.$ac_objext > conftest.lst
1260 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1261 AC_TRY_EVAL([lt_ar_try])
1262 if test "$ac_status" -eq 0; then
1263 # Ensure the archiver fails upon bogus file names.
1264 rm -f conftest.$ac_objext libconftest.a
1265 AC_TRY_EVAL([lt_ar_try])
1266 if test "$ac_status" -ne 0; then
1270 rm -f conftest.* libconftest.a
1274 if test "x$lt_cv_ar_at_file" = xno; then
1277 archiver_list_spec=$lt_cv_ar_at_file
1279 _LT_DECL([], [archiver_list_spec], [1],
1280 [How to feed a file listing to the archiver])
1284 # _LT_CMD_OLD_ARCHIVE
1285 # -------------------
1286 m4_defun([_LT_CMD_OLD_ARCHIVE],
1289 AC_CHECK_TOOL(STRIP, strip, :)
1290 test -z "$STRIP" && STRIP=:
1291 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1293 AC_CHECK_TOOL(RANLIB, ranlib, :)
1294 test -z "$RANLIB" && RANLIB=:
1295 _LT_DECL([], [RANLIB], [1],
1296 [Commands used to install an old-style archive])
1298 # Determine commands to create old-style static archives.
1299 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1300 old_postinstall_cmds='chmod 644 $oldlib'
1301 old_postuninstall_cmds=
1303 if test -n "$RANLIB"; then
1306 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1309 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1312 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1317 lock_old_archive_extraction=yes ;;
1319 lock_old_archive_extraction=no ;;
1321 _LT_DECL([], [old_postinstall_cmds], [2])
1322 _LT_DECL([], [old_postuninstall_cmds], [2])
1323 _LT_TAGDECL([], [old_archive_cmds], [2],
1324 [Commands used to build an old-style archive])
1325 _LT_DECL([], [lock_old_archive_extraction], [0],
1326 [Whether to use a lock for old archive extraction])
1327 ])# _LT_CMD_OLD_ARCHIVE
1330 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1331 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1332 # ----------------------------------------------------------------
1333 # Check whether the given compiler option works
1334 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1335 [AC_REQUIRE([LT_AC_PROG_SED])
1336 AC_CACHE_CHECK([$1], [$2],
1338 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1340 lt_compiler_flag="$3"
1341 # Insert the option either (1) after the last *FLAGS variable, or
1342 # (2) before a word containing "conftest.", or (3) at the end.
1343 # Note that $ac_compile itself does not contain backslashes and begins
1344 # with a dollar sign (not a hyphen), so the echo should work correctly.
1345 # The option is referenced via a variable to avoid confusing sed.
1346 lt_compile=`echo "$ac_compile" | $SED \
1347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1348 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1349 -e 's:$: $lt_compiler_flag:'`
1350 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1351 (eval "$lt_compile" 2>conftest.err)
1353 cat conftest.err >&AS_MESSAGE_LOG_FD
1354 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1355 if (exit $ac_status) && test -s "$ac_outfile"; then
1356 # The compiler can only warn and ignore the option if not recognized
1357 # So say no if there are warnings other than the usual output.
1358 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1360 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1367 if test x"[$]$2" = xyes; then
1368 ifelse([$5], , :, [$5])
1370 ifelse([$6], , :, [$6])
1372 ])# AC_LIBTOOL_COMPILER_OPTION
1375 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1376 # [ACTION-SUCCESS], [ACTION-FAILURE])
1377 # ------------------------------------------------------------
1378 # Check whether the given compiler option works
1379 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1380 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1381 AC_CACHE_CHECK([$1], [$2],
1383 save_LDFLAGS="$LDFLAGS"
1384 LDFLAGS="$LDFLAGS $3"
1385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1387 # The linker can only warn and ignore the option if not recognized
1388 # So say no if there are warnings
1389 if test -s conftest.err; then
1390 # Append any errors to the config.log.
1391 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1392 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1394 if diff conftest.exp conftest.er2 >/dev/null; then
1402 LDFLAGS="$save_LDFLAGS"
1405 if test x"[$]$2" = xyes; then
1406 ifelse([$4], , :, [$4])
1408 ifelse([$5], , :, [$5])
1410 ])# AC_LIBTOOL_LINKER_OPTION
1413 # AC_LIBTOOL_SYS_MAX_CMD_LEN
1414 # --------------------------
1415 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1416 [# find the maximum length of command line arguments
1417 AC_MSG_CHECKING([the maximum length of command line arguments])
1418 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1424 # On DJGPP, this test can blow up pretty badly due to problems in libc
1425 # (any single argument exceeding 2000 bytes causes a buffer overrun
1426 # during glob expansion). Even if it were fixed, the result of this
1427 # check would be larger than it should be.
1428 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1432 # Under GNU Hurd, this test is not required because there is
1433 # no limit to the length of command line arguments.
1434 # Libtool will interpret -1 as no limit whatsoever
1435 lt_cv_sys_max_cmd_len=-1;
1439 # On Win9x/ME, this test blows up -- it succeeds, but takes
1440 # about 5 minutes as the teststring grows exponentially.
1441 # Worse, since 9x/ME are not pre-emptively multitasking,
1442 # you end up with a "frozen" computer, even though with patience
1443 # the test eventually succeeds (with a max line length of 256k).
1444 # Instead, let's just punt: use the minimum linelength reported by
1445 # all of the supported platforms: 8192 (on NT/2K/XP).
1446 lt_cv_sys_max_cmd_len=8192;
1450 # On AmigaOS with pdksh, this test takes hours, literally.
1451 # So we just punt and use a minimum line length of 8192.
1452 lt_cv_sys_max_cmd_len=8192;
1455 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1456 # This has been around since 386BSD, at least. Likely further.
1457 if test -x /sbin/sysctl; then
1458 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1459 elif test -x /usr/sbin/sysctl; then
1460 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1462 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1464 # And add a safety zone
1465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1470 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1471 lt_cv_sys_max_cmd_len=196608
1475 # The test takes a long time on OS/2.
1476 lt_cv_sys_max_cmd_len=8192
1480 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1481 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1482 # nice to cause kernel panics so lets avoid the loop below.
1483 # First set a reasonable default.
1484 lt_cv_sys_max_cmd_len=16384
1486 if test -x /sbin/sysconfig; then
1487 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1488 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1493 lt_cv_sys_max_cmd_len=102400
1495 sysv5* | sco5v6* | sysv4.2uw2*)
1496 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1497 if test -n "$kargmax"; then
1498 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1500 lt_cv_sys_max_cmd_len=32768
1504 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1505 if test -n "$lt_cv_sys_max_cmd_len"; then
1506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1509 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1510 # If test is not a shell built-in, we'll probably end up computing a
1511 # maximum length that is only half of the actual maximum length, but
1513 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1514 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1515 test $i != 17 # 1/2 MB should be enough
1518 teststring=$teststring$teststring
1521 # Add a significant safety factor because C++ compilers can tack on massive
1522 # amounts of additional arguments before passing them to the linker.
1523 # It appears as though 1/2 is a usable value.
1524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1529 if test -n $lt_cv_sys_max_cmd_len ; then
1530 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1534 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1537 # _LT_AC_CHECK_DLFCN
1538 # ------------------
1539 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1540 [AC_CHECK_HEADERS(dlfcn.h)dnl
1541 ])# _LT_AC_CHECK_DLFCN
1544 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1545 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1546 # ---------------------------------------------------------------------
1547 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1548 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1549 if test "$cross_compiling" = yes; then :
1552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1553 lt_status=$lt_dlunknown
1554 cat > conftest.$ac_ext <<EOF
1555 [#line __oline__ "configure"
1556 #include "confdefs.h"
1565 # define LT_DLGLOBAL RTLD_GLOBAL
1568 # define LT_DLGLOBAL DL_GLOBAL
1570 # define LT_DLGLOBAL 0
1574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1575 find out it does not work in some platform. */
1576 #ifndef LT_DLLAZY_OR_NOW
1578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1581 # define LT_DLLAZY_OR_NOW DL_LAZY
1584 # define LT_DLLAZY_OR_NOW RTLD_NOW
1587 # define LT_DLLAZY_OR_NOW DL_NOW
1589 # define LT_DLLAZY_OR_NOW 0
1596 /* When -fvisbility=hidden is used, assume the code has been annotated
1597 correspondingly for the symbols needed. */
1598 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1599 int fnord () __attribute__((visibility("default")));
1602 int fnord () { return 42; }
1605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1606 int status = $lt_dlunknown;
1610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1611 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1612 /* dlclose (self); */
1620 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1621 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1624 x$lt_dlno_uscore) $1 ;;
1625 x$lt_dlneed_uscore) $2 ;;
1626 x$lt_dlunknown|x*) $3 ;;
1629 # compilation failed
1634 ])# _LT_AC_TRY_DLOPEN_SELF
1637 # AC_LIBTOOL_DLOPEN_SELF
1638 # ----------------------
1639 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1640 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1641 if test "x$enable_dlopen" != xyes; then
1642 enable_dlopen=unknown
1643 enable_dlopen_self=unknown
1644 enable_dlopen_self_static=unknown
1651 lt_cv_dlopen="load_add_on"
1653 lt_cv_dlopen_self=yes
1657 lt_cv_dlopen="LoadLibrary"
1662 lt_cv_dlopen="dlopen"
1667 # if libdl is installed we need to link against it
1668 AC_CHECK_LIB([dl], [dlopen],
1669 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1672 lt_cv_dlopen_self=yes
1677 AC_CHECK_FUNC([shl_load],
1678 [lt_cv_dlopen="shl_load"],
1679 [AC_CHECK_LIB([dld], [shl_load],
1680 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1681 [AC_CHECK_FUNC([dlopen],
1682 [lt_cv_dlopen="dlopen"],
1683 [AC_CHECK_LIB([dl], [dlopen],
1684 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1685 [AC_CHECK_LIB([svld], [dlopen],
1686 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1687 [AC_CHECK_LIB([dld], [dld_link],
1688 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1697 if test "x$lt_cv_dlopen" != xno; then
1703 case $lt_cv_dlopen in
1705 save_CPPFLAGS="$CPPFLAGS"
1706 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1708 save_LDFLAGS="$LDFLAGS"
1709 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1712 LIBS="$lt_cv_dlopen_libs $LIBS"
1714 AC_CACHE_CHECK([whether a program can dlopen itself],
1715 lt_cv_dlopen_self, [dnl
1716 _LT_AC_TRY_DLOPEN_SELF(
1717 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1718 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1721 if test "x$lt_cv_dlopen_self" = xyes; then
1722 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1723 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1724 lt_cv_dlopen_self_static, [dnl
1725 _LT_AC_TRY_DLOPEN_SELF(
1726 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1727 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1731 CPPFLAGS="$save_CPPFLAGS"
1732 LDFLAGS="$save_LDFLAGS"
1737 case $lt_cv_dlopen_self in
1738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1739 *) enable_dlopen_self=unknown ;;
1742 case $lt_cv_dlopen_self_static in
1743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1744 *) enable_dlopen_self_static=unknown ;;
1747 ])# AC_LIBTOOL_DLOPEN_SELF
1750 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1751 # ---------------------------------
1752 # Check to see if options -c and -o are simultaneously supported by compiler
1753 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1754 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1755 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1756 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1757 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1758 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1759 $rm -r conftest 2>/dev/null
1763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1765 lt_compiler_flag="-o out/conftest2.$ac_objext"
1766 # Insert the option either (1) after the last *FLAGS variable, or
1767 # (2) before a word containing "conftest.", or (3) at the end.
1768 # Note that $ac_compile itself does not contain backslashes and begins
1769 # with a dollar sign (not a hyphen), so the echo should work correctly.
1770 lt_compile=`echo "$ac_compile" | $SED \
1771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1772 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1773 -e 's:$: $lt_compiler_flag:'`
1774 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1775 (eval "$lt_compile" 2>out/conftest.err)
1777 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1778 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1781 # The compiler can only warn and ignore the option if not recognized
1782 # So say no if there are warnings
1783 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1786 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1789 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1791 # SGI C++ compiler will create directory out/ii_files/ for
1792 # template instantiation
1793 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1794 $rm out/* && rmdir out
1799 ])# AC_LIBTOOL_PROG_CC_C_O
1802 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1803 # -----------------------------------------
1804 # Check to see if we can do hard links to lock some files if needed
1805 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1806 [AC_REQUIRE([_LT_AC_LOCK])dnl
1808 hard_links="nottested"
1809 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1810 # do not overwrite the value of need_locks provided by the user
1811 AC_MSG_CHECKING([if we can lock with hard links])
1814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1816 ln conftest.a conftest.b 2>&5 || hard_links=no
1817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1818 AC_MSG_RESULT([$hard_links])
1819 if test "$hard_links" = no; then
1820 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1826 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1831 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1832 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1833 [rm -f .libs 2>/dev/null
1834 mkdir .libs 2>/dev/null
1835 if test -d .libs; then
1838 # MS-DOS does not allow filenames that begin with a dot.
1841 rmdir .libs 2>/dev/null])
1842 objdir=$lt_cv_objdir
1843 ])# AC_LIBTOOL_OBJDIR
1846 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1847 # ----------------------------------------------
1848 # Check hardcoding attributes.
1849 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1850 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1851 _LT_AC_TAGVAR(hardcode_action, $1)=
1852 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1853 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1854 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1856 # We can hardcode non-existant directories.
1857 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1858 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1859 # have to relink, otherwise we might link with an installed library
1860 # when we should be linking with a yet-to-be-installed one
1861 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1862 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1863 # Linking always hardcodes the temporary library directory.
1864 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1866 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1867 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1870 # We cannot hardcode anything, or else we can only hardcode existing
1872 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1874 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1876 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1877 # Fast installation is not supported
1878 enable_fast_install=no
1879 elif test "$shlibpath_overrides_runpath" = yes ||
1880 test "$enable_shared" = no; then
1881 # Fast installation is not necessary
1882 enable_fast_install=needless
1884 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1887 # AC_LIBTOOL_SYS_LIB_STRIP
1888 # ------------------------
1889 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1892 AC_MSG_CHECKING([whether stripping libraries is possible])
1893 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1894 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1895 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1896 AC_MSG_RESULT([yes])
1898 # FIXME - insert some real tests, host_os isn't really good enough
1901 if test -n "$STRIP" ; then
1902 striplib="$STRIP -x"
1903 old_striplib="$STRIP -S"
1904 AC_MSG_RESULT([yes])
1914 ])# AC_LIBTOOL_SYS_LIB_STRIP
1917 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1918 # -----------------------------
1919 # PORTME Fill in your ld.so characteristics
1920 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1921 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1922 AC_MSG_CHECKING([dynamic linker characteristics])
1924 libname_spec='lib$name'
1932 shlibpath_overrides_runpath=unknown
1934 dynamic_linker="$host_os ld.so"
1935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1937 if test "$GCC" = yes; then
1939 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1940 *) lt_awk_arg="/^libraries:/" ;;
1942 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1943 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1944 # if the path contains ";" then we assume it to be the separator
1945 # otherwise default to the standard path separator (i.e. ":") - it is
1946 # assumed that no part of a normal pathname contains ";" but that should
1947 # okay in the real world where ";" in dirpaths is itself problematic.
1948 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1950 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1952 # Ok, now we have the path, separated by spaces, we can step through it
1953 # and add multilib dir if necessary.
1954 lt_tmp_lt_search_path_spec=
1955 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1956 for lt_sys_path in $lt_search_path_spec; do
1957 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1958 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1960 test -d "$lt_sys_path" && \
1961 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1964 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1965 BEGIN {RS=" "; FS="/|\n";} {
1968 for (lt_i = NF; lt_i > 0; lt_i--) {
1969 if ($lt_i != "" && $lt_i != ".") {
1970 if ($lt_i == "..") {
1973 if (lt_count == 0) {
1974 lt_foo="/" $lt_i lt_foo;
1981 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1982 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1984 sys_lib_search_path_spec=`echo $lt_search_path_spec`
1986 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1988 need_lib_prefix=unknown
1989 hardcode_into_libs=no
1991 # when you set need_version to no, make sure it does not cause -set_version
1992 # flags to be left without arguments
1993 need_version=unknown
1997 version_type=linux # correct to gnu/linux during the next big refactor
1998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1999 shlibpath_var=LIBPATH
2001 # AIX 3 has no versioning support, so we append a major version to the name.
2002 soname_spec='${libname}${release}${shared_ext}$major'
2006 version_type=linux # correct to gnu/linux during the next big refactor
2009 hardcode_into_libs=yes
2010 if test "$host_cpu" = ia64; then
2011 # AIX 5 supports IA64
2012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2013 shlibpath_var=LD_LIBRARY_PATH
2015 # With GCC up to 2.95.x, collect2 would create an import file
2016 # for dependence libraries. The import file would start with
2017 # the line `#! .'. This would cause the generated library to
2018 # depend on `.', always an invalid library. This was fixed in
2019 # development snapshots of GCC prior to 3.0.
2021 aix4 | aix4.[[01]] | aix4.[[01]].*)
2022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2024 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2032 # soname into executable. Probably we can add versioning support to
2033 # collect2, so additional links can be useful in future.
2034 if test "$aix_use_runtimelinking" = yes; then
2035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2036 # instead of lib<name>.a to let people know that these are not
2037 # typical AIX shared libraries.
2038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2040 # We preserve .a as extension for shared libraries through AIX4.2
2041 # and later when we are not doing run time linking.
2042 library_names_spec='${libname}${release}.a $libname.a'
2043 soname_spec='${libname}${release}${shared_ext}$major'
2045 shlibpath_var=LIBPATH
2050 library_names_spec='$libname.ixlibrary $libname.a'
2051 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2052 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'
2056 library_names_spec='${libname}${shared_ext}'
2057 dynamic_linker="$host_os ld.so"
2058 shlibpath_var=LIBRARY_PATH
2062 version_type=linux # correct to gnu/linux during the next big refactor
2064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2065 soname_spec='${libname}${release}${shared_ext}$major'
2066 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2067 shlibpath_var=LD_LIBRARY_PATH
2068 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2069 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2070 # the default ld.so.conf also contains /usr/contrib/lib and
2071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2072 # libtool to hard-code these into programs
2075 cygwin* | mingw* | pw32*)
2076 version_type=windows
2081 case $GCC,$cc_basename in
2084 library_names_spec='$libname.dll.a'
2085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2086 postinstall_cmds='base_file=`basename \${file}`~
2087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2088 dldir=$destdir/`dirname \$dlpath`~
2089 test -d \$dldir || mkdir -p \$dldir~
2090 $install_prog $dir/$dlname \$dldir/$dlname~
2091 chmod a+x \$dldir/$dlname'
2092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2093 dlpath=$dir/\$dldll~
2095 shlibpath_overrides_runpath=yes
2099 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2100 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2101 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2104 # MinGW DLLs use traditional 'lib' prefix
2105 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2106 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2107 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2108 # It is most probably a Windows format PATH printed by
2109 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2110 # path with ; separators, and with drive letters. We can handle the
2111 # drive letters (cygwin fileutils understands them), so leave them,
2112 # especially as we might pass files found there to a mingw objdump,
2113 # which wouldn't understand a cygwinified path. Ahh.
2114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2120 # pw32 DLLs use 'pw' prefix rather than 'lib'
2121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2124 dynamic_linker='Win32 ld.exe'
2129 libname_spec='$name'
2130 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2131 library_names_spec='${libname}.dll.lib'
2135 sys_lib_search_path_spec=
2141 # Let DOS variable expansion print the short 8.3 style file name.
2142 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2143 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2146 # Convert to MSYS style.
2147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2150 # Convert to unix form, then to dos form, then back to unix form
2151 # but this time dos style (no spaces!) so that the unix form looks
2152 # like /cygdrive/c/PROGRA~1:/cygdr...
2153 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2154 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2155 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2158 sys_lib_search_path_spec="$LIB"
2159 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2160 # It is most probably a Windows format PATH.
2161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2163 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2165 # FIXME: find the short name or the path components, as spaces are
2166 # common. (e.g. "Program Files" -> "PROGRA~1")
2170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2171 postinstall_cmds='base_file=`basename \${file}`~
2172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2173 dldir=$destdir/`dirname \$dlpath`~
2174 test -d \$dldir || mkdir -p \$dldir~
2175 $install_prog $dir/$dlname \$dldir/$dlname'
2176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2177 dlpath=$dir/\$dldll~
2179 shlibpath_overrides_runpath=yes
2180 dynamic_linker='Win32 link.exe'
2184 # Assume MSVC wrapper
2185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2186 dynamic_linker='Win32 ld.exe'
2189 # FIXME: first we should search . and the directory the executable is in
2193 darwin* | rhapsody*)
2194 dynamic_linker="$host_os dyld"
2198 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2199 soname_spec='${libname}${release}${major}$shared_ext'
2200 shlibpath_overrides_runpath=yes
2201 shlibpath_var=DYLD_LIBRARY_PATH
2202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2209 version_type=linux # correct to gnu/linux during the next big refactor
2212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2213 soname_spec='${libname}${release}${shared_ext}$major'
2214 shlibpath_var=LD_LIBRARY_PATH
2217 freebsd* | dragonfly*)
2218 # DragonFly does not have aout. When/if they implement a new
2219 # versioning mechanism, adjust this.
2220 if test -x /usr/bin/objformat; then
2221 objformat=`/usr/bin/objformat`
2224 freebsd[[23]].*) objformat=aout ;;
2228 version_type=freebsd-$objformat
2229 case $version_type in
2231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2240 shlibpath_var=LD_LIBRARY_PATH
2243 shlibpath_overrides_runpath=yes
2245 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2246 shlibpath_overrides_runpath=yes
2247 hardcode_into_libs=yes
2249 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2250 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2251 shlibpath_overrides_runpath=no
2252 hardcode_into_libs=yes
2254 *) # from 4.6 on, and DragonFly
2255 shlibpath_overrides_runpath=yes
2256 hardcode_into_libs=yes
2262 version_type=linux # correct to gnu/linux during the next big refactor
2265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2266 soname_spec='${libname}${release}${shared_ext}$major'
2267 shlibpath_var=LD_LIBRARY_PATH
2268 shlibpath_overrides_runpath=no
2269 hardcode_into_libs=yes
2273 version_type=linux # correct to gnu/linux during the next big refactor
2276 dynamic_linker="$host_os runtime_loader"
2277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2278 soname_spec='${libname}${release}${shared_ext}$major'
2279 shlibpath_var=LIBRARY_PATH
2280 shlibpath_overrides_runpath=yes
2281 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2282 hardcode_into_libs=yes
2285 hpux9* | hpux10* | hpux11*)
2286 # Give a soname corresponding to the major version so that dld.sl refuses to
2287 # link against other versions.
2294 hardcode_into_libs=yes
2295 dynamic_linker="$host_os dld.so"
2296 shlibpath_var=LD_LIBRARY_PATH
2297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2299 soname_spec='${libname}${release}${shared_ext}$major'
2300 if test "X$HPUX_IA64_MODE" = X32; then
2301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2309 hardcode_into_libs=yes
2310 dynamic_linker="$host_os dld.sl"
2311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2314 soname_spec='${libname}${release}${shared_ext}$major'
2315 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2320 dynamic_linker="$host_os dld.sl"
2321 shlibpath_var=SHLIB_PATH
2322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2324 soname_spec='${libname}${release}${shared_ext}$major'
2327 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2328 postinstall_cmds='chmod 555 $lib'
2332 version_type=linux # correct to gnu/linux during the next big refactor
2335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2336 soname_spec='${libname}${release}${shared_ext}$major'
2337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2338 shlibpath_var=LD_LIBRARY_PATH
2339 shlibpath_overrides_runpath=no
2340 hardcode_into_libs=yes
2343 irix5* | irix6* | nonstopux*)
2345 nonstopux*) version_type=nonstopux ;;
2347 if test "$lt_cv_prog_gnu_ld" = yes; then
2348 version_type=linux # correct to gnu/linux during the next big refactor
2355 soname_spec='${libname}${release}${shared_ext}$major'
2356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2358 irix5* | nonstopux*)
2362 case $LD in # libtool.m4 will add one of these switches to LD
2363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2364 libsuff= shlibsuff= libmagic=32-bit;;
2365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2366 libsuff=32 shlibsuff=N32 libmagic=N32;;
2367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2369 *) libsuff= shlibsuff= libmagic=never-match;;
2373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2374 shlibpath_overrides_runpath=no
2375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2377 hardcode_into_libs=yes
2380 # No shared lib support for Linux oldld, aout, or coff.
2381 linux*oldld* | linux*aout* | linux*coff*)
2385 # This must be glibc/ELF.
2386 linux* | k*bsd*-gnu)
2387 version_type=linux # correct to gnu/linux during the next big refactor
2390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2391 soname_spec='${libname}${release}${shared_ext}$major'
2392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2393 shlibpath_var=LD_LIBRARY_PATH
2394 shlibpath_overrides_runpath=no
2395 # This implies no fast_install, which is unacceptable.
2396 # Some rework will be needed to allow for fast_install
2397 # before this can be enabled.
2398 hardcode_into_libs=yes
2399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2402 # Append ld.so.conf contents to the search path
2403 if test -f /etc/ld.so.conf; then
2404 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' ' '`
2405 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2408 # We used to test for /lib/ld.so.1 and disable shared libraries on
2409 # powerpc, because MkLinux only supported shared libraries with the
2410 # GNU dynamic linker. Since this was broken with cross compilers,
2411 # most powerpc-linux boxes support dynamic linking these days and
2412 # people can always --disable-shared, the test was removed, and we
2413 # assume the GNU/Linux dynamic linker is in use.
2414 dynamic_linker='GNU/Linux ld.so'
2421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2424 dynamic_linker='NetBSD (a.out) ld.so'
2426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2427 soname_spec='${libname}${release}${shared_ext}$major'
2428 dynamic_linker='NetBSD ld.elf_so'
2430 shlibpath_var=LD_LIBRARY_PATH
2431 shlibpath_overrides_runpath=yes
2432 hardcode_into_libs=yes
2436 version_type=linux # correct to gnu/linux during the next big refactor
2437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2438 shlibpath_var=LD_LIBRARY_PATH
2439 shlibpath_overrides_runpath=yes
2446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2447 soname_spec='${libname}${release}${shared_ext}$major'
2448 shlibpath_var=LD_LIBRARY_PATH
2449 shlibpath_overrides_runpath=yes
2454 sys_lib_dlsearch_path_spec="/usr/lib"
2456 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2458 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2459 *) need_version=no ;;
2461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2463 shlibpath_var=LD_LIBRARY_PATH
2464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2466 openbsd2.[[89]] | openbsd2.[[89]].*)
2467 shlibpath_overrides_runpath=no
2470 shlibpath_overrides_runpath=yes
2474 shlibpath_overrides_runpath=yes
2479 libname_spec='$name'
2482 library_names_spec='$libname${shared_ext} $libname.a'
2483 dynamic_linker='OS/2 ld.exe'
2484 shlibpath_var=LIBPATH
2487 osf3* | osf4* | osf5*)
2491 soname_spec='${libname}${release}${shared_ext}$major'
2492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2493 shlibpath_var=LD_LIBRARY_PATH
2494 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2495 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2503 version_type=linux # correct to gnu/linux during the next big refactor
2506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2507 soname_spec='${libname}${release}${shared_ext}$major'
2508 shlibpath_var=LD_LIBRARY_PATH
2509 shlibpath_overrides_runpath=yes
2510 hardcode_into_libs=yes
2511 # ldd complains unless libraries are executable
2512 postinstall_cmds='chmod +x $lib'
2517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2518 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2519 shlibpath_var=LD_LIBRARY_PATH
2520 shlibpath_overrides_runpath=yes
2521 if test "$with_gnu_ld" = yes; then
2528 version_type=linux # correct to gnu/linux during the next big refactor
2529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2530 soname_spec='${libname}${release}${shared_ext}$major'
2531 shlibpath_var=LD_LIBRARY_PATH
2532 case $host_vendor in
2534 shlibpath_overrides_runpath=no
2536 export_dynamic_flag_spec='${wl}-Blargedynsym'
2537 runpath_var=LD_RUN_PATH
2545 shlibpath_overrides_runpath=no
2546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2552 if test -d /usr/nec ;then
2553 version_type=linux # correct to gnu/linux during the next big refactor
2554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2555 soname_spec='$libname${shared_ext}.$major'
2556 shlibpath_var=LD_LIBRARY_PATH
2560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2561 version_type=freebsd-elf
2564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2565 soname_spec='${libname}${release}${shared_ext}$major'
2566 shlibpath_var=LD_LIBRARY_PATH
2567 hardcode_into_libs=yes
2568 if test "$with_gnu_ld" = yes; then
2569 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2570 shlibpath_overrides_runpath=no
2572 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2573 shlibpath_overrides_runpath=yes
2576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2580 sys_lib_dlsearch_path_spec='/usr/lib'
2584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2585 version_type=linux # correct to gnu/linux during the next big refactor
2588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2589 shlibpath_var=LD_LIBRARY_PATH
2590 shlibpath_overrides_runpath=no
2591 hardcode_into_libs=yes
2595 version_type=linux # correct to gnu/linux during the next big refactor
2596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2597 soname_spec='${libname}${release}${shared_ext}$major'
2598 shlibpath_var=LD_LIBRARY_PATH
2605 AC_MSG_RESULT([$dynamic_linker])
2606 test "$dynamic_linker" = no && can_build_shared=no
2608 AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2609 [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2610 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2611 AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2612 [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2613 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2615 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2616 if test "$GCC" = yes; then
2617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2619 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2624 AC_DEFUN([_LT_AC_TAGCONFIG],
2625 [AC_REQUIRE([LT_AC_PROG_SED])dnl
2627 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2628 [include additional configurations @<:@automatic@:>@])],
2629 [tagnames="$withval"])
2631 if test -f "$ltmain" && test -n "$tagnames"; then
2632 if test ! -f "${ofile}"; then
2633 AC_MSG_WARN([output file `$ofile' does not exist])
2636 if test -z "$LTCC"; then
2637 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2638 if test -z "$LTCC"; then
2639 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2641 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2644 if test -z "$LTCFLAGS"; then
2645 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2648 # Extract list of available tagged configurations in $ofile.
2649 # Note that this assumes the entire list is on one line.
2650 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2653 for tagname in $tagnames; do
2655 # Check whether tagname contains only valid characters
2656 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2658 *) AC_MSG_ERROR([invalid tag name: $tagname])
2662 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2664 AC_MSG_ERROR([tag name \"$tagname\" already exists])
2667 # Update the list of available tags.
2668 if test -n "$tagname"; then
2669 echo appending configuration tag \"$tagname\" to $ofile
2673 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2674 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2675 (test "X$CXX" != "Xg++"))) ; then
2676 AC_LIBTOOL_LANG_CXX_CONFIG
2683 if test -n "$F77" && test "X$F77" != "Xno"; then
2684 AC_LIBTOOL_LANG_F77_CONFIG
2691 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2692 AC_LIBTOOL_LANG_GCJ_CONFIG
2699 AC_LIBTOOL_LANG_RC_CONFIG
2703 AC_MSG_ERROR([Unsupported tag name: $tagname])
2707 # Append the new tag name to the list of available tags.
2708 if test -n "$tagname" ; then
2709 available_tags="$available_tags $tagname"
2715 # Now substitute the updated list of available tags.
2716 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2717 mv "${ofile}T" "$ofile"
2721 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2724 ])# _LT_AC_TAGCONFIG
2729 # enable checks for dlopen support
2730 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2731 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2732 ])# AC_LIBTOOL_DLOPEN
2735 # AC_LIBTOOL_WIN32_DLL
2736 # --------------------
2737 # declare package support for building win32 DLLs
2738 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2739 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2740 ])# AC_LIBTOOL_WIN32_DLL
2743 # AC_ENABLE_SHARED([DEFAULT])
2744 # ---------------------------
2745 # implement the --enable-shared flag
2746 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2747 AC_DEFUN([AC_ENABLE_SHARED],
2748 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2749 AC_ARG_ENABLE([shared],
2750 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2751 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2752 [p=${PACKAGE-default}
2754 yes) enable_shared=yes ;;
2755 no) enable_shared=no ;;
2758 # Look at the argument we got. We use all the common list separators.
2759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2760 for pkg in $enableval; do
2762 if test "X$pkg" = "X$p"; then
2769 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2770 ])# AC_ENABLE_SHARED
2775 # set the default shared flag to --disable-shared
2776 AC_DEFUN([AC_DISABLE_SHARED],
2777 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2778 AC_ENABLE_SHARED(no)
2779 ])# AC_DISABLE_SHARED
2782 # AC_ENABLE_STATIC([DEFAULT])
2783 # ---------------------------
2784 # implement the --enable-static flag
2785 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2786 AC_DEFUN([AC_ENABLE_STATIC],
2787 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2788 AC_ARG_ENABLE([static],
2789 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2790 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2791 [p=${PACKAGE-default}
2793 yes) enable_static=yes ;;
2794 no) enable_static=no ;;
2797 # Look at the argument we got. We use all the common list separators.
2798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2799 for pkg in $enableval; do
2801 if test "X$pkg" = "X$p"; then
2808 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2809 ])# AC_ENABLE_STATIC
2814 # set the default static flag to --disable-static
2815 AC_DEFUN([AC_DISABLE_STATIC],
2816 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2817 AC_ENABLE_STATIC(no)
2818 ])# AC_DISABLE_STATIC
2821 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2822 # ---------------------------------
2823 # implement the --enable-fast-install flag
2824 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2825 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2826 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2827 AC_ARG_ENABLE([fast-install],
2828 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2829 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2830 [p=${PACKAGE-default}
2832 yes) enable_fast_install=yes ;;
2833 no) enable_fast_install=no ;;
2835 enable_fast_install=no
2836 # Look at the argument we got. We use all the common list separators.
2837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2838 for pkg in $enableval; do
2840 if test "X$pkg" = "X$p"; then
2841 enable_fast_install=yes
2847 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2848 ])# AC_ENABLE_FAST_INSTALL
2851 # AC_DISABLE_FAST_INSTALL
2852 # -----------------------
2853 # set the default to --disable-fast-install
2854 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2855 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2856 AC_ENABLE_FAST_INSTALL(no)
2857 ])# AC_DISABLE_FAST_INSTALL
2860 # AC_LIBTOOL_PICMODE([MODE])
2861 # --------------------------
2862 # implement the --with-pic flag
2863 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2864 AC_DEFUN([AC_LIBTOOL_PICMODE],
2865 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2866 pic_mode=ifelse($#,1,$1,default)
2867 ])# AC_LIBTOOL_PICMODE
2872 # This is predefined starting with Autoconf 2.54, so this conditional
2873 # definition can be removed once we require Autoconf 2.54 or later.
2874 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2875 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2876 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2877 then ac_cv_prog_egrep='grep -E'
2878 else ac_cv_prog_egrep='egrep'
2880 EGREP=$ac_cv_prog_egrep
2885 # AC_PATH_TOOL_PREFIX
2886 # -------------------
2887 # find a file program which can recognize shared library
2888 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2889 [AC_REQUIRE([AC_PROG_EGREP])dnl
2890 AC_MSG_CHECKING([for $1])
2891 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2893 [[\\/*] | ?:[\\/]*])
2894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2897 lt_save_MAGIC_CMD="$MAGIC_CMD"
2898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2899 dnl $ac_dummy forces splitting on constant user-supplied paths.
2900 dnl POSIX.2 word splitting is done only on the output of word expansions,
2901 dnl not every word. This closes a longstanding sh security hole.
2902 ac_dummy="ifelse([$2], , $PATH, [$2])"
2903 for ac_dir in $ac_dummy; do
2905 test -z "$ac_dir" && ac_dir=.
2906 if test -f $ac_dir/$1; then
2907 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2908 if test -n "$file_magic_test_file"; then
2909 case $deplibs_check_method in
2911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2914 $EGREP "$file_magic_regex" > /dev/null; then
2919 *** Warning: the command libtool uses to detect shared libraries,
2920 *** $file_magic_cmd, produces output that libtool cannot recognize.
2921 *** The result is that libtool may fail to recognize shared libraries
2922 *** as such. This will affect the creation of libtool libraries that
2923 *** depend on shared libraries, but programs linked with such libtool
2924 *** libraries will work regardless of this problem. Nevertheless, you
2925 *** may want to report the problem to your system manager and/or to
2926 *** bug-libtool@gnu.org
2936 MAGIC_CMD="$lt_save_MAGIC_CMD"
2939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2940 if test -n "$MAGIC_CMD"; then
2941 AC_MSG_RESULT($MAGIC_CMD)
2945 ])# AC_PATH_TOOL_PREFIX
2950 # find a file program which can recognize a shared library
2951 AC_DEFUN([AC_PATH_MAGIC],
2952 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2953 if test -z "$lt_cv_path_MAGIC_CMD"; then
2954 if test -n "$ac_tool_prefix"; then
2955 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2965 # find the pathname to the GNU or non-GNU linker
2966 AC_DEFUN([AC_PROG_LD],
2967 [AC_ARG_WITH([gnu-ld],
2968 [AC_HELP_STRING([--with-gnu-ld],
2969 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2970 [test "$withval" = no || with_gnu_ld=yes],
2972 AC_REQUIRE([LT_AC_PROG_SED])dnl
2973 AC_REQUIRE([AC_PROG_CC])dnl
2974 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2975 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2977 if test "$GCC" = yes; then
2978 # Check if gcc -print-prog-name=ld gives a path.
2979 AC_MSG_CHECKING([for ld used by $CC])
2982 # gcc leaves a trailing carriage return which upsets mingw
2983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2988 # Accept absolute paths.
2989 [[\\/]]* | ?:[[\\/]]*)
2990 re_direlt='/[[^/]][[^/]]*/\.\./'
2991 # Canonicalize the pathname of ld
2992 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2993 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2994 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2996 test -z "$LD" && LD="$ac_prog"
2999 # If it fails, then pretend we aren't using GCC.
3003 # If it is relative, then search for the first ld in PATH.
3007 elif test "$with_gnu_ld" = yes; then
3008 AC_MSG_CHECKING([for GNU ld])
3010 AC_MSG_CHECKING([for non-GNU ld])
3012 AC_CACHE_VAL(lt_cv_path_LD,
3013 [if test -z "$LD"; then
3014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3015 for ac_dir in $PATH; do
3017 test -z "$ac_dir" && ac_dir=.
3018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3019 lt_cv_path_LD="$ac_dir/$ac_prog"
3020 # Check to see if the program is GNU ld. I'd rather use --version,
3021 # but apparently some variants of GNU ld only accept -v.
3022 # Break only if it was the GNU/non-GNU ld that we prefer.
3023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3024 *GNU* | *'with BFD'*)
3025 test "$with_gnu_ld" != no && break
3028 test "$with_gnu_ld" != yes && break
3035 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3038 if test -n "$LD"; then
3043 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3050 AC_DEFUN([AC_PROG_LD_GNU],
3051 [AC_REQUIRE([AC_PROG_EGREP])dnl
3052 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3053 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3054 case `$LD -v 2>&1 </dev/null` in
3055 *GNU* | *'with BFD'*)
3056 lt_cv_prog_gnu_ld=yes
3059 lt_cv_prog_gnu_ld=no
3062 with_gnu_ld=$lt_cv_prog_gnu_ld
3066 # AC_PROG_LD_RELOAD_FLAG
3067 # ----------------------
3068 # find reload flag for linker
3069 # -- PORTME Some linkers may need a different reload flag.
3070 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3071 [AC_CACHE_CHECK([for $LD option to reload object files],
3072 lt_cv_ld_reload_flag,
3073 [lt_cv_ld_reload_flag='-r'])
3074 reload_flag=$lt_cv_ld_reload_flag
3075 case $reload_flag in
3077 *) reload_flag=" $reload_flag" ;;
3079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3081 cygwin* | mingw* | pw32* | cegcc*)
3082 if test "$GCC" != yes; then
3087 if test "$GCC" = yes; then
3088 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3090 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3094 ])# AC_PROG_LD_RELOAD_FLAG
3097 # AC_DEPLIBS_CHECK_METHOD
3098 # -----------------------
3099 # how to check for library dependencies
3100 # -- PORTME fill in with the dynamic library characteristics
3101 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3102 [AC_CACHE_CHECK([how to recognize dependent libraries],
3103 lt_cv_deplibs_check_method,
3104 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3105 lt_cv_file_magic_test_file=
3106 lt_cv_deplibs_check_method='unknown'
3107 # Need to set the preceding variable on all platforms that support
3108 # interlibrary dependencies.
3109 # 'none' -- dependencies not supported.
3110 # `unknown' -- same as none, but documents that we really don't know.
3111 # 'pass_all' -- all dependencies passed with no checks.
3112 # 'test_compile' -- check by making test program.
3113 # 'file_magic [[regex]]' -- check by looking for files in library path
3114 # which responds to the $file_magic_cmd with a given extended regex.
3115 # If you have `file' or equivalent on your system and you're not sure
3116 # whether `pass_all' will *always* work, you probably want this one.
3120 lt_cv_deplibs_check_method=pass_all
3124 lt_cv_deplibs_check_method=pass_all
3128 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3129 lt_cv_file_magic_cmd='/usr/bin/file -L'
3130 lt_cv_file_magic_test_file=/shlib/libc.so
3134 # func_win32_libid is a shell function defined in ltmain.sh
3135 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3136 lt_cv_file_magic_cmd='func_win32_libid'
3140 # Base MSYS/MinGW do not provide the 'file' command needed by
3141 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3142 # unless we find 'file', for example because we are cross-compiling.
3143 if ( file / ) >/dev/null 2>&1; then
3144 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3145 lt_cv_file_magic_cmd='func_win32_libid'
3147 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3148 lt_cv_file_magic_cmd='$OBJDUMP -f'
3152 darwin* | rhapsody*)
3153 lt_cv_deplibs_check_method=pass_all
3156 freebsd* | dragonfly*)
3157 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3160 # Not sure whether the presence of OpenBSD here was a mistake.
3161 # Let's accept both of them until this is cleared up.
3162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3163 lt_cv_file_magic_cmd=/usr/bin/file
3164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3168 lt_cv_deplibs_check_method=pass_all
3173 lt_cv_deplibs_check_method=pass_all
3176 hpux10.20* | hpux11*)
3177 lt_cv_file_magic_cmd=/usr/bin/file
3180 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3181 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3184 [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]']
3185 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3188 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3189 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3195 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3196 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3199 irix5* | irix6* | nonstopux*)
3201 *-32|*"-32 ") libmagic=32-bit;;
3202 *-n32|*"-n32 ") libmagic=N32;;
3203 *-64|*"-64 ") libmagic=64-bit;;
3204 *) libmagic=never-match;;
3206 lt_cv_deplibs_check_method=pass_all
3209 # This must be glibc/ELF.
3210 linux* | k*bsd*-gnu)
3211 lt_cv_deplibs_check_method=pass_all
3215 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3216 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3218 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3223 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3224 lt_cv_file_magic_cmd=/usr/bin/file
3225 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3229 lt_cv_deplibs_check_method=unknown
3233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3234 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3236 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3240 osf3* | osf4* | osf5*)
3241 lt_cv_deplibs_check_method=pass_all
3245 lt_cv_deplibs_check_method=pass_all
3249 lt_cv_deplibs_check_method=pass_all
3253 case $host_vendor in
3255 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]]'
3256 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3259 lt_cv_deplibs_check_method=pass_all
3262 lt_cv_file_magic_cmd='/bin/file'
3263 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3266 lt_cv_file_magic_cmd='/bin/file'
3267 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3268 lt_cv_file_magic_test_file=/lib/libc.so
3271 lt_cv_deplibs_check_method=pass_all
3274 lt_cv_deplibs_check_method=pass_all
3279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3280 lt_cv_deplibs_check_method=pass_all
3287 if test "$build" = "$host"; then
3290 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3293 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3299 file_magic_cmd=$lt_cv_file_magic_cmd
3300 deplibs_check_method=$lt_cv_deplibs_check_method
3301 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3302 ])# AC_DEPLIBS_CHECK_METHOD
3304 _LT_DECL([], [deplibs_check_method], [1],
3305 [Method to check whether dependent libraries are shared objects])
3306 _LT_DECL([], [file_magic_cmd], [1],
3307 [Command to use when deplibs_check_method = "file_magic"])
3308 _LT_DECL([], [file_magic_glob], [1],
3309 [How to find potential files when deplibs_check_method = "file_magic"])
3310 _LT_DECL([], [want_nocaseglob], [1],
3311 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3312 ])# _LT_CHECK_MAGIC_METHOD
3316 # find the pathname to a BSD-compatible name lister
3317 AC_DEFUN([AC_PROG_NM],
3318 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3319 [if test -n "$NM"; then
3320 # Let the user override the test.
3323 lt_nm_to_check="${ac_tool_prefix}nm"
3324 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3325 lt_nm_to_check="$lt_nm_to_check nm"
3327 for lt_tmp_nm in $lt_nm_to_check; do
3328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3329 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3331 test -z "$ac_dir" && ac_dir=.
3332 tmp_nm="$ac_dir/$lt_tmp_nm"
3333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3334 # Check to see if the nm accepts a BSD-compat flag.
3335 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3336 # nm: unknown option "B" ignored
3337 # Tru64's nm complains that /dev/null is an invalid object file
3338 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3339 */dev/null* | *'Invalid file or object type'*)
3340 lt_cv_path_NM="$tmp_nm -B"
3344 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3346 lt_cv_path_NM="$tmp_nm -p"
3350 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3351 continue # so that we can try to find one that supports BSD flags
3360 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3367 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3368 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3369 dnl aclocal-1.4 backwards compatibility:
3370 dnl AC_DEFUN([AM_PROG_NM], [])
3371 dnl AC_DEFUN([AC_PROG_NM], [])
3373 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3374 # --------------------------------
3375 # how to determine the name of the shared library
3376 # associated with a specific link library.
3377 # -- PORTME fill in with the dynamic library characteristics
3378 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3379 [m4_require([_LT_DECL_EGREP])
3380 m4_require([_LT_DECL_OBJDUMP])
3381 m4_require([_LT_DECL_DLLTOOL])
3382 AC_CACHE_CHECK([how to associate runtime and link libraries],
3383 lt_cv_sharedlib_from_linklib_cmd,
3384 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3387 cygwin* | mingw* | pw32* | cegcc*)
3388 # two different shell functions defined in ltmain.sh
3389 # decide which to use based on capabilities of $DLLTOOL
3390 case `$DLLTOOL --help 2>&1` in
3391 *--identify-strict*)
3392 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3395 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3400 # fallback: assume linklib IS sharedlib
3401 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3405 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3406 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3408 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3409 [Command to associate shared and link libraries])
3410 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3413 # _LT_PATH_MANIFEST_TOOL
3414 # ----------------------
3415 # locate the manifest tool
3416 m4_defun([_LT_PATH_MANIFEST_TOOL],
3417 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3418 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3419 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3420 [lt_cv_path_mainfest_tool=no
3421 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3422 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3423 cat conftest.err >&AS_MESSAGE_LOG_FD
3424 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3425 lt_cv_path_mainfest_tool=yes
3428 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3431 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3432 ])# _LT_PATH_MANIFEST_TOOL
3437 # check for math library
3438 AC_DEFUN([AC_CHECK_LIBM],
3439 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3442 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3443 # These system don't have libm, or don't need it
3446 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3447 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3450 AC_CHECK_LIB(m, cos, LIBM="-lm")
3456 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3457 # -----------------------------------
3458 # sets LIBLTDL to the link flags for the libltdl convenience library and
3459 # LTDLINCL to the include flags for the libltdl header and adds
3460 # --enable-ltdl-convenience to the configure arguments. Note that
3461 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3462 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3463 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3464 # (note the single quotes!). If your package is not flat and you're not
3465 # using automake, define top_builddir and top_srcdir appropriately in
3467 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3468 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3469 case $enable_ltdl_convenience in
3470 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3471 "") enable_ltdl_convenience=yes
3472 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3474 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3475 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3476 # For backwards non-gettext consistent compatibility...
3478 ])# AC_LIBLTDL_CONVENIENCE
3481 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3482 # -----------------------------------
3483 # sets LIBLTDL to the link flags for the libltdl installable library and
3484 # LTDLINCL to the include flags for the libltdl header and adds
3485 # --enable-ltdl-install to the configure arguments. Note that
3486 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3487 # and an installed libltdl is not found, it is assumed to be `libltdl'.
3488 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3489 # '${top_srcdir}/' (note the single quotes!). If your package is not
3490 # flat and you're not using automake, define top_builddir and top_srcdir
3491 # appropriately in the Makefiles.
3492 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3493 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3494 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3495 AC_CHECK_LIB(ltdl, lt_dlinit,
3496 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3497 [if test x"$enable_ltdl_install" = xno; then
3498 AC_MSG_WARN([libltdl not installed, but installation disabled])
3500 enable_ltdl_install=yes
3503 if test x"$enable_ltdl_install" = x"yes"; then
3504 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3505 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3506 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3508 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3512 # For backwards non-gettext consistent compatibility...
3514 ])# AC_LIBLTDL_INSTALLABLE
3519 # enable support for C++ libraries
3520 AC_DEFUN([AC_LIBTOOL_CXX],
3521 [AC_REQUIRE([_LT_AC_LANG_CXX])
3527 AC_DEFUN([_LT_AC_LANG_CXX],
3528 [AC_REQUIRE([AC_PROG_CXX])
3529 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3530 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3533 # _LT_AC_PROG_CXXCPP
3534 # ------------------
3535 AC_DEFUN([_LT_AC_PROG_CXXCPP],
3537 AC_REQUIRE([AC_PROG_CXX])
3538 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3539 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3540 (test "X$CXX" != "Xg++"))) ; then
3543 ])# _LT_AC_PROG_CXXCPP
3547 # enable support for Fortran 77 libraries
3548 AC_DEFUN([AC_LIBTOOL_F77],
3549 [AC_REQUIRE([_LT_AC_LANG_F77])
3555 AC_DEFUN([_LT_AC_LANG_F77],
3556 [AC_REQUIRE([AC_PROG_F77])
3557 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3563 # enable support for GCJ libraries
3564 AC_DEFUN([AC_LIBTOOL_GCJ],
3565 [AC_REQUIRE([_LT_AC_LANG_GCJ])
3571 AC_DEFUN([_LT_AC_LANG_GCJ],
3572 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3573 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3574 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3575 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3576 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3577 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3578 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3584 # enable support for Windows resource files
3585 AC_DEFUN([AC_LIBTOOL_RC],
3586 [AC_REQUIRE([LT_AC_PROG_RC])
3587 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3591 # AC_LIBTOOL_LANG_C_CONFIG
3592 # ------------------------
3593 # Ensure that the configuration vars for the C compiler are
3594 # suitably defined. Those variables are subsequently used by
3595 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3596 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3597 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3601 # Source file extension for C test sources.
3604 # Object file extension for compiled C test sources.
3606 _LT_AC_TAGVAR(objext, $1)=$objext
3608 # Code to be used in simple compile tests
3609 lt_simple_compile_test_code="int some_variable = 0;"
3611 # Code to be used in simple link tests
3612 lt_simple_link_test_code='int main(){return(0);}'
3616 # save warnings/boilerplate of simple test code
3617 _LT_COMPILER_BOILERPLATE
3618 _LT_LINKER_BOILERPLATE
3620 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3621 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3622 AC_LIBTOOL_PROG_CC_C_O($1)
3623 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3624 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3625 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3626 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3627 AC_LIBTOOL_SYS_LIB_STRIP
3628 AC_LIBTOOL_DLOPEN_SELF
3630 # Report which library types will actually be built
3631 AC_MSG_CHECKING([if libtool supports shared libraries])
3632 AC_MSG_RESULT([$can_build_shared])
3634 AC_MSG_CHECKING([whether to build shared libraries])
3635 test "$can_build_shared" = "no" && enable_shared=no
3637 # On AIX, shared libraries and static libraries use the same namespace, and
3638 # are all built from PIC.
3641 test "$enable_shared" = yes && enable_static=no
3642 if test -n "$RANLIB"; then
3643 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3644 postinstall_cmds='$RANLIB $lib'
3649 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3650 test "$enable_shared" = yes && enable_static=no
3654 AC_MSG_RESULT([$enable_shared])
3656 AC_MSG_CHECKING([whether to build static libraries])
3657 # Make sure either enable_shared or enable_static is yes.
3658 test "$enable_shared" = yes || enable_static=yes
3659 AC_MSG_RESULT([$enable_static])
3661 AC_LIBTOOL_CONFIG($1)
3665 ])# AC_LIBTOOL_LANG_C_CONFIG
3668 # AC_LIBTOOL_LANG_CXX_CONFIG
3669 # --------------------------
3670 # Ensure that the configuration vars for the C compiler are
3671 # suitably defined. Those variables are subsequently used by
3672 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3673 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3674 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3676 AC_REQUIRE([AC_PROG_CXX])
3677 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3679 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3680 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3681 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3682 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3683 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3684 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3685 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3686 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3687 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3688 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3689 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3690 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3691 _LT_AC_TAGVAR(module_cmds, $1)=
3692 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3693 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3694 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3695 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3696 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3697 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3699 # Dependencies to place before and after the object being linked:
3700 _LT_AC_TAGVAR(predep_objects, $1)=
3701 _LT_AC_TAGVAR(postdep_objects, $1)=
3702 _LT_AC_TAGVAR(predeps, $1)=
3703 _LT_AC_TAGVAR(postdeps, $1)=
3704 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3705 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3707 # Source file extension for C++ test sources.
3710 # Object file extension for compiled C++ test sources.
3712 _LT_AC_TAGVAR(objext, $1)=$objext
3714 # Code to be used in simple compile tests
3715 lt_simple_compile_test_code="int some_variable = 0;"
3717 # Code to be used in simple link tests
3718 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3720 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3723 # save warnings/boilerplate of simple test code
3724 _LT_COMPILER_BOILERPLATE
3725 _LT_LINKER_BOILERPLATE
3727 # Allow CC to be a program name with arguments.
3732 lt_save_with_gnu_ld=$with_gnu_ld
3733 lt_save_path_LD=$lt_cv_path_LD
3734 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3735 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3737 $as_unset lt_cv_prog_gnu_ld
3739 if test -n "${lt_cv_path_LDCXX+set}"; then
3740 lt_cv_path_LD=$lt_cv_path_LDCXX
3742 $as_unset lt_cv_path_LD
3744 test -z "${LDCXX+set}" || LD=$LDCXX
3747 _LT_AC_TAGVAR(compiler, $1)=$CC
3748 _LT_CC_BASENAME([$compiler])
3750 # We don't want -fno-exception wen compiling C++ code, so set the
3751 # no_builtin_flag separately
3752 if test "$GXX" = yes; then
3753 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3755 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3758 if test "$GXX" = yes; then
3759 # Set up default GNU C++ configuration
3763 # Check if GNU C++ uses GNU ld as the underlying linker, since the
3764 # archiving commands below assume that GNU ld is being used.
3765 if test "$with_gnu_ld" = yes; then
3766 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3767 _LT_AC_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'
3769 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3770 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3772 # If archive_cmds runs LD, not CC, wlarc should be empty
3773 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3774 # investigate it a little bit more. (MM)
3777 # ancient GNU ld didn't support --whole-archive et. al.
3778 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3779 grep 'no-whole-archive' > /dev/null; then
3780 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3782 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3788 # A generic and very simple default shared library creation
3789 # command for GNU C++ for the case where it uses the native
3790 # linker, instead of GNU ld. If possible, this setting should
3791 # overridden to take advantage of the native linker features on
3792 # the platform it is being used on.
3793 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3796 # Commands to make compiler produce verbose output that lists
3797 # what "hidden" libraries, object files and flags are used when
3798 # linking a shared library.
3799 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3807 # PORTME: fill in a description of your system's C++ link characteristics
3808 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3809 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3812 # FIXME: insert proper C++ library support
3813 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3816 if test "$host_cpu" = ia64; then
3817 # On IA64, the linker does run time linking by default, so we don't
3818 # have to do anything special.
3819 aix_use_runtimelinking=no
3820 exp_sym_flag='-Bexport'
3823 aix_use_runtimelinking=no
3825 # Test if we are trying to use run time linking or normal
3826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3827 # need to do runtime linking.
3828 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3829 for ld_flag in $LDFLAGS; do
3832 aix_use_runtimelinking=yes
3840 exp_sym_flag='-bexport'
3841 no_entry_flag='-bnoentry'
3844 # When large executables or shared objects are built, AIX ld can
3845 # have problems creating the table of contents. If linking a library
3846 # or program results in "error TOC overflow" add -mminimal-toc to
3847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3850 _LT_AC_TAGVAR(archive_cmds, $1)=''
3851 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3852 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3853 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3855 if test "$GXX" = yes; then
3856 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3857 # We only want to do this on AIX 4.2 and lower, the check
3858 # below for broken collect2 doesn't work under 4.3+
3859 collect2name=`${CC} -print-prog-name=collect2`
3860 if test -f "$collect2name" && \
3861 strings "$collect2name" | grep resolve_lib_name >/dev/null
3863 # We have reworked collect2
3866 # We have old collect2
3867 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3868 # It fails to find uninstalled libraries when the uninstalled
3869 # path is not listed in the libpath. Setting hardcode_minus_L
3870 # to unsupported forces relinking
3871 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3872 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3873 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3877 shared_flag='-shared'
3878 if test "$aix_use_runtimelinking" = yes; then
3879 shared_flag="$shared_flag "'${wl}-G'
3883 if test "$host_cpu" = ia64; then
3884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3885 # chokes on -Wl,-G. The following line is correct:
3888 if test "$aix_use_runtimelinking" = yes; then
3889 shared_flag='${wl}-G'
3891 shared_flag='${wl}-bM:SRE'
3896 # It seems that -bexpall does not export symbols beginning with
3897 # underscore (_), so it is better to generate a list of symbols to export.
3898 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3899 if test "$aix_use_runtimelinking" = yes; then
3900 # Warning - without using the other runtime loading flags (-brtl),
3901 # -berok will link without error, but may produce a broken library.
3902 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3903 # Determine the default libpath from the value encoded in an empty executable.
3904 _LT_AC_SYS_LIBPATH_AIX
3905 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3907 _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3909 if test "$host_cpu" = ia64; then
3910 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3911 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3912 _LT_AC_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"
3914 # Determine the default libpath from the value encoded in an empty executable.
3915 _LT_AC_SYS_LIBPATH_AIX
3916 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3917 # Warning - without using the other run time loading flags,
3918 # -berok will link without error, but may produce a broken library.
3919 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3920 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3921 # Exported symbols can be pulled into shared objects from archives
3922 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3923 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3924 # This is similar to how AIX traditionally builds its shared libraries.
3925 _LT_AC_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'
3931 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3932 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3933 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3934 # support --undefined. This deserves some investigation. FIXME
3935 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3937 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3942 case $cc_basename in
3944 # FIXME: insert proper C++ library support
3945 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3950 cygwin* | mingw* | pw32*)
3951 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3952 # as there is no search path for DLLs.
3953 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3954 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3955 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3956 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3958 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3959 _LT_AC_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'
3960 # If the export-symbols file already is a .def file (1st line
3961 # is EXPORTS), use it as is; otherwise, prepend...
3962 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3963 cp $export_symbols $output_objdir/$soname.def;
3965 echo EXPORTS > $output_objdir/$soname.def;
3966 cat $export_symbols >> $output_objdir/$soname.def;
3968 $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'
3970 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3973 darwin* | rhapsody*)
3974 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3975 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3976 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3977 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3978 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3979 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3980 _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3981 if test "$GXX" = yes ; then
3982 output_verbose_link_cmd='echo'
3983 _LT_AC_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}"
3984 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3985 _LT_AC_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}"
3986 _LT_AC_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}"
3987 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3988 _LT_AC_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}"
3989 _LT_AC_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}"
3992 case $cc_basename in
3994 output_verbose_link_cmd='echo'
3995 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3996 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3997 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3998 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3999 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4002 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4009 case $cc_basename in
4011 # FIXME: insert proper C++ library support
4012 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4015 # Green Hills C++ Compiler
4016 # FIXME: insert proper C++ library support
4017 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4020 # FIXME: insert proper C++ library support
4021 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4026 # C++ shared libraries reported to be fairly broken before switch to ELF
4027 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4030 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4032 freebsd* | dragonfly*)
4033 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4035 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4040 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4041 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4042 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4043 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4044 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4045 # but as the default
4046 # location of the library.
4048 case $cc_basename in
4050 # FIXME: insert proper C++ library support
4051 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4054 _LT_AC_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'
4055 # Commands to make compiler produce verbose output that lists
4056 # what "hidden" libraries, object files and flags are used when
4057 # linking a shared library.
4059 # There doesn't appear to be a way to prevent this compiler from
4060 # explicitly linking system object files so we need to strip them
4061 # from the output so that they don't get included in the library
4063 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 $list'
4066 if test "$GXX" = yes; then
4067 _LT_AC_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'
4069 # FIXME: insert proper C++ library support
4070 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4076 if test $with_gnu_ld = no; then
4077 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4078 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4083 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4089 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4090 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4093 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4094 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4095 # but as the default
4096 # location of the library.
4100 case $cc_basename in
4102 # FIXME: insert proper C++ library support
4103 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4108 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4111 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4114 _LT_AC_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'
4117 # Commands to make compiler produce verbose output that lists
4118 # what "hidden" libraries, object files and flags are used when
4119 # linking a shared library.
4121 # There doesn't appear to be a way to prevent this compiler from
4122 # explicitly linking system object files so we need to strip them
4123 # from the output so that they don't get included in the library
4125 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 $list'
4128 if test "$GXX" = yes; then
4129 if test $with_gnu_ld = no; then
4132 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4135 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4138 _LT_AC_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'
4143 # FIXME: insert proper C++ library support
4144 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4150 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4151 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4152 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4153 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4154 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4155 # Instead, shared libraries are loaded at an image base (0x10000000 by
4156 # default) and relocated if they conflict, which is a slow very memory
4157 # consuming and fragmenting process. To avoid this, we pick a random,
4158 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4159 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4160 _LT_AC_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'
4161 _LT_AC_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'
4164 case $cc_basename in
4167 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4169 # Archives containing C++ object files must be created using
4170 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4171 # necessary to make sure instantiated templates are included
4173 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4176 if test "$GXX" = yes; then
4177 if test "$with_gnu_ld" = no; then
4178 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4180 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4183 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4186 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4187 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4189 linux* | k*bsd*-gnu)
4190 case $cc_basename in
4192 # Kuck and Associates, Inc. (KAI) C++ Compiler
4194 # KCC will only create a shared library if the output file
4195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4196 # to its proper name (with version) after linking.
4197 _LT_AC_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'
4198 _LT_AC_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'
4199 # Commands to make compiler produce verbose output that lists
4200 # what "hidden" libraries, object files and flags are used when
4201 # linking a shared library.
4203 # There doesn't appear to be a way to prevent this compiler from
4204 # explicitly linking system object files so we need to strip them
4205 # from the output so that they don't get included in the library
4207 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 $list'
4209 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4210 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4212 # Archives containing C++ object files must be created using
4213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4214 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4219 # version 8.0 and above of icpc choke on multiply defined symbols
4220 # if we add $predep_objects and $postdep_objects, however 7.1 and
4221 # earlier do not add the objects themselves.
4222 case `$CC -V 2>&1` in
4224 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4225 _LT_AC_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'
4227 *) # Version 8.0 or newer
4230 ia64*) tmp_idyn=' -i_dynamic';;
4232 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4233 _LT_AC_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'
4236 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4237 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4238 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4239 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4242 # Portland Group C++ compiler
4243 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4244 _LT_AC_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'
4246 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4247 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4248 _LT_AC_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'
4252 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4253 _LT_AC_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'
4255 runpath_var=LD_RUN_PATH
4256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4257 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4259 # Commands to make compiler produce verbose output that lists
4260 # what "hidden" libraries, object files and flags are used when
4261 # linking a shared library.
4263 # There doesn't appear to be a way to prevent this compiler from
4264 # explicitly linking system object files so we need to strip them
4265 # from the output so that they don't get included in the library
4267 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4270 case `$CC -V 2>&1 | sed 5q` in
4273 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4274 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4275 _LT_AC_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'
4276 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4277 _LT_AC_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'
4279 # Not sure whether something based on
4280 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4282 output_verbose_link_cmd='echo'
4284 # Archives containing C++ object files must be created using
4285 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4286 # necessary to make sure instantiated templates are included
4288 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4295 # FIXME: insert proper C++ library support
4296 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4299 # FIXME: insert proper C++ library support
4300 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4303 case $cc_basename in
4305 # FIXME: insert proper C++ library support
4306 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4309 # FIXME: insert proper C++ library support
4310 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4316 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4318 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4319 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4320 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4322 # Workaround some broken pre-1.5 toolchains
4323 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4326 # C++ shared libraries are fairly broken
4327 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4330 if test -f /usr/libexec/ld.so; then
4331 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4332 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4333 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4334 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336 _LT_AC_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'
4337 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4338 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4340 output_verbose_link_cmd='echo'
4342 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4346 case $cc_basename in
4348 # Kuck and Associates, Inc. (KAI) C++ Compiler
4350 # KCC will only create a shared library if the output file
4351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4352 # to its proper name (with version) after linking.
4353 _LT_AC_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'
4355 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4356 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4358 # Archives containing C++ object files must be created using
4359 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4360 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4364 # Rational C++ 2.4.1
4365 # FIXME: insert proper C++ library support
4366 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4369 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4370 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4372 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4373 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4375 # Commands to make compiler produce verbose output that lists
4376 # what "hidden" libraries, object files and flags are used when
4377 # linking a shared library.
4379 # There doesn't appear to be a way to prevent this compiler from
4380 # explicitly linking system object files so we need to strip them
4381 # from the output so that they don't get included in the library
4383 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4386 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4387 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4388 _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4390 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4391 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4393 # Commands to make compiler produce verbose output that lists
4394 # what "hidden" libraries, object files and flags are used when
4395 # linking a shared library.
4396 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4399 # FIXME: insert proper C++ library support
4400 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4406 case $cc_basename in
4408 # Kuck and Associates, Inc. (KAI) C++ Compiler
4410 # KCC will only create a shared library if the output file
4411 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4412 # to its proper name (with version) after linking.
4413 _LT_AC_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'
4415 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4416 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4418 # Archives containing C++ object files must be created using
4419 # the KAI C++ compiler.
4420 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4423 # Rational C++ 2.4.1
4424 # FIXME: insert proper C++ library support
4425 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4428 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4429 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4430 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4431 echo "-hidden">> $lib.exp~
4432 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4435 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4436 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4438 # Commands to make compiler produce verbose output that lists
4439 # what "hidden" libraries, object files and flags are used when
4440 # linking a shared library.
4442 # There doesn't appear to be a way to prevent this compiler from
4443 # explicitly linking system object files so we need to strip them
4444 # from the output so that they don't get included in the library
4446 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4449 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4450 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4451 _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4453 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4454 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4456 # Commands to make compiler produce verbose output that lists
4457 # what "hidden" libraries, object files and flags are used when
4458 # linking a shared library.
4459 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4462 # FIXME: insert proper C++ library support
4463 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4469 # FIXME: insert proper C++ library support
4470 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4473 case $cc_basename in
4476 # FIXME: insert proper C++ library support
4477 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4481 # FIXME: insert proper C++ library support
4482 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4485 # FIXME: insert proper C++ library support
4486 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4491 case $cc_basename in
4493 # Sun C++ 4.2, 5.x and Centerline C++
4494 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4495 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4496 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4497 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4498 $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'
4500 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4501 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4503 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4505 # The compiler driver will combine and reorder linker options,
4506 # but understands `-z linker_flag'.
4507 # Supported since Solaris 2.6 (maybe 2.5.1?)
4508 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4511 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4513 output_verbose_link_cmd='echo'
4515 # Archives containing C++ object files must be created using
4516 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4517 # necessary to make sure instantiated templates are included
4519 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4522 # Green Hills C++ Compiler
4523 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4525 # The C++ compiler must be used to create the archive.
4526 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4529 # GNU C++ compiler with Solaris linker
4530 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4531 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4532 if $CC --version | grep -v '^2\.7' > /dev/null; then
4533 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4534 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4535 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4537 # Commands to make compiler produce verbose output that lists
4538 # what "hidden" libraries, object files and flags are used when
4539 # linking a shared library.
4540 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4542 # g++ 2.7 appears to require `-G' NOT `-shared' on this
4544 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4545 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4546 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4548 # Commands to make compiler produce verbose output that lists
4549 # what "hidden" libraries, object files and flags are used when
4550 # linking a shared library.
4551 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4554 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4556 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4558 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4565 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4566 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4567 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4568 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4569 runpath_var='LD_RUN_PATH'
4571 case $cc_basename in
4573 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4574 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4577 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4578 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4582 sysv5* | sco3.2v5* | sco5v6*)
4583 # Note: We can NOT use -z defs as we might desire, because we do not
4584 # link with -lc, and that would cause any symbols used from libc to
4585 # always be unresolved, which means just about no library would
4586 # ever link correctly. If we're not using GNU ld we use -z text
4587 # though, which does catch some bad symbols but isn't as heavy-handed
4589 # For security reasons, it is highly recommended that you always
4590 # use absolute paths for naming shared libraries, and exclude the
4591 # DT_RUNPATH tag from executables and libraries. But doing so
4592 # requires that you compile everything twice, which is a pain.
4593 # So that behaviour is only enabled if SCOABSPATH is set to a
4594 # non-empty value in the environment. Most likely only useful for
4595 # creating official distributions of packages.
4596 # This is a hack until libtool officially supports absolute path
4597 # names for shared libraries.
4598 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4599 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4600 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4601 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4602 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4603 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4604 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4605 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4606 runpath_var='LD_RUN_PATH'
4608 case $cc_basename in
4610 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4611 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4614 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4615 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4620 case $cc_basename in
4622 # NonStop-UX NCC 3.20
4623 # FIXME: insert proper C++ library support
4624 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4627 # FIXME: insert proper C++ library support
4628 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4633 # FIXME: insert proper C++ library support
4634 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4637 # FIXME: insert proper C++ library support
4638 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4641 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4642 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4644 _LT_AC_TAGVAR(GCC, $1)="$GXX"
4645 _LT_AC_TAGVAR(LD, $1)="$LD"
4647 AC_LIBTOOL_POSTDEP_PREDEP($1)
4648 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4649 AC_LIBTOOL_PROG_CC_C_O($1)
4650 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4651 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4652 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4653 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4655 AC_LIBTOOL_CONFIG($1)
4662 with_gnu_ldcxx=$with_gnu_ld
4663 with_gnu_ld=$lt_save_with_gnu_ld
4664 lt_cv_path_LDCXX=$lt_cv_path_LD
4665 lt_cv_path_LD=$lt_save_path_LD
4666 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4667 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4668 ])# AC_LIBTOOL_LANG_CXX_CONFIG
4670 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4671 # ------------------------------------
4672 # Figure out "hidden" library dependencies from verbose
4673 # compiler output when linking a shared library.
4674 # Parse the compiler output and extract the necessary
4675 # objects, libraries and library flags.
4676 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4677 [AC_REQUIRE([LT_AC_PROG_SED])dnl
4678 dnl we can't use the lt_simple_compile_test_code here,
4679 dnl because it contains code intended for an executable,
4680 dnl not a library. It's possible we should let each
4681 dnl tag define a new lt_????_link_test_code variable,
4682 dnl but it's only used here...
4683 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4685 void foo (void) { a = 0; }
4687 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4691 Foo (void) { a = 0; }
4696 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4704 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4707 public void bar (void) {
4713 dnl Parse the compiler output and extract the necessary
4714 dnl objects, libraries and library flags.
4715 if AC_TRY_EVAL(ac_compile); then
4716 # Parse the compiler output and extract the necessary
4717 # objects, libraries and library flags.
4719 # Sentinel used to keep track of whether or not we are before
4720 # the conftest object file.
4721 pre_test_object_deps_done=no
4723 # The `*' in the case matches for architectures that use `case' in
4724 # $output_verbose_cmd can trigger glob expansion during the loop
4725 # eval without this substitution.
4726 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4728 for p in `eval $output_verbose_link_cmd`; do
4732 # Some compilers place space between "-{L,R}" and the path.
4735 || test $p = "-R"; then
4742 if test "$pre_test_object_deps_done" = no; then
4745 # Internal compiler library paths should come after those
4746 # provided the user. The postdeps already come after the
4747 # user supplied libs so there is no need to process them.
4748 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4749 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4751 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4754 # The "-l" case would never come before the object being
4755 # linked, so don't bother handling this case.
4758 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4759 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4761 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4767 # This assumes that the test object file only shows up
4768 # once in the compiler output.
4769 if test "$p" = "conftest.$objext"; then
4770 pre_test_object_deps_done=yes
4774 if test "$pre_test_object_deps_done" = no; then
4775 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4776 _LT_AC_TAGVAR(predep_objects, $1)="$p"
4778 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4781 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4782 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4784 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4789 *) ;; # Ignore the rest.
4797 echo "libtool.m4: error: problem compiling $1 test program"
4800 $rm -f confest.$objext
4802 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4803 if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4804 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4807 # PORTME: override above test on systems where it is broken
4811 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4812 # hack all around it, let's just trust "g++" to DTRT.
4813 _LT_AC_TAGVAR(predep_objects,$1)=
4814 _LT_AC_TAGVAR(postdep_objects,$1)=
4815 _LT_AC_TAGVAR(postdeps,$1)=
4819 case `$CC -V 2>&1 | sed 5q` in
4823 # The more standards-conforming stlport4 library is
4824 # incompatible with the Cstd library. Avoid specifying
4825 # it if it's in CXXFLAGS. Ignore libCrun as
4826 # -library=stlport4 depends on it.
4827 case " $CXX $CXXFLAGS " in
4828 *" -library=stlport4 "*)
4829 solaris_use_stlport4=yes
4832 if test "$solaris_use_stlport4" != yes; then
4833 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4840 case $cc_basename in
4842 # The more standards-conforming stlport4 library is
4843 # incompatible with the Cstd library. Avoid specifying
4844 # it if it's in CXXFLAGS. Ignore libCrun as
4845 # -library=stlport4 depends on it.
4846 case " $CXX $CXXFLAGS " in
4847 *" -library=stlport4 "*)
4848 solaris_use_stlport4=yes
4852 # Adding this requires a known-good setup of shared libraries for
4853 # Sun compiler versions before 5.6, else PIC objects from an old
4854 # archive will be linked into the output, leading to subtle bugs.
4855 if test "$solaris_use_stlport4" != yes; then
4856 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4863 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4864 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4866 ])# AC_LIBTOOL_POSTDEP_PREDEP
4868 # AC_LIBTOOL_LANG_F77_CONFIG
4869 # --------------------------
4870 # Ensure that the configuration vars for the C compiler are
4871 # suitably defined. Those variables are subsequently used by
4872 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4873 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4874 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4875 [AC_REQUIRE([AC_PROG_F77])
4876 AC_LANG_PUSH(Fortran 77)
4878 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4879 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4880 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4881 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4882 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4883 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4884 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4885 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4886 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4887 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4888 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4889 _LT_AC_TAGVAR(module_cmds, $1)=
4890 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4891 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4892 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4893 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4894 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4895 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4897 # Source file extension for f77 test sources.
4900 # Object file extension for compiled f77 test sources.
4902 _LT_AC_TAGVAR(objext, $1)=$objext
4904 # Code to be used in simple compile tests
4905 lt_simple_compile_test_code="\
4911 # Code to be used in simple link tests
4912 lt_simple_link_test_code="\
4917 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4920 # save warnings/boilerplate of simple test code
4921 _LT_COMPILER_BOILERPLATE
4922 _LT_LINKER_BOILERPLATE
4924 # Allow CC to be a program name with arguments.
4928 _LT_AC_TAGVAR(compiler, $1)=$CC
4929 _LT_CC_BASENAME([$compiler])
4931 AC_MSG_CHECKING([if libtool supports shared libraries])
4932 AC_MSG_RESULT([$can_build_shared])
4934 AC_MSG_CHECKING([whether to build shared libraries])
4935 test "$can_build_shared" = "no" && enable_shared=no
4937 # On AIX, shared libraries and static libraries use the same namespace, and
4938 # are all built from PIC.
4941 test "$enable_shared" = yes && enable_static=no
4942 if test -n "$RANLIB"; then
4943 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4944 postinstall_cmds='$RANLIB $lib'
4948 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4949 test "$enable_shared" = yes && enable_static=no
4953 AC_MSG_RESULT([$enable_shared])
4955 AC_MSG_CHECKING([whether to build static libraries])
4956 # Make sure either enable_shared or enable_static is yes.
4957 test "$enable_shared" = yes || enable_static=yes
4958 AC_MSG_RESULT([$enable_static])
4960 _LT_AC_TAGVAR(GCC, $1)="$G77"
4961 _LT_AC_TAGVAR(LD, $1)="$LD"
4963 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4964 AC_LIBTOOL_PROG_CC_C_O($1)
4965 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4966 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4967 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4968 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4970 AC_LIBTOOL_CONFIG($1)
4974 ])# AC_LIBTOOL_LANG_F77_CONFIG
4977 # AC_LIBTOOL_LANG_GCJ_CONFIG
4978 # --------------------------
4979 # Ensure that the configuration vars for the C compiler are
4980 # suitably defined. Those variables are subsequently used by
4981 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4982 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4983 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4986 # Source file extension for Java test sources.
4989 # Object file extension for compiled Java test sources.
4991 _LT_AC_TAGVAR(objext, $1)=$objext
4993 # Code to be used in simple compile tests
4994 lt_simple_compile_test_code="class foo {}"
4996 # Code to be used in simple link tests
4997 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4999 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5002 # save warnings/boilerplate of simple test code
5003 _LT_COMPILER_BOILERPLATE
5004 _LT_LINKER_BOILERPLATE
5006 # Allow CC to be a program name with arguments.
5010 _LT_AC_TAGVAR(compiler, $1)=$CC
5011 _LT_CC_BASENAME([$compiler])
5013 # GCJ did not exist at the time GCC didn't implicitly link libc in.
5014 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5016 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5018 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5019 AC_LIBTOOL_PROG_COMPILER_PIC($1)
5020 AC_LIBTOOL_PROG_CC_C_O($1)
5021 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5022 AC_LIBTOOL_PROG_LD_SHLIBS($1)
5023 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5024 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5026 AC_LIBTOOL_CONFIG($1)
5030 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
5033 # AC_LIBTOOL_LANG_RC_CONFIG
5034 # -------------------------
5035 # Ensure that the configuration vars for the Windows resource compiler are
5036 # suitably defined. Those variables are subsequently used by
5037 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5038 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5039 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5042 # Source file extension for RC test sources.
5045 # Object file extension for compiled RC test sources.
5047 _LT_AC_TAGVAR(objext, $1)=$objext
5049 # Code to be used in simple compile tests
5050 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5052 # Code to be used in simple link tests
5053 lt_simple_link_test_code="$lt_simple_compile_test_code"
5055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5058 # save warnings/boilerplate of simple test code
5059 _LT_COMPILER_BOILERPLATE
5060 _LT_LINKER_BOILERPLATE
5062 # Allow CC to be a program name with arguments.
5066 _LT_AC_TAGVAR(compiler, $1)=$CC
5067 _LT_CC_BASENAME([$compiler])
5068 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5070 AC_LIBTOOL_CONFIG($1)
5074 ])# AC_LIBTOOL_LANG_RC_CONFIG
5077 # AC_LIBTOOL_CONFIG([TAGNAME])
5078 # ----------------------------
5079 # If TAGNAME is not passed, then create an initial libtool script
5080 # with a default configuration from the untagged config vars. Otherwise
5081 # add code to config.status for appending the configuration named by
5082 # TAGNAME from the matching tagged config vars.
5083 AC_DEFUN([AC_LIBTOOL_CONFIG],
5084 [# The else clause should only fire when bootstrapping the
5085 # libtool distribution, otherwise you forgot to ship ltmain.sh
5086 # with your package, and you will get complaints that there are
5087 # no rules to generate ltmain.sh.
5088 if test -f "$ltmain"; then
5089 # See if we are running on zsh, and set the options which allow our commands through
5090 # without removal of \ escapes.
5091 if test -n "${ZSH_VERSION+set}" ; then
5092 setopt NO_GLOB_SUBST
5094 # Now quote all the things that may contain metacharacters while being
5095 # careful not to overquote the AC_SUBSTed values. We take copies of the
5096 # variables and quote the copies for generation of the libtool script.
5097 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5099 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5100 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5101 deplibs_check_method reload_flag reload_cmds need_locks \
5102 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5103 lt_cv_sys_global_symbol_to_c_name_address \
5104 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5105 old_postinstall_cmds old_postuninstall_cmds \
5106 _LT_AC_TAGVAR(compiler, $1) \
5107 _LT_AC_TAGVAR(CC, $1) \
5108 _LT_AC_TAGVAR(LD, $1) \
5109 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5110 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5111 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5112 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5113 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5114 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5115 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5116 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5117 _LT_AC_TAGVAR(old_archive_cmds, $1) \
5118 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5119 _LT_AC_TAGVAR(predep_objects, $1) \
5120 _LT_AC_TAGVAR(postdep_objects, $1) \
5121 _LT_AC_TAGVAR(predeps, $1) \
5122 _LT_AC_TAGVAR(postdeps, $1) \
5123 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5124 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5125 _LT_AC_TAGVAR(archive_cmds, $1) \
5126 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5127 _LT_AC_TAGVAR(postinstall_cmds, $1) \
5128 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5129 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5130 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5131 _LT_AC_TAGVAR(no_undefined_flag, $1) \
5132 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5133 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5134 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5135 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5136 _LT_AC_TAGVAR(hardcode_automatic, $1) \
5137 _LT_AC_TAGVAR(module_cmds, $1) \
5138 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5139 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5140 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
5141 _LT_AC_TAGVAR(exclude_expsyms, $1) \
5142 _LT_AC_TAGVAR(include_expsyms, $1); do
5145 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5146 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5147 _LT_AC_TAGVAR(archive_cmds, $1) | \
5148 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5149 _LT_AC_TAGVAR(module_cmds, $1) | \
5150 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5151 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5152 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5153 extract_expsyms_cmds | reload_cmds | finish_cmds | \
5154 postinstall_cmds | postuninstall_cmds | \
5155 old_postinstall_cmds | old_postuninstall_cmds | \
5156 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5157 # Double-quote double-evaled strings.
5158 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5167 *'\[$]0 --fallback-echo"')
5168 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5173 [cfgfile="${ofile}T"
5174 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5176 AC_MSG_NOTICE([creating $ofile])],
5179 cat <<__EOF__ >> "$cfgfile"
5183 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5184 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5185 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5187 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5188 # Free Software Foundation, Inc.
5190 # This file is part of GNU Libtool:
5191 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5193 # This program is free software; you can redistribute it and/or modify
5194 # it under the terms of the GNU General Public License as published by
5195 # the Free Software Foundation; either version 2 of the License, or
5196 # (at your option) any later version.
5198 # This program is distributed in the hope that it will be useful, but
5199 # WITHOUT ANY WARRANTY; without even the implied warranty of
5200 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5201 # General Public License for more details.
5203 # You should have received a copy of the GNU General Public License
5204 # along with this program; if not, write to the Free Software
5205 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5207 # As a special exception to the GNU General Public License, if you
5208 # distribute this file as part of a program that contains a
5209 # configuration script generated by Autoconf, you may include it under
5210 # the same distribution terms that you use for the rest of that program.
5212 # A sed program that does not truncate output.
5215 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5216 Xsed="$SED -e 1s/^X//"
5218 # The HP-UX ksh and POSIX shell print the target directory to stdout
5220 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5222 # The names of the tagged configurations supported by this script.
5225 # ### BEGIN LIBTOOL CONFIG],
5226 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5228 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5230 # Shell to use when invoking shell scripts.
5233 # Whether or not to build shared libraries.
5234 build_libtool_libs=$enable_shared
5236 # Whether or not to build static libraries.
5237 build_old_libs=$enable_static
5239 # Whether or not to add -lc for building shared libraries.
5240 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5242 # Whether or not to disallow shared libs when runtime libs are static
5243 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5245 # Whether or not to optimize for fast installation.
5246 fast_install=$enable_fast_install
5249 host_alias=$host_alias
5254 build_alias=$build_alias
5258 # An echo program that does not interpret backslashes.
5263 AR_FLAGS=$lt_AR_FLAGS
5268 # LTCC compiler flags.
5269 LTCFLAGS=$lt_LTCFLAGS
5271 # A language-specific compiler.
5272 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5274 # Is the compiler the GNU C compiler?
5275 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5280 # The linker used to build libraries.
5281 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5283 # Whether we need hard or soft links.
5286 # A BSD-compatible nm program.
5289 # A symbol stripping program
5292 # Used to examine libraries when file_magic_cmd begins "file"
5293 MAGIC_CMD=$MAGIC_CMD
5295 # Used on cygwin: DLL creation program.
5298 # Used on cygwin: object dumper.
5301 # Used on cygwin: assembler.
5304 # The name of the directory that contains temporary libtool files.
5307 # How to create reloadable object files.
5308 reload_flag=$lt_reload_flag
5309 reload_cmds=$lt_reload_cmds
5311 # How to pass a linker flag through the compiler.
5312 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5314 # Object file suffix (normally "o").
5317 # Old archive suffix (normally "a").
5320 # Shared library suffix (normally ".so").
5321 shrext_cmds='$shrext_cmds'
5323 # Executable file suffix (normally "").
5326 # Additional compiler flags for building library objects.
5327 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5330 # What is the maximum length of a command?
5331 max_cmd_len=$lt_cv_sys_max_cmd_len
5333 # Does compiler simultaneously support -c and -o options?
5334 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5336 # Must we lock files when doing compilation?
5337 need_locks=$lt_need_locks
5339 # Do we need the lib prefix for modules?
5340 need_lib_prefix=$need_lib_prefix
5342 # Do we need a version for libraries?
5343 need_version=$need_version
5345 # Whether dlopen is supported.
5346 dlopen_support=$enable_dlopen
5348 # Whether dlopen of programs is supported.
5349 dlopen_self=$enable_dlopen_self
5351 # Whether dlopen of statically linked programs is supported.
5352 dlopen_self_static=$enable_dlopen_self_static
5354 # Compiler flag to prevent dynamic linking.
5355 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5357 # Compiler flag to turn off builtin functions.
5358 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5360 # Compiler flag to allow reflexive dlopens.
5361 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5363 # Compiler flag to generate shared objects directly from archives.
5364 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5366 # Compiler flag to generate thread-safe objects.
5367 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5369 # Library versioning type.
5370 version_type=$version_type
5372 # Format of library name prefix.
5373 libname_spec=$lt_libname_spec
5375 # List of archive names. First name is the real one, the rest are links.
5376 # The last name is the one that the linker finds with -lNAME.
5377 library_names_spec=$lt_library_names_spec
5379 # The coded name of the library, if different from the real name.
5380 soname_spec=$lt_soname_spec
5382 # Commands used to build and install an old-style archive.
5384 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5385 old_postinstall_cmds=$lt_old_postinstall_cmds
5386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5388 # Create an old-style archive from a shared archive.
5389 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5391 # Create a temporary old-style archive to link instead of a shared archive.
5392 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5394 # Commands used to build and install a shared archive.
5395 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5396 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5397 postinstall_cmds=$lt_postinstall_cmds
5398 postuninstall_cmds=$lt_postuninstall_cmds
5400 # Commands used to build a loadable module (assumed same as above if empty)
5401 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5402 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5404 # Commands to strip libraries.
5405 old_striplib=$lt_old_striplib
5406 striplib=$lt_striplib
5408 # Dependencies to place before the objects being linked to create a
5410 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5412 # Dependencies to place after the objects being linked to create a
5414 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5416 # Dependencies to place before the objects being linked to create a
5418 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5420 # Dependencies to place after the objects being linked to create a
5422 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5424 # The directories searched by this compiler when creating a shared
5426 compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5428 # The library search path used internally by the compiler when linking
5430 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5432 # Method to check whether dependent libraries are shared objects.
5433 deplibs_check_method=$lt_deplibs_check_method
5435 # Command to use when deplibs_check_method == file_magic.
5436 file_magic_cmd=$lt_file_magic_cmd
5438 # Flag that allows shared libraries with undefined symbols to be built.
5439 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5441 # Flag that forces no undefined symbols.
5442 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5444 # Commands used to finish a libtool library installation in a directory.
5445 finish_cmds=$lt_finish_cmds
5447 # Same as above, but a single script fragment to be evaled but not shown.
5448 finish_eval=$lt_finish_eval
5450 # Take the output of nm and produce a listing of raw symbols and C names.
5451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5453 # Transform the output of nm in a proper C declaration
5454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5456 # Transform the output of nm in a C name address pair
5457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5459 # This is the shared library runtime path variable.
5460 runpath_var=$runpath_var
5462 # This is the shared library path variable.
5463 shlibpath_var=$shlibpath_var
5465 # Is shlibpath searched before the hard-coded library search path?
5466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5468 # How to hardcode a shared library path into an executable.
5469 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5471 # Whether we should hardcode library paths into libraries.
5472 hardcode_into_libs=$hardcode_into_libs
5474 # Flag to hardcode \$libdir into a binary during linking.
5475 # This must work even if \$libdir does not exist.
5476 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5478 # If ld is used when linking, flag to hardcode \$libdir into
5479 # a binary during linking. This must work even if \$libdir does
5481 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5483 # Whether we need a single -rpath flag with a separated argument.
5484 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5488 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5492 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5495 # the resulting binary.
5496 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5498 # Set to yes if building a shared library automatically hardcodes DIR into the library
5499 # and all subsequent libraries and executables linked against it.
5500 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5502 # Variables whose values should be saved in libtool wrapper scripts and
5503 # restored at relink time.
5504 variables_saved_for_relink="$variables_saved_for_relink"
5506 # Whether libtool must link a program against all its dependency libraries.
5507 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5509 # Compile-time system search path for libraries
5510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5512 # Run-time system search path for libraries
5513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5515 # Fix the shell variable \$srcfile for the compiler.
5516 fix_srcfile_path=$lt_fix_srcfile_path
5518 # Set to yes if exported symbols are required.
5519 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5521 # The commands to list exported symbols.
5522 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5524 # The commands to extract the exported symbol list from a shared archive.
5525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5527 # Symbols that should not be listed in the preloaded symbols.
5528 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5530 # Symbols that must always be exported.
5531 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5534 [# ### END LIBTOOL CONFIG],
5535 [# ### END LIBTOOL TAG CONFIG: $tagname])
5542 cat <<\EOF >> "$cfgfile"
5544 # AIX sometimes has problems with the GCC collect2 program. For some
5545 # reason, if we set the COLLECT_NAMES environment variable, the problems
5546 # vanish in a puff of smoke.
5547 if test "X${COLLECT_NAMES+set}" != Xset; then
5549 export COLLECT_NAMES
5555 # We use sed instead of cat because bash on DJGPP gets confused if
5556 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5557 # text mode, it properly converts lines to CR/LF. This bash problem
5558 # is reportedly fixed, but why not run on old versions too?
5559 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5561 mv -f "$cfgfile" "$ofile" || \
5562 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5566 # If there is no Makefile yet, we rely on a make rule to execute
5567 # `config.status --recheck' to rerun these tests and create the
5568 # libtool script then.
5569 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5570 if test -f "$ltmain_in"; then
5571 test -f Makefile && make "$ltmain"
5574 ])# AC_LIBTOOL_CONFIG
5577 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5578 # -------------------------------------------
5579 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5580 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5582 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5584 if test "$GCC" = yes; then
5585 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5587 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5588 lt_cv_prog_compiler_rtti_exceptions,
5589 [-fno-rtti -fno-exceptions], [],
5590 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5592 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5595 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5596 # ---------------------------------
5597 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5598 [AC_REQUIRE([AC_CANONICAL_HOST])
5599 AC_REQUIRE([LT_AC_PROG_SED])
5600 AC_REQUIRE([AC_PROG_NM])
5601 AC_REQUIRE([AC_OBJEXT])
5602 # Check for command to grab the raw symbol name followed by C symbol from nm.
5603 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5604 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5606 # These are sane defaults that work on at least a few old systems.
5607 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5609 # Character class describing NM global symbol codes.
5610 symcode='[[BCDEGRST]]'
5612 # Regexp to match symbols that can be accessed directly from C.
5613 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5615 # Transform an extracted symbol line into a proper C declaration
5616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5618 # Transform an extracted symbol line into symbol name and symbol address
5619 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5621 # Define system-specific variables.
5626 cygwin* | mingw* | pw32*)
5627 symcode='[[ABCDGISTW]]'
5629 hpux*) # Its linker distinguishes data from code symbols
5630 if test "$host_cpu" = ia64; then
5631 symcode='[[ABCDEGRST]]'
5633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5634 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5636 linux* | k*bsd*-gnu)
5637 if test "$host_cpu" = ia64; then
5638 symcode='[[ABCDGIRSTW]]'
5639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5640 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5644 symcode='[[BCDEGRST]]'
5647 symcode='[[BCDEGQRST]]'
5658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5662 symcode='[[DFNSTU]]'
5666 # If we're using GNU nm, then use its standard symbol codes.
5667 case `$NM -V 2>&1` in
5668 *GNU* | *'with BFD'*)
5669 symcode='[[ABCDGIRSTW]]' ;;
5672 # Transform an extracted symbol line into a proper C declaration.
5673 # Some systems (esp. on ia64) link data and code symbols differently,
5674 # so use this general approach.
5675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5677 # Transform an extracted symbol line into symbol name and symbol address
5678 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
5679 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'"
5681 # Handle CRLF in mingw tool chain
5685 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5689 # If we're using GNU nm, then use its standard symbol codes.
5690 case `$NM -V 2>&1` in
5691 *GNU* | *'with BFD'*)
5692 symcode='[[ABCDGIRSTW]]' ;;
5695 # Try without a prefix undercore, then with it.
5696 for ac_symprfx in "" "_"; do
5698 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5699 symxfrm="\\1 $ac_symprfx\\2 \\2"
5701 # Write the raw and C identifiers.
5702 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5703 # Fake it for dumpbin and say T for any non-static function
5704 # and D for any global variable.
5705 # Also find C++ and __fastcall symbols from MSVC++,
5706 # which start with @ or ?.
5707 lt_cv_sys_global_symbol_pipe="$AWK ['"\
5708 " {last_section=section; section=\$ 3};"\
5709 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5710 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5711 " \$ 0!~/External *\|/{next};"\
5712 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5713 " {if(hide[section]) next};"\
5714 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5715 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5716 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5717 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5718 " ' prfx=^$ac_symprfx]"
5720 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5722 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5724 # Check to see that the pipe works correctly.
5728 cat > conftest.$ac_ext <<EOF
5733 void nm_test_func(){}
5737 int main(){nm_test_var='a';nm_test_func();return(0);}
5740 if AC_TRY_EVAL(ac_compile); then
5741 # Now try to grab the symbols.
5743 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5744 # Try sorting and uniquifying the output.
5745 if sort "$nlist" | uniq > "$nlist"T; then
5746 mv -f "$nlist"T "$nlist"
5751 # Make sure that we snagged all the symbols we need.
5752 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5753 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5754 cat <<EOF > conftest.$ac_ext
5755 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5756 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5757 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5758 relocations are performed -- see ld's documentation on pseudo-relocs. */
5759 # define LT@&t@_DLSYM_CONST
5760 #elif defined(__osf__)
5761 /* This system does not cope well with relocations in const data. */
5762 # define LT@&t@_DLSYM_CONST
5764 # define LT@&t@_DLSYM_CONST const
5772 # Now generate the symbol file.
5773 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5775 cat <<EOF >> conftest.$ac_ext
5776 #if defined (__STDC__) && __STDC__
5777 # define lt_ptr_t void *
5779 # define lt_ptr_t char *
5783 /* The mapping between symbol names and symbols. */
5784 LT@&t@_DLSYM_CONST struct {
5788 lt_preloaded_symbols[[]] =
5791 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5792 cat <<\EOF >> conftest.$ac_ext
5800 # Now try linking the two files.
5801 mv conftest.$ac_objext conftstm.$ac_objext
5802 lt_globsym_save_LIBS=$LIBS
5803 lt_globsym_save_CFLAGS=$CFLAGS
5804 LIBS="conftstm.$ac_objext"
5805 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5806 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5809 LIBS=$lt_globsym_save_LIBS
5810 CFLAGS=$lt_globsym_save_CFLAGS
5812 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5815 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5821 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5822 cat conftest.$ac_ext >&5
5824 rm -rf conftest* conftst*
5826 # Do not use the global_symbol_pipe unless it works.
5827 if test "$pipe_works" = yes; then
5830 lt_cv_sys_global_symbol_pipe=
5834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5835 lt_cv_sys_global_symbol_to_cdecl=
5837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5838 AC_MSG_RESULT(failed)
5842 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5844 # Response file support.
5845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5846 nm_file_list_spec='@'
5847 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
5848 nm_file_list_spec='@'
5851 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
5852 [Take the output of nm and produce a listing of raw symbols and C names])
5853 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
5854 [Transform the output of nm in a proper C declaration])
5855 _LT_DECL([global_symbol_to_c_name_address],
5856 [lt_cv_sys_global_symbol_to_c_name_address], [1],
5857 [Transform the output of nm in a C name address pair])
5858 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
5859 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
5860 [Transform the output of nm in a C name address pair when lib prefix is needed])
5861 _LT_DECL([], [nm_file_list_spec], [1],
5862 [Specify filename containing input files for $NM])
5863 ]) # _LT_CMD_GLOBAL_SYMBOLS
5865 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5866 # ---------------------------------------
5867 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5868 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5869 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5870 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5873 # C++ specific cases for pic, static, wl, etc.
5874 if test "$GXX" = yes; then
5875 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5876 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5880 # All AIX code is PIC.
5881 if test "$host_cpu" = ia64; then
5882 # AIX 5 now supports IA64 processor
5883 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5887 # FIXME: we need at least 68020 code to build shared libraries, but
5888 # adding the `-m68020' flag to GCC prevents building anything better,
5890 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5892 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5893 # PIC is the default for these OSes.
5895 mingw* | cygwin* | os2* | pw32*)
5896 # This hack is so that the source file can tell whether it is being
5897 # built for inclusion in a dll (and should export symbols for example).
5898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5899 # (--disable-auto-import) libraries
5900 m4_if([$1], [GCJ], [],
5901 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5903 darwin* | rhapsody*)
5904 # PIC is the default on this platform
5905 # Common symbols not allowed in MH_DYLIB files
5906 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5909 # DJGPP does not support shared libraries at all
5910 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5914 # Instead, we relocate shared libraries at runtime.
5917 if test -d /usr/nec; then
5918 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5928 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5933 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5939 # All AIX code is PIC.
5940 if test "$host_cpu" = ia64; then
5941 # AIX 5 now supports IA64 processor
5942 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5944 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5948 case $cc_basename in
5950 # Green Hills C++ Compiler
5951 # _LT_AC_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"
5955 mingw* | cygwin* | os2* | pw32* | cegcc*)
5956 # This hack is so that the source file can tell whether it is being
5957 # built for inclusion in a dll (and should export symbols for example).
5958 m4_if([$1], [GCJ], [],
5959 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5962 case $cc_basename in
5964 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5967 # Green Hills C++ Compiler
5968 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5974 freebsd* | dragonfly*)
5975 # FreeBSD uses GNU C++
5977 hpux9* | hpux10* | hpux11*)
5978 case $cc_basename in
5980 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5981 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5982 if test "$host_cpu" != ia64; then
5983 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5987 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5988 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5994 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6003 # This is c89, which is MS Visual C++ (no shared libs)
6004 # Anyone wants to do a port?
6006 irix5* | irix6* | nonstopux*)
6007 case $cc_basename in
6009 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6010 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6011 # CC pic flag -KPIC is the default.
6017 linux* | k*bsd*-gnu)
6018 case $cc_basename in
6021 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6022 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6026 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6027 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6028 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6031 # Portland Group C++ compiler.
6032 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6033 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6034 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6038 # Make sure the PIC flag is empty. It appears that all Alpha
6039 # Linux and Compaq Tru64 Unix objects are PIC.
6040 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6041 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6044 case `$CC -V 2>&1 | sed 5q` in
6047 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6048 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6049 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6060 case $cc_basename in
6062 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6070 osf3* | osf4* | osf5*)
6071 case $cc_basename in
6073 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6076 # Rational C++ 2.4.1
6077 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6080 # Digital/Compaq C++
6081 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6082 # Make sure the PIC flag is empty. It appears that all Alpha
6083 # Linux and Compaq Tru64 Unix objects are PIC.
6084 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6085 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6094 case $cc_basename in
6096 # Sun C++ 4.2, 5.x and Centerline C++
6097 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6098 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6099 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6102 # Green Hills C++ Compiler
6103 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6110 case $cc_basename in
6113 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6114 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6118 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6125 case $cc_basename in
6127 # NonStop-UX NCC 3.20
6128 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6134 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6135 case $cc_basename in
6137 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6138 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6139 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6146 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6152 if test "$GCC" = yes; then
6153 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6154 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6158 # All AIX code is PIC.
6159 if test "$host_cpu" = ia64; then
6160 # AIX 5 now supports IA64 processor
6161 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6166 # FIXME: we need at least 68020 code to build shared libraries, but
6167 # adding the `-m68020' flag to GCC prevents building anything better,
6169 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6173 # PIC is the default for these OSes.
6176 mingw* | cygwin* | pw32* | os2*)
6177 # This hack is so that the source file can tell whether it is being
6178 # built for inclusion in a dll (and should export symbols for example).
6179 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6180 # (--disable-auto-import) libraries
6181 m4_if([$1], [GCJ], [],
6182 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6185 darwin* | rhapsody*)
6186 # PIC is the default on this platform
6187 # Common symbols not allowed in MH_DYLIB files
6188 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6192 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6193 # Instead, we relocate shared libraries at runtime.
6197 # Just because we use GCC doesn't mean we suddenly get shared libraries
6198 # on systems that don't support them.
6199 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6204 if test -d /usr/nec; then
6205 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6217 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6222 case $cc_basename in
6223 nvcc*) # Cuda Compiler Driver 2.2
6224 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
6225 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6226 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
6231 # PORTME Check for flag to pass linker flags through the system compiler.
6234 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6235 if test "$host_cpu" = ia64; then
6236 # AIX 5 now supports IA64 processor
6237 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6239 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6243 # PIC is the default on this platform
6244 # Common symbols not allowed in MH_DYLIB files
6245 case $cc_basename in
6247 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6248 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6253 mingw* | cygwin* | pw32* | os2*)
6254 # This hack is so that the source file can tell whether it is being
6255 # built for inclusion in a dll (and should export symbols for example).
6256 m4_if([$1], [GCJ], [],
6257 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6260 hpux9* | hpux10* | hpux11*)
6261 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6269 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6272 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6273 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6276 irix5* | irix6* | nonstopux*)
6277 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6278 # PIC (with -KPIC) is the default.
6279 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6283 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6284 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6287 linux* | k*bsd*-gnu)
6288 case $cc_basename in
6290 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6291 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6292 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6294 # icc used to be incompatible with GCC.
6295 # ICC 10 doesn't accept -KPIC any more.
6297 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6298 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6299 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6301 # Lahey Fortran 8.1.
6303 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6304 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
6305 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6308 # NAG Fortran compiler
6309 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
6310 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6311 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6313 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
6314 # Portland Group compilers (*not* the Pentium gcc compiler,
6315 # which looks to be a dead project)
6316 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6317 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6318 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6321 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6322 # All Alpha code is PIC.
6323 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6326 case `$CC -V 2>&1 | sed 5q` in
6327 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
6328 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6329 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6330 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6331 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6333 *Sun\ F* | *Sun*Fortran*)
6334 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6335 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6336 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6340 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6341 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6342 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6344 *Intel*\ [[CF]]*Compiler*)
6345 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6346 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6347 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6350 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6351 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6352 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6359 osf3* | osf4* | osf5*)
6360 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6361 # All OSF/1 code is PIC.
6362 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6366 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6370 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6371 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6372 case $cc_basename in
6374 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6376 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6381 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6382 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6383 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6386 sysv4 | sysv4.2uw2* | sysv4.3*)
6387 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6388 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6389 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6393 if test -d /usr/nec ;then
6394 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6395 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6399 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6400 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6401 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6402 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6406 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6407 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6411 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6412 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6416 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6421 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6424 # Check to make sure the PIC flag actually works.
6426 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6427 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6428 _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6429 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6430 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6432 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6434 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6435 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6438 # For platforms which do not support PIC, -DPIC is meaningless:
6440 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6443 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6447 AC_CACHE_CHECK([for $compiler option to produce PIC],
6448 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
6449 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
6450 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
6453 # Check to make sure the PIC flag actually works.
6455 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6456 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
6457 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
6458 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
6459 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6461 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6463 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6464 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6466 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
6467 [Additional compiler flags for building library objects])
6469 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
6470 [How to pass a linker flag through the compiler])
6472 # Check to make sure the static flag actually works.
6474 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6475 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6476 _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6477 $lt_tmp_static_flag,
6479 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6483 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6484 # ------------------------------------
6485 # See if the linker supports building shared libraries.
6486 m4_defun([_LT_LINKER_SHLIBS],
6487 [AC_REQUIRE([LT_PATH_LD])dnl
6488 AC_REQUIRE([LT_PATH_NM])dnl
6489 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6490 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6491 m4_require([_LT_DECL_EGREP])dnl
6492 m4_require([_LT_DECL_SED])dnl
6493 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
6494 m4_require([_LT_TAG_COMPILER])dnl
6495 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6497 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6498 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6501 # If we're using GNU nm, then we don't want the "-C" option.
6502 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6503 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6504 _LT_AC_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'
6506 _LT_AC_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'
6510 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6512 cygwin* | mingw* | cegcc*)
6513 case $cc_basename in
6515 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6518 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6519 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
6524 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6529 _LT_TAGVAR(allow_undefined_flag, $1)=
6530 _LT_TAGVAR(always_export_symbols, $1)=no
6531 _LT_TAGVAR(archive_cmds, $1)=
6532 _LT_TAGVAR(archive_expsym_cmds, $1)=
6533 _LT_TAGVAR(compiler_needs_object, $1)=no
6534 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6535 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6536 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6537 _LT_TAGVAR(hardcode_automatic, $1)=no
6538 _LT_TAGVAR(hardcode_direct, $1)=no
6539 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6540 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6541 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6542 _LT_TAGVAR(hardcode_minus_L, $1)=no
6543 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6544 _LT_TAGVAR(inherit_rpath, $1)=no
6545 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6546 _LT_TAGVAR(module_cmds, $1)=
6547 _LT_TAGVAR(module_expsym_cmds, $1)=
6548 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
6549 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6550 _LT_TAGVAR(thread_safe_flag_spec, $1)=
6551 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6552 # include_expsyms should be a list of space-separated symbols to be *always*
6553 # included in the symbol list
6554 _LT_AC_TAGVAR(include_expsyms, $1)=
6555 # exclude_expsyms can be an extended regexp of symbols to exclude
6556 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6557 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6558 # as well as any symbol that contains `d'.
6559 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6560 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6561 # platforms (ab)use it in PIC code, but their linkers get confused if
6562 # the symbol is explicitly referenced. Since portable code cannot
6563 # rely on this symbol name, it's probably fine to never include it in
6564 # preloaded symbol tables.
6565 # Exclude shared library initialization/finalization symbols.
6566 dnl Note also adjust exclude_expsyms for C++ above.
6567 extract_expsyms_cmds=
6568 # Just being paranoid about ensuring that cc_basename is set.
6569 _LT_CC_BASENAME([$compiler])
6571 cygwin* | mingw* | pw32*)
6572 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6573 # When not using gcc, we currently assume that we are using
6574 # Microsoft Visual C++.
6575 if test "$GCC" != yes; then
6580 # we just hope/assume this is gcc and not c89 (= MSVC++)
6588 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6589 if test "$with_gnu_ld" = yes; then
6590 # If archive_cmds runs LD, not CC, wlarc should be empty
6593 # Set some defaults for GNU ld with shared library support. These
6594 # are reset later if shared libraries are not supported. Putting them
6595 # here allows them to be overridden if necessary.
6596 runpath_var=LD_RUN_PATH
6597 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6598 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6599 # ancient GNU ld didn't support --whole-archive et. al.
6600 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6601 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6603 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6605 supports_anon_versioning=no
6606 case `$LD -v 2>/dev/null` in
6607 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6610 *\ 2.11.*) ;; # other 2.11 versions
6611 *) supports_anon_versioning=yes ;;
6614 # See if GNU ld supports shared libraries.
6617 # On AIX/PPC, the GNU linker is very broken
6618 if test "$host_cpu" != ia64; then
6619 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6622 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6623 *** to be unable to reliably create shared libraries on AIX.
6624 *** Therefore, libtool is disabling shared libraries support. If you
6625 *** really care for shared libraries, you may want to modify your PATH
6626 *** so that a non-GNU linker is found, and then restart.
6633 _LT_AC_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)'
6634 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6635 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6637 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6638 # that the semantics of dynamic libraries on AmigaOS, at least up
6639 # to version 4, is to share data among multiple programs linked
6640 # with the same dynamic library. Since this doesn't match the
6641 # behavior of shared libraries on other platforms, we can't use
6643 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6648 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6650 # support --undefined. This deserves some investigation. FIXME
6651 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6653 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6657 cygwin* | mingw* | pw32*)
6658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6659 # as there is no search path for DLLs.
6660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6661 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6662 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6663 _LT_TAGVAR(always_export_symbols, $1)=no
6664 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6665 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6666 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
6668 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6669 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6670 # If the export-symbols file already is a .def file (1st line
6671 # is EXPORTS), use it as is; otherwise, prepend...
6672 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6673 cp $export_symbols $output_objdir/$soname.def;
6675 echo EXPORTS > $output_objdir/$soname.def;
6676 cat $export_symbols >> $output_objdir/$soname.def;
6678 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6680 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6685 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6686 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6687 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6688 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6689 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6690 # Instead, shared libraries are loaded at an image base (0x10000000 by
6691 # default) and relocated if they conflict, which is a slow very memory
6692 # consuming and fragmenting process. To avoid this, we pick a random,
6693 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6694 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6695 _LT_AC_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'
6696 _LT_AC_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'
6699 gnu* | linux* | k*bsd*-gnu)
6700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6701 tmp_addflag=' $pic_flag'
6702 case $cc_basename,$host_cpu in
6703 pgcc*) # Portland Group C compiler
6704 _LT_AC_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'
6705 tmp_addflag=' $pic_flag'
6707 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6708 _LT_AC_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'
6709 tmp_addflag=' $pic_flag -Mnomain' ;;
6710 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6711 tmp_addflag=' -i_dynamic' ;;
6712 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6713 tmp_addflag=' -i_dynamic -nofor_main' ;;
6714 ifc* | ifort*) # Intel Fortran compiler
6715 tmp_addflag=' -nofor_main' ;;
6717 case `$CC -V 2>&1 | sed 5q` in
6718 *Sun\ C*) # Sun C 5.9
6719 _LT_AC_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'
6720 tmp_sharedflag='-G' ;;
6721 *Sun\ F*) # Sun Fortran 8.3
6722 tmp_sharedflag='-G' ;;
6724 tmp_sharedflag='-shared' ;;
6726 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6728 if test "x$supports_anon_versioning" = xyes; then
6729 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6731 echo "local: *; };" >> $output_objdir/$libname.ver~
6732 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6735 case $cc_basename in
6736 xlf* | bgf* | bgxlf* | mpixlf*)
6737 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6738 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6739 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6740 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6741 if test "x$supports_anon_versioning" = xyes; then
6742 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6744 echo "local: *; };" >> $output_objdir/$libname.ver~
6745 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6750 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6756 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6759 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6760 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6765 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6766 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6769 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6770 *** create shared libraries on Solaris systems. Therefore, libtool
6771 *** is disabling shared libraries support. We urge you to upgrade GNU
6772 *** binutils to release 2.9.1 or newer. Another option is to modify
6773 *** your PATH or compiler configuration so that the native linker is
6774 *** used, and then restart.
6777 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6778 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6779 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6781 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6786 case `$LD -v 2>&1` in
6787 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6788 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6791 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6792 *** reliably create shared libraries on SCO systems. Therefore, libtool
6793 *** is disabling shared libraries support. We urge you to upgrade GNU
6794 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6795 *** your PATH or compiler configuration so that the native linker is
6796 *** used, and then restart.
6801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6802 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6803 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6804 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6806 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6813 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6815 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6816 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6820 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6821 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6822 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6824 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6829 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6831 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6832 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6833 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6836 # PORTME fill in a description of your system's linker (not GNU ld)
6839 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6840 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6841 _LT_AC_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'
6842 # Note: this linker hardcodes the directories in LIBPATH if there
6843 # are no directories specified by -L.
6844 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6845 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6846 # Neither direct hardcoding nor static linking is supported with a
6848 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6853 if test "$host_cpu" = ia64; then
6854 # On IA64, the linker does run time linking by default, so we don't
6855 # have to do anything special.
6856 aix_use_runtimelinking=no
6857 exp_sym_flag='-Bexport'
6860 # If we're using GNU nm, then we don't want the "-C" option.
6861 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6862 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6863 _LT_AC_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'
6865 _LT_AC_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'
6867 aix_use_runtimelinking=no
6869 # Test if we are trying to use run time linking or normal
6870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6871 # need to do runtime linking.
6872 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6873 for ld_flag in $LDFLAGS; do
6874 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6875 aix_use_runtimelinking=yes
6882 exp_sym_flag='-bexport'
6883 no_entry_flag='-bnoentry'
6886 # When large executables or shared objects are built, AIX ld can
6887 # have problems creating the table of contents. If linking a library
6888 # or program results in "error TOC overflow" add -mminimal-toc to
6889 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6890 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6892 _LT_AC_TAGVAR(archive_cmds, $1)=''
6893 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6894 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6895 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6897 if test "$GCC" = yes; then
6898 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6899 # We only want to do this on AIX 4.2 and lower, the check
6900 # below for broken collect2 doesn't work under 4.3+
6901 collect2name=`${CC} -print-prog-name=collect2`
6902 if test -f "$collect2name" && \
6903 strings "$collect2name" | grep resolve_lib_name >/dev/null
6905 # We have reworked collect2
6908 # We have old collect2
6909 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6910 # It fails to find uninstalled libraries when the uninstalled
6911 # path is not listed in the libpath. Setting hardcode_minus_L
6912 # to unsupported forces relinking
6913 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6914 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6915 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6919 shared_flag='-shared'
6920 if test "$aix_use_runtimelinking" = yes; then
6921 shared_flag="$shared_flag "'${wl}-G'
6925 if test "$host_cpu" = ia64; then
6926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6927 # chokes on -Wl,-G. The following line is correct:
6930 if test "$aix_use_runtimelinking" = yes; then
6931 shared_flag='${wl}-G'
6933 shared_flag='${wl}-bM:SRE'
6938 # It seems that -bexpall does not export symbols beginning with
6939 # underscore (_), so it is better to generate a list of symbols to export.
6940 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6941 if test "$aix_use_runtimelinking" = yes; then
6942 # Warning - without using the other runtime loading flags (-brtl),
6943 # -berok will link without error, but may produce a broken library.
6944 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6945 # Determine the default libpath from the value encoded in an
6947 _LT_SYS_MODULE_PATH_AIX([$1])
6948 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6949 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6951 if test "$host_cpu" = ia64; then
6952 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6953 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6954 _LT_AC_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"
6956 # Determine the default libpath from the value encoded in an
6958 _LT_SYS_MODULE_PATH_AIX([$1])
6959 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6960 # Warning - without using the other run time loading flags,
6961 # -berok will link without error, but may produce a broken library.
6962 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6963 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6964 # Exported symbols can be pulled into shared objects from archives
6965 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6966 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6967 # This is similar to how AIX traditionally builds its shared libraries.
6968 _LT_AC_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'
6974 _LT_AC_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)'
6975 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6976 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6977 # see comment about different semantics on the GNU ld section
6978 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6982 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6985 cygwin* | mingw* | pw32*)
6986 # When not using gcc, we currently assume that we are using
6987 # Microsoft Visual C++.
6988 # hardcode_libdir_flag_spec is actually meaningless, as there is
6989 # no search path for DLLs.
6990 case $cc_basename in
6993 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6994 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6995 _LT_TAGVAR(always_export_symbols, $1)=yes
6996 _LT_TAGVAR(file_list_spec, $1)='@'
6997 # Tell ltmain to make .lib files, not .a files.
6999 # Tell ltmain to make .dll files, not .so files.
7001 # FIXME: Setting linknames here is a bad hack.
7002 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
7003 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7004 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
7006 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
7008 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7010 # The linker will not automatically build a static lib if we build a DLL.
7011 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7012 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7013 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
7014 _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'
7016 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7017 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
7018 lt_tool_outputfile="@TOOL_OUTPUT@"~
7019 case $lt_outputfile in
7022 lt_outputfile="$lt_outputfile.exe"
7023 lt_tool_outputfile="$lt_tool_outputfile.exe"
7026 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
7027 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7028 $RM "$lt_outputfile.manifest";
7032 # Assume MSVC wrapper
7033 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7034 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7035 # Tell ltmain to make .lib files, not .a files.
7037 # Tell ltmain to make .dll files, not .so files.
7039 # FIXME: Setting linknames here is a bad hack.
7040 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
7041 # The linker will automatically build a .lib file if we build a DLL.
7042 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7043 # FIXME: Should let the user specify the lib program.
7044 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
7045 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7050 darwin* | rhapsody*)
7052 rhapsody* | darwin1.[[012]])
7053 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7056 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7057 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7059 case ${MACOSX_DEPLOYMENT_TARGET} in
7061 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7064 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7070 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7071 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7072 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7073 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7074 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7075 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7076 if test "$GCC" = yes ; then
7077 output_verbose_link_cmd='echo'
7078 _LT_AC_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}"
7079 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7080 _LT_AC_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}"
7081 _LT_AC_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}"
7083 case $cc_basename in
7085 output_verbose_link_cmd='echo'
7086 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7087 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7088 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7089 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7090 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7093 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7100 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7101 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7102 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7105 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7106 # support. Future versions do this automatically, but an explicit c++rt0.o
7107 # does not break anything, and helps significantly (at the cost of a little
7110 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7111 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7112 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7113 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7116 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7118 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7119 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7120 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7121 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7124 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7125 freebsd* | dragonfly*)
7126 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7128 _LT_TAGVAR(hardcode_direct, $1)=yes
7129 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7133 if test "$GCC" = yes; then
7134 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7136 _LT_AC_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'
7138 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7139 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7140 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7142 # hardcode_minus_L: Not really in the search PATH,
7143 # but as the default location of the library.
7144 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7145 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7149 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
7150 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7152 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7154 if test "$with_gnu_ld" = no; then
7155 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7156 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7157 _LT_TAGVAR(hardcode_direct, $1)=yes
7158 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7159 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7160 # hardcode_minus_L: Not really in the search PATH,
7161 # but as the default location of the library.
7162 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7167 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7170 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7173 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7176 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7182 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7185 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7188 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7192 if test "$with_gnu_ld" = no; then
7193 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7194 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7198 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7199 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7200 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7203 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7204 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7206 # hardcode_minus_L: Not really in the search PATH,
7207 # but as the default location of the library.
7208 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7214 irix5* | irix6* | nonstopux*)
7215 if test "$GCC" = yes; then
7216 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7217 # Try to use the -exported_symbol ld option, if it does not
7218 # work, assume that -exports_file does not work either and
7219 # implicitly export all symbols.
7220 # This should be the same for all languages, so no per-tag cache variable.
7221 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
7222 [lt_cv_irix_exported_symbol],
7223 [save_LDFLAGS="$LDFLAGS"
7224 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7227 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
7228 [C++], [[int foo (void) { return 0; }]],
7235 [lt_cv_irix_exported_symbol=yes],
7236 [lt_cv_irix_exported_symbol=no])
7237 LDFLAGS="$save_LDFLAGS"])
7238 if test "$lt_cv_irix_exported_symbol" = yes; then
7239 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7242 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7243 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7245 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7246 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7247 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7251 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7252 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7254 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7257 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7258 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7262 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7263 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7264 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7265 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7266 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7270 if test -f /usr/libexec/ld.so; then
7271 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7272 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7274 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7275 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7276 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7277 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7280 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7281 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7282 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7285 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7286 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7291 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7296 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7297 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7298 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7299 _LT_AC_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'
7300 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7304 if test "$GCC" = yes; then
7305 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7306 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7308 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7309 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7311 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7312 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7315 osf4* | osf5*) # as osf3* with the addition of -msym flag
7316 if test "$GCC" = yes; then
7317 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7318 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7319 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7321 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7322 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7323 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7324 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7326 # Both c and cxx compiler support -rpath directly
7327 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7329 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7333 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7334 if test "$GCC" = yes; then
7336 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7337 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7338 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7341 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7345 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7346 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7348 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7350 # The compiler driver will combine and reorder linker options,
7351 # but understands `-z linker_flag'. GCC discards it without `$wl',
7352 # but is careful enough not to reorder.
7353 # Supported since Solaris 2.6 (maybe 2.5.1?)
7354 if test "$GCC" = yes; then
7355 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7357 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7361 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7365 if test "x$host_vendor" = xsequent; then
7366 # Use $CC to link under sequent, because it throws in some extra .o
7367 # files that make .init and .fini sections work.
7368 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7370 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7372 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7373 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7374 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7375 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7379 case $host_vendor in
7381 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7385 ## LD is ld it makes a PLAMLIB
7386 ## CC just makes a GrossModule.
7387 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7388 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7389 _LT_AC_TAGVAR(hardcode_direct, $1)=no
7392 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7396 runpath_var='LD_RUN_PATH'
7397 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7401 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7403 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7407 if test -d /usr/nec; then
7408 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7409 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7410 runpath_var=LD_RUN_PATH
7411 hardcode_runpath_var=yes
7412 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7417 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7418 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7419 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7420 runpath_var='LD_RUN_PATH'
7422 if test "$GCC" = yes; then
7423 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7424 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7426 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7427 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7431 sysv5* | sco3.2v5* | sco5v6*)
7432 # Note: We can NOT use -z defs as we might desire, because we do not
7433 # link with -lc, and that would cause any symbols used from libc to
7434 # always be unresolved, which means just about no library would
7435 # ever link correctly. If we're not using GNU ld we use -z text
7436 # though, which does catch some bad symbols but isn't as heavy-handed
7438 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7439 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7440 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7441 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7442 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7443 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7444 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7445 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7446 runpath_var='LD_RUN_PATH'
7448 if test "$GCC" = yes; then
7449 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7450 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7452 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7453 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7458 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7460 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7464 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7469 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7470 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7473 # Do we need to explicitly link libc?
7475 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7477 # Assume -lc should be added
7478 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7480 if test "$enable_shared" = yes && test "$GCC" = yes; then
7481 case $_LT_AC_TAGVAR(archive_cmds, $1) in
7483 # FIXME: we may have to deal with multi-command sequences.
7486 # Test whether the compiler implicitly links with -lc since on some
7487 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7488 # to ld, don't add -lc before -lgcc.
7489 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7493 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7496 libobjs=conftest.$ac_objext
7498 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7499 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7505 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7506 _LT_TAGVAR(allow_undefined_flag, $1)=
7507 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7509 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7511 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7513 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7515 cat conftest.err 1>&5
7519 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
7526 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
7527 [Whether or not to add -lc for building shared libraries])
7528 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
7529 [enable_shared_with_static_runtimes], [0],
7530 [Whether or not to disallow shared libs when runtime libs are static])
7531 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
7532 [Compiler flag to allow reflexive dlopens])
7533 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
7534 [Compiler flag to generate shared objects directly from archives])
7535 _LT_TAGDECL([], [compiler_needs_object], [1],
7536 [Whether the compiler copes with passing no objects directly])
7537 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
7538 [Create an old-style archive from a shared archive])
7539 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
7540 [Create a temporary old-style archive to link instead of a shared archive])
7541 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
7542 _LT_TAGDECL([], [archive_expsym_cmds], [2])
7543 _LT_TAGDECL([], [module_cmds], [2],
7544 [Commands used to build a loadable module if different from building
7546 _LT_TAGDECL([], [module_expsym_cmds], [2])
7547 _LT_TAGDECL([], [with_gnu_ld], [1],
7548 [Whether we are building with GNU ld or not])
7549 _LT_TAGDECL([], [allow_undefined_flag], [1],
7550 [Flag that allows shared libraries with undefined symbols to be built])
7551 _LT_TAGDECL([], [no_undefined_flag], [1],
7552 [Flag that enforces no undefined symbols])
7553 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
7554 [Flag to hardcode $libdir into a binary during linking.
7555 This must work even if $libdir does not exist])
7556 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
7557 [Whether we need a single "-rpath" flag with a separated argument])
7558 _LT_TAGDECL([], [hardcode_direct], [0],
7559 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7560 DIR into the resulting binary])
7561 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
7562 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7563 DIR into the resulting binary and the resulting library dependency is
7564 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
7565 library is relocated])
7566 _LT_TAGDECL([], [hardcode_minus_L], [0],
7567 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
7568 into the resulting binary])
7569 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
7570 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
7571 into the resulting binary])
7572 _LT_TAGDECL([], [hardcode_automatic], [0],
7573 [Set to "yes" if building a shared library automatically hardcodes DIR
7574 into the library and all subsequent libraries and executables linked
7576 _LT_TAGDECL([], [inherit_rpath], [0],
7577 [Set to yes if linker adds runtime paths of dependent libraries
7578 to runtime path list])
7579 _LT_TAGDECL([], [link_all_deplibs], [0],
7580 [Whether libtool must link a program against all its dependency libraries])
7581 _LT_TAGDECL([], [always_export_symbols], [0],
7582 [Set to "yes" if exported symbols are required])
7583 _LT_TAGDECL([], [export_symbols_cmds], [2],
7584 [The commands to list exported symbols])
7585 _LT_TAGDECL([], [exclude_expsyms], [1],
7586 [Symbols that should not be listed in the preloaded symbols])
7587 _LT_TAGDECL([], [include_expsyms], [1],
7588 [Symbols that must always be exported])
7589 _LT_TAGDECL([], [prelink_cmds], [2],
7590 [Commands necessary for linking programs (against libraries) with templates])
7591 _LT_TAGDECL([], [postlink_cmds], [2],
7592 [Commands necessary for finishing linking programs])
7593 _LT_TAGDECL([], [file_list_spec], [1],
7594 [Specify filename containing input files])
7595 dnl FIXME: Not yet implemented
7596 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
7597 dnl [Compiler flag to generate thread safe objects])
7598 ])# _LT_LINKER_SHLIBS
7601 # _LT_LANG_C_CONFIG([TAG])
7602 # ------------------------
7603 # Ensure that the configuration variables for a C compiler are suitably
7604 # defined. These variables are subsequently used by _LT_CONFIG to write
7605 # the compiler configuration to `libtool'.
7606 m4_defun([_LT_LANG_C_CONFIG],
7607 [m4_require([_LT_DECL_EGREP])dnl
7611 # Source file extension for C test sources.
7614 # Object file extension for compiled C test sources.
7616 _LT_TAGVAR(objext, $1)=$objext
7618 # Code to be used in simple compile tests
7619 lt_simple_compile_test_code="int some_variable = 0;"
7621 # Code to be used in simple link tests
7622 lt_simple_link_test_code='int main(){return(0);}'
7625 # Save the default compiler, since it gets overwritten when the other
7626 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7627 compiler_DEFAULT=$CC
7629 # save warnings/boilerplate of simple test code
7630 _LT_COMPILER_BOILERPLATE
7631 _LT_LINKER_BOILERPLATE
7633 if test -n "$compiler"; then
7634 _LT_COMPILER_NO_RTTI($1)
7635 _LT_COMPILER_PIC($1)
7636 _LT_COMPILER_C_O($1)
7637 _LT_COMPILER_FILE_LOCKS($1)
7638 _LT_LINKER_SHLIBS($1)
7639 _LT_SYS_DYNAMIC_LINKER($1)
7640 _LT_LINKER_HARDCODE_LIBPATH($1)
7644 # Report which library types will actually be built
7645 AC_MSG_CHECKING([if libtool supports shared libraries])
7646 AC_MSG_RESULT([$can_build_shared])
7648 AC_MSG_CHECKING([whether to build shared libraries])
7649 test "$can_build_shared" = "no" && enable_shared=no
7651 # On AIX, shared libraries and static libraries use the same namespace, and
7652 # are all built from PIC.
7655 test "$enable_shared" = yes && enable_static=no
7656 if test -n "$RANLIB"; then
7657 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7658 postinstall_cmds='$RANLIB $lib'
7663 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7664 test "$enable_shared" = yes && enable_static=no
7668 AC_MSG_RESULT([$enable_shared])
7670 AC_MSG_CHECKING([whether to build static libraries])
7671 # Make sure either enable_shared or enable_static is yes.
7672 test "$enable_shared" = yes || enable_static=yes
7673 AC_MSG_RESULT([$enable_static])
7679 ])# _LT_LANG_C_CONFIG
7682 # _LT_LANG_CXX_CONFIG([TAG])
7683 # --------------------------
7684 # Ensure that the configuration variables for a C++ compiler are suitably
7685 # defined. These variables are subsequently used by _LT_CONFIG to write
7686 # the compiler configuration to `libtool'.
7687 m4_defun([_LT_LANG_CXX_CONFIG],
7688 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7689 m4_require([_LT_DECL_EGREP])dnl
7690 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
7691 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7692 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7693 (test "X$CXX" != "Xg++"))) ; then
7696 _lt_caught_CXX_error=yes
7700 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7701 _LT_TAGVAR(allow_undefined_flag, $1)=
7702 _LT_TAGVAR(always_export_symbols, $1)=no
7703 _LT_TAGVAR(archive_expsym_cmds, $1)=
7704 _LT_TAGVAR(compiler_needs_object, $1)=no
7705 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7706 _LT_TAGVAR(hardcode_direct, $1)=no
7707 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7708 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7709 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7710 _LT_TAGVAR(hardcode_minus_L, $1)=no
7711 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7712 _LT_TAGVAR(hardcode_automatic, $1)=no
7713 _LT_TAGVAR(inherit_rpath, $1)=no
7714 _LT_TAGVAR(module_cmds, $1)=
7715 _LT_TAGVAR(module_expsym_cmds, $1)=
7716 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7717 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7718 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7719 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7720 _LT_TAGVAR(no_undefined_flag, $1)=
7721 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7722 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7724 # Source file extension for C++ test sources.
7727 # Object file extension for compiled C++ test sources.
7729 _LT_TAGVAR(objext, $1)=$objext
7731 # No sense in running all these tests if we already determined that
7732 # the CXX compiler isn't working. Some variables (like enable_shared)
7733 # are currently assumed to apply to all compilers on this platform,
7734 # and will be corrupted by setting them based on a non-working compiler.
7735 if test "$_lt_caught_CXX_error" != yes; then
7736 # Code to be used in simple compile tests
7737 lt_simple_compile_test_code="int some_variable = 0;"
7739 # Code to be used in simple link tests
7740 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
7742 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7745 # save warnings/boilerplate of simple test code
7746 _LT_COMPILER_BOILERPLATE
7747 _LT_LINKER_BOILERPLATE
7749 # Allow CC to be a program name with arguments.
7751 lt_save_CFLAGS=$CFLAGS
7755 lt_save_with_gnu_ld=$with_gnu_ld
7756 lt_save_path_LD=$lt_cv_path_LD
7757 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
7758 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
7760 $as_unset lt_cv_prog_gnu_ld
7762 if test -n "${lt_cv_path_LDCXX+set}"; then
7763 lt_cv_path_LD=$lt_cv_path_LDCXX
7765 $as_unset lt_cv_path_LD
7767 test -z "${LDCXX+set}" || LD=$LDCXX
7771 _LT_TAGVAR(compiler, $1)=$CC
7772 _LT_CC_BASENAME([$compiler])
7774 if test -n "$compiler"; then
7775 # We don't want -fno-exception when compiling C++ code, so set the
7776 # no_builtin_flag separately
7777 if test "$GXX" = yes; then
7778 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7780 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7783 if test "$GXX" = yes; then
7784 # Set up default GNU C++ configuration
7788 # Check if GNU C++ uses GNU ld as the underlying linker, since the
7789 # archiving commands below assume that GNU ld is being used.
7790 if test "$with_gnu_ld" = yes; then
7791 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7792 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7794 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7795 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7797 # If archive_cmds runs LD, not CC, wlarc should be empty
7798 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7799 # investigate it a little bit more. (MM)
7802 # ancient GNU ld didn't support --whole-archive et. al.
7803 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
7804 $GREP 'no-whole-archive' > /dev/null; then
7805 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7807 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7809 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7811 cat conftest.err 1>&5
7814 # Commands to make compiler produce verbose output that lists
7815 # what "hidden" libraries, object files and flags are used when
7816 # linking a shared library.
7817 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7825 # PORTME: fill in a description of your system's C++ link characteristics
7826 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7827 _LT_TAGVAR(ld_shlibs, $1)=yes
7830 # FIXME: insert proper C++ library support
7831 _LT_TAGVAR(ld_shlibs, $1)=no
7834 if test "$host_cpu" = ia64; then
7835 # On IA64, the linker does run time linking by default, so we don't
7836 # have to do anything special.
7837 aix_use_runtimelinking=no
7838 exp_sym_flag='-Bexport'
7841 aix_use_runtimelinking=no
7843 # Test if we are trying to use run time linking or normal
7844 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7845 # need to do runtime linking.
7846 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7847 for ld_flag in $LDFLAGS; do
7850 aix_use_runtimelinking=yes
7858 exp_sym_flag='-bexport'
7859 no_entry_flag='-bnoentry'
7862 # When large executables or shared objects are built, AIX ld can
7863 # have problems creating the table of contents. If linking a library
7864 # or program results in "error TOC overflow" add -mminimal-toc to
7865 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7866 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7868 _LT_TAGVAR(archive_cmds, $1)=''
7869 _LT_TAGVAR(hardcode_direct, $1)=yes
7870 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7871 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7872 _LT_TAGVAR(link_all_deplibs, $1)=yes
7873 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
7875 if test "$GXX" = yes; then
7876 case $host_os in aix4.[[012]]|aix4.[[012]].*)
7877 # We only want to do this on AIX 4.2 and lower, the check
7878 # below for broken collect2 doesn't work under 4.3+
7879 collect2name=`${CC} -print-prog-name=collect2`
7880 if test -f "$collect2name" &&
7881 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7883 # We have reworked collect2
7886 # We have old collect2
7887 _LT_TAGVAR(hardcode_direct, $1)=unsupported
7888 # It fails to find uninstalled libraries when the uninstalled
7889 # path is not listed in the libpath. Setting hardcode_minus_L
7890 # to unsupported forces relinking
7891 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7892 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7893 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7896 shared_flag='-shared'
7897 if test "$aix_use_runtimelinking" = yes; then
7898 shared_flag="$shared_flag "'${wl}-G'
7902 if test "$host_cpu" = ia64; then
7903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7904 # chokes on -Wl,-G. The following line is correct:
7907 if test "$aix_use_runtimelinking" = yes; then
7908 shared_flag='${wl}-G'
7910 shared_flag='${wl}-bM:SRE'
7915 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7916 # It seems that -bexpall does not export symbols beginning with
7917 # underscore (_), so it is better to generate a list of symbols to
7919 _LT_TAGVAR(always_export_symbols, $1)=yes
7920 if test "$aix_use_runtimelinking" = yes; then
7921 # Warning - without using the other runtime loading flags (-brtl),
7922 # -berok will link without error, but may produce a broken library.
7923 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7924 # Determine the default libpath from the value encoded in an empty
7926 _LT_SYS_MODULE_PATH_AIX([$1])
7927 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7929 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7931 if test "$host_cpu" = ia64; then
7932 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7933 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7934 _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"
7936 # Determine the default libpath from the value encoded in an
7938 _LT_SYS_MODULE_PATH_AIX([$1])
7939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7940 # Warning - without using the other run time loading flags,
7941 # -berok will link without error, but may produce a broken library.
7942 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7943 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7944 if test "$with_gnu_ld" = yes; then
7945 # We only use this code for GNU lds that support --whole-archive.
7946 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7948 # Exported symbols can be pulled into shared objects from archives
7949 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7951 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7952 # This is similar to how AIX traditionally builds its shared
7954 _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'
7960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7961 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7962 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7963 # support --undefined. This deserves some investigation. FIXME
7964 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966 _LT_TAGVAR(ld_shlibs, $1)=no
7971 case $cc_basename in
7973 # FIXME: insert proper C++ library support
7974 _LT_TAGVAR(ld_shlibs, $1)=no
7979 cygwin* | mingw* | pw32* | cegcc*)
7980 case $GXX,$cc_basename in
7983 # hardcode_libdir_flag_spec is actually meaningless, as there is
7984 # no search path for DLLs.
7985 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7986 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7987 _LT_TAGVAR(always_export_symbols, $1)=yes
7988 _LT_TAGVAR(file_list_spec, $1)='@'
7989 # Tell ltmain to make .lib files, not .a files.
7991 # Tell ltmain to make .dll files, not .so files.
7993 # FIXME: Setting linknames here is a bad hack.
7994 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
7995 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7996 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
7998 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8000 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8002 # The linker will not automatically build a static lib if we build a DLL.
8003 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8004 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8006 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
8007 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
8008 lt_tool_outputfile="@TOOL_OUTPUT@"~
8009 case $lt_outputfile in
8012 lt_outputfile="$lt_outputfile.exe"
8013 lt_tool_outputfile="$lt_tool_outputfile.exe"
8016 func_to_tool_file "$lt_outputfile"~
8017 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8018 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8019 $RM "$lt_outputfile.manifest";
8024 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8025 # as there is no search path for DLLs.
8026 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8027 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
8028 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8029 _LT_TAGVAR(always_export_symbols, $1)=no
8030 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8032 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8033 _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'
8034 # If the export-symbols file already is a .def file (1st line
8035 # is EXPORTS), use it as is; otherwise, prepend...
8036 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8037 cp $export_symbols $output_objdir/$soname.def;
8039 echo EXPORTS > $output_objdir/$soname.def;
8040 cat $export_symbols >> $output_objdir/$soname.def;
8042 $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'
8044 _LT_TAGVAR(ld_shlibs, $1)=no
8049 darwin* | rhapsody*)
8050 _LT_DARWIN_LINKER_FEATURES($1)
8054 case $cc_basename in
8056 # FIXME: insert proper C++ library support
8057 _LT_TAGVAR(ld_shlibs, $1)=no
8060 # Green Hills C++ Compiler
8061 # FIXME: insert proper C++ library support
8062 _LT_TAGVAR(ld_shlibs, $1)=no
8065 # FIXME: insert proper C++ library support
8066 _LT_TAGVAR(ld_shlibs, $1)=no
8072 # C++ shared libraries reported to be fairly broken before
8074 _LT_TAGVAR(ld_shlibs, $1)=no
8078 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8081 freebsd* | dragonfly*)
8082 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8084 _LT_TAGVAR(ld_shlibs, $1)=yes
8091 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092 _LT_TAGVAR(link_all_deplibs, $1)=yes
8096 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8097 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8098 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8099 _LT_TAGVAR(hardcode_direct, $1)=yes
8100 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8101 # but as the default
8102 # location of the library.
8104 case $cc_basename in
8106 # FIXME: insert proper C++ library support
8107 _LT_TAGVAR(ld_shlibs, $1)=no
8110 _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'
8111 # Commands to make compiler produce verbose output that lists
8112 # what "hidden" libraries, object files and flags are used when
8113 # linking a shared library.
8115 # There doesn't appear to be a way to prevent this compiler from
8116 # explicitly linking system object files so we need to strip them
8117 # from the output so that they don't get included in the library
8119 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8122 if test "$GXX" = yes; then
8123 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8125 # FIXME: insert proper C++ library support
8126 _LT_TAGVAR(ld_shlibs, $1)=no
8133 if test $with_gnu_ld = no; then
8134 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8135 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8141 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8147 _LT_TAGVAR(hardcode_direct, $1)=no
8148 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8151 _LT_TAGVAR(hardcode_direct, $1)=yes
8152 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8153 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8154 # but as the default
8155 # location of the library.
8159 case $cc_basename in
8161 # FIXME: insert proper C++ library support
8162 _LT_TAGVAR(ld_shlibs, $1)=no
8167 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8170 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8173 _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'
8176 # Commands to make compiler produce verbose output that lists
8177 # what "hidden" libraries, object files and flags are used when
8178 # linking a shared library.
8180 # There doesn't appear to be a way to prevent this compiler from
8181 # explicitly linking system object files so we need to strip them
8182 # from the output so that they don't get included in the library
8184 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8187 if test "$GXX" = yes; then
8188 if test $with_gnu_ld = no; then
8191 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8194 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8197 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8202 # FIXME: insert proper C++ library support
8203 _LT_TAGVAR(ld_shlibs, $1)=no
8210 _LT_TAGVAR(hardcode_direct, $1)=no
8211 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8212 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8213 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8214 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8215 # Instead, shared libraries are loaded at an image base (0x10000000 by
8216 # default) and relocated if they conflict, which is a slow very memory
8217 # consuming and fragmenting process. To avoid this, we pick a random,
8218 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8219 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8220 _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'
8221 _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'
8224 case $cc_basename in
8227 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8229 # Archives containing C++ object files must be created using
8230 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
8231 # necessary to make sure instantiated templates are included
8233 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
8236 if test "$GXX" = yes; then
8237 if test "$with_gnu_ld" = no; then
8238 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8240 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
8243 _LT_TAGVAR(link_all_deplibs, $1)=yes
8246 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8247 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8248 _LT_TAGVAR(inherit_rpath, $1)=yes
8251 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8252 case $cc_basename in
8254 # Kuck and Associates, Inc. (KAI) C++ Compiler
8256 # KCC will only create a shared library if the output file
8257 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8258 # to its proper name (with version) after linking.
8259 _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'
8260 _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'
8261 # Commands to make compiler produce verbose output that lists
8262 # what "hidden" libraries, object files and flags are used when
8263 # linking a shared library.
8265 # There doesn't appear to be a way to prevent this compiler from
8266 # explicitly linking system object files so we need to strip them
8267 # from the output so that they don't get included in the library
8269 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8271 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8272 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8274 # Archives containing C++ object files must be created using
8275 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8276 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8281 # version 8.0 and above of icpc choke on multiply defined symbols
8282 # if we add $predep_objects and $postdep_objects, however 7.1 and
8283 # earlier do not add the objects themselves.
8284 case `$CC -V 2>&1` in
8286 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287 _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'
8289 *) # Version 8.0 or newer
8292 ia64*) tmp_idyn=' -i_dynamic';;
8294 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295 _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'
8298 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8299 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8300 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8301 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8304 # Portland Group C++ compiler
8306 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
8307 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
8309 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8310 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8311 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
8313 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8314 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8316 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
8318 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8319 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8320 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
8322 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8323 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8325 *) # Version 6 and above use weak symbols
8326 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8327 _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'
8331 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8332 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8333 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8337 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338 _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'
8340 runpath_var=LD_RUN_PATH
8341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8342 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8344 # Commands to make compiler produce verbose output that lists
8345 # what "hidden" libraries, object files and flags are used when
8346 # linking a shared library.
8348 # There doesn't appear to be a way to prevent this compiler from
8349 # explicitly linking system object files so we need to strip them
8350 # from the output so that they don't get included in the library
8352 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
8354 xl* | mpixl* | bgxl*)
8355 # IBM XL 8.0 on PPC, with GNU ld
8356 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8357 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8358 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8359 if test "x$supports_anon_versioning" = xyes; then
8360 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8361 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8362 echo "local: *; };" >> $output_objdir/$libname.ver~
8363 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8367 case `$CC -V 2>&1 | sed 5q` in
8370 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8371 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8372 _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'
8373 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8374 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8375 _LT_TAGVAR(compiler_needs_object, $1)=yes
8377 # Not sure whether something based on
8378 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
8380 output_verbose_link_cmd='func_echo_all'
8382 # Archives containing C++ object files must be created using
8383 # "CC -xar", where "CC" is the Sun C++ compiler. This is
8384 # necessary to make sure instantiated templates are included
8386 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8394 # FIXME: insert proper C++ library support
8395 _LT_TAGVAR(ld_shlibs, $1)=no
8399 # FIXME: insert proper C++ library support
8400 _LT_TAGVAR(ld_shlibs, $1)=no
8404 case $cc_basename in
8406 # FIXME: insert proper C++ library support
8407 _LT_TAGVAR(ld_shlibs, $1)=no
8410 # FIXME: insert proper C++ library support
8411 _LT_TAGVAR(ld_shlibs, $1)=no
8417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8418 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8421 _LT_TAGVAR(hardcode_direct, $1)=yes
8422 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8424 # Workaround some broken pre-1.5 toolchains
8425 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8429 _LT_TAGVAR(ld_shlibs, $1)=yes
8433 # C++ shared libraries are fairly broken
8434 _LT_TAGVAR(ld_shlibs, $1)=no
8438 if test -f /usr/libexec/ld.so; then
8439 _LT_TAGVAR(hardcode_direct, $1)=yes
8440 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8441 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8442 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8445 _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'
8446 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8447 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8449 output_verbose_link_cmd=func_echo_all
8451 _LT_TAGVAR(ld_shlibs, $1)=no
8455 osf3* | osf4* | osf5*)
8456 case $cc_basename in
8458 # Kuck and Associates, Inc. (KAI) C++ Compiler
8460 # KCC will only create a shared library if the output file
8461 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8462 # to its proper name (with version) after linking.
8463 _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'
8465 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8466 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8468 # Archives containing C++ object files must be created using
8469 # the KAI C++ compiler.
8471 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
8472 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
8476 # Rational C++ 2.4.1
8477 # FIXME: insert proper C++ library support
8478 _LT_TAGVAR(ld_shlibs, $1)=no
8483 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8484 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8485 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8488 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8489 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8490 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8491 echo "-hidden">> $lib.exp~
8492 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
8494 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8498 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8500 # Commands to make compiler produce verbose output that lists
8501 # what "hidden" libraries, object files and flags are used when
8502 # linking a shared library.
8504 # There doesn't appear to be a way to prevent this compiler from
8505 # explicitly linking system object files so we need to strip them
8506 # from the output so that they don't get included in the library
8508 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8511 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8512 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8515 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8518 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8522 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8523 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8525 # Commands to make compiler produce verbose output that lists
8526 # what "hidden" libraries, object files and flags are used when
8527 # linking a shared library.
8528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8531 # FIXME: insert proper C++ library support
8532 _LT_TAGVAR(ld_shlibs, $1)=no
8539 # FIXME: insert proper C++ library support
8540 _LT_TAGVAR(ld_shlibs, $1)=no
8544 case $cc_basename in
8547 # FIXME: insert proper C++ library support
8548 _LT_TAGVAR(ld_shlibs, $1)=no
8552 # FIXME: insert proper C++ library support
8553 _LT_TAGVAR(ld_shlibs, $1)=no
8556 # FIXME: insert proper C++ library support
8557 _LT_TAGVAR(ld_shlibs, $1)=no
8563 case $cc_basename in
8565 # Sun C++ 4.2, 5.x and Centerline C++
8566 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
8567 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8568 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8569 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8570 $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'
8572 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8573 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8575 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8577 # The compiler driver will combine and reorder linker options,
8578 # but understands `-z linker_flag'.
8579 # Supported since Solaris 2.6 (maybe 2.5.1?)
8580 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8583 _LT_TAGVAR(link_all_deplibs, $1)=yes
8585 output_verbose_link_cmd='func_echo_all'
8587 # Archives containing C++ object files must be created using
8588 # "CC -xar", where "CC" is the Sun C++ compiler. This is
8589 # necessary to make sure instantiated templates are included
8591 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8594 # Green Hills C++ Compiler
8595 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8597 # The C++ compiler must be used to create the archive.
8598 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8601 # GNU C++ compiler with Solaris linker
8602 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8603 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8604 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
8605 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8606 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8607 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8609 # Commands to make compiler produce verbose output that lists
8610 # what "hidden" libraries, object files and flags are used when
8611 # linking a shared library.
8612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8614 # g++ 2.7 appears to require `-G' NOT `-shared' on this
8616 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8617 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8618 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8620 # Commands to make compiler produce verbose output that lists
8621 # what "hidden" libraries, object files and flags are used when
8622 # linking a shared library.
8623 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8628 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8630 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8638 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8639 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8640 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8641 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8642 runpath_var='LD_RUN_PATH'
8644 case $cc_basename in
8646 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8647 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8650 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8651 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8657 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8658 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8660 _LT_TAGVAR(GCC, $1)="$GXX"
8661 _LT_TAGVAR(LD, $1)="$LD"
8664 ## There is no encapsulation within the following macros, do not change
8665 ## the running order or otherwise move them around unless you know exactly
8666 ## what you are doing...
8667 _LT_SYS_HIDDEN_LIBDEPS($1)
8668 _LT_COMPILER_PIC($1)
8669 _LT_COMPILER_C_O($1)
8670 _LT_COMPILER_FILE_LOCKS($1)
8671 _LT_LINKER_SHLIBS($1)
8672 _LT_SYS_DYNAMIC_LINKER($1)
8673 _LT_LINKER_HARDCODE_LIBPATH($1)
8676 fi # test -n "$compiler"
8679 CFLAGS=$lt_save_CFLAGS
8683 with_gnu_ld=$lt_save_with_gnu_ld
8684 lt_cv_path_LDCXX=$lt_cv_path_LD
8685 lt_cv_path_LD=$lt_save_path_LD
8686 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8687 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8688 fi # test "$_lt_caught_CXX_error" != yes
8691 ])# _LT_LANG_CXX_CONFIG
8694 # _LT_FUNC_STRIPNAME_CNF
8695 # ----------------------
8696 # func_stripname_cnf prefix suffix name
8697 # strip PREFIX and SUFFIX off of NAME.
8698 # PREFIX and SUFFIX must not contain globbing or regex special
8699 # characters, hashes, percent signs, but SUFFIX may contain a leading
8700 # dot (in which case that matches only a dot).
8702 # This function is identical to the (non-XSI) version of func_stripname,
8703 # except this one can be used by m4 code that may be executed by configure,
8704 # rather than the libtool script.
8705 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
8706 AC_REQUIRE([_LT_DECL_SED])
8707 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
8708 func_stripname_cnf ()
8711 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8712 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8714 } # func_stripname_cnf
8715 ])# _LT_FUNC_STRIPNAME_CNF
8717 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8718 # ---------------------------------
8719 # Figure out "hidden" library dependencies from verbose
8720 # compiler output when linking a shared library.
8721 # Parse the compiler output and extract the necessary
8722 # objects, libraries and library flags.
8723 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
8724 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8725 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
8726 # Dependencies to place before and after the object being linked:
8727 _LT_TAGVAR(predep_objects, $1)=
8728 _LT_TAGVAR(postdep_objects, $1)=
8729 _LT_TAGVAR(predeps, $1)=
8730 _LT_TAGVAR(postdeps, $1)=
8731 _LT_TAGVAR(compiler_lib_search_path, $1)=
8733 dnl we can't use the lt_simple_compile_test_code here,
8734 dnl because it contains code intended for an executable,
8735 dnl not a library. It's possible we should let each
8736 dnl tag define a new lt_????_link_test_code variable,
8737 dnl but it's only used here...
8738 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
8740 void foo (void) { a = 0; }
8742 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
8746 Foo (void) { a = 0; }
8751 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
8759 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
8767 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
8770 public void bar (void) {
8775 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
8782 _lt_libdeps_save_CFLAGS=$CFLAGS
8783 case "$CC $CFLAGS " in #(
8784 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
8785 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
8786 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
8789 dnl Parse the compiler output and extract the necessary
8790 dnl objects, libraries and library flags.
8791 if AC_TRY_EVAL(ac_compile); then
8792 # Parse the compiler output and extract the necessary
8793 # objects, libraries and library flags.
8795 # Sentinel used to keep track of whether or not we are before
8796 # the conftest object file.
8797 pre_test_object_deps_done=no
8799 for p in `eval "$output_verbose_link_cmd"`; do
8803 # Some compilers place space between "-{L,R}" and the path.
8805 if test $p = "-L" ||
8806 test $p = "-R"; then
8811 # Expand the sysroot to ease extracting the directories later.
8812 if test -z "$prev"; then
8814 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
8815 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
8816 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
8820 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
8822 if test "$pre_test_object_deps_done" = no; then
8825 # Internal compiler library paths should come after those
8826 # provided the user. The postdeps already come after the
8827 # user supplied libs so there is no need to process them.
8828 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
8829 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8831 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8834 # The "-l" case would never come before the object being
8835 # linked, so don't bother handling this case.
8838 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
8839 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
8841 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
8847 *.lto.$objext) ;; # Ignore GCC LTO objects
8849 # This assumes that the test object file only shows up
8850 # once in the compiler output.
8851 if test "$p" = "conftest.$objext"; then
8852 pre_test_object_deps_done=yes
8856 if test "$pre_test_object_deps_done" = no; then
8857 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
8858 _LT_TAGVAR(predep_objects, $1)="$p"
8860 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8863 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8864 _LT_TAGVAR(postdep_objects, $1)="$p"
8866 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8871 *) ;; # Ignore the rest.
8879 echo "libtool.m4: error: problem compiling $1 test program"
8882 $RM -f confest.$objext
8883 CFLAGS=$_lt_libdeps_save_CFLAGS
8885 # PORTME: override above test on systems where it is broken
8889 # Interix 3.5 installs completely hosed .la files for C++, so rather than
8890 # hack all around it, let's just trust "g++" to DTRT.
8891 _LT_TAGVAR(predep_objects,$1)=
8892 _LT_TAGVAR(postdep_objects,$1)=
8893 _LT_TAGVAR(postdeps,$1)=
8896 ])# AC_LIBTOOL_PROG_LD_SHLIBS
8899 # _LT_AC_FILE_LTDLL_C
8900 # -------------------
8901 # Be careful that the start marker always follows a newline.
8902 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
8903 # /* ltdll.c starts here */
8904 # #define WIN32_LEAN_AND_MEAN
8905 # #include <windows.h>
8906 # #undef WIN32_LEAN_AND_MEAN
8907 # #include <stdio.h>
8909 # #ifndef __CYGWIN__
8910 # # ifdef __CYGWIN32__
8911 # # define __CYGWIN__ __CYGWIN32__
8915 # #ifdef __cplusplus
8918 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8919 # #ifdef __cplusplus
8924 # #include <cygwin/cygwin_dll.h>
8925 # DECLARE_CYGWIN_DLL( DllMain );
8927 # HINSTANCE __hDllInstance_base;
8930 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8932 # __hDllInstance_base = hInst;
8935 # /* ltdll.c ends here */
8936 ])# _LT_AC_FILE_LTDLL_C
8939 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8940 _LT_TAGVAR(allow_undefined_flag, $1)=
8941 _LT_TAGVAR(always_export_symbols, $1)=no
8942 _LT_TAGVAR(archive_expsym_cmds, $1)=
8943 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8944 _LT_TAGVAR(hardcode_direct, $1)=no
8945 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8946 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8947 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8948 _LT_TAGVAR(hardcode_minus_L, $1)=no
8949 _LT_TAGVAR(hardcode_automatic, $1)=no
8950 _LT_TAGVAR(inherit_rpath, $1)=no
8951 _LT_TAGVAR(module_cmds, $1)=
8952 _LT_TAGVAR(module_expsym_cmds, $1)=
8953 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8954 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8955 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8956 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8957 _LT_TAGVAR(no_undefined_flag, $1)=
8958 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8959 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8963 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
8964 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8965 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8966 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8967 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8968 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
8969 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
8971 # This is just to silence aclocal about the macro not being used
8972 ifelse([AC_DISABLE_FAST_INSTALL])
8974 # Code to be used in simple link tests
8975 lt_simple_link_test_code="\
8980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8983 # save warnings/boilerplate of simple test code
8984 _LT_COMPILER_BOILERPLATE
8985 _LT_LINKER_BOILERPLATE
8987 # Allow CC to be a program name with arguments.
8990 lt_save_CFLAGS=$CFLAGS
8994 _LT_TAGVAR(compiler, $1)=$CC
8995 _LT_CC_BASENAME([$compiler])
8997 if test -n "$compiler"; then
8998 AC_MSG_CHECKING([if libtool supports shared libraries])
8999 AC_MSG_RESULT([$can_build_shared])
9001 AC_MSG_CHECKING([whether to build shared libraries])
9002 test "$can_build_shared" = "no" && enable_shared=no
9004 # On AIX, shared libraries and static libraries use the same namespace, and
9005 # are all built from PIC.
9008 test "$enable_shared" = yes && enable_static=no
9009 if test -n "$RANLIB"; then
9010 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9011 postinstall_cmds='$RANLIB $lib'
9015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9016 test "$enable_shared" = yes && enable_static=no
9020 AC_MSG_RESULT([$enable_shared])
9022 AC_MSG_CHECKING([whether to build static libraries])
9023 # Make sure either enable_shared or enable_static is yes.
9024 test "$enable_shared" = yes || enable_static=yes
9025 AC_MSG_RESULT([$enable_static])
9027 _LT_TAGVAR(GCC, $1)="$G77"
9028 _LT_TAGVAR(LD, $1)="$LD"
9031 ## There is no encapsulation within the following macros, do not change
9032 ## the running order or otherwise move them around unless you know exactly
9033 ## what you are doing...
9034 _LT_COMPILER_PIC($1)
9035 _LT_COMPILER_C_O($1)
9036 _LT_COMPILER_FILE_LOCKS($1)
9037 _LT_LINKER_SHLIBS($1)
9038 _LT_SYS_DYNAMIC_LINKER($1)
9039 _LT_LINKER_HARDCODE_LIBPATH($1)
9042 fi # test -n "$compiler"
9046 CFLAGS="$lt_save_CFLAGS"
9047 fi # test "$_lt_disable_F77" != yes
9050 ])# _LT_LANG_F77_CONFIG
9053 # _LT_LANG_FC_CONFIG([TAG])
9054 # -------------------------
9055 # Ensure that the configuration variables for a Fortran compiler are
9056 # suitably defined. These variables are subsequently used by _LT_CONFIG
9057 # to write the compiler configuration to `libtool'.
9058 m4_defun([_LT_LANG_FC_CONFIG],
9059 [AC_LANG_PUSH(Fortran)
9061 if test -z "$FC" || test "X$FC" = "Xno"; then
9065 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9066 _LT_TAGVAR(allow_undefined_flag, $1)=
9067 _LT_TAGVAR(always_export_symbols, $1)=no
9068 _LT_TAGVAR(archive_expsym_cmds, $1)=
9069 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
9070 _LT_TAGVAR(hardcode_direct, $1)=no
9071 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
9072 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9073 _LT_TAGVAR(hardcode_libdir_separator, $1)=
9074 _LT_TAGVAR(hardcode_minus_L, $1)=no
9075 _LT_TAGVAR(hardcode_automatic, $1)=no
9076 _LT_TAGVAR(inherit_rpath, $1)=no
9077 _LT_TAGVAR(module_cmds, $1)=
9078 _LT_TAGVAR(module_expsym_cmds, $1)=
9079 _LT_TAGVAR(link_all_deplibs, $1)=unknown
9080 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9081 _LT_TAGVAR(reload_flag, $1)=$reload_flag
9082 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9083 _LT_TAGVAR(no_undefined_flag, $1)=
9084 _LT_TAGVAR(whole_archive_flag_spec, $1)=
9085 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9087 # Source file extension for fc test sources.
9088 ac_ext=${ac_fc_srcext-f}
9090 # Object file extension for compiled fc test sources.
9092 _LT_TAGVAR(objext, $1)=$objext
9094 # No sense in running all these tests if we already determined that
9095 # the FC compiler isn't working. Some variables (like enable_shared)
9096 # are currently assumed to apply to all compilers on this platform,
9097 # and will be corrupted by setting them based on a non-working compiler.
9098 if test "$_lt_disable_FC" != yes; then
9099 # Code to be used in simple compile tests
9100 lt_simple_compile_test_code="\
9106 # Code to be used in simple link tests
9107 lt_simple_link_test_code="\
9112 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9115 # save warnings/boilerplate of simple test code
9116 _LT_COMPILER_BOILERPLATE
9117 _LT_LINKER_BOILERPLATE
9119 # Allow CC to be a program name with arguments.
9122 lt_save_CFLAGS=$CFLAGS
9126 GCC=$ac_cv_fc_compiler_gnu
9128 _LT_TAGVAR(compiler, $1)=$CC
9129 _LT_CC_BASENAME([$compiler])
9131 if test -n "$compiler"; then
9132 AC_MSG_CHECKING([if libtool supports shared libraries])
9133 AC_MSG_RESULT([$can_build_shared])
9135 AC_MSG_CHECKING([whether to build shared libraries])
9136 test "$can_build_shared" = "no" && enable_shared=no
9138 # On AIX, shared libraries and static libraries use the same namespace, and
9139 # are all built from PIC.
9142 test "$enable_shared" = yes && enable_static=no
9143 if test -n "$RANLIB"; then
9144 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9145 postinstall_cmds='$RANLIB $lib'
9149 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9150 test "$enable_shared" = yes && enable_static=no
9154 AC_MSG_RESULT([$enable_shared])
9156 AC_MSG_CHECKING([whether to build static libraries])
9157 # Make sure either enable_shared or enable_static is yes.
9158 test "$enable_shared" = yes || enable_static=yes
9159 AC_MSG_RESULT([$enable_static])
9161 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
9162 _LT_TAGVAR(LD, $1)="$LD"
9165 ## There is no encapsulation within the following macros, do not change
9166 ## the running order or otherwise move them around unless you know exactly
9167 ## what you are doing...
9168 _LT_SYS_HIDDEN_LIBDEPS($1)
9169 _LT_COMPILER_PIC($1)
9170 _LT_COMPILER_C_O($1)
9171 _LT_COMPILER_FILE_LOCKS($1)
9172 _LT_LINKER_SHLIBS($1)
9173 _LT_SYS_DYNAMIC_LINKER($1)
9174 _LT_LINKER_HARDCODE_LIBPATH($1)
9177 fi # test -n "$compiler"
9181 CFLAGS=$lt_save_CFLAGS
9182 fi # test "$_lt_disable_FC" != yes
9185 ])# _LT_LANG_FC_CONFIG
9188 # _LT_LANG_GCJ_CONFIG([TAG])
9189 # --------------------------
9190 # Ensure that the configuration variables for the GNU Java Compiler compiler
9191 # are suitably defined. These variables are subsequently used by _LT_CONFIG
9192 # to write the compiler configuration to `libtool'.
9193 m4_defun([_LT_LANG_GCJ_CONFIG],
9194 [AC_REQUIRE([LT_PROG_GCJ])dnl
9197 # Source file extension for Java test sources.
9200 # Object file extension for compiled Java test sources.
9202 _LT_TAGVAR(objext, $1)=$objext
9204 # Code to be used in simple compile tests
9205 lt_simple_compile_test_code="class foo {}"
9207 # Code to be used in simple link tests
9208 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
9210 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9213 # save warnings/boilerplate of simple test code
9214 _LT_COMPILER_BOILERPLATE
9215 _LT_LINKER_BOILERPLATE
9217 # Allow CC to be a program name with arguments.
9219 lt_save_CFLAGS=$CFLAGS
9225 _LT_TAGVAR(compiler, $1)=$CC
9226 _LT_TAGVAR(LD, $1)="$LD"
9227 _LT_CC_BASENAME([$compiler])
9229 # GCJ did not exist at the time GCC didn't implicitly link libc in.
9230 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9232 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9233 _LT_TAGVAR(reload_flag, $1)=$reload_flag
9234 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9236 if test -n "$compiler"; then
9237 _LT_COMPILER_NO_RTTI($1)
9238 _LT_COMPILER_PIC($1)
9239 _LT_COMPILER_C_O($1)
9240 _LT_COMPILER_FILE_LOCKS($1)
9241 _LT_LINKER_SHLIBS($1)
9242 _LT_LINKER_HARDCODE_LIBPATH($1)
9251 CFLAGS=$lt_save_CFLAGS
9252 ])# _LT_LANG_GCJ_CONFIG
9255 # _LT_LANG_GO_CONFIG([TAG])
9256 # --------------------------
9257 # Ensure that the configuration variables for the GNU Go compiler
9258 # are suitably defined. These variables are subsequently used by _LT_CONFIG
9259 # to write the compiler configuration to `libtool'.
9260 m4_defun([_LT_LANG_GO_CONFIG],
9261 [AC_REQUIRE([LT_PROG_GO])dnl
9264 # Source file extension for Go test sources.
9267 # Object file extension for compiled Go test sources.
9269 _LT_TAGVAR(objext, $1)=$objext
9271 # Code to be used in simple compile tests
9272 lt_simple_compile_test_code="package main; func main() { }"
9274 # Code to be used in simple link tests
9275 lt_simple_link_test_code='package main; func main() { }'
9277 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9280 # save warnings/boilerplate of simple test code
9281 _LT_COMPILER_BOILERPLATE
9282 _LT_LINKER_BOILERPLATE
9284 # Allow CC to be a program name with arguments.
9286 lt_save_CFLAGS=$CFLAGS
9292 _LT_TAGVAR(compiler, $1)=$CC
9293 _LT_TAGVAR(LD, $1)="$LD"
9294 _LT_CC_BASENAME([$compiler])
9296 # Go did not exist at the time GCC didn't implicitly link libc in.
9297 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9299 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9300 _LT_TAGVAR(reload_flag, $1)=$reload_flag
9301 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9303 if test -n "$compiler"; then
9304 _LT_COMPILER_NO_RTTI($1)
9305 _LT_COMPILER_PIC($1)
9306 _LT_COMPILER_C_O($1)
9307 _LT_COMPILER_FILE_LOCKS($1)
9308 _LT_LINKER_SHLIBS($1)
9309 _LT_LINKER_HARDCODE_LIBPATH($1)
9318 CFLAGS=$lt_save_CFLAGS
9319 ])# _LT_LANG_GO_CONFIG
9322 # _LT_LANG_RC_CONFIG([TAG])
9323 # -------------------------
9324 # Ensure that the configuration variables for the Windows resource compiler
9325 # are suitably defined. These variables are subsequently used by _LT_CONFIG
9326 # to write the compiler configuration to `libtool'.
9327 m4_defun([_LT_LANG_RC_CONFIG],
9328 [AC_REQUIRE([LT_PROG_RC])dnl
9331 # Source file extension for RC test sources.
9334 # Object file extension for compiled RC test sources.
9336 _LT_TAGVAR(objext, $1)=$objext
9338 # Code to be used in simple compile tests
9339 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
9341 # Code to be used in simple link tests
9342 lt_simple_link_test_code="$lt_simple_compile_test_code"
9344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9347 # save warnings/boilerplate of simple test code
9348 _LT_COMPILER_BOILERPLATE
9349 _LT_LINKER_BOILERPLATE
9351 # Allow CC to be a program name with arguments.
9353 lt_save_CFLAGS=$CFLAGS
9359 _LT_TAGVAR(compiler, $1)=$CC
9360 _LT_CC_BASENAME([$compiler])
9361 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
9363 if test -n "$compiler"; then
9371 CFLAGS=$lt_save_CFLAGS
9372 ])# _LT_LANG_RC_CONFIG
9377 AC_DEFUN([LT_PROG_GCJ],
9378 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
9379 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
9380 [AC_CHECK_TOOL(GCJ, gcj,)
9381 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9382 AC_SUBST(GCJFLAGS)])])[]dnl
9386 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
9387 dnl aclocal-1.4 backwards compatibility:
9388 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
9393 AC_DEFUN([LT_PROG_GO],
9394 [AC_CHECK_TOOL(GOC, gccgo,)
9400 AC_DEFUN([LT_PROG_RC],
9401 [AC_CHECK_TOOL(RC, windres,)
9405 # Cheap backport of AS_EXECUTABLE_P and required macros
9406 # from Autoconf 2.59; we should not use $as_executable_p directly.
9410 m4_ifndef([_AS_TEST_PREPARE],
9411 [m4_defun([_AS_TEST_PREPARE],
9412 [if test -x / >/dev/null 2>&1; then
9413 as_executable_p='test -x'
9415 as_executable_p='test -f'
9417 ])])# _AS_TEST_PREPARE
9421 # Check whether a file is executable.
9422 m4_ifndef([AS_EXECUTABLE_P],
9423 [m4_defun([AS_EXECUTABLE_P],
9424 [AS_REQUIRE([_AS_TEST_PREPARE])dnl
9425 $as_executable_p $1[]dnl
9426 ])])# AS_EXECUTABLE_P
9430 # If we don't have a new enough Autoconf to choose the best objdump
9431 # available, choose the one first in the user's PATH.
9432 m4_defun([_LT_DECL_OBJDUMP],
9433 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
9434 test -z "$OBJDUMP" && OBJDUMP=objdump
9435 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
9441 # Ensure DLLTOOL variable is set.
9442 m4_defun([_LT_DECL_DLLTOOL],
9443 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9444 test -z "$DLLTOOL" && DLLTOOL=dlltool
9445 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
9451 # Check for a fully-functional sed program, that truncates
9452 # as few characters as possible. Prefer GNU sed if found.
9453 m4_defun([_LT_DECL_SED],
9455 test -z "$SED" && SED=sed
9456 Xsed="$SED -e 1s/^X//"
9457 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
9458 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
9459 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
9462 m4_ifndef([AC_PROG_SED], [
9463 # NOTE: This macro has been submitted for inclusion into #
9464 # GNU Autoconf as AC_PROG_SED. When it is available in #
9465 # a released version of Autoconf we should remove this #
9466 # macro and use it instead. #
9469 # Check for a fully-functional sed program, that truncates
9470 # as few characters as possible. Prefer GNU sed if found.
9471 AC_DEFUN([LT_AC_PROG_SED],
9472 [AC_MSG_CHECKING([for a sed that does not truncate output])
9473 AC_CACHE_VAL(lt_cv_path_SED,
9474 [# Loop through the user's path and test for sed and gsed.
9475 # Then use that list of sed's as ones to test for truncation.
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 test -z "$as_dir" && as_dir=.
9481 for lt_ac_prog in sed gsed; do
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
9484 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9492 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9493 # along with /bin/sed that truncates output.
9494 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9495 test ! -f $lt_ac_sed && continue
9496 cat /dev/null > conftest.in
9498 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9499 # Check for GNU sed and select it if it is found.
9500 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9501 lt_cv_path_SED=$lt_ac_sed
9505 cat conftest.in conftest.in >conftest.tmp
9506 mv conftest.tmp conftest.in
9507 cp conftest.in conftest.nl
9509 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9510 cmp -s conftest.out conftest.nl || break
9511 # 10000 chars as input seems more than enough
9512 test $lt_ac_count -gt 10 && break
9513 lt_ac_count=`expr $lt_ac_count + 1`
9514 if test $lt_ac_count -gt $lt_ac_max; then
9515 lt_ac_max=$lt_ac_count
9516 lt_cv_path_SED=$lt_ac_sed
9523 AC_MSG_RESULT([$SED])
9528 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
9529 dnl aclocal-1.4 backwards compatibility:
9530 dnl AC_DEFUN([LT_AC_PROG_SED], [])
9533 # _LT_CHECK_SHELL_FEATURES
9534 # ------------------------
9535 # Find out whether the shell is Bourne or XSI compatible,
9536 # or has some other useful features.
9537 m4_defun([_LT_CHECK_SHELL_FEATURES],
9538 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
9539 # Try some XSI features
9542 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9544 && eval 'test $(( 1 + 1 )) -eq 2 \
9545 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9547 AC_MSG_RESULT([$xsi_shell])
9548 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
9550 AC_MSG_CHECKING([whether the shell understands "+="])
9552 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
9554 && lt_shell_append=yes
9555 AC_MSG_RESULT([$lt_shell_append])
9556 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
9558 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9563 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
9565 # test EBCDIC or ASCII
9566 case `echo X|tr X '\101'` in
9567 A) # ASCII based system
9568 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9569 lt_SP2NL='tr \040 \012'
9570 lt_NL2SP='tr \015\012 \040\040'
9572 *) # EBCDIC based system
9573 lt_SP2NL='tr \100 \n'
9574 lt_NL2SP='tr \r\n \100\100'
9577 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
9578 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
9579 ])# _LT_CHECK_SHELL_FEATURES
9582 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
9583 # ------------------------------------------------------
9584 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
9585 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
9586 m4_defun([_LT_PROG_FUNCTION_REPLACE],
9588 sed -e '/^$1 ()$/,/^} # $1 /c\
9591 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
9592 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
9593 && mv -f "$cfgfile.tmp" "$cfgfile" \
9594 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9595 test 0 -eq $? || _lt_function_replace_fail=:
9599 # _LT_PROG_REPLACE_SHELLFNS
9600 # -------------------------
9601 # Replace existing portable implementations of several shell functions with
9602 # equivalent extended shell implementations where those features are available..
9603 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
9604 [if test x"$xsi_shell" = xyes; then
9605 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
9607 */*) func_dirname_result="${1%/*}${2}" ;;
9608 * ) func_dirname_result="${3}" ;;
9611 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
9612 func_basename_result="${1##*/}"])
9614 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
9616 */*) func_dirname_result="${1%/*}${2}" ;;
9617 * ) func_dirname_result="${3}" ;;
9619 func_basename_result="${1##*/}"])
9621 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
9622 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
9623 # positional parameters, so assign one to ordinary parameter first.
9624 func_stripname_result=${3}
9625 func_stripname_result=${func_stripname_result#"${1}"}
9626 func_stripname_result=${func_stripname_result%"${2}"}])
9628 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
9629 func_split_long_opt_name=${1%%=*}
9630 func_split_long_opt_arg=${1#*=}])
9632 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
9633 func_split_short_opt_arg=${1#??}
9634 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
9636 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
9638 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
9639 *) func_lo2o_result=${1} ;;
9642 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
9644 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
9646 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
9649 if test x"$lt_shell_append" = xyes; then
9650 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
9652 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
9653 func_quote_for_eval "${2}"
9654 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
9655 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
9657 # Save a `func_append' function call where possible by direct use of '+='
9658 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
9659 && mv -f "$cfgfile.tmp" "$cfgfile" \
9660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9661 test 0 -eq $? || _lt_function_replace_fail=:
9663 # Save a `func_append' function call even when '+=' is not available
9664 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
9665 && mv -f "$cfgfile.tmp" "$cfgfile" \
9666 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9667 test 0 -eq $? || _lt_function_replace_fail=:
9670 if test x"$_lt_function_replace_fail" = x":"; then
9671 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
9675 # _LT_PATH_CONVERSION_FUNCTIONS
9676 # -----------------------------
9677 # Determine which file name conversion functions should be used by
9678 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
9679 # for certain cross-compile configurations and native mingw.
9680 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
9681 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
9682 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
9683 AC_MSG_CHECKING([how to convert $build file names to $host format])
9684 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
9688 *-*-mingw* ) # actually msys
9689 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9692 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9694 * ) # otherwise, assume *nix
9695 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9701 *-*-mingw* ) # actually msys
9702 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9705 lt_cv_to_host_file_cmd=func_convert_file_noop
9707 * ) # otherwise, assume *nix
9708 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9712 * ) # unhandled hosts (and "normal" native builds)
9713 lt_cv_to_host_file_cmd=func_convert_file_noop
9717 to_host_file_cmd=$lt_cv_to_host_file_cmd
9718 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
9719 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
9720 [0], [convert $build file names to $host format])dnl
9722 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
9723 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
9724 [#assume ordinary cross tools, or native build.
9725 lt_cv_to_tool_file_cmd=func_convert_file_noop
9729 *-*-mingw* ) # actually msys
9730 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9736 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9737 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
9738 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
9739 [0], [convert $build files to toolchain format])dnl
9740 ])# _LT_PATH_CONVERSION_FUNCTIONS
9742 # Helper functions for option handling. -*- Autoconf -*-
9744 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
9746 # Written by Gary V. Vaughan, 2004
9748 # This file is free software; the Free Software Foundation gives
9749 # unlimited permission to copy and/or distribute it, with or without
9750 # modifications, as long as this notice is preserved.
9752 # serial 7 ltoptions.m4
9754 # This is to help aclocal find these macros, as it can't see m4_define.
9755 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9758 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
9759 # ------------------------------------------
9760 m4_define([_LT_MANGLE_OPTION],
9761 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
9764 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
9765 # ---------------------------------------
9766 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
9767 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
9769 m4_define([_LT_SET_OPTION],
9770 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
9771 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
9772 _LT_MANGLE_DEFUN([$1], [$2]),
9773 [m4_warning([Unknown $1 option `$2'])])[]dnl
9777 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
9778 # ------------------------------------------------------------
9779 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9780 m4_define([_LT_IF_OPTION],
9781 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
9784 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
9785 # -------------------------------------------------------
9786 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
9788 m4_define([_LT_UNLESS_OPTIONS],
9789 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9790 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
9791 [m4_define([$0_found])])])[]dnl
9792 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
9797 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
9798 # ----------------------------------------
9799 # OPTION-LIST is a space-separated list of Libtool options associated
9800 # with MACRO-NAME. If any OPTION has a matching handler declared with
9801 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
9802 # the unknown option and exit.
9803 m4_defun([_LT_SET_OPTIONS],
9805 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9806 [_LT_SET_OPTION([$1], _LT_Option)])
9808 m4_if([$1],[LT_INIT],[
9810 dnl Simply set some default values (i.e off) if boolean options were not
9812 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
9814 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
9817 dnl If no reference was made to various pairs of opposing options, then
9818 dnl we run the default mode handler for the pair. For example, if neither
9819 dnl `shared' nor `disable-shared' was passed, we enable building of shared
9820 dnl archives by default:
9821 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
9822 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
9823 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
9824 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
9825 [_LT_ENABLE_FAST_INSTALL])
9831 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
9832 # -----------------------------------------
9833 m4_define([_LT_MANGLE_DEFUN],
9834 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
9837 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
9838 # -----------------------------------------------
9839 m4_define([LT_OPTION_DEFINE],
9840 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
9841 ])# LT_OPTION_DEFINE
9846 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
9849 AU_DEFUN([AC_LIBTOOL_DLOPEN],
9850 [_LT_SET_OPTION([LT_INIT], [dlopen])
9851 AC_DIAGNOSE([obsolete],
9852 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9853 put the `dlopen' option into LT_INIT's first parameter.])
9856 dnl aclocal-1.4 backwards compatibility:
9857 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9862 # Declare package support for building win32 dll's.
9863 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9864 [enable_win32_dll=yes
9867 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9868 AC_CHECK_TOOL(AS, as, false)
9869 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9870 AC_CHECK_TOOL(OBJDUMP, objdump, false)
9874 test -z "$AS" && AS=as
9875 _LT_DECL([], [AS], [1], [Assembler program])dnl
9877 test -z "$DLLTOOL" && DLLTOOL=dlltool
9878 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
9880 test -z "$OBJDUMP" && OBJDUMP=objdump
9881 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
9884 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9885 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
9886 _LT_SET_OPTION([LT_INIT], [win32-dll])
9887 AC_DIAGNOSE([obsolete],
9888 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9889 put the `win32-dll' option into LT_INIT's first parameter.])
9892 dnl aclocal-1.4 backwards compatibility:
9893 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9896 # _LT_ENABLE_SHARED([DEFAULT])
9897 # ----------------------------
9898 # implement the --enable-shared flag, and supports the `shared' and
9899 # `disable-shared' LT_INIT options.
9900 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9901 m4_define([_LT_ENABLE_SHARED],
9902 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9903 AC_ARG_ENABLE([shared],
9904 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9905 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9906 [p=${PACKAGE-default}
9908 yes) enable_shared=yes ;;
9909 no) enable_shared=no ;;
9912 # Look at the argument we got. We use all the common list separators.
9913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9914 for pkg in $enableval; do
9916 if test "X$pkg" = "X$p"; then
9923 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9925 _LT_DECL([build_libtool_libs], [enable_shared], [0],
9926 [Whether or not to build shared libraries])
9927 ])# _LT_ENABLE_SHARED
9929 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9930 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9933 AC_DEFUN([AC_ENABLE_SHARED],
9934 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9937 AC_DEFUN([AC_DISABLE_SHARED],
9938 [_LT_SET_OPTION([LT_INIT], [disable-shared])
9941 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9942 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9944 dnl aclocal-1.4 backwards compatibility:
9945 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9946 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9950 # _LT_ENABLE_STATIC([DEFAULT])
9951 # ----------------------------
9952 # implement the --enable-static flag, and support the `static' and
9953 # `disable-static' LT_INIT options.
9954 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9955 m4_define([_LT_ENABLE_STATIC],
9956 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9957 AC_ARG_ENABLE([static],
9958 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9959 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9960 [p=${PACKAGE-default}
9962 yes) enable_static=yes ;;
9963 no) enable_static=no ;;
9966 # Look at the argument we got. We use all the common list separators.
9967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9968 for pkg in $enableval; do
9970 if test "X$pkg" = "X$p"; then
9977 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9979 _LT_DECL([build_old_libs], [enable_static], [0],
9980 [Whether or not to build static libraries])
9981 ])# _LT_ENABLE_STATIC
9983 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9984 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9987 AC_DEFUN([AC_ENABLE_STATIC],
9988 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9991 AC_DEFUN([AC_DISABLE_STATIC],
9992 [_LT_SET_OPTION([LT_INIT], [disable-static])
9995 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9996 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9998 dnl aclocal-1.4 backwards compatibility:
9999 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
10000 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
10004 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
10005 # ----------------------------------
10006 # implement the --enable-fast-install flag, and support the `fast-install'
10007 # and `disable-fast-install' LT_INIT options.
10008 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
10009 m4_define([_LT_ENABLE_FAST_INSTALL],
10010 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
10011 AC_ARG_ENABLE([fast-install],
10012 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
10013 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
10014 [p=${PACKAGE-default}
10016 yes) enable_fast_install=yes ;;
10017 no) enable_fast_install=no ;;
10019 enable_fast_install=no
10020 # Look at the argument we got. We use all the common list separators.
10021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10022 for pkg in $enableval; do
10024 if test "X$pkg" = "X$p"; then
10025 enable_fast_install=yes
10031 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
10033 _LT_DECL([fast_install], [enable_fast_install], [0],
10034 [Whether or not to optimize for fast installation])dnl
10035 ])# _LT_ENABLE_FAST_INSTALL
10037 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
10038 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
10041 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
10042 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
10043 AC_DIAGNOSE([obsolete],
10044 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
10045 the `fast-install' option into LT_INIT's first parameter.])
10048 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
10049 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
10050 AC_DIAGNOSE([obsolete],
10051 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
10052 the `disable-fast-install' option into LT_INIT's first parameter.])
10055 dnl aclocal-1.4 backwards compatibility:
10056 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
10057 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
10060 # _LT_WITH_PIC([MODE])
10061 # --------------------
10062 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
10064 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
10065 m4_define([_LT_WITH_PIC],
10066 [AC_ARG_WITH([pic],
10067 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
10068 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
10069 [lt_p=${PACKAGE-default}
10071 yes|no) pic_mode=$withval ;;
10074 # Look at the argument we got. We use all the common list separators.
10075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10076 for lt_pkg in $withval; do
10078 if test "X$lt_pkg" = "X$lt_p"; then
10085 [pic_mode=default])
10087 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
10089 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
10092 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
10093 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
10096 AU_DEFUN([AC_LIBTOOL_PICMODE],
10097 [_LT_SET_OPTION([LT_INIT], [pic-only])
10098 AC_DIAGNOSE([obsolete],
10099 [$0: Remove this warning and the call to _LT_SET_OPTION when you
10100 put the `pic-only' option into LT_INIT's first parameter.])
10103 dnl aclocal-1.4 backwards compatibility:
10104 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
10107 m4_define([_LTDL_MODE], [])
10108 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
10109 [m4_define([_LTDL_MODE], [nonrecursive])])
10110 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
10111 [m4_define([_LTDL_MODE], [recursive])])
10112 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
10113 [m4_define([_LTDL_MODE], [subproject])])
10115 m4_define([_LTDL_TYPE], [])
10116 LT_OPTION_DEFINE([LTDL_INIT], [installable],
10117 [m4_define([_LTDL_TYPE], [installable])])
10118 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
10119 [m4_define([_LTDL_TYPE], [convenience])])
10121 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
10123 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
10124 # Written by Gary V. Vaughan, 2004
10126 # This file is free software; the Free Software Foundation gives
10127 # unlimited permission to copy and/or distribute it, with or without
10128 # modifications, as long as this notice is preserved.
10130 # serial 6 ltsugar.m4
10132 # This is to help aclocal find these macros, as it can't see m4_define.
10133 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
10136 # lt_join(SEP, ARG1, [ARG2...])
10137 # -----------------------------
10138 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
10139 # associated separator.
10140 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
10141 # versions in m4sugar had bugs.
10142 m4_define([lt_join],
10143 [m4_if([$#], [1], [],
10145 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
10146 m4_define([_lt_join],
10147 [m4_if([$#$2], [2], [],
10148 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
10154 # Manipulate m4 lists.
10155 # These macros are necessary as long as will still need to support
10156 # Autoconf-2.59 which quotes differently.
10157 m4_define([lt_car], [[$1]])
10158 m4_define([lt_cdr],
10159 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
10161 [m4_dquote(m4_shift($@))])])
10162 m4_define([lt_unquote], $1)
10165 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
10166 # ------------------------------------------
10167 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
10168 # Note that neither SEPARATOR nor STRING are expanded; they are appended
10169 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
10170 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
10171 # than defined and empty).
10173 # This macro is needed until we can rely on Autoconf 2.62, since earlier
10174 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
10175 m4_define([lt_append],
10177 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
10181 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
10182 # ----------------------------------------------------------
10183 # Produce a SEP delimited list of all paired combinations of elements of
10184 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
10185 # has the form PREFIXmINFIXSUFFIXn.
10186 # Needed until we can rely on m4_combine added in Autoconf 2.62.
10187 m4_define([lt_combine],
10188 [m4_if(m4_eval([$# > 3]), [1],
10189 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
10190 [[m4_foreach([_Lt_prefix], [$2],
10191 [m4_foreach([_Lt_suffix],
10192 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
10193 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
10196 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
10197 # -----------------------------------------------------------------------
10198 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
10199 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
10200 m4_define([lt_if_append_uniq],
10202 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
10203 [lt_append([$1], [$2], [$3])$4],
10205 [lt_append([$1], [$2], [$3])$4])])
10208 # lt_dict_add(DICT, KEY, VALUE)
10209 # -----------------------------
10210 m4_define([lt_dict_add],
10211 [m4_define([$1($2)], [$3])])
10214 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
10215 # --------------------------------------------
10216 m4_define([lt_dict_add_subkey],
10217 [m4_define([$1($2:$3)], [$4])])
10220 # lt_dict_fetch(DICT, KEY, [SUBKEY])
10221 # ----------------------------------
10222 m4_define([lt_dict_fetch],
10224 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
10225 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
10228 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
10229 # -----------------------------------------------------------------
10230 m4_define([lt_if_dict_fetch],
10231 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
10236 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
10237 # --------------------------------------------------------------
10238 m4_define([lt_dict_filter],
10239 [m4_if([$5], [], [],
10240 [lt_join(m4_quote(m4_default([$4], [[, ]])),
10241 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
10242 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
10245 # ltversion.m4 -- version numbers -*- Autoconf -*-
10247 # Copyright (C) 2004 Free Software Foundation, Inc.
10248 # Written by Scott James Remnant, 2004
10250 # This file is free software; the Free Software Foundation gives
10251 # unlimited permission to copy and/or distribute it, with or without
10252 # modifications, as long as this notice is preserved.
10254 # @configure_input@
10256 # serial 3337 ltversion.m4
10257 # This file is part of GNU Libtool
10259 m4_define([LT_PACKAGE_VERSION], [2.4.2])
10260 m4_define([LT_PACKAGE_REVISION], [1.3337])
10262 AC_DEFUN([LTVERSION_VERSION],
10263 [macro_version='2.4.2'
10264 macro_revision='1.3337'
10265 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
10266 _LT_DECL(, macro_revision, 0)
10269 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
10271 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
10272 # Written by Scott James Remnant, 2004.
10274 # This file is free software; the Free Software Foundation gives
10275 # unlimited permission to copy and/or distribute it, with or without
10276 # modifications, as long as this notice is preserved.
10278 # serial 5 lt~obsolete.m4
10280 # These exist entirely to fool aclocal when bootstrapping libtool.
10282 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
10283 # which have later been changed to m4_define as they aren't part of the
10284 # exported API, or moved to Autoconf or Automake where they belong.
10286 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
10287 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
10288 # using a macro with the same name in our local m4/libtool.m4 it'll
10289 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
10290 # and doesn't know about Autoconf macros at all.)
10292 # So we provide this file, which has a silly filename so it's always
10293 # included after everything else. This provides aclocal with the
10294 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
10295 # because those macros already exist, or will be overwritten later.
10296 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
10298 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
10299 # Yes, that means every name once taken will need to remain here until
10300 # we give up compatibility with versions before 1.7, at which point
10301 # we need to keep only those names which we still refer to.
10303 # This is to help aclocal find these macros, as it can't see m4_define.
10304 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
10306 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
10307 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
10308 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
10309 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
10310 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
10311 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
10312 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
10313 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
10314 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
10315 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
10316 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
10317 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
10318 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
10319 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
10320 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
10321 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
10322 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
10323 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
10324 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
10325 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
10326 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
10327 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
10328 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
10329 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
10330 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
10331 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
10332 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
10333 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
10334 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
10335 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
10336 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
10337 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
10338 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
10339 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
10340 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
10341 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
10342 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
10343 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
10344 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
10345 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
10346 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
10347 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
10348 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
10349 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
10350 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
10351 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
10352 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
10353 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
10354 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
10355 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
10356 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
10357 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
10358 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
10359 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
10360 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
10361 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
10362 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
10363 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
10364 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
10365 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
10366 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
10368 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
10370 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
10372 # This program is free software; you can redistribute it and/or modify
10373 # it under the terms of the GNU General Public License as published by
10374 # the Free Software Foundation; either version 2 of the License, or
10375 # (at your option) any later version.
10377 # This program is distributed in the hope that it will be useful, but
10378 # WITHOUT ANY WARRANTY; without even the implied warranty of
10379 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10380 # General Public License for more details.
10382 # You should have received a copy of the GNU General Public License
10383 # along with this program; if not, write to the Free Software
10384 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10386 # As a special exception to the GNU General Public License, if you
10387 # distribute this file as part of a program that contains a
10388 # configuration script generated by Autoconf, you may include it under
10389 # the same distribution terms that you use for the rest of that program.
10391 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
10392 # ----------------------------------
10393 AC_DEFUN([PKG_PROG_PKG_CONFIG],
10394 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
10395 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
10396 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
10397 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10398 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
10400 if test -n "$PKG_CONFIG"; then
10401 _pkg_min_version=m4_default([$1], [0.9.0])
10402 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
10403 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10404 AC_MSG_RESULT([yes])
10406 AC_MSG_RESULT([no])
10411 ])# PKG_PROG_PKG_CONFIG
10413 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
10415 # Check to see whether a particular set of modules exists. Similar
10416 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
10419 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
10420 # this or PKG_CHECK_MODULES is called, or make sure to call
10421 # PKG_CHECK_EXISTS manually
10422 # --------------------------------------------------------------
10423 AC_DEFUN([PKG_CHECK_EXISTS],
10424 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
10425 if test -n "$PKG_CONFIG" && \
10426 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
10427 m4_ifval([$2], [$2], [:])
10428 m4_ifvaln([$3], [else
10433 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
10434 # ---------------------------------------------
10435 m4_define([_PKG_CONFIG],
10436 [if test -n "$$1"; then
10438 elif test -n "$PKG_CONFIG"; then
10439 PKG_CHECK_EXISTS([$3],
10440 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
10447 # _PKG_SHORT_ERRORS_SUPPORTED
10448 # -----------------------------
10449 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
10450 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
10451 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10452 _pkg_short_errors_supported=yes
10454 _pkg_short_errors_supported=no
10456 ])# _PKG_SHORT_ERRORS_SUPPORTED
10459 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
10460 # [ACTION-IF-NOT-FOUND])
10463 # Note that if there is a possibility the first call to
10464 # PKG_CHECK_MODULES might not happen, you should be sure to include an
10465 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
10468 # --------------------------------------------------------------
10469 AC_DEFUN([PKG_CHECK_MODULES],
10470 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
10471 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
10472 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
10475 AC_MSG_CHECKING([for $1])
10477 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
10478 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
10480 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
10481 and $1[]_LIBS to avoid the need to call pkg-config.
10482 See the pkg-config man page for more details.])
10484 if test $pkg_failed = yes; then
10485 _PKG_SHORT_ERRORS_SUPPORTED
10486 if test $_pkg_short_errors_supported = yes; then
10487 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
10489 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
10491 # Put the nasty error message in config.log where it belongs
10492 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
10494 ifelse([$4], , [AC_MSG_ERROR(dnl
10495 [Package requirements ($2) were not met:
10499 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10500 installed software in a non-standard prefix.
10504 [AC_MSG_RESULT([no])
10506 elif test $pkg_failed = untried; then
10507 ifelse([$4], , [AC_MSG_FAILURE(dnl
10508 [The pkg-config script could not be found or is too old. Make sure it
10509 is in your PATH or set the PKG_CONFIG environment variable to the full
10510 path to pkg-config.
10514 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
10517 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
10518 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
10519 AC_MSG_RESULT([yes])
10520 ifelse([$3], , :, [$3])
10522 ])# PKG_CHECK_MODULES
10524 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
10527 # This file is free software; the Free Software Foundation
10528 # gives unlimited permission to copy and/or distribute it,
10529 # with or without modifications, as long as this notice is preserved.
10533 # AM_AUTOMAKE_VERSION(VERSION)
10534 # ----------------------------
10535 # Automake X.Y traces this macro to ensure aclocal.m4 has been
10536 # generated from the m4 files accompanying Automake X.Y.
10537 # (This private macro should not be called outside this file.)
10538 AC_DEFUN([AM_AUTOMAKE_VERSION],
10539 [am__api_version='1.11'
10540 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
10541 dnl require some minimum version. Point them to the right macro.
10542 m4_if([$1], [1.11.3], [],
10543 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
10546 # _AM_AUTOCONF_VERSION(VERSION)
10547 # -----------------------------
10548 # aclocal traces this macro to find the Autoconf version.
10549 # This is a private macro too. Using m4_define simplifies
10550 # the logic in aclocal, which can simply ignore this definition.
10551 m4_define([_AM_AUTOCONF_VERSION], [])
10553 # AM_SET_CURRENT_AUTOMAKE_VERSION
10554 # -------------------------------
10555 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
10556 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
10557 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
10558 [AM_AUTOMAKE_VERSION([1.11.3])dnl
10559 m4_ifndef([AC_AUTOCONF_VERSION],
10560 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
10561 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
10563 # Figure out how to run the assembler. -*- Autoconf -*-
10565 # Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10567 # This file is free software; the Free Software Foundation
10568 # gives unlimited permission to copy and/or distribute it,
10569 # with or without modifications, as long as this notice is preserved.
10575 AC_DEFUN([AM_PROG_AS],
10576 [# By default we simply use the C compiler to build assembly code.
10577 AC_REQUIRE([AC_PROG_CC])
10578 test "${CCAS+set}" = set || CCAS=$CC
10579 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10580 AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
10581 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
10582 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
10585 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
10587 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10589 # This file is free software; the Free Software Foundation
10590 # gives unlimited permission to copy and/or distribute it,
10591 # with or without modifications, as long as this notice is preserved.
10595 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
10596 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
10597 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
10599 # Of course, Automake must honor this variable whenever it calls a
10600 # tool from the auxiliary directory. The problem is that $srcdir (and
10601 # therefore $ac_aux_dir as well) can be either absolute or relative,
10602 # depending on how configure is run. This is pretty annoying, since
10603 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
10604 # source directory, any form will work fine, but in subdirectories a
10605 # relative path needs to be adjusted first.
10607 # $ac_aux_dir/missing
10608 # fails when called from a subdirectory if $ac_aux_dir is relative
10609 # $top_srcdir/$ac_aux_dir/missing
10610 # fails if $ac_aux_dir is absolute,
10611 # fails when called from a subdirectory in a VPATH build with
10612 # a relative $ac_aux_dir
10614 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
10615 # are both prefixed by $srcdir. In an in-source build this is usually
10616 # harmless because $srcdir is `.', but things will broke when you
10617 # start a VPATH build or use an absolute $srcdir.
10619 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
10620 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
10621 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
10622 # and then we would define $MISSING as
10623 # MISSING="\${SHELL} $am_aux_dir/missing"
10624 # This will work as long as MISSING is not called from configure, because
10625 # unfortunately $(top_srcdir) has no meaning in configure.
10626 # However there are other variables, like CC, which are often used in
10627 # configure, and could therefore not use this "fixed" $ac_aux_dir.
10629 # Another solution, used here, is to always expand $ac_aux_dir to an
10630 # absolute PATH. The drawback is that using absolute paths prevent a
10631 # configured tree to be moved without reconfiguration.
10633 AC_DEFUN([AM_AUX_DIR_EXPAND],
10634 [dnl Rely on autoconf to set up CDPATH properly.
10635 AC_PREREQ([2.50])dnl
10636 # expand $ac_aux_dir to an absolute path
10637 am_aux_dir=`cd $ac_aux_dir && pwd`
10640 # AM_CONDITIONAL -*- Autoconf -*-
10642 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
10643 # Free Software Foundation, Inc.
10645 # This file is free software; the Free Software Foundation
10646 # gives unlimited permission to copy and/or distribute it,
10647 # with or without modifications, as long as this notice is preserved.
10651 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
10652 # -------------------------------------
10653 # Define a conditional.
10654 AC_DEFUN([AM_CONDITIONAL],
10655 [AC_PREREQ(2.52)dnl
10656 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
10657 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
10658 AC_SUBST([$1_TRUE])dnl
10659 AC_SUBST([$1_FALSE])dnl
10660 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
10661 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
10662 m4_define([_AM_COND_VALUE_$1], [$2])dnl
10670 AC_CONFIG_COMMANDS_PRE(
10671 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
10672 AC_MSG_ERROR([[conditional "$1" was never defined.
10673 Usually this means the macro was only invoked conditionally.]])
10676 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
10677 # 2010, 2011 Free Software Foundation, Inc.
10679 # This file is free software; the Free Software Foundation
10680 # gives unlimited permission to copy and/or distribute it,
10681 # with or without modifications, as long as this notice is preserved.
10685 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
10686 # written in clear, in which case automake, when reading aclocal.m4,
10687 # will think it sees a *use*, and therefore will trigger all it's
10688 # C support machinery. Also note that it means that autoscan, seeing
10689 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
10692 # _AM_DEPENDENCIES(NAME)
10693 # ----------------------
10694 # See how the compiler implements dependency checking.
10695 # NAME is "CC", "CXX", "GCJ", or "OBJC".
10696 # We try a few techniques and use that to set a single cache variable.
10698 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
10699 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
10700 # dependency, and given that the user is not expected to run this macro,
10701 # just rely on AC_PROG_CC.
10702 AC_DEFUN([_AM_DEPENDENCIES],
10703 [AC_REQUIRE([AM_SET_DEPDIR])dnl
10704 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
10705 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
10706 AC_REQUIRE([AM_DEP_TRACK])dnl
10708 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
10709 [$1], CXX, [depcc="$CXX" am_compiler_list=],
10710 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
10711 [$1], UPC, [depcc="$UPC" am_compiler_list=],
10712 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
10713 [depcc="$$1" am_compiler_list=])
10715 AC_CACHE_CHECK([dependency style of $depcc],
10716 [am_cv_$1_dependencies_compiler_type],
10717 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10718 # We make a subdir and do the tests there. Otherwise we can end up
10719 # making bogus files that we don't know about and never remove. For
10720 # instance it was reported that on HP-UX the gcc test will end up
10721 # making a dummy file named `D' -- because `-MD' means `put the output
10723 rm -rf conftest.dir
10725 # Copy depcomp to subdir because otherwise we won't find it if we're
10726 # using a relative directory.
10727 cp "$am_depcomp" conftest.dir
10729 # We will build objects and dependencies in a subdirectory because
10730 # it helps to detect inapplicable dependency modes. For instance
10731 # both Tru64's cc and ICC support -MD to output dependencies as a
10732 # side effect of compilation, but ICC will put the dependencies in
10733 # the current directory while Tru64 will put them in the object
10737 am_cv_$1_dependencies_compiler_type=none
10738 if test "$am_compiler_list" = ""; then
10739 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
10741 am__universal=false
10742 m4_case([$1], [CC],
10743 [case " $depcc " in #(
10744 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10747 [case " $depcc " in #(
10748 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10751 for depmode in $am_compiler_list; do
10752 # Setup a source with many dependencies, because some compilers
10753 # like to wrap large dependency lists on column 80 (with \), and
10754 # we should not choose a depcomp mode which is confused by this.
10756 # We need to recreate these files for each test, as the compiler may
10757 # overwrite some of them when testing with obscure command lines.
10758 # This happens at least with the AIX C compiler.
10760 for i in 1 2 3 4 5 6; do
10761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10762 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10763 # Solaris 8's {/usr,}/bin/sh.
10764 touch sub/conftst$i.h
10766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10768 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10769 # mode. It turns out that the SunPro C++ compiler does not properly
10770 # handle `-M -o', and we need to detect this. Also, some Intel
10771 # versions had trouble with output in subdirs
10772 am__obj=sub/conftest.${OBJEXT-o}
10773 am__minus_obj="-o $am__obj"
10776 # This depmode causes a compiler race in universal mode.
10777 test "$am__universal" = false || continue
10780 # after this tag, mechanisms are not by side-effect, so they'll
10781 # only be used when explicitly requested
10782 if test "x$enable_dependency_tracking" = xyes; then
10788 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10789 # This compiler won't grok `-c -o', but also, the minuso test has
10790 # not run yet. These depmodes are late enough in the game, and
10791 # so weak that their functioning should not be impacted.
10792 am__obj=conftest.${OBJEXT-o}
10797 if depmode=$depmode \
10798 source=sub/conftest.c object=$am__obj \
10799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10801 >/dev/null 2>conftest.err &&
10802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10806 # icc doesn't choke on unknown options, it will just issue warnings
10807 # or remarks (even with -Werror). So we grep stderr for any message
10808 # that says an option was ignored or not supported.
10809 # When given -MP, icc 7.0 and 7.1 complain thusly:
10810 # icc: Command line warning: ignoring option '-M'; no argument required
10811 # The diagnosis changed in icc 8.0:
10812 # icc: Command line remark: option '-MP' not supported
10813 if (grep 'ignoring option' conftest.err ||
10814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10815 am_cv_$1_dependencies_compiler_type=$depmode
10822 rm -rf conftest.dir
10824 am_cv_$1_dependencies_compiler_type=none
10827 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
10828 AM_CONDITIONAL([am__fastdep$1], [
10829 test "x$enable_dependency_tracking" != xno \
10830 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
10836 # Choose a directory name for dependency files.
10837 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
10838 AC_DEFUN([AM_SET_DEPDIR],
10839 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10840 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
10846 AC_DEFUN([AM_DEP_TRACK],
10847 [AC_ARG_ENABLE(dependency-tracking,
10848 [ --disable-dependency-tracking speeds up one-time build
10849 --enable-dependency-tracking do not reject slow dependency extractors])
10850 if test "x$enable_dependency_tracking" != xno; then
10851 am_depcomp="$ac_aux_dir/depcomp"
10855 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
10856 AC_SUBST([AMDEPBACKSLASH])dnl
10857 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
10858 AC_SUBST([am__nodep])dnl
10859 _AM_SUBST_NOTMAKE([am__nodep])dnl
10862 # Generate code to set up dependency tracking. -*- Autoconf -*-
10864 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
10865 # Free Software Foundation, Inc.
10867 # This file is free software; the Free Software Foundation
10868 # gives unlimited permission to copy and/or distribute it,
10869 # with or without modifications, as long as this notice is preserved.
10873 # _AM_OUTPUT_DEPENDENCY_COMMANDS
10874 # ------------------------------
10875 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
10877 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10878 # are listed without --file. Let's play safe and only enable the eval
10879 # if we detect the quoting.
10880 case $CONFIG_FILES in
10881 *\'*) eval set x "$CONFIG_FILES" ;;
10882 *) set x $CONFIG_FILES ;;
10887 # Strip MF so we end up with the name of the file.
10888 mf=`echo "$mf" | sed -e 's/:.*$//'`
10889 # Check whether this is an Automake generated Makefile or not.
10890 # We used to match only the files named `Makefile.in', but
10891 # some people rename them; so instead we look at the file content.
10892 # Grep'ing the first line is not enough: some people post-process
10893 # each Makefile.in and add a new line on top of each file to say so.
10894 # Grep'ing the whole file is not good either: AIX grep has a line
10895 # limit of 2048, but all sed's we know have understand at least 4000.
10896 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10897 dirpart=`AS_DIRNAME("$mf")`
10901 # Extract the definition of DEPDIR, am__include, and am__quote
10902 # from the Makefile without running `make'.
10903 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10904 test -z "$DEPDIR" && continue
10905 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10906 test -z "am__include" && continue
10907 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10908 # When using ansi2knr, U may be empty or an underscore; expand it
10909 U=`sed -n 's/^U = //p' < "$mf"`
10910 # Find all dependency output files, they are included files with
10911 # $(DEPDIR) in their names. We invoke sed twice because it is the
10912 # simplest approach to changing $(DEPDIR) to its actual value in the
10914 for file in `sed -n "
10915 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10916 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10917 # Make sure the directory exists.
10918 test -f "$dirpart/$file" && continue
10919 fdir=`AS_DIRNAME(["$file"])`
10920 AS_MKDIR_P([$dirpart/$fdir])
10921 # echo "creating $dirpart/$file"
10922 echo '# dummy' > "$dirpart/$file"
10926 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
10929 # AM_OUTPUT_DEPENDENCY_COMMANDS
10930 # -----------------------------
10931 # This macro should only be invoked once -- use via AC_REQUIRE.
10933 # This code is only required when automatic dependency tracking
10934 # is enabled. FIXME. This creates each `.P' file that we will
10935 # need in order to bootstrap the dependency handling code.
10936 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
10937 [AC_CONFIG_COMMANDS([depfiles],
10938 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
10939 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
10942 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
10943 # Free Software Foundation, Inc.
10945 # This file is free software; the Free Software Foundation
10946 # gives unlimited permission to copy and/or distribute it,
10947 # with or without modifications, as long as this notice is preserved.
10951 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
10952 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
10954 # Do all the work for Automake. -*- Autoconf -*-
10956 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
10957 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
10959 # This file is free software; the Free Software Foundation
10960 # gives unlimited permission to copy and/or distribute it,
10961 # with or without modifications, as long as this notice is preserved.
10965 # This macro actually does too much. Some checks are only needed if
10966 # your package does certain things. But this isn't really a big deal.
10968 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
10969 # AM_INIT_AUTOMAKE([OPTIONS])
10970 # -----------------------------------------------
10971 # The call with PACKAGE and VERSION arguments is the old style
10972 # call (pre autoconf-2.50), which is being phased out. PACKAGE
10973 # and VERSION should now be passed to AC_INIT and removed from
10974 # the call to AM_INIT_AUTOMAKE.
10975 # We support both call styles for the transition. After
10976 # the next Automake release, Autoconf can make the AC_INIT
10977 # arguments mandatory, and then we can depend on a new Autoconf
10978 # release and drop the old call support.
10979 AC_DEFUN([AM_INIT_AUTOMAKE],
10980 [AC_PREREQ([2.62])dnl
10981 dnl Autoconf wants to disallow AM_ names. We explicitly allow
10982 dnl the ones we care about.
10983 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
10984 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
10985 AC_REQUIRE([AC_PROG_INSTALL])dnl
10986 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10987 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10988 # is not polluted with repeated "-I."
10989 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
10990 # test to see if srcdir already configured
10991 if test -f $srcdir/config.status; then
10992 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
10996 # test whether we have cygpath
10997 if test -z "$CYGPATH_W"; then
10998 if (cygpath --version) >/dev/null 2>/dev/null; then
10999 CYGPATH_W='cygpath -w'
11004 AC_SUBST([CYGPATH_W])
11006 # Define the identity of the package.
11007 dnl Distinguish between old-style and new-style calls.
11009 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
11010 AC_SUBST([PACKAGE], [$1])dnl
11011 AC_SUBST([VERSION], [$2])],
11012 [_AM_SET_OPTIONS([$1])dnl
11013 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
11014 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
11015 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
11016 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
11017 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
11019 _AM_IF_OPTION([no-define],,
11020 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
11021 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
11023 # Some tools Automake needs.
11024 AC_REQUIRE([AM_SANITY_CHECK])dnl
11025 AC_REQUIRE([AC_ARG_PROGRAM])dnl
11026 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
11027 AM_MISSING_PROG(AUTOCONF, autoconf)
11028 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
11029 AM_MISSING_PROG(AUTOHEADER, autoheader)
11030 AM_MISSING_PROG(MAKEINFO, makeinfo)
11031 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
11032 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
11033 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
11034 # We need awk for the "check" target. The system "awk" is bad on
11036 AC_REQUIRE([AC_PROG_AWK])dnl
11037 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
11038 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
11039 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
11040 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
11041 [_AM_PROG_TAR([v7])])])
11042 _AM_IF_OPTION([no-dependencies],,
11043 [AC_PROVIDE_IFELSE([AC_PROG_CC],
11044 [_AM_DEPENDENCIES(CC)],
11045 [define([AC_PROG_CC],
11046 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
11047 AC_PROVIDE_IFELSE([AC_PROG_CXX],
11048 [_AM_DEPENDENCIES(CXX)],
11049 [define([AC_PROG_CXX],
11050 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
11051 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
11052 [_AM_DEPENDENCIES(OBJC)],
11053 [define([AC_PROG_OBJC],
11054 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
11056 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
11057 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
11058 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
11059 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
11060 AC_CONFIG_COMMANDS_PRE(dnl
11061 [m4_provide_if([_AM_COMPILER_EXEEXT],
11062 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
11065 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
11066 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
11067 dnl mangled by Autoconf and run in a shell conditional statement.
11068 m4_define([_AC_COMPILER_EXEEXT],
11069 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
11072 # When config.status generates a header, we must update the stamp-h file.
11073 # This file resides in the same directory as the config header
11074 # that is generated. The stamp files are numbered to have different names.
11076 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
11077 # loop where config.status creates the headers, so we can generate
11078 # our stamp files there.
11079 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
11080 [# Compute $1's index in $config_headers.
11083 for _am_header in $config_headers :; do
11084 case $_am_header in
11085 $_am_arg | $_am_arg:* )
11088 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11091 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
11093 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
11096 # This file is free software; the Free Software Foundation
11097 # gives unlimited permission to copy and/or distribute it,
11098 # with or without modifications, as long as this notice is preserved.
11102 # AM_PROG_INSTALL_SH
11103 # ------------------
11104 # Define $install_sh.
11105 AC_DEFUN([AM_PROG_INSTALL_SH],
11106 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
11107 if test x"${install_sh}" != xset; then
11108 case $am_aux_dir in
11110 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11112 install_sh="\${SHELL} $am_aux_dir/install-sh"
11115 AC_SUBST(install_sh)])
11117 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
11119 # This file is free software; the Free Software Foundation
11120 # gives unlimited permission to copy and/or distribute it,
11121 # with or without modifications, as long as this notice is preserved.
11125 # Check whether the underlying file-system supports filenames
11126 # with a leading dot. For instance MS-DOS doesn't.
11127 AC_DEFUN([AM_SET_LEADING_DOT],
11128 [rm -rf .tst 2>/dev/null
11129 mkdir .tst 2>/dev/null
11130 if test -d .tst; then
11135 rmdir .tst 2>/dev/null
11136 AC_SUBST([am__leading_dot])])
11138 # Check to see how 'make' treats includes. -*- Autoconf -*-
11140 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
11142 # This file is free software; the Free Software Foundation
11143 # gives unlimited permission to copy and/or distribute it,
11144 # with or without modifications, as long as this notice is preserved.
11148 # AM_MAKE_INCLUDE()
11149 # -----------------
11150 # Check to see how make treats includes.
11151 AC_DEFUN([AM_MAKE_INCLUDE],
11152 [am_make=${MAKE-make}
11153 cat > confinc << 'END'
11155 @echo this is the am__doit target
11158 # If we don't find an include directive, just comment out the code.
11159 AC_MSG_CHECKING([for style of include used by $am_make])
11163 # First try GNU make style include.
11164 echo "include confinc" > confmf
11165 # Ignore all kinds of additional output from `make'.
11166 case `$am_make -s -f confmf 2> /dev/null` in #(
11167 *the\ am__doit\ target*)
11168 am__include=include
11173 # Now try BSD make style include.
11174 if test "$am__include" = "#"; then
11175 echo '.include "confinc"' > confmf
11176 case `$am_make -s -f confmf 2> /dev/null` in #(
11177 *the\ am__doit\ target*)
11178 am__include=.include
11184 AC_SUBST([am__include])
11185 AC_SUBST([am__quote])
11186 AC_MSG_RESULT([$_am_result])
11187 rm -f confinc confmf
11190 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
11192 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
11193 # Free Software Foundation, Inc.
11195 # This file is free software; the Free Software Foundation
11196 # gives unlimited permission to copy and/or distribute it,
11197 # with or without modifications, as long as this notice is preserved.
11201 # AM_MISSING_PROG(NAME, PROGRAM)
11202 # ------------------------------
11203 AC_DEFUN([AM_MISSING_PROG],
11204 [AC_REQUIRE([AM_MISSING_HAS_RUN])
11205 $1=${$1-"${am_missing_run}$2"}
11209 # AM_MISSING_HAS_RUN
11210 # ------------------
11211 # Define MISSING if not defined so far and test if it supports --run.
11212 # If it does, set am_missing_run to use it, otherwise, to nothing.
11213 AC_DEFUN([AM_MISSING_HAS_RUN],
11214 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
11215 AC_REQUIRE_AUX_FILE([missing])dnl
11216 if test x"${MISSING+set}" != xset; then
11217 case $am_aux_dir in
11219 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11221 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11224 # Use eval to expand $SHELL
11225 if eval "$MISSING --run true"; then
11226 am_missing_run="$MISSING --run "
11229 AC_MSG_WARN([`missing' script is too old or missing])
11233 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
11236 # This file is free software; the Free Software Foundation
11237 # gives unlimited permission to copy and/or distribute it,
11238 # with or without modifications, as long as this notice is preserved.
11244 # Check for `mkdir -p'.
11245 AC_DEFUN([AM_PROG_MKDIR_P],
11246 [AC_PREREQ([2.60])dnl
11247 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
11248 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
11249 dnl while keeping a definition of mkdir_p for backward compatibility.
11250 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
11251 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
11252 dnl Makefile.ins that do not define MKDIR_P, so we do our own
11253 dnl adjustment using top_builddir (which is defined more often than
11255 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
11257 [[\\/$]]* | ?:[[\\/]]*) ;;
11258 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11262 # Helper functions for option handling. -*- Autoconf -*-
11264 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
11267 # This file is free software; the Free Software Foundation
11268 # gives unlimited permission to copy and/or distribute it,
11269 # with or without modifications, as long as this notice is preserved.
11273 # _AM_MANGLE_OPTION(NAME)
11274 # -----------------------
11275 AC_DEFUN([_AM_MANGLE_OPTION],
11276 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
11278 # _AM_SET_OPTION(NAME)
11279 # --------------------
11280 # Set option NAME. Presently that only means defining a flag for this option.
11281 AC_DEFUN([_AM_SET_OPTION],
11282 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
11284 # _AM_SET_OPTIONS(OPTIONS)
11285 # ------------------------
11286 # OPTIONS is a space-separated list of Automake options.
11287 AC_DEFUN([_AM_SET_OPTIONS],
11288 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
11290 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
11291 # -------------------------------------------
11292 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
11293 AC_DEFUN([_AM_IF_OPTION],
11294 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
11296 # Check to make sure that the build environment is sane. -*- Autoconf -*-
11298 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
11299 # Free Software Foundation, Inc.
11301 # This file is free software; the Free Software Foundation
11302 # gives unlimited permission to copy and/or distribute it,
11303 # with or without modifications, as long as this notice is preserved.
11309 AC_DEFUN([AM_SANITY_CHECK],
11310 [AC_MSG_CHECKING([whether build environment is sane])
11313 echo timestamp > conftest.file
11314 # Reject unsafe characters in $srcdir or the absolute working directory
11315 # name. Accept space and tab only in the latter.
11319 *[[\\\"\#\$\&\'\`$am_lf]]*)
11320 AC_MSG_ERROR([unsafe absolute working directory name]);;
11323 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
11324 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
11327 # Do `set' in a subshell so we don't clobber the current shell's
11328 # arguments. Must try -L first in case configure is actually a
11329 # symlink; some systems play weird games with the mod time of symlinks
11330 # (eg FreeBSD returns the mod time of the symlink's containing
11333 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11334 if test "$[*]" = "X"; then
11336 set X `ls -t "$srcdir/configure" conftest.file`
11338 rm -f conftest.file
11339 if test "$[*]" != "X $srcdir/configure conftest.file" \
11340 && test "$[*]" != "X conftest.file $srcdir/configure"; then
11342 # If neither matched, then we have a broken ls. This can happen
11343 # if, for instance, CONFIG_SHELL is bash and it inherits a
11344 # broken ls alias from the environment. This has actually
11345 # happened. Such a system could not be considered "sane".
11346 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
11347 alias in your environment])
11350 test "$[2]" = conftest.file
11356 AC_MSG_ERROR([newly created file is older than distributed files!
11357 Check your system clock])
11359 AC_MSG_RESULT(yes)])
11361 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
11363 # This file is free software; the Free Software Foundation
11364 # gives unlimited permission to copy and/or distribute it,
11365 # with or without modifications, as long as this notice is preserved.
11369 # AM_SILENT_RULES([DEFAULT])
11370 # --------------------------
11371 # Enable less verbose build rules; with the default set to DEFAULT
11372 # (`yes' being less verbose, `no' or empty being verbose).
11373 AC_DEFUN([AM_SILENT_RULES],
11374 [AC_ARG_ENABLE([silent-rules],
11375 [ --enable-silent-rules less verbose build output (undo: `make V=1')
11376 --disable-silent-rules verbose build output (undo: `make V=0')])
11377 case $enable_silent_rules in
11378 yes) AM_DEFAULT_VERBOSITY=0;;
11379 no) AM_DEFAULT_VERBOSITY=1;;
11380 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
11383 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
11384 dnl do not support nested variable expansions.
11385 dnl See automake bug#9928 and bug#10237.
11386 am_make=${MAKE-make}
11387 AC_CACHE_CHECK([whether $am_make supports nested variables],
11388 [am_cv_make_support_nested_variables],
11389 [if AS_ECHO([['TRUE=$(BAR$(V))
11395 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
11396 am_cv_make_support_nested_variables=yes
11398 am_cv_make_support_nested_variables=no
11400 if test $am_cv_make_support_nested_variables = yes; then
11401 dnl Using `$V' instead of `$(V)' breaks IRIX make.
11403 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11405 AM_V=$AM_DEFAULT_VERBOSITY
11406 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11408 AC_SUBST([AM_V])dnl
11409 AM_SUBST_NOTMAKE([AM_V])dnl
11410 AC_SUBST([AM_DEFAULT_V])dnl
11411 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
11412 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
11414 AC_SUBST([AM_BACKSLASH])dnl
11415 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
11418 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
11420 # This file is free software; the Free Software Foundation
11421 # gives unlimited permission to copy and/or distribute it,
11422 # with or without modifications, as long as this notice is preserved.
11426 # AM_PROG_INSTALL_STRIP
11427 # ---------------------
11428 # One issue with vendor `install' (even GNU) is that you can't
11429 # specify the program used to strip binaries. This is especially
11430 # annoying in cross-compiling environments, where the build's strip
11431 # is unlikely to handle the host's binaries.
11432 # Fortunately install-sh will honor a STRIPPROG variable, so we
11433 # always use install-sh in `make install-strip', and initialize
11434 # STRIPPROG with the value of the STRIP variable (set by the user).
11435 AC_DEFUN([AM_PROG_INSTALL_STRIP],
11436 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
11437 # Installed binaries are usually stripped using `strip' when the user
11438 # run `make install-strip'. However `strip' might not be the right
11439 # tool to use in cross-compilation environments, therefore Automake
11440 # will honor the `STRIP' environment variable to overrule this program.
11441 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
11442 if test "$cross_compiling" != no; then
11443 AC_CHECK_TOOL([STRIP], [strip], :)
11445 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11446 AC_SUBST([INSTALL_STRIP_PROGRAM])])
11448 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
11450 # This file is free software; the Free Software Foundation
11451 # gives unlimited permission to copy and/or distribute it,
11452 # with or without modifications, as long as this notice is preserved.
11456 # _AM_SUBST_NOTMAKE(VARIABLE)
11457 # ---------------------------
11458 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
11459 # This macro is traced by Automake.
11460 AC_DEFUN([_AM_SUBST_NOTMAKE])
11462 # AM_SUBST_NOTMAKE(VARIABLE)
11463 # --------------------------
11464 # Public sister of _AM_SUBST_NOTMAKE.
11465 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
11467 # Check how to create a tarball. -*- Autoconf -*-
11469 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
11471 # This file is free software; the Free Software Foundation
11472 # gives unlimited permission to copy and/or distribute it,
11473 # with or without modifications, as long as this notice is preserved.
11477 # _AM_PROG_TAR(FORMAT)
11478 # --------------------
11479 # Check how to create a tarball in format FORMAT.
11480 # FORMAT should be one of `v7', `ustar', or `pax'.
11482 # Substitute a variable $(am__tar) that is a command
11483 # writing to stdout a FORMAT-tarball containing the directory
11485 # tardir=directory && $(am__tar) > result.tar
11487 # Substitute a variable $(am__untar) that extract such
11488 # a tarball read from stdin.
11489 # $(am__untar) < result.tar
11490 AC_DEFUN([_AM_PROG_TAR],
11491 [# Always define AMTAR for backward compatibility. Yes, it's still used
11492 # in the wild :-( We should find a proper way to deprecate it ...
11493 AC_SUBST([AMTAR], ['$${TAR-tar}'])
11495 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
11496 [m4_case([$1], [ustar],, [pax],,
11497 [m4_fatal([Unknown tar format])])
11498 AC_MSG_CHECKING([how to create a $1 tar archive])
11499 # Loop over all known methods to create a tar archive until one works.
11500 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
11501 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
11502 # Do not fold the above two line into one, because Tru64 sh and
11503 # Solaris sh will not grok spaces in the rhs of `-'.
11504 for _am_tool in $_am_tools
11508 for _am_tar in tar gnutar gtar;
11510 AM_RUN_LOG([$_am_tar --version]) && break
11512 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
11513 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
11514 am__untar="$_am_tar -xf -"
11517 # Must skip GNU tar: if it does not support --format= it doesn't create
11518 # ustar tarball either.
11519 (tar --version) >/dev/null 2>&1 && continue
11520 am__tar='tar chf - "$$tardir"'
11521 am__tar_='tar chf - "$tardir"'
11522 am__untar='tar xf -'
11525 am__tar='pax -L -x $1 -w "$$tardir"'
11526 am__tar_='pax -L -x $1 -w "$tardir"'
11530 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
11531 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
11532 am__untar='cpio -i -H $1 -d'
11541 # If the value was cached, stop now. We just wanted to have am__tar
11542 # and am__untar set.
11543 test -n "${am_cv_prog_tar_$1}" && break
11545 # tar/untar a dummy directory, and stop if the command works
11546 rm -rf conftest.dir
11548 echo GrepMe > conftest.dir/file
11549 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
11550 rm -rf conftest.dir
11551 if test -s conftest.tar; then
11552 AM_RUN_LOG([$am__untar <conftest.tar])
11553 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
11556 rm -rf conftest.dir
11558 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
11559 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
11560 AC_SUBST([am__tar])
11561 AC_SUBST([am__untar])