revert - we will store them in a common (AROS) location.
[AROS-Contrib.git] / gfx / libs / pixman / aclocal.m4
blobef1948a5cadd10df04506f1c841c355fc846a587
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,
5 # Inc.
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
13 # PARTICULAR PURPOSE.
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
27 #                 Foundation, Inc.
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
37 #                 Foundation, Inc.
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],
69          [],
70          [m4_define([AC_PROVIDE_IFELSE],
71                  [m4_ifdef([AC_PROVIDE_$1],
72                            [$2], [$3])])])
75 # AC_PROG_LIBTOOL
76 # ---------------
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],
82     [AC_LIBTOOL_CXX],
83     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
84   ])])
85 dnl And a similar setup for Fortran 77 support
86   AC_PROVIDE_IFELSE([AC_PROG_F77],
87     [AC_LIBTOOL_F77],
88     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
89 ])])
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],
95     [AC_LIBTOOL_GCJ],
96     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
97       [AC_LIBTOOL_GCJ],
98       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
99         [AC_LIBTOOL_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
110 # _AC_PROG_LIBTOOL
111 # ----------------
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'
123 AC_SUBST(LIBTOOL)dnl
125 # Prevent multiple expansion
126 define([AC_PROG_LIBTOOL], [])
127 ])# _AC_PROG_LIBTOOL
130 # AC_LIBTOOL_SETUP
131 # ----------------
132 AC_DEFUN([AC_LIBTOOL_SETUP],
133 [AC_PREREQ(2.50)dnl
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
180 case $host_os in
181 aix3*)
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
186     COLLECT_NAMES=
187     export COLLECT_NAMES
188   fi
189   ;;
190 esac
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'
207 # Constants:
208 rm="rm -f"
210 # Global variables:
211 default_ofile=libtool
212 can_build_shared=yes
214 # All known linkers require a `.a' archive for static linking (except MSVC,
215 # which needs '.lib').
216 libext=a
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, :)
225 old_CC="$CC"
226 old_CFLAGS="$CFLAGS"
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
252   case $host_os in
253   openbsd*)
254     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
255     ;;
256   *)
257     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
258     ;;
259   esac
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
267 file_magic*)
268   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
269     AC_PATH_MAGIC
270   fi
271   ;;
272 esac
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
285 AC_ARG_WITH([pic],
286     [AC_HELP_STRING([--with-pic],
287         [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
288     [pic_mode="$withval"],
289     [pic_mode=default])
290 test -z "$pic_mode" && pic_mode=default
292 # Use C for the default configuration in the libtool script
293 tagname=
294 AC_LIBTOOL_LANG_C_CONFIG
295 _LT_AC_TAGCONFIG
296 ])# AC_LIBTOOL_SETUP
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
322 # Initialize.
323 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
326 # The HP-UX ksh and POSIX shell print the target directory to stdout
327 # if CDPATH is set.
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
334 LTCC='$LTCC'
335 LTCFLAGS='$LTCFLAGS'
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
342 \$[]1
343 _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\\"\\\`\\\\\\""
352       ;;
353     *)
354       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
355       ;;
356     esac
357 done
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\\"\\\`\\\\\\""
365       ;;
366     *)
367       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
368       ;;
369     esac
370 done
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
389 [lt_write_fail=0
390 cat >$1 <<_ASEOF || lt_write_fail=1
391 #! $SHELL
392 # Generated by $as_me.
394 SHELL=\${CONFIG_SHELL-$SHELL}
395 export SHELL
396 _ASEOF
397 cat >>$1 <<\_ASEOF || lt_write_fail=1
398 AS_SHELL_SANITIZE
399 _AS_PREPARE
400 exec AS_MESSAGE_FD>&1
401 _ASEOF
402 test $lt_write_fail = 0 && chmod +x $1[]dnl
403 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
405 # LT_OUTPUT
406 # ---------
407 # This macro allows early generation of the libtool script (before
408 # AC_OUTPUT is called), incase it is used in configure for compilation
409 # tests.
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
417 lt_cl_silent=false
418 exec AS_MESSAGE_LOG_FD>>config.log
420   echo
421   AS_BOX([Running $as_me.])
422 } >&AS_MESSAGE_LOG_FD
424 lt_cl_help="\
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
427 generated.
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>."
438 lt_cl_version="\
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."
447 while test $[#] != 0
449   case $[1] in
450     --version | --v* | -V )
451       echo "$lt_cl_version"; exit 0 ;;
452     --help | --h* | -h )
453       echo "$lt_cl_help"; exit 0 ;;
454     --debug | --d* | -d )
455       debug=: ;;
456     --quiet | --q* | --silent | --s* | -q )
457       lt_cl_silent=: ;;
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.]) ;;
464   esac
465   shift
466 done
468 if $lt_cl_silent; then
469   exec AS_MESSAGE_FD>/dev/null
471 _LTEOF
473 cat >>"$CONFIG_LT" <<_LTEOF
474 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
475 _LTEOF
477 cat >>"$CONFIG_LT" <<\_LTEOF
478 AC_MSG_NOTICE([creating $ofile])
479 _LT_OUTPUT_LIBTOOL_COMMANDS
480 AS_EXIT(0)
481 _LTEOF
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.
488 lt_cl_success=:
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)
495 ])# LT_OUTPUT
498 # _LT_CONFIG(TAG)
499 # ---------------
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
512       setopt NO_GLOB_SUBST
513     fi
515     cfgfile="${ofile}T"
516     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
517     $RM "$cfgfile"
519     cat <<_LT_EOF >> "$cfgfile"
520 #! $SHELL
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.
527 _LT_COPYING
528 _LT_LIBTOOL_TAGS
530 # ### BEGIN LIBTOOL CONFIG
531 _LT_LIBTOOL_CONFIG_VARS
532 _LT_LIBTOOL_TAG_VARS
533 # ### END LIBTOOL CONFIG
535 _LT_EOF
537   case $host_os in
538   aix3*)
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
544   COLLECT_NAMES=
545   export COLLECT_NAMES
547 _LT_EOF
548     ;;
549   esac
551   _LT_PROG_LTMAIN
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")
564   chmod +x "$ofile"
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
573 _LT_EOF
574 ])dnl /m4_if
576 [m4_if([$1], [], [
577     PACKAGE='$PACKAGE'
578     VERSION='$VERSION'
579     TIMESTAMP='$TIMESTAMP'
580     RM='$RM'
581     ofile='$ofile'], [])
582 ])dnl /_LT_CONFIG_SAVE_COMMANDS
583 ])# _LT_CONFIG
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], [])
599 # LT_LANG(LANG)
600 # -------------
601 # Enable libtool support for the given language if not already enabled.
602 AC_DEFUN([LT_LANG],
603 [AC_BEFORE([$0], [LT_OUTPUT])dnl
604 m4_case([$1],
605   [C],                  [_LT_LANG(C)],
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],
613     [_LT_LANG($1)],
614     [m4_fatal([$0: unsupported language: "$1"])])])dnl
615 ])# LT_LANG
618 # _LT_LANG(LANGNAME)
619 # ------------------
620 m4_defun([_LT_LANG],
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
626 ])# _LT_LANG
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],
635 [AC_LANG_PUSH(Go)dnl
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])
643   fi
645 if test -z "$GOC"; then
646   AC_CHECK_PROG(GOC, gccgo, gccgo, false)
648 ])#m4_defun
649 ])#m4_ifndef
652 # _LT_LANG_DEFAULT_CONFIG
653 # -----------------------
654 m4_defun([_LT_LANG_DEFAULT_CONFIG],
655 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
656   [LT_LANG(CXX)],
657   [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
659 AC_PROVIDE_IFELSE([AC_PROG_F77],
660   [LT_LANG(F77)],
661   [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
663 AC_PROVIDE_IFELSE([AC_PROG_FC],
664   [LT_LANG(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],
670   [LT_LANG(GCJ)],
671   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
672     [LT_LANG(GCJ)],
673     [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
674       [LT_LANG(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],
683   [LT_LANG(GO)],
684   [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
686 AC_PROVIDE_IFELSE([LT_PROG_RC],
687   [LT_LANG(RC)],
688   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
689 ])# _LT_LANG_DEFAULT_CONFIG
691 # Obsolete macros:
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], [])
705 # _LT_TAG_COMPILER
706 # ----------------
707 m4_defun([_LT_TAG_COMPILER],
708 [AC_REQUIRE([AC_PROG_CC])dnl
710 # If no C compiler was specified, use CC.
711 LTCC=${LTCC-"$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.
717 compiler=$CC
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
726   case $cc_temp in
727     compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
728     distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
729     \-*) ;;
730     *) break;;
731   esac
732 done
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`
747 $rm conftest*
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`
761 $rm -r conftest*
762 ])# _LT_LINKER_BOILERPLATE
764 # _LT_REQUIRED_DARWIN_CHECKS
765 # --------------------------
766 # Check for some things on darwin
767 AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
768   case $host_os in
769     rhapsody* | darwin*)
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
779         # link flags.
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
786         _lt_result=$?
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
795         else
796           cat conftest.err >&AS_MESSAGE_LOG_FD
797         fi
798         rm -rf libconftest.dylib*
799         rm -f conftest.*
800       fi])
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"
812     ])
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;}
818 _LT_EOF
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;}
827 _LT_EOF
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
830       _lt_result=$?
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
835       else
836         cat conftest.err >&AS_MESSAGE_LOG_FD
837       fi
838         rm -f conftest.err libconftest.a conftest conftest.c
839         rm -rf conftest.dSYM
840     ])
841     case $host_os in
842     rhapsody* | darwin1.[[0123]])
843       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
844     darwin1.*)
845      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
846     darwin*)
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' ;;
853    10.[[012]]*)
854      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
855    10.*)
856      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
857       esac
858     ;;
859   esac
860     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
861       _lt_dar_single_mod='$single_module'
862     fi
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'
865     else
866       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
867     fi
868     if test "$DSYMUTIL" != ":"; then
869       _lt_dsymutil="~$DSYMUTIL \$lib || :"
870     else
871       _lt_dsymutil=
872     fi
873     ;;
874   esac
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])
892   else
893     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
894   fi
895   _LT_TAGVAR(link_all_deplibs, $1)=yes
896   _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
897   case $cc_basename in
898      ifort*) _lt_dar_can_shared=yes ;;
899      *) _lt_dar_can_shared=$GCC ;;
900   esac
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}"
907     m4_if([$1], [CXX],
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}"
911     fi
912 ],[])
913   else
914   _LT_TAGVAR(ld_shlibs, $1)=no
915   fi
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
932 else
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/,/^$/ {
937           /^0/ {
938               s/^0  *\([^ ]*\) *$/\1/
939               p
940           }
941       }]'
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"`
946   fi],[])
947   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
948     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
949   fi
950   ])
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)])
963 AC_DIVERT_POP
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],
972 [_LT_AC_SHELL_INIT([
973 # Check that we are running under the correct shell.
974 SHELL=${CONFIG_SHELL-/bin/sh}
976 case X$ECHO in
977 X*--fallback-echo)
978   # Remove one level of quotation (which was required for Make).
979   ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
980   ;;
981 esac
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
987   ECHO='print -r --'
988 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
989   ECHO='printf %s\n'
990 else
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
997   shift
998   cat <<EOF
999 [$]*
1001   exit 0
1004 # The HP-UX ksh and POSIX shell print the target directory to stdout
1005 # if CDPATH is set.
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
1016     then
1017       break
1018     fi
1019   done
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
1025   :
1026 else
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'
1030   #
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
1035     IFS="$lt_save_ifs"
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
1040       echo="$dir/echo"
1041       break
1042     fi
1043   done
1044   IFS="$lt_save_ifs"
1046 # _LT_WITH_SYSROOT
1047 # ----------------
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.
1057 lt_sysroot=
1058 case ${with_sysroot} in #(
1059  yes)
1060    if test "$GCC" = yes; then
1061      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1062    fi
1063    ;; #(
1064  /*)
1065    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1066    ;; #(
1067  no|'')
1068    ;; #(
1069  *)
1070    AC_MSG_RESULT([${with_sysroot}])
1071    AC_MSG_ERROR([The sysroot must be an absolute path.])
1072    ;;
1073 esac
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.])])
1079 # _LT_ENABLE_LOCK
1080 # ---------------
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
1088 # libtool support.
1089 case $host in
1090 ia64-*-hpux*)
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
1095     *ELF-32*)
1096       HPUX_IA64_MODE="32"
1097       ;;
1098     *ELF-64*)
1099       HPUX_IA64_MODE="64"
1100       ;;
1101     esac
1102   fi
1103   rm -rf conftest*
1104   ;;
1105 *-*-irix6*)
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
1111     *32-bit*)
1112       LD="${LD-ld} -melf32bsmip"
1113       ;;
1114     *N32*)
1115       LD="${LD-ld} -melf32bmipn32"
1116       ;;
1117     *64-bit*)
1118       LD="${LD-ld} -melf64bmip"
1119       ;;
1120     esac
1121    else
1122     case `/usr/bin/file conftest.$ac_objext` in
1123     *32-bit*)
1124       LD="${LD-ld} -32"
1125       ;;
1126     *N32*)
1127       LD="${LD-ld} -n32"
1128       ;;
1129     *64-bit*)
1130       LD="${LD-ld} -64"
1131       ;;
1132     esac
1133    fi
1134   fi
1135   rm -rf conftest*
1136   ;;
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
1144     *32-bit*)
1145       case $host in
1146         x86_64-*kfreebsd*-gnu)
1147           LD="${LD-ld} -m elf_i386_fbsd"
1148           ;;
1149         x86_64-*linux*)
1150           LD="${LD-ld} -m elf_i386"
1151           ;;
1152         ppc64-*linux*|powerpc64-*linux*)
1153           LD="${LD-ld} -m elf32ppclinux"
1154           ;;
1155         s390x-*linux*)
1156           LD="${LD-ld} -m elf_s390"
1157           ;;
1158         sparc64-*linux*)
1159           LD="${LD-ld} -m elf32_sparc"
1160           ;;
1161       esac
1162       ;;
1163     *64-bit*)
1164       libsuff=64
1165       case $host in
1166         x86_64-*kfreebsd*-gnu)
1167           LD="${LD-ld} -m elf_x86_64_fbsd"
1168           ;;
1169         x86_64-*linux*)
1170           LD="${LD-ld} -m elf_x86_64"
1171           ;;
1172         ppc*-*linux*|powerpc*-*linux*)
1173           LD="${LD-ld} -m elf64ppc"
1174           ;;
1175         s390*-*linux*)
1176           LD="${LD-ld} -m elf64_s390"
1177           ;;
1178         sparc*-*linux*)
1179           LD="${LD-ld} -m elf64_sparc"
1180           ;;
1181       esac
1182       ;;
1183     esac
1184   fi
1185   rm -rf conftest*
1186   ;;
1188 *-*-sco3.2v5*)
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,
1193     [AC_LANG_PUSH(C)
1194      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1195      AC_LANG_POP])
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"
1199   fi
1200   ;;
1201 *-*solaris*)
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
1206     *64-bit*)
1207       case $lt_cv_prog_gnu_ld in
1208       yes*)
1209         case $host in
1210         i?86-*-solaris*)
1211           LD="${LD-ld} -m elf_x86_64"
1212           ;;
1213         sparc*-*-solaris*)
1214           LD="${LD-ld} -m elf64_sparc"
1215           ;;
1216         esac
1217         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
1218         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1219           LD="${LD-ld}_sol2"
1220         fi
1221         ;;
1222       *)
1223         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1224           LD="${LD-ld} -64"
1225         fi
1226         ;;
1227       esac
1228       ;;
1229     esac
1230   fi
1231   rm -rf conftest*
1232   ;;
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)
1239   ;;
1240   ])
1241 esac
1243 need_locks="$enable_libtool_lock"
1245 ])# _LT_AC_LOCK
1247 # _LT_PROG_AR
1248 # -----------
1249 m4_defun([_LT_PROG_AR],
1250 [AC_CHECK_TOOLS(AR, [ar], false)
1251 : ${AR=ar}
1252 : ${AR_FLAGS=cru}
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
1267           lt_cv_ar_at_file=@
1268         fi
1269       fi
1270       rm -f conftest.* libconftest.a
1271      ])
1272   ])
1274 if test "x$lt_cv_ar_at_file" = xno; then
1275   archiver_list_spec=
1276 else
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])
1281 ])# _LT_PROG_AR
1284 # _LT_CMD_OLD_ARCHIVE
1285 # -------------------
1286 m4_defun([_LT_CMD_OLD_ARCHIVE],
1287 [_LT_PROG_AR
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
1304   case $host_os in
1305   openbsd*)
1306     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1307     ;;
1308   *)
1309     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1310     ;;
1311   esac
1312   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1315 case $host_os in
1316   darwin*)
1317     lock_old_archive_extraction=yes ;;
1318   *)
1319     lock_old_archive_extraction=no ;;
1320 esac
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],
1337   [$2=no
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)
1352    ac_status=$?
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
1361        $2=yes
1362      fi
1363    fi
1364    $rm conftest*
1367 if test x"[$]$2" = xyes; then
1368     ifelse([$5], , :, [$5])
1369 else
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],
1382   [$2=no
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
1395          $2=yes
1396        fi
1397      else
1398        $2=yes
1399      fi
1400    fi
1401    $rm -r conftest*
1402    LDFLAGS="$save_LDFLAGS"
1405 if test x"[$]$2" = xyes; then
1406     ifelse([$4], , :, [$4])
1407 else
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
1419   i=0
1420   teststring="ABCD"
1422   case $build_os in
1423   msdosdjgpp*)
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
1429     ;;
1431   gnu*)
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;
1436     ;;
1438   cygwin* | mingw*)
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;
1447     ;;
1449   amigaos*)
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;
1453     ;;
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`
1461     else
1462       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
1463     fi
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`
1467     ;;
1469   interix*)
1470     # We know the value 262144 and hardcode it with a safety zone (like BSD)
1471     lt_cv_sys_max_cmd_len=196608
1472     ;;
1474   os2*)
1475     # The test takes a long time on OS/2.
1476     lt_cv_sys_max_cmd_len=8192
1477     ;;
1479   osf*)
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
1485     #
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 ;;
1489       esac
1490     fi
1491     ;;
1492   sco3.2v5*)
1493     lt_cv_sys_max_cmd_len=102400
1494     ;;
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/.*[[        ]]//'`
1499     else
1500       lt_cv_sys_max_cmd_len=32768
1501     fi
1502     ;;
1503   *)
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`
1508     else
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
1512       # we can't tell.
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
1516       do
1517         i=`expr $i + 1`
1518         teststring=$teststring$teststring
1519       done
1520       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`
1525     fi
1526     ;;
1527   esac
1529 if test -n $lt_cv_sys_max_cmd_len ; then
1530   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1531 else
1532   AC_MSG_RESULT(none)
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 :
1550   [$4]
1551 else
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"
1558 #if HAVE_DLFCN_H
1559 #include <dlfcn.h>
1560 #endif
1562 #include <stdio.h>
1564 #ifdef RTLD_GLOBAL
1565 #  define LT_DLGLOBAL           RTLD_GLOBAL
1566 #else
1567 #  ifdef DL_GLOBAL
1568 #    define LT_DLGLOBAL         DL_GLOBAL
1569 #  else
1570 #    define LT_DLGLOBAL         0
1571 #  endif
1572 #endif
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
1577 #  ifdef RTLD_LAZY
1578 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
1579 #  else
1580 #    ifdef DL_LAZY
1581 #      define LT_DLLAZY_OR_NOW          DL_LAZY
1582 #    else
1583 #      ifdef RTLD_NOW
1584 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
1585 #      else
1586 #        ifdef DL_NOW
1587 #          define LT_DLLAZY_OR_NOW      DL_NOW
1588 #        else
1589 #          define LT_DLLAZY_OR_NOW      0
1590 #        endif
1591 #      endif
1592 #    endif
1593 #  endif
1594 #endif
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")));
1600 #endif
1602 int fnord () { return 42; }
1603 int main ()
1605   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1606   int status = $lt_dlunknown;
1608   if (self)
1609     {
1610       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1611       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1612       /* dlclose (self); */
1613     }
1614   else
1615     puts (dlerror ());
1617     exit (status);
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
1622     lt_status=$?
1623     case x$lt_status in
1624       x$lt_dlno_uscore) $1 ;;
1625       x$lt_dlneed_uscore) $2 ;;
1626       x$lt_dlunknown|x*) $3 ;;
1627     esac
1628   else :
1629     # compilation failed
1630     $3
1631   fi
1633 rm -fr conftest*
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
1645 else
1646   lt_cv_dlopen=no
1647   lt_cv_dlopen_libs=
1649   case $host_os in
1650   beos*)
1651     lt_cv_dlopen="load_add_on"
1652     lt_cv_dlopen_libs=
1653     lt_cv_dlopen_self=yes
1654     ;;
1656   mingw* | pw32*)
1657     lt_cv_dlopen="LoadLibrary"
1658     lt_cv_dlopen_libs=
1659    ;;
1661   cygwin*)
1662     lt_cv_dlopen="dlopen"
1663     lt_cv_dlopen_libs=
1664    ;;
1666   darwin*)
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"],[
1670     lt_cv_dlopen="dyld"
1671     lt_cv_dlopen_libs=
1672     lt_cv_dlopen_self=yes
1673     ])
1674    ;;
1676   *)
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"])
1689               ])
1690             ])
1691           ])
1692         ])
1693       ])
1694     ;;
1695   esac
1697   if test "x$lt_cv_dlopen" != xno; then
1698     enable_dlopen=yes
1699   else
1700     enable_dlopen=no
1701   fi
1703   case $lt_cv_dlopen in
1704   dlopen)
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\"
1711     save_LIBS="$LIBS"
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)
1719     ])
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)
1728       ])
1729     fi
1731     CPPFLAGS="$save_CPPFLAGS"
1732     LDFLAGS="$save_LDFLAGS"
1733     LIBS="$save_LIBS"
1734     ;;
1735   esac
1737   case $lt_cv_dlopen_self in
1738   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1739   *) enable_dlopen_self=unknown ;;
1740   esac
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 ;;
1745   esac
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
1760    mkdir conftest
1761    cd conftest
1762    mkdir out
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)
1776    ac_status=$?
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
1780    then
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
1787      fi
1788    fi
1789    chmod u+w . 2>&AS_MESSAGE_LOG_FD
1790    $rm conftest*
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
1795    cd ..
1796    rmdir conftest
1797    $rm conftest*
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])
1812   hard_links=yes
1813   $rm conftest*
1814   ln conftest.a conftest.b 2>/dev/null && hard_links=no
1815   touch conftest.a
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])
1821     need_locks=warn
1822   fi
1823 else
1824   need_locks=no
1826 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1829 # AC_LIBTOOL_OBJDIR
1830 # -----------------
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
1836   lt_cv_objdir=.libs
1837 else
1838   # MS-DOS does not allow filenames that begin with a dot.
1839   lt_cv_objdir=_libs
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
1865   else
1866     # We can link without hardcoding, and we can hardcode nonexisting dirs.
1867     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1868   fi
1869 else
1870   # We cannot hardcode anything, or else we can only hardcode existing
1871   # directories.
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],
1890 [striplib=
1891 old_striplib=
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])
1897 else
1898 # FIXME - insert some real tests, host_os isn't really good enough
1899   case $host_os in
1900    darwin*)
1901        if test -n "$STRIP" ; then
1902          striplib="$STRIP -x"
1903          old_striplib="$STRIP -S"
1904          AC_MSG_RESULT([yes])
1905        else
1906   AC_MSG_RESULT([no])
1908        ;;
1909    *)
1910   AC_MSG_RESULT([no])
1911     ;;
1912   esac
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])
1923 library_names_spec=
1924 libname_spec='lib$name'
1925 soname_spec=
1926 shrext_cmds=".so"
1927 postinstall_cmds=
1928 postuninstall_cmds=
1929 finish_cmds=
1930 finish_eval=
1931 shlibpath_var=
1932 shlibpath_overrides_runpath=unknown
1933 version_type=none
1934 dynamic_linker="$host_os ld.so"
1935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1936 m4_if($1,[],[
1937 if test "$GCC" = yes; then
1938   case $host_os in
1939     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1940     *) lt_awk_arg="/^libraries:/" ;;
1941   esac
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'`
1949   else
1950     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1951   fi
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"
1959     else
1960       test -d "$lt_sys_path" && \
1961         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1962     fi
1963   done
1964   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1965 BEGIN {RS=" "; FS="/|\n";} {
1966   lt_foo="";
1967   lt_count=0;
1968   for (lt_i = NF; lt_i > 0; lt_i--) {
1969     if ($lt_i != "" && $lt_i != ".") {
1970       if ($lt_i == "..") {
1971         lt_count++;
1972       } else {
1973         if (lt_count == 0) {
1974           lt_foo="/" $lt_i lt_foo;
1975         } else {
1976           lt_count--;
1977         }
1978       }
1979     }
1980   }
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`
1985 else
1986   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1987 fi])
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
1995 case $host_os in
1996 aix3*)
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'
2003   ;;
2005 aix[[4-9]]*)
2006   version_type=linux # correct to gnu/linux during the next big refactor
2007   need_lib_prefix=no
2008   need_version=no
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
2014   else
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.
2020     case $host_os in
2021       aix4 | aix4.[[01]] | aix4.[[01]].*)
2022       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2023            echo ' yes '
2024            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2025         :
2026       else
2027         can_build_shared=no
2028       fi
2029       ;;
2030     esac
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}'
2039     else
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'
2044     fi
2045     shlibpath_var=LIBPATH
2046   fi
2047   ;;
2049 amigaos*)
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'
2053   ;;
2055 beos*)
2056   library_names_spec='${libname}${shared_ext}'
2057   dynamic_linker="$host_os ld.so"
2058   shlibpath_var=LIBRARY_PATH
2059   ;;
2061 bsdi[[45]]*)
2062   version_type=linux # correct to gnu/linux during the next big refactor
2063   need_version=no
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
2073   ;;
2075 cygwin* | mingw* | pw32*)
2076   version_type=windows
2077   shrext_cmds=".dll"
2078   need_version=no
2079   need_lib_prefix=no
2081   case $GCC,$cc_basename in
2082   yes,*)
2083     # gcc
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~
2094        $rm \$dlpath'
2095     shlibpath_overrides_runpath=yes
2097     case $host_os in
2098     cygwin*)
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"
2102       ;;
2103     mingw*)
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'`
2115       else
2116         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2117       fi
2118       ;;
2119     pw32*)
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}'
2122       ;;
2123     esac
2124     dynamic_linker='Win32 ld.exe'
2125     ;;
2127   *,cl*)
2128     # Native MSVC
2129     libname_spec='$name'
2130     soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2131     library_names_spec='${libname}.dll.lib'
2133     case $build_os in
2134     mingw*)
2135       sys_lib_search_path_spec=
2136       lt_save_ifs=$IFS
2137       IFS=';'
2138       for lt_path in $LIB
2139       do
2140         IFS=$lt_save_ifs
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"
2144       done
2145       IFS=$lt_save_ifs
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|^ ||'`
2148       ;;
2149     cygwin*)
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"`
2156       ;;
2157     *)
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'`
2162       else
2163         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2164       fi
2165       # FIXME: find the short name or the path components, as spaces are
2166       # common. (e.g. "Program Files" -> "PROGRA~1")
2167       ;;
2168     esac
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~
2178        $RM \$dlpath'
2179     shlibpath_overrides_runpath=yes
2180     dynamic_linker='Win32 link.exe'
2181     ;;
2183   *)
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'
2187     ;;
2188   esac
2189   # FIXME: first we should search . and the directory the executable is in
2190   shlibpath_var=PATH
2191   ;;
2193 darwin* | rhapsody*)
2194   dynamic_linker="$host_os dyld"
2195   version_type=darwin
2196   need_lib_prefix=no
2197   need_version=no
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`'
2203   m4_if([$1], [],[
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'
2206   ;;
2208 dgux*)
2209   version_type=linux # correct to gnu/linux during the next big refactor
2210   need_lib_prefix=no
2211   need_version=no
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
2215   ;;
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`
2222   else
2223     case $host_os in
2224     freebsd[[23]].*) objformat=aout ;;
2225     *) objformat=elf ;;
2226     esac
2227   fi
2228   version_type=freebsd-$objformat
2229   case $version_type in
2230     freebsd-elf*)
2231       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2232       need_version=no
2233       need_lib_prefix=no
2234       ;;
2235     freebsd-*)
2236       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2237       need_version=yes
2238       ;;
2239   esac
2240   shlibpath_var=LD_LIBRARY_PATH
2241   case $host_os in
2242   freebsd2.*)
2243     shlibpath_overrides_runpath=yes
2244     ;;
2245   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2246     shlibpath_overrides_runpath=yes
2247     hardcode_into_libs=yes
2248     ;;
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
2253     ;;
2254   *) # from 4.6 on, and DragonFly
2255     shlibpath_overrides_runpath=yes
2256     hardcode_into_libs=yes
2257     ;;
2258   esac
2259   ;;
2261 gnu*)
2262   version_type=linux # correct to gnu/linux during the next big refactor
2263   need_lib_prefix=no
2264   need_version=no
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
2270   ;;
2272 haiku*)
2273   version_type=linux # correct to gnu/linux during the next big refactor
2274   need_lib_prefix=no
2275   need_version=no
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
2283   ;;
2285 hpux9* | hpux10* | hpux11*)
2286   # Give a soname corresponding to the major version so that dld.sl refuses to
2287   # link against other versions.
2288   version_type=sunos
2289   need_lib_prefix=no
2290   need_version=no
2291   case $host_cpu in
2292   ia64*)
2293     shrext_cmds='.so'
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"
2302     else
2303       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2304     fi
2305     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2306     ;;
2307    hppa*64*)
2308      shrext_cmds='.sl'
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
2317      ;;
2318    *)
2319     shrext_cmds='.sl'
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'
2325     ;;
2326   esac
2327   # HP-UX runs *really* slowly unless shared libraries are mode 555.
2328   postinstall_cmds='chmod 555 $lib'
2329   ;;
2331 interix[[3-9]]*)
2332   version_type=linux # correct to gnu/linux during the next big refactor
2333   need_lib_prefix=no
2334   need_version=no
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
2341   ;;
2343 irix5* | irix6* | nonstopux*)
2344   case $host_os in
2345     nonstopux*) version_type=nonstopux ;;
2346     *)
2347         if test "$lt_cv_prog_gnu_ld" = yes; then
2348                 version_type=linux # correct to gnu/linux during the next big refactor
2349         else
2350                 version_type=irix
2351         fi ;;
2352   esac
2353   need_lib_prefix=no
2354   need_version=no
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}'
2357   case $host_os in
2358   irix5* | nonstopux*)
2359     libsuff= shlibsuff=
2360     ;;
2361   *)
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;;
2370     esac
2371     ;;
2372   esac
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
2378   ;;
2380 # No shared lib support for Linux oldld, aout, or coff.
2381 linux*oldld* | linux*aout* | linux*coff*)
2382   dynamic_linker=no
2383   ;;
2385 # This must be glibc/ELF.
2386 linux* | k*bsd*-gnu)
2387   version_type=linux # correct to gnu/linux during the next big refactor
2388   need_lib_prefix=no
2389   need_version=no
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"
2406   fi
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'
2415   ;;
2417 netbsd*)
2418   version_type=sunos
2419   need_lib_prefix=no
2420   need_version=no
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'
2425   else
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'
2429   fi
2430   shlibpath_var=LD_LIBRARY_PATH
2431   shlibpath_overrides_runpath=yes
2432   hardcode_into_libs=yes
2433   ;;
2435 newsos6)
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
2440   ;;
2442 nto-qnx*)
2443   version_type=linux
2444   need_lib_prefix=no
2445   need_version=no
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
2450   ;;
2452 openbsd*)
2453   version_type=sunos
2454   sys_lib_dlsearch_path_spec="/usr/lib"
2455   need_lib_prefix=no
2456   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2457   case $host_os in
2458     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2459     *)                         need_version=no  ;;
2460   esac
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
2465     case $host_os in
2466       openbsd2.[[89]] | openbsd2.[[89]].*)
2467         shlibpath_overrides_runpath=no
2468         ;;
2469       *)
2470         shlibpath_overrides_runpath=yes
2471         ;;
2472       esac
2473   else
2474     shlibpath_overrides_runpath=yes
2475   fi
2476   ;;
2478 os2*)
2479   libname_spec='$name'
2480   shrext_cmds=".dll"
2481   need_lib_prefix=no
2482   library_names_spec='$libname${shared_ext} $libname.a'
2483   dynamic_linker='OS/2 ld.exe'
2484   shlibpath_var=LIBPATH
2485   ;;
2487 osf3* | osf4* | osf5*)
2488   version_type=osf
2489   need_lib_prefix=no
2490   need_version=no
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"
2496   ;;
2498 rdos*)
2499   dynamic_linker=no
2500   ;;
2502 solaris*)
2503   version_type=linux # correct to gnu/linux during the next big refactor
2504   need_lib_prefix=no
2505   need_version=no
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'
2513   ;;
2515 sunos4*)
2516   version_type=sunos
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
2522     need_lib_prefix=no
2523   fi
2524   need_version=yes
2525   ;;
2527 sysv4 | sysv4.3*)
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
2533     sni)
2534       shlibpath_overrides_runpath=no
2535       need_lib_prefix=no
2536       export_dynamic_flag_spec='${wl}-Blargedynsym'
2537       runpath_var=LD_RUN_PATH
2538       ;;
2539     siemens)
2540       need_lib_prefix=no
2541       ;;
2542     motorola)
2543       need_lib_prefix=no
2544       need_version=no
2545       shlibpath_overrides_runpath=no
2546       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2547       ;;
2548   esac
2549   ;;
2551 sysv4*MP*)
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
2557   fi
2558   ;;
2560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2561   version_type=freebsd-elf
2562   need_lib_prefix=no
2563   need_version=no
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
2571   else
2572     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2573     shlibpath_overrides_runpath=yes
2574     case $host_os in
2575       sco3.2v5*)
2576         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2577         ;;
2578     esac
2579   fi
2580   sys_lib_dlsearch_path_spec='/usr/lib'
2581   ;;
2583 tpf*)
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
2586   need_lib_prefix=no
2587   need_version=no
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
2592   ;;
2594 uts4*)
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
2599   ;;
2602   dynamic_linker=no
2603   ;;
2604 esac
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
2622 # _LT_AC_TAGCONFIG
2623 # ----------------
2624 AC_DEFUN([_LT_AC_TAGCONFIG],
2625 [AC_REQUIRE([LT_AC_PROG_SED])dnl
2626 AC_ARG_WITH([tags],
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])
2634   fi
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])
2640     else
2641       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2642     fi
2643   fi
2644   if test -z "$LTCFLAGS"; then
2645     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2646   fi
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
2654     IFS="$lt_save_ifs"
2655     # Check whether tagname contains only valid characters
2656     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2657     "") ;;
2658     *)  AC_MSG_ERROR([invalid tag name: $tagname])
2659         ;;
2660     esac
2662     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2663     then
2664       AC_MSG_ERROR([tag name \"$tagname\" already exists])
2665     fi
2667     # Update the list of available tags.
2668     if test -n "$tagname"; then
2669       echo appending configuration tag \"$tagname\" to $ofile
2671       case $tagname in
2672       CXX)
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
2677         else
2678           tagname=""
2679         fi
2680         ;;
2682       F77)
2683         if test -n "$F77" && test "X$F77" != "Xno"; then
2684           AC_LIBTOOL_LANG_F77_CONFIG
2685         else
2686           tagname=""
2687         fi
2688         ;;
2690       GCJ)
2691         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2692           AC_LIBTOOL_LANG_GCJ_CONFIG
2693         else
2694           tagname=""
2695         fi
2696         ;;
2698       RC)
2699         AC_LIBTOOL_LANG_RC_CONFIG
2700         ;;
2702       *)
2703         AC_MSG_ERROR([Unsupported tag name: $tagname])
2704         ;;
2705       esac
2707       # Append the new tag name to the list of available tags.
2708       if test -n "$tagname" ; then
2709       available_tags="$available_tags $tagname"
2710     fi
2711     fi
2712   done
2713   IFS="$lt_save_ifs"
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"
2718     chmod +x "$ofile"
2719   else
2720     rm -f "${ofile}T"
2721     AC_MSG_ERROR([unable to update list of available tagged configurations.])
2722   fi
2724 ])# _LT_AC_TAGCONFIG
2727 # AC_LIBTOOL_DLOPEN
2728 # -----------------
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}
2753     case $enableval in
2754     yes) enable_shared=yes ;;
2755     no) enable_shared=no ;;
2756     *)
2757       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
2761         IFS="$lt_save_ifs"
2762         if test "X$pkg" = "X$p"; then
2763           enable_shared=yes
2764         fi
2765       done
2766       IFS="$lt_save_ifs"
2767       ;;
2768     esac],
2769     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2770 ])# AC_ENABLE_SHARED
2773 # AC_DISABLE_SHARED
2774 # -----------------
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}
2792     case $enableval in
2793     yes) enable_static=yes ;;
2794     no) enable_static=no ;;
2795     *)
2796      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
2800         IFS="$lt_save_ifs"
2801         if test "X$pkg" = "X$p"; then
2802           enable_static=yes
2803         fi
2804       done
2805       IFS="$lt_save_ifs"
2806       ;;
2807     esac],
2808     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2809 ])# AC_ENABLE_STATIC
2812 # AC_DISABLE_STATIC
2813 # -----------------
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}
2831     case $enableval in
2832     yes) enable_fast_install=yes ;;
2833     no) enable_fast_install=no ;;
2834     *)
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
2839         IFS="$lt_save_ifs"
2840         if test "X$pkg" = "X$p"; then
2841           enable_fast_install=yes
2842         fi
2843       done
2844       IFS="$lt_save_ifs"
2845       ;;
2846     esac],
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
2870 # AC_PROG_EGREP
2871 # -------------
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'
2879     fi])
2880  EGREP=$ac_cv_prog_egrep
2881  AC_SUBST([EGREP])
2882 ])])
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,
2892 [case $MAGIC_CMD in
2893 [[\\/*] |  ?:[\\/]*])
2894   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2895   ;;
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
2904     IFS="$lt_save_ifs"
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
2910         "file_magic "*)
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
2915             :
2916           else
2917             cat <<EOF 1>&2
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
2929           fi ;;
2930         esac
2931       fi
2932       break
2933     fi
2934   done
2935   IFS="$lt_save_ifs"
2936   MAGIC_CMD="$lt_save_MAGIC_CMD"
2937   ;;
2938 esac])
2939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2940 if test -n "$MAGIC_CMD"; then
2941   AC_MSG_RESULT($MAGIC_CMD)
2942 else
2943   AC_MSG_RESULT(no)
2945 ])# AC_PATH_TOOL_PREFIX
2948 # AC_PATH_MAGIC
2949 # -------------
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)
2956   else
2957     MAGIC_CMD=:
2958   fi
2960 ])# AC_PATH_MAGIC
2963 # AC_PROG_LD
2964 # ----------
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],
2971     [with_gnu_ld=no])
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
2976 ac_prog=ld
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])
2980   case $host in
2981   *-*-mingw*)
2982     # gcc leaves a trailing carriage return which upsets mingw
2983     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2984   *)
2985     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2986   esac
2987   case $ac_prog in
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%/%"`
2995       done
2996       test -z "$LD" && LD="$ac_prog"
2997       ;;
2998   "")
2999     # If it fails, then pretend we aren't using GCC.
3000     ac_prog=ld
3001     ;;
3002   *)
3003     # If it is relative, then search for the first ld in PATH.
3004     with_gnu_ld=unknown
3005     ;;
3006   esac
3007 elif test "$with_gnu_ld" = yes; then
3008   AC_MSG_CHECKING([for GNU ld])
3009 else
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
3016     IFS="$lt_save_ifs"
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
3026         ;;
3027       *)
3028         test "$with_gnu_ld" != yes && break
3029         ;;
3030       esac
3031     fi
3032   done
3033   IFS="$lt_save_ifs"
3034 else
3035   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3036 fi])
3037 LD="$lt_cv_path_LD"
3038 if test -n "$LD"; then
3039   AC_MSG_RESULT($LD)
3040 else
3041   AC_MSG_RESULT(no)
3043 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3044 AC_PROG_LD_GNU
3045 ])# AC_PROG_LD
3048 # AC_PROG_LD_GNU
3049 # --------------
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
3057   ;;
3059   lt_cv_prog_gnu_ld=no
3060   ;;
3061 esac])
3062 with_gnu_ld=$lt_cv_prog_gnu_ld
3063 ])# AC_PROG_LD_GNU
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
3076 "" | " "*) ;;
3077 *) reload_flag=" $reload_flag" ;;
3078 esac
3079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3080 case $host_os in
3081   cygwin* | mingw* | pw32* | cegcc*)
3082     if test "$GCC" != yes; then
3083       reload_cmds=false
3084     fi
3085     ;;
3086   darwin*)
3087     if test "$GCC" = yes; then
3088       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3089     else
3090       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3091     fi
3092     ;;
3093 esac
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.
3118 case $host_os in
3119 aix[[4-9]]*)
3120   lt_cv_deplibs_check_method=pass_all
3121   ;;
3123 beos*)
3124   lt_cv_deplibs_check_method=pass_all
3125   ;;
3127 bsdi[[45]]*)
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
3131   ;;
3133 cygwin*)
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'
3137   ;;
3139 mingw* | pw32*)
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'
3146   else
3147     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3148     lt_cv_file_magic_cmd='$OBJDUMP -f'
3149   fi
3150   ;;
3152 darwin* | rhapsody*)
3153   lt_cv_deplibs_check_method=pass_all
3154   ;;
3156 freebsd* | dragonfly*)
3157   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3158     case $host_cpu in
3159     i*86 )
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.*`
3165       ;;
3166     esac
3167   else
3168     lt_cv_deplibs_check_method=pass_all
3169   fi
3170   ;;
3172 gnu*)
3173   lt_cv_deplibs_check_method=pass_all
3174   ;;
3176 hpux10.20* | hpux11*)
3177   lt_cv_file_magic_cmd=/usr/bin/file
3178   case $host_cpu in
3179   ia64*)
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
3182     ;;
3183   hppa*64*)
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
3186     ;;
3187   *)
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
3190     ;;
3191   esac
3192   ;;
3194 interix[[3-9]]*)
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)$'
3197   ;;
3199 irix5* | irix6* | nonstopux*)
3200   case $LD in
3201   *-32|*"-32 ") libmagic=32-bit;;
3202   *-n32|*"-n32 ") libmagic=N32;;
3203   *-64|*"-64 ") libmagic=64-bit;;
3204   *) libmagic=never-match;;
3205   esac
3206   lt_cv_deplibs_check_method=pass_all
3207   ;;
3209 # This must be glibc/ELF.
3210 linux* | k*bsd*-gnu)
3211   lt_cv_deplibs_check_method=pass_all
3212   ;;
3214 netbsd*)
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)$'
3217   else
3218     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3219   fi
3220   ;;
3222 newos6*)
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
3226   ;;
3228 nto-qnx*)
3229   lt_cv_deplibs_check_method=unknown
3230   ;;
3232 openbsd*)
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)$'
3235   else
3236     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3237   fi
3238   ;;
3240 osf3* | osf4* | osf5*)
3241   lt_cv_deplibs_check_method=pass_all
3242   ;;
3244 rdos*)
3245   lt_cv_deplibs_check_method=pass_all
3246   ;;
3248 solaris*)
3249   lt_cv_deplibs_check_method=pass_all
3250   ;;
3252 sysv4 | sysv4.3*)
3253   case $host_vendor in
3254   motorola)
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*`
3257     ;;
3258   ncr)
3259     lt_cv_deplibs_check_method=pass_all
3260     ;;
3261   sequent)
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 )'
3264     ;;
3265   sni)
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
3269     ;;
3270   siemens)
3271     lt_cv_deplibs_check_method=pass_all
3272     ;;
3273   pc)
3274     lt_cv_deplibs_check_method=pass_all
3275     ;;
3276   esac
3277   ;;
3279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3280   lt_cv_deplibs_check_method=pass_all
3281   ;;
3282 esac
3285 file_magic_glob=
3286 want_nocaseglob=no
3287 if test "$build" = "$host"; then
3288   case $host_os in
3289   mingw* | pw32*)
3290     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3291       want_nocaseglob=yes
3292     else
3293       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3294     fi
3295     ;;
3296   esac
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
3314 # AC_PROG_NM
3315 # ----------
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.
3321   lt_cv_path_NM="$NM"
3322 else
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"
3326   fi
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
3330       IFS="$lt_save_ifs"
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"
3341           break
3342           ;;
3343         *)
3344           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3345           */dev/null*)
3346             lt_cv_path_NM="$tmp_nm -p"
3347             break
3348             ;;
3349           *)
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
3352             ;;
3353           esac
3354           ;;
3355         esac
3356       fi
3357     done
3358     IFS="$lt_save_ifs"
3359   done
3360   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3361 fi])
3362 NM="$lt_cv_path_NM"
3363 ])# AC_PROG_NM
3366 # Old names:
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'
3386 case $host_os in
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
3393     ;;
3394   *)
3395     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3396     ;;
3397   esac
3398   ;;
3400   # fallback: assume linklib IS sharedlib
3401   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3402   ;;
3403 esac
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
3426   fi
3427   rm -f conftest*])
3428 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3429   MANIFEST_TOOL=:
3431 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3432 ])# _LT_PATH_MANIFEST_TOOL
3435 # LT_LIB_M
3436 # --------
3437 # check for math library
3438 AC_DEFUN([AC_CHECK_LIBM],
3439 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3440 LIBM=
3441 case $host in
3442 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3443   # These system don't have libm, or don't need it
3444   ;;
3445 *-ncr-sysv4.3*)
3446   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3447   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3448   ;;
3450   AC_CHECK_LIB(m, cos, LIBM="-lm")
3451   ;;
3452 esac
3453 ])# AC_CHECK_LIBM
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
3466 # the Makefiles.
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" ;;
3473   esac
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...
3477   INCLTDL="$LTDLINCL"
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])
3499    else
3500      enable_ltdl_install=yes
3501    fi
3502   ])
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'])
3507   else
3508     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3509     LIBLTDL="-lltdl"
3510     LTDLINCL=
3511   fi
3512   # For backwards non-gettext consistent compatibility...
3513   INCLTDL="$LTDLINCL"
3514 ])# AC_LIBLTDL_INSTALLABLE
3517 # AC_LIBTOOL_CXX
3518 # --------------
3519 # enable support for C++ libraries
3520 AC_DEFUN([AC_LIBTOOL_CXX],
3521 [AC_REQUIRE([_LT_AC_LANG_CXX])
3522 ])# AC_LIBTOOL_CXX
3525 # _LT_AC_LANG_CXX
3526 # ---------------
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])
3531 ])# _LT_AC_LANG_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
3541   AC_PROG_CXXCPP
3543 ])# _LT_AC_PROG_CXXCPP
3545 # AC_LIBTOOL_F77
3546 # --------------
3547 # enable support for Fortran 77 libraries
3548 AC_DEFUN([AC_LIBTOOL_F77],
3549 [AC_REQUIRE([_LT_AC_LANG_F77])
3550 ])# AC_LIBTOOL_F77
3553 # _LT_AC_LANG_F77
3554 # ---------------
3555 AC_DEFUN([_LT_AC_LANG_F77],
3556 [AC_REQUIRE([AC_PROG_F77])
3557 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3558 ])# _LT_AC_LANG_F77
3561 # AC_LIBTOOL_GCJ
3562 # --------------
3563 # enable support for GCJ libraries
3564 AC_DEFUN([AC_LIBTOOL_GCJ],
3565 [AC_REQUIRE([_LT_AC_LANG_GCJ])
3566 ])# AC_LIBTOOL_GCJ
3569 # _LT_AC_LANG_GCJ
3570 # ---------------
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])
3579 ])# _LT_AC_LANG_GCJ
3582 # AC_LIBTOOL_RC
3583 # -------------
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])
3588 ])# AC_LIBTOOL_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],
3598 [lt_save_CC="$CC"
3599 AC_LANG_PUSH(C)
3601 # Source file extension for C test sources.
3602 ac_ext=c
3604 # Object file extension for compiled C test sources.
3605 objext=o
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);}'
3614 _LT_AC_SYS_COMPILER
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.
3639 case $host_os in
3640 aix3*)
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'
3645   fi
3646   ;;
3648 aix[[4-9]]*)
3649   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3650     test "$enable_shared" = yes && enable_static=no
3651   fi
3652     ;;
3653 esac
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)
3663 AC_LANG_POP
3664 CC="$lt_save_CC"
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],
3675 [AC_LANG_PUSH(C++)
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.
3708 ac_ext=cpp
3710 # Object file extension for compiled C++ test sources.
3711 objext=o
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.
3721 _LT_AC_SYS_COMPILER
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.
3728 lt_save_CC=$CC
3729 lt_save_LD=$LD
3730 lt_save_GCC=$GCC
3731 GCC=$GXX
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
3736 else
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
3741 else
3742   $as_unset lt_cv_path_LD
3744 test -z "${LDCXX+set}" || LD=$LDCXX
3745 CC=${CXX-"c++"}
3746 compiler=$CC
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'
3754 else
3755   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3758 if test "$GXX" = yes; then
3759   # Set up default GNU C++ configuration
3761   AC_PROG_LD
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)
3775     wlarc='${wl}'
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'
3781     else
3782       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3783     fi
3784   else
3785     with_gnu_ld=no
3786     wlarc=
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'
3794   fi
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"'
3801 else
3802   GXX=no
3803   with_gnu_ld=no
3804   wlarc=
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
3810 case $host_os in
3811   aix3*)
3812     # FIXME: insert proper C++ library support
3813     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3814     ;;
3815   aix[[4-9]]*)
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'
3821       no_entry_flag=""
3822     else
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
3830           case $ld_flag in
3831           *-brtl*)
3832             aix_use_runtimelinking=yes
3833             break
3834             ;;
3835           esac
3836         done
3837         ;;
3838       esac
3840       exp_sym_flag='-bexport'
3841       no_entry_flag='-bnoentry'
3842     fi
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
3862         then
3863           # We have reworked collect2
3864           :
3865         else
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)=
3874         fi
3875         ;;
3876       esac
3877       shared_flag='-shared'
3878       if test "$aix_use_runtimelinking" = yes; then
3879         shared_flag="$shared_flag "'${wl}-G'
3880       fi
3881     else
3882       # not using gcc
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:
3886         shared_flag='-G'
3887       else
3888         if test "$aix_use_runtimelinking" = yes; then
3889           shared_flag='${wl}-G'
3890         else
3891           shared_flag='${wl}-bM:SRE'
3892         fi
3893       fi
3894     fi
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"
3908      else
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"
3913       else
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'
3926       fi
3927     fi
3928     ;;
3930   beos*)
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'
3936     else
3937       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3938     fi
3939     ;;
3941   chorus*)
3942     case $cc_basename in
3943       *)
3944         # FIXME: insert proper C++ library support
3945         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3946         ;;
3947     esac
3948     ;;
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;
3964       else
3965         echo EXPORTS > $output_objdir/$soname.def;
3966         cat $export_symbols >> $output_objdir/$soname.def;
3967       fi~
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'
3969     else
3970       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3971     fi
3972   ;;
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}"
3990       fi
3991       else
3992       case $cc_basename in
3993         xlc*)
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}'
4000           ;;
4001        *)
4002          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4003           ;;
4004       esac
4005       fi
4006         ;;
4008   dgux*)
4009     case $cc_basename in
4010       ec++*)
4011         # FIXME: insert proper C++ library support
4012         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4013         ;;
4014       ghcx*)
4015         # Green Hills C++ Compiler
4016         # FIXME: insert proper C++ library support
4017         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4018         ;;
4019       *)
4020         # FIXME: insert proper C++ library support
4021         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4022         ;;
4023     esac
4024     ;;
4025   freebsd[[12]]*)
4026     # C++ shared libraries reported to be fairly broken before switch to ELF
4027     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4028     ;;
4029   freebsd-elf*)
4030     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4031     ;;
4032   freebsd* | dragonfly*)
4033     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4034     # conventions
4035     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4036     ;;
4037   gnu*)
4038     ;;
4039   hpux9*)
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
4049     CC*)
4050       # FIXME: insert proper C++ library support
4051       _LT_AC_TAGVAR(ld_shlibs, $1)=no
4052       ;;
4053     aCC*)
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.
4058       #
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
4062       # dependencies.
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'
4064       ;;
4065     *)
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'
4068       else
4069         # FIXME: insert proper C++ library support
4070         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4071       fi
4072       ;;
4073     esac
4074     ;;
4075   hpux10*|hpux11*)
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)=:
4080       case $host_cpu in
4081       hppa*64*|ia64*) ;;
4082       *)
4083         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4084         ;;
4085       esac
4086     fi
4087     case $host_cpu in
4088     hppa*64*|ia64*)
4089       _LT_AC_TAGVAR(hardcode_direct, $1)=no
4090       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4091       ;;
4092     *)
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.
4097       ;;
4098     esac
4100     case $cc_basename in
4101       CC*)
4102         # FIXME: insert proper C++ library support
4103         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4104         ;;
4105       aCC*)
4106         case $host_cpu in
4107         hppa*64*)
4108           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4109           ;;
4110         ia64*)
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'
4112           ;;
4113         *)
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'
4115           ;;
4116         esac
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.
4120         #
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
4124         # dependencies.
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'
4126         ;;
4127       *)
4128         if test "$GXX" = yes; then
4129           if test $with_gnu_ld = no; then
4130             case $host_cpu in
4131             hppa*64*)
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'
4133               ;;
4134             ia64*)
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'
4136               ;;
4137             *)
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'
4139               ;;
4140             esac
4141           fi
4142         else
4143           # FIXME: insert proper C++ library support
4144           _LT_AC_TAGVAR(ld_shlibs, $1)=no
4145         fi
4146         ;;
4147     esac
4148     ;;
4149   interix[[3-9]]*)
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'
4162     ;;
4163   irix5* | irix6*)
4164     case $cc_basename in
4165       CC*)
4166         # SGI C++
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
4172         # in the archive.
4173         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4174         ;;
4175       *)
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'
4179           else
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'
4181           fi
4182         fi
4183         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4184         ;;
4185     esac
4186     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4187     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4188     ;;
4189   linux* | k*bsd*-gnu)
4190     case $cc_basename in
4191       KCC*)
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.
4202         #
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
4206         # dependencies.
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'
4215         ;;
4216       icpc*)
4217         # Intel C++
4218         with_gnu_ld=yes
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
4223         *"Version 7."*)
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'
4226           ;;
4227         *)  # Version 8.0 or newer
4228           tmp_idyn=
4229           case $host_cpu in
4230             ia64*) tmp_idyn=' -i_dynamic';;
4231           esac
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'
4234           ;;
4235         esac
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'
4240         ;;
4241       pgCC* | pgcpp*)
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'
4249         ;;
4250       cxx*)
4251         # Compaq C++
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.
4262         #
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
4266         # dependencies.
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'
4268         ;;
4269       *)
4270         case `$CC -V 2>&1 | sed 5q` in
4271         *Sun\ C*)
4272           # Sun C++ 5.9
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
4281           # would be better.
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
4287           # in the archive.
4288           _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4289           ;;
4290         esac
4291         ;;
4292     esac
4293     ;;
4294   lynxos*)
4295     # FIXME: insert proper C++ library support
4296     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4297     ;;
4298   m88k*)
4299     # FIXME: insert proper C++ library support
4300     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4301     ;;
4302   mvs*)
4303     case $cc_basename in
4304       cxx*)
4305         # FIXME: insert proper C++ library support
4306         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4307         ;;
4308       *)
4309         # FIXME: insert proper C++ library support
4310         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4311         ;;
4312     esac
4313     ;;
4314   netbsd*)
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'
4317       wlarc=
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
4321     fi
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::"'
4324     ;;
4325   openbsd2*)
4326     # C++ shared libraries are fairly broken
4327     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4328     ;;
4329   openbsd*)
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'
4339       fi
4340       output_verbose_link_cmd='echo'
4341     else
4342       _LT_AC_TAGVAR(ld_shlibs, $1)=no
4343     fi
4344     ;;
4345   osf3*)
4346     case $cc_basename in
4347       KCC*)
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'
4362         ;;
4363       RCC*)
4364         # Rational C++ 2.4.1
4365         # FIXME: insert proper C++ library support
4366         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4367         ;;
4368       cxx*)
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.
4378         #
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
4382         # dependencies.
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'
4384         ;;
4385       *)
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"'
4398         else
4399           # FIXME: insert proper C++ library support
4400           _LT_AC_TAGVAR(ld_shlibs, $1)=no
4401         fi
4402         ;;
4403     esac
4404     ;;
4405   osf4* | osf5*)
4406     case $cc_basename in
4407       KCC*)
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'
4421         ;;
4422       RCC*)
4423         # Rational C++ 2.4.1
4424         # FIXME: insert proper C++ library support
4425         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4426         ;;
4427       cxx*)
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~
4433           $rm $lib.exp'
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.
4441         #
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
4445         # dependencies.
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'
4447         ;;
4448       *)
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"'
4461         else
4462           # FIXME: insert proper C++ library support
4463           _LT_AC_TAGVAR(ld_shlibs, $1)=no
4464         fi
4465         ;;
4466     esac
4467     ;;
4468   psos*)
4469     # FIXME: insert proper C++ library support
4470     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4471     ;;
4472   sunos4*)
4473     case $cc_basename in
4474       CC*)
4475         # Sun C++ 4.x
4476         # FIXME: insert proper C++ library support
4477         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4478         ;;
4479       lcc*)
4480         # Lucid
4481         # FIXME: insert proper C++ library support
4482         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4483         ;;
4484       *)
4485         # FIXME: insert proper C++ library support
4486         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4487         ;;
4488     esac
4489     ;;
4490   solaris*)
4491     case $cc_basename in
4492       CC*)
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
4502         case $host_os in
4503           solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4504           *)
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'
4509             ;;
4510         esac
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
4518         # in the archive.
4519         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4520         ;;
4521       gcx*)
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'
4527         ;;
4528       *)
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\""
4541           else
4542             # g++ 2.7 appears to require `-G' NOT `-shared' on this
4543             # platform.
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\""
4552           fi
4554           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4555           case $host_os in
4556           solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4557           *)
4558             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4559             ;;
4560           esac
4561         fi
4562         ;;
4563     esac
4564     ;;
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
4572       CC*)
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'
4575         ;;
4576       *)
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'
4579         ;;
4580     esac
4581     ;;
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
4588     # as -z defs.
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
4609       CC*)
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'
4612         ;;
4613       *)
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'
4616         ;;
4617     esac
4618     ;;
4619   tandem*)
4620     case $cc_basename in
4621       NCC*)
4622         # NonStop-UX NCC 3.20
4623         # FIXME: insert proper C++ library support
4624         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4625         ;;
4626       *)
4627         # FIXME: insert proper C++ library support
4628         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4629         ;;
4630     esac
4631     ;;
4632   vxworks*)
4633     # FIXME: insert proper C++ library support
4634     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4635     ;;
4636   *)
4637     # FIXME: insert proper C++ library support
4638     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4639     ;;
4640 esac
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)
4657 AC_LANG_POP
4658 CC=$lt_save_CC
4659 LDCXX=$LD
4660 LD=$lt_save_LD
4661 GCC=$lt_save_GCC
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
4684 int a;
4685 void foo (void) { a = 0; }
4687 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4688 class Foo
4690 public:
4691   Foo (void) { a = 0; }
4692 private:
4693   int a;
4696 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4697       subroutine foo
4698       implicit none
4699       integer*4 a
4700       a=0
4701       return
4702       end
4704 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4705 public class foo {
4706   private int a;
4707   public void bar (void) {
4708     a = 0;
4709   }
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
4729     case $p in
4731     -L* | -R* | -l*)
4732        # Some compilers place space between "-{L,R}" and the path.
4733        # Remove the space.
4734        if test $p = "-L" \
4735           || test $p = "-R"; then
4736          prev=$p
4737          continue
4738        else
4739          prev=
4740        fi
4742        if test "$pre_test_object_deps_done" = no; then
4743          case $p in
4744          -L* | -R*)
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}"
4750            else
4751              _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4752            fi
4753            ;;
4754          # The "-l" case would never come before the object being
4755          # linked, so don't bother handling this case.
4756          esac
4757        else
4758          if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4759            _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4760          else
4761            _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4762          fi
4763        fi
4764        ;;
4766     *.$objext)
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
4771          continue
4772        fi
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"
4777          else
4778            _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4779          fi
4780        else
4781          if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4782            _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4783          else
4784            _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4785          fi
4786        fi
4787        ;;
4789     *) ;; # Ignore the rest.
4791     esac
4792   done
4794   # Clean up.
4795   rm -f a.out a.exe
4796 else
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
4808 ifelse([$1],[CXX],
4809 [case $host_os in
4810 interix[[3-9]]*)
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)=
4816   ;;
4818 linux*)
4819   case `$CC -V 2>&1 | sed 5q` in
4820   *Sun\ C*)
4821     # Sun C++ 5.9
4822     #
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
4830       ;;
4831     esac
4832     if test "$solaris_use_stlport4" != yes; then
4833       _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4834     fi
4835     ;;
4836   esac
4837   ;;
4839 solaris*)
4840   case $cc_basename in
4841   CC*)
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
4849       ;;
4850     esac
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'
4857     fi
4858     ;;
4859   esac
4860   ;;
4861 esac
4863 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4864 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4865 esac
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.
4898 ac_ext=f
4900 # Object file extension for compiled f77 test sources.
4901 objext=o
4902 _LT_AC_TAGVAR(objext, $1)=$objext
4904 # Code to be used in simple compile tests
4905 lt_simple_compile_test_code="\
4906       subroutine t
4907       return
4908       end
4911 # Code to be used in simple link tests
4912 lt_simple_link_test_code="\
4913       program t
4914       end
4917 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4918 _LT_AC_SYS_COMPILER
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.
4925 lt_save_CC="$CC"
4926 CC=${F77-"f77"}
4927 compiler=$CC
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.
4939 case $host_os in
4940 aix3*)
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'
4945   fi
4946   ;;
4947 aix[[4-9]]*)
4948   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4949     test "$enable_shared" = yes && enable_static=no
4950   fi
4951   ;;
4952 esac
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)
4972 AC_LANG_POP
4973 CC="$lt_save_CC"
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],
4984 [AC_LANG_SAVE
4986 # Source file extension for Java test sources.
4987 ac_ext=java
4989 # Object file extension for compiled Java test sources.
4990 objext=o
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.
5000 _LT_AC_SYS_COMPILER
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.
5007 lt_save_CC="$CC"
5008 CC=${GCJ-"gcj"}
5009 compiler=$CC
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)
5028 AC_LANG_RESTORE
5029 CC="$lt_save_CC"
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],
5040 [AC_LANG_SAVE
5042 # Source file extension for RC test sources.
5043 ac_ext=rc
5045 # Object file extension for compiled RC test sources.
5046 objext=o
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.
5056 _LT_AC_SYS_COMPILER
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.
5063 lt_save_CC="$CC"
5064 CC=${RC-"windres"}
5065 compiler=$CC
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)
5072 AC_LANG_RESTORE
5073 CC="$lt_save_CC"
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
5093   fi
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 \
5098     SED SHELL STRIP \
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
5144     case $var in
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\"\`\\\""
5159       ;;
5160     *)
5161       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5162       ;;
5163     esac
5164   done
5166   case $lt_echo in
5167   *'\[$]0 --fallback-echo"')
5168     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5169     ;;
5170   esac
5172 ifelse([$1], [],
5173   [cfgfile="${ofile}T"
5174   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5175   $rm -f "$cfgfile"
5176   AC_MSG_NOTICE([creating $ofile])],
5177   [cfgfile="$ofile"])
5179   cat <<__EOF__ >> "$cfgfile"
5180 ifelse([$1], [],
5181 [#! $SHELL
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.
5213 SED=$lt_SED
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
5219 # if CDPATH is set.
5220 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5222 # The names of the tagged configurations supported by this script.
5223 available_tags=
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.
5231 SHELL=$lt_SHELL
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
5248 # The host system.
5249 host_alias=$host_alias
5250 host=$host
5251 host_os=$host_os
5253 # The build system.
5254 build_alias=$build_alias
5255 build=$build
5256 build_os=$build_os
5258 # An echo program that does not interpret backslashes.
5259 echo=$lt_echo
5261 # The archiver.
5262 AR=$lt_AR
5263 AR_FLAGS=$lt_AR_FLAGS
5265 # A C compiler.
5266 LTCC=$lt_LTCC
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)
5277 # An ERE matcher.
5278 EGREP=$lt_EGREP
5280 # The linker used to build libraries.
5281 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5283 # Whether we need hard or soft links.
5284 LN_S=$lt_LN_S
5286 # A BSD-compatible nm program.
5287 NM=$lt_NM
5289 # A symbol stripping program
5290 STRIP=$lt_STRIP
5292 # Used to examine libraries when file_magic_cmd begins "file"
5293 MAGIC_CMD=$MAGIC_CMD
5295 # Used on cygwin: DLL creation program.
5296 DLLTOOL="$DLLTOOL"
5298 # Used on cygwin: object dumper.
5299 OBJDUMP="$OBJDUMP"
5301 # Used on cygwin: assembler.
5302 AS="$AS"
5304 # The name of the directory that contains temporary libtool files.
5305 objdir=$objdir
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").
5315 objext="$ac_objext"
5317 # Old archive suffix (normally "a").
5318 libext="$libext"
5320 # Shared library suffix (normally ".so").
5321 shrext_cmds='$shrext_cmds'
5323 # Executable file suffix (normally "").
5324 exeext="$exeext"
5326 # Additional compiler flags for building library objects.
5327 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5328 pic_mode=$pic_mode
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.
5383 RANLIB=$lt_RANLIB
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
5409 # shared library.
5410 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5412 # Dependencies to place after the objects being linked to create a
5413 # shared library.
5414 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5416 # Dependencies to place before the objects being linked to create a
5417 # shared library.
5418 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5420 # Dependencies to place after the objects being linked to create a
5421 # shared library.
5422 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5424 # The directories searched by this compiler when creating a shared
5425 # library
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
5429 # a shared library.
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
5480 # not exist.
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
5487 # resulting binary.
5488 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5491 # resulting binary.
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)
5533 ifelse([$1],[],
5534 [# ### END LIBTOOL CONFIG],
5535 [# ### END LIBTOOL TAG CONFIG: $tagname])
5537 __EOF__
5539 ifelse([$1],[], [
5540   case $host_os in
5541   aix3*)
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
5548   COLLECT_NAMES=
5549   export COLLECT_NAMES
5552     ;;
5553   esac
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")
5563   chmod +x "$ofile"
5565 else
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"
5572   fi
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.
5622 case $host_os in
5623 aix*)
5624   symcode='[[BCDT]]'
5625   ;;
5626 cygwin* | mingw* | pw32*)
5627   symcode='[[ABCDGISTW]]'
5628   ;;
5629 hpux*) # Its linker distinguishes data from code symbols
5630   if test "$host_cpu" = ia64; then
5631     symcode='[[ABCDEGRST]]'
5632   fi
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'"
5635   ;;
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'"
5641   fi
5642   ;;
5643 irix* | nonstopux*)
5644   symcode='[[BCDEGRST]]'
5645   ;;
5646 osf*)
5647   symcode='[[BCDEGQRST]]'
5648   ;;
5649 solaris*)
5650   symcode='[[BDRT]]'
5651   ;;
5652 sco3.2v5*)
5653   symcode='[[DT]]'
5654   ;;
5655 sysv4.2uw2*)
5656   symcode='[[DT]]'
5657   ;;
5658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5659   symcode='[[ABDT]]'
5660   ;;
5661 sysv4)
5662   symcode='[[DFNSTU]]'
5663   ;;
5664 esac
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]]' ;;
5670 esac
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
5682 opt_cr=
5683 case $build_os in
5684 mingw*)
5685   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5686   ;;
5687 esac
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]]' ;;
5693 esac
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]"
5719   else
5720     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5721   fi
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.
5725   pipe_works=no
5727   rm -f conftest*
5728   cat > conftest.$ac_ext <<EOF
5729 #ifdef __cplusplus
5730 extern "C" {
5731 #endif
5732 char nm_test_var;
5733 void nm_test_func(){}
5734 #ifdef __cplusplus
5736 #endif
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.
5742     nlist=conftest.nm
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"
5747       else
5748         rm -f "$nlist"T
5749       fi
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
5763 #else
5764 # define LT@&t@_DLSYM_CONST const
5765 #endif
5767 #ifdef __cplusplus
5768 extern "C" {
5769 #endif
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 *
5778 #else
5779 # define lt_ptr_t char *
5780 # define const
5781 #endif
5783 /* The mapping between symbol names and symbols. */
5784 LT@&t@_DLSYM_CONST struct {
5785   const char *name;
5786   lt_ptr_t address;
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
5793   {0, (lt_ptr_t) 0}
5796 #ifdef __cplusplus
5798 #endif
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
5807             pipe_works=yes
5808           fi
5809           LIBS=$lt_globsym_save_LIBS
5810           CFLAGS=$lt_globsym_save_CFLAGS
5811         else
5812           echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5813         fi
5814       else
5815         echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5816       fi
5817     else
5818       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5819     fi
5820   else
5821     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5822     cat conftest.$ac_ext >&5
5823   fi
5824   rm -rf conftest* conftst*
5826   # Do not use the global_symbol_pipe unless it works.
5827   if test "$pipe_works" = yes; then
5828     break
5829   else
5830     lt_cv_sys_global_symbol_pipe=
5831   fi
5832 done
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)
5839 else
5840   AC_MSG_RESULT(ok)
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)=
5872  ifelse([$1],[CXX],[
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'
5878     case $host_os in
5879     aix*)
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'
5884       fi
5885       ;;
5886     amigaos*)
5887       # FIXME: we need at least 68020 code to build shared libraries, but
5888       # adding the `-m68020' flag to GCC prevents building anything better,
5889       # like `-m68040'.
5890       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5891       ;;
5892     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5893       # PIC is the default for these OSes.
5894       ;;
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'])
5902       ;;
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'
5907       ;;
5908     *djgpp*)
5909       # DJGPP does not support shared libraries at all
5910       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5911       ;;
5912     interix[[3-9]]*)
5913       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5914       # Instead, we relocate shared libraries at runtime.
5915       ;;
5916     sysv4*MP*)
5917       if test -d /usr/nec; then
5918         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5919       fi
5920       ;;
5921     hpux*)
5922       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5923       # not for PA HP-UX.
5924       case $host_cpu in
5925       hppa*64*|ia64*)
5926         ;;
5927       *)
5928         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5929         ;;
5930       esac
5931       ;;
5932     *)
5933       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5934       ;;
5935     esac
5936   else
5937     case $host_os in
5938       aix[[4-9]]*)
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'
5943         else
5944           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5945         fi
5946         ;;
5947       chorus*)
5948         case $cc_basename in
5949         cxch68*)
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"
5952           ;;
5953         esac
5954         ;;
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'])
5960         ;;
5961       dgux*)
5962         case $cc_basename in
5963           ec++*)
5964             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5965             ;;
5966           ghcx*)
5967             # Green Hills C++ Compiler
5968             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5969             ;;
5970           *)
5971             ;;
5972         esac
5973         ;;
5974       freebsd* | dragonfly*)
5975         # FreeBSD uses GNU C++
5976         ;;
5977       hpux9* | hpux10* | hpux11*)
5978         case $cc_basename in
5979           CC*)
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'
5984             fi
5985             ;;
5986           aCC*)
5987             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5988             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5989             case $host_cpu in
5990             hppa*64*|ia64*)
5991               # +Z the default
5992               ;;
5993             *)
5994               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5995               ;;
5996             esac
5997             ;;
5998           *)
5999             ;;
6000         esac
6001         ;;
6002       interix*)
6003         # This is c89, which is MS Visual C++ (no shared libs)
6004         # Anyone wants to do a port?
6005         ;;
6006       irix5* | irix6* | nonstopux*)
6007         case $cc_basename in
6008           CC*)
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.
6012             ;;
6013           *)
6014             ;;
6015         esac
6016         ;;
6017       linux* | k*bsd*-gnu)
6018         case $cc_basename in
6019           KCC*)
6020             # KAI C++ Compiler
6021             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6022             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6023             ;;
6024           icpc* | ecpc*)
6025             # Intel C++
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'
6029             ;;
6030           pgCC* | pgcpp*)
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'
6035             ;;
6036           cxx*)
6037             # Compaq C++
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'
6042             ;;
6043           *)
6044             case `$CC -V 2>&1 | sed 5q` in
6045             *Sun\ C*)
6046               # Sun C++ 5.9
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 '
6050               ;;
6051             esac
6052             ;;
6053         esac
6054         ;;
6055       lynxos*)
6056         ;;
6057       m88k*)
6058         ;;
6059       mvs*)
6060         case $cc_basename in
6061           cxx*)
6062             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6063             ;;
6064           *)
6065             ;;
6066         esac
6067         ;;
6068       netbsd*)
6069         ;;
6070       osf3* | osf4* | osf5*)
6071         case $cc_basename in
6072           KCC*)
6073             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6074             ;;
6075           RCC*)
6076             # Rational C++ 2.4.1
6077             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6078             ;;
6079           cxx*)
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'
6086             ;;
6087           *)
6088             ;;
6089         esac
6090         ;;
6091       psos*)
6092         ;;
6093       solaris*)
6094         case $cc_basename in
6095           CC*)
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 '
6100             ;;
6101           gcx*)
6102             # Green Hills C++ Compiler
6103             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6104             ;;
6105           *)
6106             ;;
6107         esac
6108         ;;
6109       sunos4*)
6110         case $cc_basename in
6111           CC*)
6112             # Sun C++ 4.x
6113             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6114             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6115             ;;
6116           lcc*)
6117             # Lucid
6118             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6119             ;;
6120           *)
6121             ;;
6122         esac
6123         ;;
6124       tandem*)
6125         case $cc_basename in
6126           NCC*)
6127             # NonStop-UX NCC 3.20
6128             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6129             ;;
6130           *)
6131             ;;
6132         esac
6133         ;;
6134       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6135         case $cc_basename in
6136           CC*)
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'
6140             ;;
6141         esac
6142         ;;
6143       vxworks*)
6144         ;;
6145       *)
6146         _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6147         ;;
6148     esac
6149   fi
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'
6156     case $host_os in
6157       aix*)
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'
6162       fi
6163       ;;
6165     amigaos*)
6166       # FIXME: we need at least 68020 code to build shared libraries, but
6167       # adding the `-m68020' flag to GCC prevents building anything better,
6168       # like `-m68040'.
6169       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6170       ;;
6172     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6173       # PIC is the default for these OSes.
6174       ;;
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'])
6183       ;;
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'
6189       ;;
6191     interix[[3-9]]*)
6192       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6193       # Instead, we relocate shared libraries at runtime.
6194       ;;
6196     msdosdjgpp*)
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
6200       enable_shared=no
6201       ;;
6203     sysv4*MP*)
6204       if test -d /usr/nec; then
6205         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6206       fi
6207       ;;
6209     hpux*)
6210       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6211       # not for PA HP-UX.
6212       case $host_cpu in
6213       hppa*64*|ia64*)
6214         # +Z the default
6215         ;;
6216       *)
6217         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6218         ;;
6219       esac
6220       ;;
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)"
6227       fi
6228       ;;
6229     esac
6230   else
6231     # PORTME Check for flag to pass linker flags through the system compiler.
6232     case $host_os in
6233     aix*)
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'
6238       else
6239         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6240       fi
6241       ;;
6242       darwin*)
6243         # PIC is the default on this platform
6244         # Common symbols not allowed in MH_DYLIB files
6245        case $cc_basename in
6246          xlc*)
6247          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6248          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6249          ;;
6250        esac
6251        ;;
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'])
6258       ;;
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
6263       # not for PA HP-UX.
6264       case $host_cpu in
6265       hppa*64*|ia64*)
6266         # +Z the default
6267         ;;
6268       *)
6269         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6270         ;;
6271       esac
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'
6274       ;;
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'
6280       ;;
6282     newsos6)
6283       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6284       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6285       ;;
6287     linux* | k*bsd*-gnu)
6288       case $cc_basename in
6289       icc* | ecc*)
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'
6293         ;;
6294       # icc used to be incompatible with GCC.
6295       # ICC 10 doesn't accept -KPIC any more.
6296       icc* | ifort*)
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'
6300         ;;
6301       # Lahey Fortran 8.1.
6302       lf95*)
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'
6306         ;;
6307       nagfor*)
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'
6312         ;;
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'
6319         ;;
6320       ccc*)
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'
6324         ;;
6325       *)
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)=''
6332           ;;
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 '
6337           ;;
6338         *Sun\ C*)
6339           # Sun C 5.9
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,'
6343           ;;
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'
6348           ;;
6349         *Portland\ Group*)
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'
6353           ;;
6354         esac
6355         ;;
6356       esac
6357       ;;
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'
6363       ;;
6365     rdos*)
6366       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6367       ;;
6369     solaris*)
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
6373       f77* | f90* | f95*)
6374         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6375       *)
6376         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6377       esac
6378       ;;
6380     sunos4*)
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'
6384       ;;
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'
6390       ;;
6392     sysv4*MP*)
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'
6396       fi
6397       ;;
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'
6403       ;;
6405     unicos*)
6406       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6407       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6408       ;;
6410     uts4*)
6411       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6412       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6413       ;;
6415     *)
6416       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6417       ;;
6418     esac
6419   fi
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
6431      "" | " "*) ;;
6432      *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6433      esac],
6434     [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6435      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6437 case $host_os in
6438   # For platforms which do not support PIC, -DPIC is meaningless:
6439   *djgpp*)
6440     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6441     ;;
6442   *)
6443     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6444     ;;
6445 esac
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
6460      "" | " "*) ;;
6461      *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6462      esac],
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,
6478   [],
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])
6496 ifelse([$1],[CXX],[
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]_.*']
6499   case $host_os in
6500   aix[[4-9]]*)
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'
6505     else
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'
6507     fi
6508     ;;
6509   pw32*)
6510     _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6511     ;;
6512   cygwin* | mingw* | cegcc*)
6513     case $cc_basename in
6514     cl*)
6515       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6516       ;;
6517     *)
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']
6520       ;;
6521     esac
6522     ;;
6523   *)
6524     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6525     ;;
6526   esac
6527 ], [
6528   runpath_var=
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])
6570   case $host_os in
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
6576       with_gnu_ld=no
6577     fi
6578     ;;
6579   interix*)
6580     # we just hope/assume this is gcc and not c89 (= MSVC++)
6581     with_gnu_ld=yes
6582     ;;
6583   openbsd*)
6584     with_gnu_ld=no
6585     ;;
6586   esac
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
6591     wlarc='${wl}'
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'
6602       else
6603         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6604     fi
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 ;;
6612     esac
6614     # See if GNU ld supports shared libraries.
6615     case $host_os in
6616     aix[[3-9]]*)
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
6620         cat <<EOF 1>&2
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.
6629       fi
6630       ;;
6632     amigaos*)
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
6642       # them.
6643       _LT_AC_TAGVAR(ld_shlibs, $1)=no
6644       ;;
6646     beos*)
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'
6652       else
6653         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6654       fi
6655       ;;
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;
6674         else
6675           echo EXPORTS > $output_objdir/$soname.def;
6676           cat $export_symbols >> $output_objdir/$soname.def;
6677         fi~
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'
6679       else
6680         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6681       fi
6682       ;;
6684     interix[[3-9]]*)
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'
6697       ;;
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'
6706           ;;
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' ;;
6716         esac
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' ;;
6723         *)
6724           tmp_sharedflag='-shared' ;;
6725         esac
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'
6733         fi
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'
6746           fi
6747           ;;
6748         esac
6749       else
6750         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6751       fi
6752       ;;
6754     netbsd*)
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'
6757         wlarc=
6758       else
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'
6761       fi
6762       ;;
6764     solaris*)
6765       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6766         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6767         cat <<EOF 1>&2
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.
6776 _LT_EOF
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'
6780       else
6781         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6782       fi
6783       ;;
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
6789         cat <<_LT_EOF 1>&2
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.
6798 _LT_EOF
6799         ;;
6800         *)
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'
6805           else
6806             _LT_AC_TAGVAR(ld_shlibs, $1)=no
6807           fi
6808         ;;
6809       esac
6810       ;;
6812     sunos4*)
6813       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6814       wlarc=
6815       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6816       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6817       ;;
6819     *)
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'
6823       else
6824         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6825       fi
6826       ;;
6827     esac
6829     if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6830       runpath_var=
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)=
6834     fi
6835   else
6836     # PORTME fill in a description of your system's linker (not GNU ld)
6837     case $host_os in
6838     aix3*)
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
6847         # broken collect2.
6848         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6849       fi
6850       ;;
6852     aix[[4-9]]*)
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'
6858         no_entry_flag=""
6859       else
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'
6864         else
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'
6866         fi
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
6876             break
6877           fi
6878           done
6879           ;;
6880         esac
6882         exp_sym_flag='-bexport'
6883         no_entry_flag='-bnoentry'
6884       fi
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
6904           then
6905           # We have reworked collect2
6906           :
6907           else
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)=
6916           fi
6917           ;;
6918         esac
6919         shared_flag='-shared'
6920         if test "$aix_use_runtimelinking" = yes; then
6921           shared_flag="$shared_flag "'${wl}-G'
6922         fi
6923       else
6924         # not using gcc
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:
6928           shared_flag='-G'
6929         else
6930           if test "$aix_use_runtimelinking" = yes; then
6931             shared_flag='${wl}-G'
6932           else
6933             shared_flag='${wl}-bM:SRE'
6934           fi
6935         fi
6936       fi
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
6946         # empty executable.
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"
6950       else
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"
6955         else
6956          # Determine the default libpath from the value encoded in an
6957          # empty executable.
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'
6969         fi
6970       fi
6971       ;;
6973     amigaos*)
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
6979       ;;
6981     bsdi[[45]]*)
6982       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6983       ;;
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
6991       cl*)
6992         # Native MSVC
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.
6998         libext=lib
6999         # Tell ltmain to make .dll files, not .so files.
7000         shrext_cmds=".dll"
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;
7005           else
7006             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
7007           fi~
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"~
7009           linknames='
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'
7015         # Don't use ranlib
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
7020             *.exe|*.EXE) ;;
7021             *)
7022               lt_outputfile="$lt_outputfile.exe"
7023               lt_tool_outputfile="$lt_tool_outputfile.exe"
7024               ;;
7025           esac~
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";
7029           fi'
7030         ;;
7031       *)
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.
7036         libext=lib
7037         # Tell ltmain to make .dll files, not .so files.
7038         shrext_cmds=".dll"
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
7046         ;;
7047       esac
7048       ;;
7050     darwin* | rhapsody*)
7051       case $host_os in
7052         rhapsody* | darwin1.[[012]])
7053          _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7054          ;;
7055        *) # Darwin 1.3 on
7056          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7057            _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7058          else
7059            case ${MACOSX_DEPLOYMENT_TARGET} in
7060              10.[[012]])
7061                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7062                ;;
7063              10.*)
7064                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7065                ;;
7066            esac
7067          fi
7068          ;;
7069       esac
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}"
7082     else
7083       case $cc_basename in
7084         xlc*)
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}'
7091           ;;
7092        *)
7093          _LT_AC_TAGVAR(ld_shlibs, $1)=no
7094           ;;
7095       esac
7096     fi
7097       ;;
7099     dgux*)
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
7103       ;;
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
7108     # extra space).
7109     freebsd2.2*)
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
7114       ;;
7116     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7117     freebsd2.*)
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
7122       ;;
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
7130       ;;
7132     hpux9*)
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'
7135       else
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'
7137       fi
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'
7146       ;;
7148     hpux10*)
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'
7151       else
7152         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7153       fi
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
7163       fi
7164       ;;
7166     hpux11*)
7167       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7168         case $host_cpu in
7169         hppa*64*)
7170           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7171           ;;
7172         ia64*)
7173           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7174           ;;
7175         *)
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'
7177           ;;
7178         esac
7179       else
7180         case $host_cpu in
7181         hppa*64*)
7182           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7183           ;;
7184         ia64*)
7185           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7186           ;;
7187         *)
7188           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7189           ;;
7190         esac
7191       fi
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)=:
7196         case $host_cpu in
7197         hppa*64*|ia64*)
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
7201           ;;
7202         *)
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
7209           ;;
7210         esac
7211       fi
7212       ;;
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"
7225            AC_LINK_IFELSE(
7226              [AC_LANG_SOURCE(
7227                 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
7228                               [C++], [[int foo (void) { return 0; }]],
7229                               [Fortran 77], [[
7230       subroutine foo
7231       end]],
7232                               [Fortran], [[
7233       subroutine foo
7234       end]])])],
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'
7240         fi
7241       else
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'
7244       fi
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
7248       ;;
7250     netbsd*)
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
7253       else
7254         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7255       fi
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
7259       ;;
7261     newsos6)
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
7267       ;;
7269     openbsd*)
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'
7278         else
7279           case $host_os in
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'
7283              ;;
7284            *)
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'
7287              ;;
7288           esac
7289         fi
7290       else
7291         _LT_AC_TAGVAR(ld_shlibs, $1)=no
7292       fi
7293       ;;
7295     os2*)
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'
7301       ;;
7303     osf3*)
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'
7307       else
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'
7310       fi
7311       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7312       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7313       ;;
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'
7320       else
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'
7328       fi
7329       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7330       ;;
7332     solaris*)
7333       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7334       if test "$GCC" = yes; then
7335         wlarc='${wl}'
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'
7339       else
7340         wlarc=''
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'
7344       fi
7345       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7346       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7347       case $host_os in
7348       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7349       *)
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'
7356         else
7357           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7358         fi
7359         ;;
7360       esac
7361       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7362       ;;
7364     sunos4*)
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'
7369       else
7370         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7371       fi
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
7376       ;;
7378     sysv4)
7379       case $host_vendor in
7380         sni)
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???
7383         ;;
7384         siemens)
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
7390         ;;
7391         motorola)
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
7394         ;;
7395       esac
7396       runpath_var='LD_RUN_PATH'
7397       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7398       ;;
7400     sysv4.3*)
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'
7404       ;;
7406     sysv4*MP*)
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
7413       fi
7414       ;;
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'
7425       else
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'
7428       fi
7429       ;;
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
7437       # as -z defs.
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'
7451       else
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'
7454       fi
7455       ;;
7457     uts4*)
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
7461       ;;
7463     *)
7464       _LT_AC_TAGVAR(ld_shlibs, $1)=no
7465       ;;
7466     esac
7467   fi
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
7476 x|xyes)
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
7482     *'~'*)
7483       # FIXME: we may have to deal with multi-command sequences.
7484       ;;
7485     '$CC '*)
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])
7490       $rm conftest*
7491       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7493         if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7494           soname=conftest
7495           lib=conftest
7496           libobjs=conftest.$ac_objext
7497           deplibs=
7498           wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7499           pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7500           compiler_flags=-v
7501           linker_flags=-v
7502           verstring=
7503           output_objdir=.
7504           libname=conftest
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)
7508           then
7509             lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7510           else
7511             lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7512           fi
7513           _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7514         else
7515           cat conftest.err 1>&5
7516         fi
7517         $RM conftest*
7518         ])
7519       _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
7520       ;;
7521     esac
7522   fi
7523   ;;
7524 esac
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
7545     a shared archive.])
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
7575     against it])
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
7608 lt_save_CC="$CC"
7609 AC_LANG_PUSH(C)
7611 # Source file extension for C test sources.
7612 ac_ext=c
7614 # Object file extension for compiled C test sources.
7615 objext=o
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);}'
7624 _LT_TAG_COMPILER
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)
7641   LT_SYS_DLOPEN_SELF
7642   _LT_CMD_STRIPLIB
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.
7653   case $host_os in
7654   aix3*)
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'
7659     fi
7660     ;;
7662   aix[[4-9]]*)
7663     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7664       test "$enable_shared" = yes && enable_static=no
7665     fi
7666     ;;
7667   esac
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])
7675   _LT_CONFIG($1)
7677 AC_LANG_POP
7678 CC="$lt_save_CC"
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
7694   AC_PROG_CXXCPP
7695 else
7696   _lt_caught_CXX_error=yes
7699 AC_LANG_PUSH(C++)
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.
7725 ac_ext=cpp
7727 # Object file extension for compiled C++ test sources.
7728 objext=o
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.
7743   _LT_TAG_COMPILER
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.
7750   lt_save_CC=$CC
7751   lt_save_CFLAGS=$CFLAGS
7752   lt_save_LD=$LD
7753   lt_save_GCC=$GCC
7754   GCC=$GXX
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
7759   else
7760     $as_unset lt_cv_prog_gnu_ld
7761   fi
7762   if test -n "${lt_cv_path_LDCXX+set}"; then
7763     lt_cv_path_LD=$lt_cv_path_LDCXX
7764   else
7765     $as_unset lt_cv_path_LD
7766   fi
7767   test -z "${LDCXX+set}" || LD=$LDCXX
7768   CC=${CXX-"c++"}
7769   CFLAGS=$CXXFLAGS
7770   compiler=$CC
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'
7779     else
7780       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7781     fi
7783     if test "$GXX" = yes; then
7784       # Set up default GNU C++ configuration
7786       LT_PATH_LD
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)
7800         wlarc='${wl}'
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'
7806         else
7807           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7808         fi
7809         _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7810       else
7811         cat conftest.err 1>&5
7812       fi
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"'
7819     else
7820       GXX=no
7821       with_gnu_ld=no
7822       wlarc=
7823     fi
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
7828     case $host_os in
7829       aix3*)
7830         # FIXME: insert proper C++ library support
7831         _LT_TAGVAR(ld_shlibs, $1)=no
7832         ;;
7833       aix[[4-9]]*)
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'
7839           no_entry_flag=""
7840         else
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
7848               case $ld_flag in
7849               *-brtl*)
7850                 aix_use_runtimelinking=yes
7851                 break
7852                 ;;
7853               esac
7854             done
7855             ;;
7856           esac
7858           exp_sym_flag='-bexport'
7859           no_entry_flag='-bnoentry'
7860         fi
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
7882           then
7883             # We have reworked collect2
7884             :
7885           else
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)=
7894           fi
7895           esac
7896           shared_flag='-shared'
7897           if test "$aix_use_runtimelinking" = yes; then
7898             shared_flag="$shared_flag "'${wl}-G'
7899           fi
7900         else
7901           # not using gcc
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:
7905           shared_flag='-G'
7906           else
7907             if test "$aix_use_runtimelinking" = yes; then
7908               shared_flag='${wl}-G'
7909             else
7910               shared_flag='${wl}-bM:SRE'
7911             fi
7912           fi
7913         fi
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
7918         # export.
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
7925           # executable.
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"
7930         else
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"
7935           else
7936             # Determine the default libpath from the value encoded in an
7937             # empty executable.
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'
7947             else
7948               # Exported symbols can be pulled into shared objects from archives
7949               _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7950             fi
7951             _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7952             # This is similar to how AIX traditionally builds its shared
7953             # libraries.
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'
7955           fi
7956         fi
7957         ;;
7959       beos*)
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'
7965         else
7966           _LT_TAGVAR(ld_shlibs, $1)=no
7967         fi
7968         ;;
7970       chorus*)
7971         case $cc_basename in
7972           *)
7973           # FIXME: insert proper C++ library support
7974           _LT_TAGVAR(ld_shlibs, $1)=no
7975           ;;
7976         esac
7977         ;;
7979       cygwin* | mingw* | pw32* | cegcc*)
7980         case $GXX,$cc_basename in
7981         ,cl* | no,cl*)
7982           # Native MSVC
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.
7990           libext=lib
7991           # Tell ltmain to make .dll files, not .so files.
7992           shrext_cmds=".dll"
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;
7997             else
7998               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
7999             fi~
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"~
8001             linknames='
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
8005           # Don't use ranlib
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
8010               *.exe|*.EXE) ;;
8011               *)
8012                 lt_outputfile="$lt_outputfile.exe"
8013                 lt_tool_outputfile="$lt_tool_outputfile.exe"
8014                 ;;
8015             esac~
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";
8020             fi'
8021           ;;
8022         *)
8023           # g++
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;
8038             else
8039               echo EXPORTS > $output_objdir/$soname.def;
8040               cat $export_symbols >> $output_objdir/$soname.def;
8041             fi~
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'
8043           else
8044             _LT_TAGVAR(ld_shlibs, $1)=no
8045           fi
8046           ;;
8047         esac
8048         ;;
8049       darwin* | rhapsody*)
8050         _LT_DARWIN_LINKER_FEATURES($1)
8051         ;;
8053       dgux*)
8054         case $cc_basename in
8055           ec++*)
8056             # FIXME: insert proper C++ library support
8057             _LT_TAGVAR(ld_shlibs, $1)=no
8058             ;;
8059           ghcx*)
8060             # Green Hills C++ Compiler
8061             # FIXME: insert proper C++ library support
8062             _LT_TAGVAR(ld_shlibs, $1)=no
8063             ;;
8064           *)
8065             # FIXME: insert proper C++ library support
8066             _LT_TAGVAR(ld_shlibs, $1)=no
8067             ;;
8068         esac
8069         ;;
8071       freebsd2.*)
8072         # C++ shared libraries reported to be fairly broken before
8073         # switch to ELF
8074         _LT_TAGVAR(ld_shlibs, $1)=no
8075         ;;
8077       freebsd-elf*)
8078         _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8079         ;;
8081       freebsd* | dragonfly*)
8082         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8083         # conventions
8084         _LT_TAGVAR(ld_shlibs, $1)=yes
8085         ;;
8087       gnu*)
8088         ;;
8090       haiku*)
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
8093         ;;
8095       hpux9*)
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
8105           CC*)
8106             # FIXME: insert proper C++ library support
8107             _LT_TAGVAR(ld_shlibs, $1)=no
8108             ;;
8109           aCC*)
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.
8114             #
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
8118             # dependencies.
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"'
8120             ;;
8121           *)
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'
8124             else
8125               # FIXME: insert proper C++ library support
8126               _LT_TAGVAR(ld_shlibs, $1)=no
8127             fi
8128             ;;
8129         esac
8130         ;;
8132       hpux10*|hpux11*)
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)=:
8137           case $host_cpu in
8138             hppa*64*|ia64*)
8139               ;;
8140             *)
8141               _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8142               ;;
8143           esac
8144         fi
8145         case $host_cpu in
8146           hppa*64*|ia64*)
8147             _LT_TAGVAR(hardcode_direct, $1)=no
8148             _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8149             ;;
8150           *)
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.
8156             ;;
8157         esac
8159         case $cc_basename in
8160           CC*)
8161             # FIXME: insert proper C++ library support
8162             _LT_TAGVAR(ld_shlibs, $1)=no
8163             ;;
8164           aCC*)
8165             case $host_cpu in
8166               hppa*64*)
8167                 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8168                 ;;
8169               ia64*)
8170                 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8171                 ;;
8172               *)
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'
8174                 ;;
8175             esac
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.
8179             #
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
8183             # dependencies.
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"'
8185             ;;
8186           *)
8187             if test "$GXX" = yes; then
8188               if test $with_gnu_ld = no; then
8189                 case $host_cpu in
8190                   hppa*64*)
8191                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8192                     ;;
8193                   ia64*)
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'
8195                     ;;
8196                   *)
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'
8198                     ;;
8199                 esac
8200               fi
8201             else
8202               # FIXME: insert proper C++ library support
8203               _LT_TAGVAR(ld_shlibs, $1)=no
8204             fi
8205             ;;
8206         esac
8207         ;;
8209       interix[[3-9]]*)
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'
8222         ;;
8223       irix5* | irix6*)
8224         case $cc_basename in
8225           CC*)
8226             # SGI C++
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
8232             # in the archive.
8233             _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
8234             ;;
8235           *)
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'
8239               else
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'
8241               fi
8242             fi
8243             _LT_TAGVAR(link_all_deplibs, $1)=yes
8244             ;;
8245         esac
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
8249         ;;
8251       linux* | k*bsd*-gnu | kopensolaris*-gnu)
8252         case $cc_basename in
8253           KCC*)
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.
8264             #
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
8268             # dependencies.
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'
8277             ;;
8278           icpc* | ecpc* )
8279             # Intel C++
8280             with_gnu_ld=yes
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
8285               *"Version 7."*)
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'
8288                 ;;
8289               *)  # Version 8.0 or newer
8290                 tmp_idyn=
8291                 case $host_cpu in
8292                   ia64*) tmp_idyn=' -i_dynamic';;
8293                 esac
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'
8296                 ;;
8297             esac
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'
8302             ;;
8303           pgCC* | pgcpp*)
8304             # Portland Group C++ compiler
8305             case `$CC -V` in
8306             *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
8307               _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
8308                 rm -rf $tpldir~
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~
8312                 rm -rf $tpldir~
8313                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8314                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8315                 $RANLIB $oldlib'
8316               _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
8317                 rm -rf $tpldir~
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~
8321                 rm -rf $tpldir~
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'
8324               ;;
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'
8328               ;;
8329             esac
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'
8334             ;;
8335           cxx*)
8336             # Compaq C++
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.
8347             #
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
8351             # dependencies.
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'
8353             ;;
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'
8364             fi
8365             ;;
8366           *)
8367             case `$CC -V 2>&1 | sed 5q` in
8368             *Sun\ C*)
8369               # Sun C++ 5.9
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
8379               # would be better.
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
8385               # in the archive.
8386               _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8387               ;;
8388             esac
8389             ;;
8390         esac
8391         ;;
8393       lynxos*)
8394         # FIXME: insert proper C++ library support
8395         _LT_TAGVAR(ld_shlibs, $1)=no
8396         ;;
8398       m88k*)
8399         # FIXME: insert proper C++ library support
8400         _LT_TAGVAR(ld_shlibs, $1)=no
8401         ;;
8403       mvs*)
8404         case $cc_basename in
8405           cxx*)
8406             # FIXME: insert proper C++ library support
8407             _LT_TAGVAR(ld_shlibs, $1)=no
8408             ;;
8409           *)
8410             # FIXME: insert proper C++ library support
8411             _LT_TAGVAR(ld_shlibs, $1)=no
8412             ;;
8413         esac
8414         ;;
8416       netbsd*)
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'
8419           wlarc=
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
8423         fi
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::"'
8426         ;;
8428       *nto* | *qnx*)
8429         _LT_TAGVAR(ld_shlibs, $1)=yes
8430         ;;
8432       openbsd2*)
8433         # C++ shared libraries are fairly broken
8434         _LT_TAGVAR(ld_shlibs, $1)=no
8435         ;;
8437       openbsd*)
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'
8448           fi
8449           output_verbose_link_cmd=func_echo_all
8450         else
8451           _LT_TAGVAR(ld_shlibs, $1)=no
8452         fi
8453         ;;
8455       osf3* | osf4* | osf5*)
8456         case $cc_basename in
8457           KCC*)
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.
8470             case $host in
8471               osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
8472               *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
8473             esac
8474             ;;
8475           RCC*)
8476             # Rational C++ 2.4.1
8477             # FIXME: insert proper C++ library support
8478             _LT_TAGVAR(ld_shlibs, $1)=no
8479             ;;
8480           cxx*)
8481             case $host in
8482               osf3*)
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'
8486                 ;;
8487               *)
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~
8493                   $RM $lib.exp'
8494                 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8495                 ;;
8496             esac
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.
8503             #
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
8507             # dependencies.
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"'
8509             ;;
8510           *)
8511             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8512               _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8513               case $host in
8514                 osf3*)
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'
8516                   ;;
8517                 *)
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'
8519                   ;;
8520               esac
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"'
8530             else
8531               # FIXME: insert proper C++ library support
8532               _LT_TAGVAR(ld_shlibs, $1)=no
8533             fi
8534             ;;
8535         esac
8536         ;;
8538       psos*)
8539         # FIXME: insert proper C++ library support
8540         _LT_TAGVAR(ld_shlibs, $1)=no
8541         ;;
8543       sunos4*)
8544         case $cc_basename in
8545           CC*)
8546             # Sun C++ 4.x
8547             # FIXME: insert proper C++ library support
8548             _LT_TAGVAR(ld_shlibs, $1)=no
8549             ;;
8550           lcc*)
8551             # Lucid
8552             # FIXME: insert proper C++ library support
8553             _LT_TAGVAR(ld_shlibs, $1)=no
8554             ;;
8555           *)
8556             # FIXME: insert proper C++ library support
8557             _LT_TAGVAR(ld_shlibs, $1)=no
8558             ;;
8559         esac
8560         ;;
8562       solaris*)
8563         case $cc_basename in
8564           CC* | sunCC*)
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
8574             case $host_os in
8575               solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8576               *)
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'
8581                 ;;
8582             esac
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
8590             # in the archive.
8591             _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8592             ;;
8593           gcx*)
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'
8599             ;;
8600           *)
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"'
8613               else
8614                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
8615                 # platform.
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"'
8624               fi
8626               _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8627               case $host_os in
8628                 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8629                 *)
8630                   _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8631                   ;;
8632               esac
8633             fi
8634             ;;
8635         esac
8636         ;;
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
8645         CC*)
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'
8648           ;;
8649         *)
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'
8652           ;;
8653       esac
8654       ;;
8655     esac
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"
8663     ## CAVEAT EMPTOR:
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)
8675     _LT_CONFIG($1)
8676   fi # test -n "$compiler"
8678   CC=$lt_save_CC
8679   CFLAGS=$lt_save_CFLAGS
8680   LDCXX=$LD
8681   LD=$lt_save_LD
8682   GCC=$lt_save_GCC
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
8690 AC_LANG_POP
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 ()
8710   case ${2} in
8711   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8712   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8713   esac
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
8739 int a;
8740 void foo (void) { a = 0; }
8741 _LT_EOF
8742 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
8743 class Foo
8745 public:
8746   Foo (void) { a = 0; }
8747 private:
8748   int a;
8750 _LT_EOF
8751 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
8752       subroutine foo
8753       implicit none
8754       integer*4 a
8755       a=0
8756       return
8757       end
8758 _LT_EOF
8759 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
8760       subroutine foo
8761       implicit none
8762       integer a
8763       a=0
8764       return
8765       end
8766 _LT_EOF
8767 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
8768 public class foo {
8769   private int a;
8770   public void bar (void) {
8771     a = 0;
8772   }
8774 _LT_EOF
8775 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
8776 package foo
8777 func foo() {
8779 _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" ;;
8787 esac
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
8800     case ${prev}${p} in
8802     -L* | -R* | -l*)
8803        # Some compilers place space between "-{L,R}" and the path.
8804        # Remove the space.
8805        if test $p = "-L" ||
8806           test $p = "-R"; then
8807          prev=$p
8808          continue
8809        fi
8811        # Expand the sysroot to ease extracting the directories later.
8812        if test -z "$prev"; then
8813          case $p in
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 ;;
8817          esac
8818        fi
8819        case $p in
8820        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
8821        esac
8822        if test "$pre_test_object_deps_done" = no; then
8823          case ${prev} in
8824          -L | -R)
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}"
8830            else
8831              _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8832            fi
8833            ;;
8834          # The "-l" case would never come before the object being
8835          # linked, so don't bother handling this case.
8836          esac
8837        else
8838          if test -z "$_LT_TAGVAR(postdeps, $1)"; then
8839            _LT_TAGVAR(postdeps, $1)="${prev}${p}"
8840          else
8841            _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
8842          fi
8843        fi
8844        prev=
8845        ;;
8847     *.lto.$objext) ;; # Ignore GCC LTO objects
8848     *.$objext)
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
8853          continue
8854        fi
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"
8859          else
8860            _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8861          fi
8862        else
8863          if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8864            _LT_TAGVAR(postdep_objects, $1)="$p"
8865          else
8866            _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8867          fi
8868        fi
8869        ;;
8871     *) ;; # Ignore the rest.
8873     esac
8874   done
8876   # Clean up.
8877   rm -f a.out a.exe
8878 else
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
8886 m4_if([$1], [CXX],
8887 [case $host_os in
8888 interix[[3-9]]*)
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)=
8894   ;;
8895 esac
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__
8912 # #  endif
8913 # #endif
8915 # #ifdef __cplusplus
8916 # extern "C" {
8917 # #endif
8918 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8919 # #ifdef __cplusplus
8920 # }
8921 # #endif
8923 # #ifdef __CYGWIN__
8924 # #include <cygwin/cygwin_dll.h>
8925 # DECLARE_CYGWIN_DLL( DllMain );
8926 # #endif
8927 # HINSTANCE __hDllInstance_base;
8929 # BOOL APIENTRY
8930 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8931 # {
8932 #   __hDllInstance_base = hInst;
8933 #   return TRUE;
8934 # }
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
8962 # old names
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="\
8976       program t
8977       end
8980   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8981   _LT_TAG_COMPILER
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.
8988   lt_save_CC="$CC"
8989   lt_save_GCC=$GCC
8990   lt_save_CFLAGS=$CFLAGS
8991   CC=${F77-"f77"}
8992   CFLAGS=$FFLAGS
8993   compiler=$CC
8994   _LT_TAGVAR(compiler, $1)=$CC
8995   _LT_CC_BASENAME([$compiler])
8996   GCC=$G77
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.
9006     case $host_os in
9007       aix3*)
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'
9012         fi
9013         ;;
9014       aix[[4-9]]*)
9015         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9016           test "$enable_shared" = yes && enable_static=no
9017         fi
9018         ;;
9019     esac
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"
9030     ## CAVEAT EMPTOR:
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)
9041     _LT_CONFIG($1)
9042   fi # test -n "$compiler"
9044   GCC=$lt_save_GCC
9045   CC="$lt_save_CC"
9046   CFLAGS="$lt_save_CFLAGS"
9047 fi # test "$_lt_disable_F77" != yes
9049 AC_LANG_POP
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
9062   _lt_disable_FC=yes
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.
9091 objext=o
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="\
9101       subroutine t
9102       return
9103       end
9106   # Code to be used in simple link tests
9107   lt_simple_link_test_code="\
9108       program t
9109       end
9112   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9113   _LT_TAG_COMPILER
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.
9120   lt_save_CC="$CC"
9121   lt_save_GCC=$GCC
9122   lt_save_CFLAGS=$CFLAGS
9123   CC=${FC-"f95"}
9124   CFLAGS=$FCFLAGS
9125   compiler=$CC
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.
9140     case $host_os in
9141       aix3*)
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'
9146         fi
9147         ;;
9148       aix[[4-9]]*)
9149         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9150           test "$enable_shared" = yes && enable_static=no
9151         fi
9152         ;;
9153     esac
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"
9164     ## CAVEAT EMPTOR:
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)
9176     _LT_CONFIG($1)
9177   fi # test -n "$compiler"
9179   GCC=$lt_save_GCC
9180   CC=$lt_save_CC
9181   CFLAGS=$lt_save_CFLAGS
9182 fi # test "$_lt_disable_FC" != yes
9184 AC_LANG_POP
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
9195 AC_LANG_SAVE
9197 # Source file extension for Java test sources.
9198 ac_ext=java
9200 # Object file extension for compiled Java test sources.
9201 objext=o
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.
9211 _LT_TAG_COMPILER
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.
9218 lt_save_CC=$CC
9219 lt_save_CFLAGS=$CFLAGS
9220 lt_save_GCC=$GCC
9221 GCC=yes
9222 CC=${GCJ-"gcj"}
9223 CFLAGS=$GCJFLAGS
9224 compiler=$CC
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)
9244   _LT_CONFIG($1)
9247 AC_LANG_RESTORE
9249 GCC=$lt_save_GCC
9250 CC=$lt_save_CC
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
9262 AC_LANG_SAVE
9264 # Source file extension for Go test sources.
9265 ac_ext=go
9267 # Object file extension for compiled Go test sources.
9268 objext=o
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.
9278 _LT_TAG_COMPILER
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.
9285 lt_save_CC=$CC
9286 lt_save_CFLAGS=$CFLAGS
9287 lt_save_GCC=$GCC
9288 GCC=yes
9289 CC=${GOC-"gccgo"}
9290 CFLAGS=$GOFLAGS
9291 compiler=$CC
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)
9311   _LT_CONFIG($1)
9314 AC_LANG_RESTORE
9316 GCC=$lt_save_GCC
9317 CC=$lt_save_CC
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
9329 AC_LANG_SAVE
9331 # Source file extension for RC test sources.
9332 ac_ext=rc
9334 # Object file extension for compiled RC test sources.
9335 objext=o
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.
9345 _LT_TAG_COMPILER
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.
9352 lt_save_CC="$CC"
9353 lt_save_CFLAGS=$CFLAGS
9354 lt_save_GCC=$GCC
9355 GCC=
9356 CC=${RC-"windres"}
9357 CFLAGS=
9358 compiler=$CC
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
9364   :
9365   _LT_CONFIG($1)
9368 GCC=$lt_save_GCC
9369 AC_LANG_RESTORE
9370 CC=$lt_save_CC
9371 CFLAGS=$lt_save_CFLAGS
9372 ])# _LT_LANG_RC_CONFIG
9375 # LT_PROG_GCJ
9376 # -----------
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
9385 # Old name:
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], [])
9391 # LT_PROG_GO
9392 # ----------
9393 AC_DEFUN([LT_PROG_GO],
9394 [AC_CHECK_TOOL(GOC, gccgo,)
9398 # LT_PROG_RC
9399 # ----------
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.
9408 # _AS_TEST_PREPARE
9409 # ----------------
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'
9414 else
9415   as_executable_p='test -f'
9417 ])])# _AS_TEST_PREPARE
9419 # AS_EXECUTABLE_P
9420 # ---------------
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
9428 # _LT_DECL_OBJDUMP
9429 # --------------
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])
9436 AC_SUBST([OBJDUMP])
9439 # _LT_DECL_DLLTOOL
9440 # ----------------
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])
9446 AC_SUBST([DLLTOOL])
9449 # _LT_DECL_SED
9450 # ------------
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],
9454 [AC_PROG_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])
9460 ])# _LT_DECL_SED
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.                               #
9467 # LT_AC_PROG_SED
9468 # --------------
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
9477 for as_dir in $PATH
9479   IFS=$as_save_IFS
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"
9485       fi
9486     done
9487   done
9488 done
9489 IFS=$as_save_IFS
9490 lt_ac_max=0
9491 lt_ac_count=0
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
9497   lt_ac_count=0
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
9502     break
9503   fi
9504   while true; do
9505     cat conftest.in conftest.in >conftest.tmp
9506     mv conftest.tmp conftest.in
9507     cp conftest.in conftest.nl
9508     echo >>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
9517     fi
9518   done
9519 done
9521 SED=$lt_cv_path_SED
9522 AC_SUBST([SED])
9523 AC_MSG_RESULT([$SED])
9524 ])#AC_PROG_SED
9525 ])#m4_ifndef
9527 # Old name:
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
9540 xsi_shell=no
9541 ( _lt_dummy="a/b/c"
9542   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9543       = c,a/b,b/c, \
9544     && eval 'test $(( 1 + 1 )) -eq 2 \
9545     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9546   && xsi_shell=yes
9547 AC_MSG_RESULT([$xsi_shell])
9548 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
9550 AC_MSG_CHECKING([whether the shell understands "+="])
9551 lt_shell_append=no
9552 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
9553     >/dev/null 2>&1 \
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
9559   lt_unset=unset
9560 else
9561   lt_unset=false
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'
9571   ;;
9572  *) # EBCDIC based system
9573   lt_SP2NL='tr \100 \n'
9574   lt_NL2SP='tr \r\n \100\100'
9575   ;;
9576 esac
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],
9587 [dnl {
9588 sed -e '/^$1 ()$/,/^} # $1 /c\
9589 $1 ()\
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
9606     case ${1} in
9607       */*) func_dirname_result="${1%/*}${2}" ;;
9608       *  ) func_dirname_result="${3}" ;;
9609     esac])
9611   _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
9612     func_basename_result="${1##*/}"])
9614   _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
9615     case ${1} in
9616       */*) func_dirname_result="${1%/*}${2}" ;;
9617       *  ) func_dirname_result="${3}" ;;
9618     esac
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
9637     case ${1} in
9638       *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
9639       *)    func_lo2o_result=${1} ;;
9640     esac])
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=:
9662 else
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,
9685 [case $host in
9686   *-*-mingw* )
9687     case $build in
9688       *-*-mingw* ) # actually msys
9689         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9690         ;;
9691       *-*-cygwin* )
9692         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9693         ;;
9694       * ) # otherwise, assume *nix
9695         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9696         ;;
9697     esac
9698     ;;
9699   *-*-cygwin* )
9700     case $build in
9701       *-*-mingw* ) # actually msys
9702         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9703         ;;
9704       *-*-cygwin* )
9705         lt_cv_to_host_file_cmd=func_convert_file_noop
9706         ;;
9707       * ) # otherwise, assume *nix
9708         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9709         ;;
9710     esac
9711     ;;
9712   * ) # unhandled hosts (and "normal" native builds)
9713     lt_cv_to_host_file_cmd=func_convert_file_noop
9714     ;;
9715 esac
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
9726 case $host in
9727   *-*-mingw* )
9728     case $build in
9729       *-*-mingw* ) # actually msys
9730         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9731         ;;
9732     esac
9733     ;;
9734 esac
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,
9745 #   Inc.
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
9768 # saved as a flag.
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
9787 # are set.
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
9793 ])[]dnl
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],
9804 [# 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],[
9809   dnl
9810   dnl Simply set some default values (i.e off) if boolean options were not
9811   dnl specified:
9812   _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
9813   ])
9814   _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
9815   ])
9816   dnl
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])
9826   ])
9827 ])# _LT_SET_OPTIONS
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
9844 # dlopen
9845 # ------
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], [])
9860 # win32-dll
9861 # ---------
9862 # Declare package support for building win32 dll's.
9863 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9864 [enable_win32_dll=yes
9866 case $host in
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)
9871   ;;
9872 esac
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
9882 ])# win32-dll
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}
9907     case $enableval in
9908     yes) enable_shared=yes ;;
9909     no) enable_shared=no ;;
9910     *)
9911       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
9915         IFS="$lt_save_ifs"
9916         if test "X$pkg" = "X$p"; then
9917           enable_shared=yes
9918         fi
9919       done
9920       IFS="$lt_save_ifs"
9921       ;;
9922     esac],
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])])
9932 # Old names:
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}
9961     case $enableval in
9962     yes) enable_static=yes ;;
9963     no) enable_static=no ;;
9964     *)
9965      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
9969         IFS="$lt_save_ifs"
9970         if test "X$pkg" = "X$p"; then
9971           enable_static=yes
9972         fi
9973       done
9974       IFS="$lt_save_ifs"
9975       ;;
9976     esac],
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])])
9986 # Old names:
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}
10015     case $enableval in
10016     yes) enable_fast_install=yes ;;
10017     no) enable_fast_install=no ;;
10018     *)
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
10023         IFS="$lt_save_ifs"
10024         if test "X$pkg" = "X$p"; then
10025           enable_fast_install=yes
10026         fi
10027       done
10028       IFS="$lt_save_ifs"
10029       ;;
10030     esac],
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])])
10040 # Old names:
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'
10063 # LT_INIT options.
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}
10070     case $withval in
10071     yes|no) pic_mode=$withval ;;
10072     *)
10073       pic_mode=default
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
10077         IFS="$lt_save_ifs"
10078         if test "X$lt_pkg" = "X$lt_p"; then
10079           pic_mode=yes
10080         fi
10081       done
10082       IFS="$lt_save_ifs"
10083       ;;
10084     esac],
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
10090 ])# _LT_WITH_PIC
10092 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
10093 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
10095 # Old name:
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], [],
10144        [$#], [2], [[$2]],
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($@)))])])
10151 # lt_car(LIST)
10152 # lt_cdr(LIST)
10153 # ------------
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])],
10160        [$#], 1, [],
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],
10176 [m4_define([$1],
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],
10201 [m4_ifdef([$1],
10202           [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
10203                  [lt_append([$1], [$2], [$3])$4],
10204                  [$5])],
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],
10223 [m4_ifval([$3],
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],
10232         [$5],
10233     [$6])])
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])
10405         else
10406                 AC_MSG_RESULT([no])
10407                 PKG_CONFIG=""
10408         fi
10409                 
10410 fi[]dnl
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
10429   $3])dnl
10430 fi])
10433 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
10434 # ---------------------------------------------
10435 m4_define([_PKG_CONFIG],
10436 [if test -n "$$1"; then
10437     pkg_cv_[]$1="$$1"
10438  elif test -n "$PKG_CONFIG"; then
10439     PKG_CHECK_EXISTS([$3],
10440                      [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
10441                      [pkg_failed=yes])
10442  else
10443     pkg_failed=untried
10444 fi[]dnl
10445 ])# _PKG_CONFIG
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
10453 else
10454         _pkg_short_errors_supported=no
10455 fi[]dnl
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
10474 pkg_failed=no
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`
10488         else 
10489                 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
10490         fi
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:
10497 $$1_PKG_ERRORS
10499 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10500 installed software in a non-standard prefix.
10502 _PKG_TEXT
10503 ])],
10504                 [AC_MSG_RESULT([no])
10505                 $4])
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.
10512 _PKG_TEXT
10514 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
10515                 [$4])
10516 else
10517         $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
10518         $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
10519         AC_MSG_RESULT([yes])
10520         ifelse([$3], , :, [$3])
10521 fi[]dnl
10522 ])# PKG_CHECK_MODULES
10524 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
10525 # Foundation, Inc.
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.
10531 # serial 1
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.
10571 # serial 5
10573 # AM_PROG_AS
10574 # ----------
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.
10593 # serial 1
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.
10649 # serial 9
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
10663 if $2; then
10664   $1_TRUE=
10665   $1_FALSE='#'
10666 else
10667   $1_TRUE='#'
10668   $1_FALSE=
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.]])
10674 fi])])
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.
10683 # serial 12
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
10722   # in D'.
10723   rm -rf conftest.dir
10724   mkdir 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
10728   cd 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
10734   # directory.
10735   mkdir sub
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`
10740   fi
10741   am__universal=false
10742   m4_case([$1], [CC],
10743     [case " $depcc " in #(
10744      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10745      esac],
10746     [CXX],
10747     [case " $depcc " in #(
10748      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10749      esac])
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.
10755     #
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.
10759     : > sub/conftest.c
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
10765     done
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"
10774     case $depmode in
10775     gcc)
10776       # This depmode causes a compiler race in universal mode.
10777       test "$am__universal" = false || continue
10778       ;;
10779     nosideeffect)
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
10783         continue
10784       else
10785         break
10786       fi
10787       ;;
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}
10793       am__minus_obj=
10794       ;;
10795     none) break ;;
10796     esac
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
10816         break
10817       fi
10818     fi
10819   done
10821   cd ..
10822   rm -rf conftest.dir
10823 else
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])
10834 # AM_SET_DEPDIR
10835 # -------------
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
10844 # AM_DEP_TRACK
10845 # ------------
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"
10852   AMDEPBACKSLASH='\'
10853   am__nodep='_no'
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.
10871 #serial 5
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 ;;
10883   esac
10884   shift
10885   for mf
10886   do
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")`
10898     else
10899       continue
10900     fi
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
10913     # expansion.
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"
10923     done
10924   done
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.
10949 # serial 8
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.
10963 # serial 16
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])
10993   fi
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'
11000   else
11001     CYGPATH_W=echo
11002   fi
11004 AC_SUBST([CYGPATH_W])
11006 # Define the identity of the package.
11007 dnl Distinguish between old-style and new-style calls.
11008 m4_ifval([$2],
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
11035 # some platforms.
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.
11081 _am_arg=$1
11082 _am_stamp_count=1
11083 for _am_header in $config_headers :; do
11084   case $_am_header in
11085     $_am_arg | $_am_arg:* )
11086       break ;;
11087     * )
11088       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11089   esac
11090 done
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,
11094 # Inc.
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.
11100 # serial 1
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
11109   *\ * | *\     *)
11110     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11111   *)
11112     install_sh="\${SHELL} $am_aux_dir/install-sh"
11113   esac
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.
11123 # serial 2
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
11131   am__leading_dot=.
11132 else
11133   am__leading_dot=_
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.
11146 # serial 4
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'
11154 am__doit:
11155         @echo this is the am__doit target
11156 .PHONY: am__doit
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])
11160 am__include="#"
11161 am__quote=
11162 _am_result=none
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
11169   am__quote=
11170   _am_result=GNU
11171   ;;
11172 esac
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
11179      am__quote="\""
11180      _am_result=BSD
11181      ;;
11182    esac
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.
11199 # serial 6
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"}
11206 AC_SUBST($1)])
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
11218   *\ * | *\     *)
11219     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11220   *)
11221     MISSING="\${SHELL} $am_aux_dir/missing" ;;
11222   esac
11224 # Use eval to expand $SHELL
11225 if eval "$MISSING --run true"; then
11226   am_missing_run="$MISSING --run "
11227 else
11228   am_missing_run=
11229   AC_MSG_WARN([`missing' script is too old or missing])
11233 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
11234 # Inc.
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.
11240 # serial 1
11242 # AM_PROG_MKDIR_P
11243 # ---------------
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
11254 dnl MKDIR_P).
11255 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
11256 case $mkdir_p in
11257   [[\\/$]]* | ?:[[\\/]]*) ;;
11258   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11259 esac
11262 # Helper functions for option handling.                     -*- Autoconf -*-
11264 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
11265 # Foundation, Inc.
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.
11271 # serial 5
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.
11305 # serial 5
11307 # AM_SANITY_CHECK
11308 # ---------------
11309 AC_DEFUN([AM_SANITY_CHECK],
11310 [AC_MSG_CHECKING([whether build environment is sane])
11311 # Just in case
11312 sleep 1
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.
11316 am_lf='
11318 case `pwd` in
11319   *[[\\\"\#\$\&\'\`$am_lf]]*)
11320     AC_MSG_ERROR([unsafe absolute working directory name]);;
11321 esac
11322 case $srcdir in
11323   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
11324     AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
11325 esac
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
11331 # directory).
11332 if (
11333    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11334    if test "$[*]" = "X"; then
11335       # -L didn't work.
11336       set X `ls -t "$srcdir/configure" conftest.file`
11337    fi
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])
11348    fi
11350    test "$[2]" = conftest.file
11351    )
11352 then
11353    # Ok.
11354    :
11355 else
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.
11367 # serial 2
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]);;
11381 esac
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))
11390 BAR0=false
11391 BAR1=true
11393 am__doit:
11394         @$(TRUE)
11395 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
11396   am_cv_make_support_nested_variables=yes
11397 else
11398   am_cv_make_support_nested_variables=no
11399 fi])
11400 if test $am_cv_make_support_nested_variables = yes; then
11401   dnl Using `$V' instead of `$(V)' breaks IRIX make.
11402   AM_V='$(V)'
11403   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11404 else
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
11413 AM_BACKSLASH='\'
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.
11424 # serial 1
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.
11454 # serial 3
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.
11475 # serial 2
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
11484 # $tardir.
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}'])
11494 m4_if([$1], [v7],
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
11506   case $_am_tool in
11507   gnutar)
11508     for _am_tar in tar gnutar gtar;
11509     do
11510       AM_RUN_LOG([$_am_tar --version]) && break
11511     done
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 -"
11515     ;;
11516   plaintar)
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 -'
11523     ;;
11524   pax)
11525     am__tar='pax -L -x $1 -w "$$tardir"'
11526     am__tar_='pax -L -x $1 -w "$tardir"'
11527     am__untar='pax -r'
11528     ;;
11529   cpio)
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'
11533     ;;
11534   none)
11535     am__tar=false
11536     am__tar_=false
11537     am__untar=false
11538     ;;
11539   esac
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
11547   mkdir 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
11554   fi
11555 done
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])
11562 ]) # _AM_PROG_TAR