1 # generated automatically by aclocal 1.9.5 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
16 # This file is free software; the Free Software Foundation
17 # gives unlimited permission to copy and/or distribute it,
18 # with or without modifications, as long as this notice is preserved.
20 # AM_AUTOMAKE_VERSION(VERSION)
21 # ----------------------------
22 # Automake X.Y traces this macro to ensure aclocal.m4 has been
23 # generated from the m4 files accompanying Automake X.Y.
24 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
26 # AM_SET_CURRENT_AUTOMAKE_VERSION
27 # -------------------------------
28 # Call AM_AUTOMAKE_VERSION so it can be traced.
29 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
30 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31 [AM_AUTOMAKE_VERSION([1.9.5])])
33 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
35 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
37 # This file is free software; the Free Software Foundation
38 # gives unlimited permission to copy and/or distribute it,
39 # with or without modifications, as long as this notice is preserved.
41 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
42 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
43 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
45 # Of course, Automake must honor this variable whenever it calls a
46 # tool from the auxiliary directory. The problem is that $srcdir (and
47 # therefore $ac_aux_dir as well) can be either absolute or relative,
48 # depending on how configure is run. This is pretty annoying, since
49 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
50 # source directory, any form will work fine, but in subdirectories a
51 # relative path needs to be adjusted first.
54 # fails when called from a subdirectory if $ac_aux_dir is relative
55 # $top_srcdir/$ac_aux_dir/missing
56 # fails if $ac_aux_dir is absolute,
57 # fails when called from a subdirectory in a VPATH build with
58 # a relative $ac_aux_dir
60 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
61 # are both prefixed by $srcdir. In an in-source build this is usually
62 # harmless because $srcdir is `.', but things will broke when you
63 # start a VPATH build or use an absolute $srcdir.
65 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
66 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
67 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
68 # and then we would define $MISSING as
69 # MISSING="\${SHELL} $am_aux_dir/missing"
70 # This will work as long as MISSING is not called from configure, because
71 # unfortunately $(top_srcdir) has no meaning in configure.
72 # However there are other variables, like CC, which are often used in
73 # configure, and could therefore not use this "fixed" $ac_aux_dir.
75 # Another solution, used here, is to always expand $ac_aux_dir to an
76 # absolute PATH. The drawback is that using absolute paths prevent a
77 # configured tree to be moved without reconfiguration.
79 AC_DEFUN([AM_AUX_DIR_EXPAND],
80 [dnl Rely on autoconf to set up CDPATH properly.
82 # expand $ac_aux_dir to an absolute path
83 am_aux_dir=`cd $ac_aux_dir && pwd`
86 # AM_CONDITIONAL -*- Autoconf -*-
88 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
89 # Free Software Foundation, Inc.
91 # This file is free software; the Free Software Foundation
92 # gives unlimited permission to copy and/or distribute it,
93 # with or without modifications, as long as this notice is preserved.
97 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
98 # -------------------------------------
99 # Define a conditional.
100 AC_DEFUN([AM_CONDITIONAL],
102 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
103 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
113 AC_CONFIG_COMMANDS_PRE(
114 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
115 AC_MSG_ERROR([[conditional "$1" was never defined.
116 Usually this means the macro was only invoked conditionally.]])
120 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
121 # Free Software Foundation, Inc.
123 # This file is free software; the Free Software Foundation
124 # gives unlimited permission to copy and/or distribute it,
125 # with or without modifications, as long as this notice is preserved.
129 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
130 # written in clear, in which case automake, when reading aclocal.m4,
131 # will think it sees a *use*, and therefore will trigger all it's
132 # C support machinery. Also note that it means that autoscan, seeing
133 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
136 # _AM_DEPENDENCIES(NAME)
137 # ----------------------
138 # See how the compiler implements dependency checking.
139 # NAME is "CC", "CXX", "GCJ", or "OBJC".
140 # We try a few techniques and use that to set a single cache variable.
142 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
143 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
144 # dependency, and given that the user is not expected to run this macro,
145 # just rely on AC_PROG_CC.
146 AC_DEFUN([_AM_DEPENDENCIES],
147 [AC_REQUIRE([AM_SET_DEPDIR])dnl
148 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
149 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
150 AC_REQUIRE([AM_DEP_TRACK])dnl
152 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
153 [$1], CXX, [depcc="$CXX" am_compiler_list=],
154 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
155 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
156 [depcc="$$1" am_compiler_list=])
158 AC_CACHE_CHECK([dependency style of $depcc],
159 [am_cv_$1_dependencies_compiler_type],
160 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
161 # We make a subdir and do the tests there. Otherwise we can end up
162 # making bogus files that we don't know about and never remove. For
163 # instance it was reported that on HP-UX the gcc test will end up
164 # making a dummy file named `D' -- because `-MD' means `put the output
167 # Copy depcomp to subdir because otherwise we won't find it if we're
168 # using a relative directory.
169 cp "$am_depcomp" conftest.dir
171 # We will build objects and dependencies in a subdirectory because
172 # it helps to detect inapplicable dependency modes. For instance
173 # both Tru64's cc and ICC support -MD to output dependencies as a
174 # side effect of compilation, but ICC will put the dependencies in
175 # the current directory while Tru64 will put them in the object
179 am_cv_$1_dependencies_compiler_type=none
180 if test "$am_compiler_list" = ""; then
181 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
183 for depmode in $am_compiler_list; do
184 # Setup a source with many dependencies, because some compilers
185 # like to wrap large dependency lists on column 80 (with \), and
186 # we should not choose a depcomp mode which is confused by this.
188 # We need to recreate these files for each test, as the compiler may
189 # overwrite some of them when testing with obscure command lines.
190 # This happens at least with the AIX C compiler.
192 for i in 1 2 3 4 5 6; do
193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
195 # Solaris 8's {/usr,}/bin/sh.
196 touch sub/conftst$i.h
198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
202 # after this tag, mechanisms are not by side-effect, so they'll
203 # only be used when explicitly requested
204 if test "x$enable_dependency_tracking" = xyes; then
212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
213 # mode. It turns out that the SunPro C++ compiler does not properly
214 # handle `-M -o', and we need to detect this.
215 if depmode=$depmode \
216 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
218 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
219 >/dev/null 2>conftest.err &&
220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
223 # icc doesn't choke on unknown options, it will just issue warnings
224 # or remarks (even with -Werror). So we grep stderr for any message
225 # that says an option was ignored or not supported.
226 # When given -MP, icc 7.0 and 7.1 complain thusly:
227 # icc: Command line warning: ignoring option '-M'; no argument required
228 # The diagnosis changed in icc 8.0:
229 # icc: Command line remark: option '-MP' not supported
230 if (grep 'ignoring option' conftest.err ||
231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
232 am_cv_$1_dependencies_compiler_type=$depmode
241 am_cv_$1_dependencies_compiler_type=none
244 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
245 AM_CONDITIONAL([am__fastdep$1], [
246 test "x$enable_dependency_tracking" != xno \
247 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
253 # Choose a directory name for dependency files.
254 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
255 AC_DEFUN([AM_SET_DEPDIR],
256 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
257 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
263 AC_DEFUN([AM_DEP_TRACK],
264 [AC_ARG_ENABLE(dependency-tracking,
265 [ --disable-dependency-tracking speeds up one-time build
266 --enable-dependency-tracking do not reject slow dependency extractors])
267 if test "x$enable_dependency_tracking" != xno; then
268 am_depcomp="$ac_aux_dir/depcomp"
271 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
272 AC_SUBST([AMDEPBACKSLASH])
275 # Generate code to set up dependency tracking. -*- Autoconf -*-
277 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
278 # Free Software Foundation, Inc.
280 # This file is free software; the Free Software Foundation
281 # gives unlimited permission to copy and/or distribute it,
282 # with or without modifications, as long as this notice is preserved.
286 # _AM_OUTPUT_DEPENDENCY_COMMANDS
287 # ------------------------------
288 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
289 [for mf in $CONFIG_FILES; do
290 # Strip MF so we end up with the name of the file.
291 mf=`echo "$mf" | sed -e 's/:.*$//'`
292 # Check whether this is an Automake generated Makefile or not.
293 # We used to match only the files named `Makefile.in', but
294 # some people rename them; so instead we look at the file content.
295 # Grep'ing the first line is not enough: some people post-process
296 # each Makefile.in and add a new line on top of each file to say so.
297 # So let's grep whole file.
298 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
299 dirpart=`AS_DIRNAME("$mf")`
303 # Extract the definition of DEPDIR, am__include, and am__quote
304 # from the Makefile without running `make'.
305 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
306 test -z "$DEPDIR" && continue
307 am__include=`sed -n 's/^am__include = //p' < "$mf"`
308 test -z "am__include" && continue
309 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
310 # When using ansi2knr, U may be empty or an underscore; expand it
311 U=`sed -n 's/^U = //p' < "$mf"`
312 # Find all dependency output files, they are included files with
313 # $(DEPDIR) in their names. We invoke sed twice because it is the
314 # simplest approach to changing $(DEPDIR) to its actual value in the
316 for file in `sed -n "
317 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
318 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
319 # Make sure the directory exists.
320 test -f "$dirpart/$file" && continue
321 fdir=`AS_DIRNAME(["$file"])`
322 AS_MKDIR_P([$dirpart/$fdir])
323 # echo "creating $dirpart/$file"
324 echo '# dummy' > "$dirpart/$file"
327 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
330 # AM_OUTPUT_DEPENDENCY_COMMANDS
331 # -----------------------------
332 # This macro should only be invoked once -- use via AC_REQUIRE.
334 # This code is only required when automatic dependency tracking
335 # is enabled. FIXME. This creates each `.P' file that we will
336 # need in order to bootstrap the dependency handling code.
337 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
338 [AC_CONFIG_COMMANDS([depfiles],
339 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
340 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
343 # Do all the work for Automake. -*- Autoconf -*-
345 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
346 # Free Software Foundation, Inc.
348 # This file is free software; the Free Software Foundation
349 # gives unlimited permission to copy and/or distribute it,
350 # with or without modifications, as long as this notice is preserved.
354 # This macro actually does too much. Some checks are only needed if
355 # your package does certain things. But this isn't really a big deal.
357 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
358 # AM_INIT_AUTOMAKE([OPTIONS])
359 # -----------------------------------------------
360 # The call with PACKAGE and VERSION arguments is the old style
361 # call (pre autoconf-2.50), which is being phased out. PACKAGE
362 # and VERSION should now be passed to AC_INIT and removed from
363 # the call to AM_INIT_AUTOMAKE.
364 # We support both call styles for the transition. After
365 # the next Automake release, Autoconf can make the AC_INIT
366 # arguments mandatory, and then we can depend on a new Autoconf
367 # release and drop the old call support.
368 AC_DEFUN([AM_INIT_AUTOMAKE],
369 [AC_PREREQ([2.58])dnl
370 dnl Autoconf wants to disallow AM_ names. We explicitly allow
371 dnl the ones we care about.
372 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
373 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
374 AC_REQUIRE([AC_PROG_INSTALL])dnl
375 # test to see if srcdir already configured
376 if test "`cd $srcdir && pwd`" != "`pwd`" &&
377 test -f $srcdir/config.status; then
378 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
381 # test whether we have cygpath
382 if test -z "$CYGPATH_W"; then
383 if (cygpath --version) >/dev/null 2>/dev/null; then
384 CYGPATH_W='cygpath -w'
389 AC_SUBST([CYGPATH_W])
391 # Define the identity of the package.
392 dnl Distinguish between old-style and new-style calls.
394 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
395 AC_SUBST([PACKAGE], [$1])dnl
396 AC_SUBST([VERSION], [$2])],
397 [_AM_SET_OPTIONS([$1])dnl
398 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
399 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
401 _AM_IF_OPTION([no-define],,
402 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
403 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
405 # Some tools Automake needs.
406 AC_REQUIRE([AM_SANITY_CHECK])dnl
407 AC_REQUIRE([AC_ARG_PROGRAM])dnl
408 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
409 AM_MISSING_PROG(AUTOCONF, autoconf)
410 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
411 AM_MISSING_PROG(AUTOHEADER, autoheader)
412 AM_MISSING_PROG(MAKEINFO, makeinfo)
414 AM_PROG_INSTALL_STRIP
415 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
416 # We need awk for the "check" target. The system "awk" is bad on
418 AC_REQUIRE([AC_PROG_AWK])dnl
419 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
420 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
421 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
422 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
423 [_AM_PROG_TAR([v7])])])
424 _AM_IF_OPTION([no-dependencies],,
425 [AC_PROVIDE_IFELSE([AC_PROG_CC],
426 [_AM_DEPENDENCIES(CC)],
427 [define([AC_PROG_CC],
428 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
429 AC_PROVIDE_IFELSE([AC_PROG_CXX],
430 [_AM_DEPENDENCIES(CXX)],
431 [define([AC_PROG_CXX],
432 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
437 # When config.status generates a header, we must update the stamp-h file.
438 # This file resides in the same directory as the config header
439 # that is generated. The stamp files are numbered to have different names.
441 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
442 # loop where config.status creates the headers, so we can generate
443 # our stamp files there.
444 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
445 [# Compute $1's index in $config_headers.
447 for _am_header in $config_headers :; do
452 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
455 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
457 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
459 # This file is free software; the Free Software Foundation
460 # gives unlimited permission to copy and/or distribute it,
461 # with or without modifications, as long as this notice is preserved.
465 # Define $install_sh.
466 AC_DEFUN([AM_PROG_INSTALL_SH],
467 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
468 install_sh=${install_sh-"$am_aux_dir/install-sh"}
469 AC_SUBST(install_sh)])
471 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
473 # This file is free software; the Free Software Foundation
474 # gives unlimited permission to copy and/or distribute it,
475 # with or without modifications, as long as this notice is preserved.
479 # Check whether the underlying file-system supports filenames
480 # with a leading dot. For instance MS-DOS doesn't.
481 AC_DEFUN([AM_SET_LEADING_DOT],
482 [rm -rf .tst 2>/dev/null
483 mkdir .tst 2>/dev/null
484 if test -d .tst; then
489 rmdir .tst 2>/dev/null
490 AC_SUBST([am__leading_dot])])
492 # Check to see how 'make' treats includes. -*- Autoconf -*-
494 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
496 # This file is free software; the Free Software Foundation
497 # gives unlimited permission to copy and/or distribute it,
498 # with or without modifications, as long as this notice is preserved.
504 # Check to see how make treats includes.
505 AC_DEFUN([AM_MAKE_INCLUDE],
506 [am_make=${MAKE-make}
507 cat > confinc << 'END'
512 # If we don't find an include directive, just comment out the code.
513 AC_MSG_CHECKING([for style of include used by $am_make])
517 # First try GNU make style include.
518 echo "include confinc" > confmf
519 # We grep out `Entering directory' and `Leaving directory'
520 # messages which can occur if `w' ends up in MAKEFLAGS.
521 # In particular we don't look at `^make:' because GNU make might
522 # be invoked under some other name (usually "gmake"), in which
523 # case it prints its new name instead of `make'.
524 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
529 # Now try BSD make style include.
530 if test "$am__include" = "#"; then
531 echo '.include "confinc"' > confmf
532 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
538 AC_SUBST([am__include])
539 AC_SUBST([am__quote])
540 AC_MSG_RESULT([$_am_result])
544 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
546 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
547 # Free Software Foundation, Inc.
549 # This file is free software; the Free Software Foundation
550 # gives unlimited permission to copy and/or distribute it,
551 # with or without modifications, as long as this notice is preserved.
555 # AM_MISSING_PROG(NAME, PROGRAM)
556 # ------------------------------
557 AC_DEFUN([AM_MISSING_PROG],
558 [AC_REQUIRE([AM_MISSING_HAS_RUN])
559 $1=${$1-"${am_missing_run}$2"}
565 # Define MISSING if not defined so far and test if it supports --run.
566 # If it does, set am_missing_run to use it, otherwise, to nothing.
567 AC_DEFUN([AM_MISSING_HAS_RUN],
568 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
569 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
570 # Use eval to expand $SHELL
571 if eval "$MISSING --run true"; then
572 am_missing_run="$MISSING --run "
575 AC_MSG_WARN([`missing' script is too old or missing])
579 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
581 # This file is free software; the Free Software Foundation
582 # gives unlimited permission to copy and/or distribute it,
583 # with or without modifications, as long as this notice is preserved.
587 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
589 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
590 # created by `make install' are always world readable, even if the
591 # installer happens to have an overly restrictive umask (e.g. 077).
592 # This was a mistake. There are at least two reasons why we must not
594 # - it causes special bits like SGID to be ignored,
595 # - it may be too restrictive (some setups expect 775 directories).
597 # Do not use -m 0755 and let people choose whatever they expect by
600 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
601 # Some implementations (such as Solaris 8's) are not thread-safe: if a
602 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
603 # concurrently, both version can detect that a/ is missing, but only
604 # one can create it and the other will error out. Consequently we
605 # restrict ourselves to GNU make (using the --version option ensures
607 AC_DEFUN([AM_PROG_MKDIR_P],
608 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
609 # We used to keeping the `.' as first argument, in order to
610 # allow $(mkdir_p) to be used without argument. As in
611 # $(mkdir_p) $(somedir)
612 # where $(somedir) is conditionally defined. However this is wrong
614 # 1. if the package is installed by a user who cannot write `.'
615 # make install will fail,
616 # 2. the above comment should most certainly read
617 # $(mkdir_p) $(DESTDIR)$(somedir)
618 # so it does not work when $(somedir) is undefined and
620 # To support the latter case, we have to write
621 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
622 # so the `.' trick is pointless.
623 mkdir_p='mkdir -p --'
625 # On NextStep and OpenStep, the `mkdir' command does not
626 # recognize any option. It will interpret all options as
627 # directories to create, and then abort because `.' already
629 for d in ./-p ./--version;
631 test -d $d && rmdir $d
633 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
634 if test -f "$ac_aux_dir/mkinstalldirs"; then
635 mkdir_p='$(mkinstalldirs)'
637 mkdir_p='$(install_sh) -d'
640 AC_SUBST([mkdir_p])])
642 # Helper functions for option handling. -*- Autoconf -*-
644 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
646 # This file is free software; the Free Software Foundation
647 # gives unlimited permission to copy and/or distribute it,
648 # with or without modifications, as long as this notice is preserved.
652 # _AM_MANGLE_OPTION(NAME)
653 # -----------------------
654 AC_DEFUN([_AM_MANGLE_OPTION],
655 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
657 # _AM_SET_OPTION(NAME)
658 # ------------------------------
659 # Set option NAME. Presently that only means defining a flag for this option.
660 AC_DEFUN([_AM_SET_OPTION],
661 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
663 # _AM_SET_OPTIONS(OPTIONS)
664 # ----------------------------------
665 # OPTIONS is a space-separated list of Automake options.
666 AC_DEFUN([_AM_SET_OPTIONS],
667 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
669 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
670 # -------------------------------------------
671 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
672 AC_DEFUN([_AM_IF_OPTION],
673 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
675 # Check to make sure that the build environment is sane. -*- Autoconf -*-
677 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
678 # Free Software Foundation, Inc.
680 # This file is free software; the Free Software Foundation
681 # gives unlimited permission to copy and/or distribute it,
682 # with or without modifications, as long as this notice is preserved.
688 AC_DEFUN([AM_SANITY_CHECK],
689 [AC_MSG_CHECKING([whether build environment is sane])
692 echo timestamp > conftest.file
693 # Do `set' in a subshell so we don't clobber the current shell's
694 # arguments. Must try -L first in case configure is actually a
695 # symlink; some systems play weird games with the mod time of symlinks
696 # (eg FreeBSD returns the mod time of the symlink's containing
699 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
700 if test "$[*]" = "X"; then
702 set X `ls -t $srcdir/configure conftest.file`
705 if test "$[*]" != "X $srcdir/configure conftest.file" \
706 && test "$[*]" != "X conftest.file $srcdir/configure"; then
708 # If neither matched, then we have a broken ls. This can happen
709 # if, for instance, CONFIG_SHELL is bash and it inherits a
710 # broken ls alias from the environment. This has actually
711 # happened. Such a system could not be considered "sane".
712 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
713 alias in your environment])
716 test "$[2]" = conftest.file
722 AC_MSG_ERROR([newly created file is older than distributed files!
723 Check your system clock])
727 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
729 # This file is free software; the Free Software Foundation
730 # gives unlimited permission to copy and/or distribute it,
731 # with or without modifications, as long as this notice is preserved.
733 # AM_PROG_INSTALL_STRIP
734 # ---------------------
735 # One issue with vendor `install' (even GNU) is that you can't
736 # specify the program used to strip binaries. This is especially
737 # annoying in cross-compiling environments, where the build's strip
738 # is unlikely to handle the host's binaries.
739 # Fortunately install-sh will honor a STRIPPROG variable, so we
740 # always use install-sh in `make install-strip', and initialize
741 # STRIPPROG with the value of the STRIP variable (set by the user).
742 AC_DEFUN([AM_PROG_INSTALL_STRIP],
743 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
744 # Installed binaries are usually stripped using `strip' when the user
745 # run `make install-strip'. However `strip' might not be the right
746 # tool to use in cross-compilation environments, therefore Automake
747 # will honor the `STRIP' environment variable to overrule this program.
748 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
749 if test "$cross_compiling" != no; then
750 AC_CHECK_TOOL([STRIP], [strip], :)
752 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
753 AC_SUBST([INSTALL_STRIP_PROGRAM])])
755 # Check how to create a tarball. -*- Autoconf -*-
757 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
759 # This file is free software; the Free Software Foundation
760 # gives unlimited permission to copy and/or distribute it,
761 # with or without modifications, as long as this notice is preserved.
765 # _AM_PROG_TAR(FORMAT)
766 # --------------------
767 # Check how to create a tarball in format FORMAT.
768 # FORMAT should be one of `v7', `ustar', or `pax'.
770 # Substitute a variable $(am__tar) that is a command
771 # writing to stdout a FORMAT-tarball containing the directory
773 # tardir=directory && $(am__tar) > result.tar
775 # Substitute a variable $(am__untar) that extract such
776 # a tarball read from stdin.
777 # $(am__untar) < result.tar
778 AC_DEFUN([_AM_PROG_TAR],
779 [# Always define AMTAR for backward compatibility.
780 AM_MISSING_PROG([AMTAR], [tar])
782 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
783 [m4_case([$1], [ustar],, [pax],,
784 [m4_fatal([Unknown tar format])])
785 AC_MSG_CHECKING([how to create a $1 tar archive])
786 # Loop over all known methods to create a tar archive until one works.
787 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
788 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
789 # Do not fold the above two line into one, because Tru64 sh and
790 # Solaris sh will not grok spaces in the rhs of `-'.
791 for _am_tool in $_am_tools
795 for _am_tar in tar gnutar gtar;
797 AM_RUN_LOG([$_am_tar --version]) && break
799 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
800 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
801 am__untar="$_am_tar -xf -"
804 # Must skip GNU tar: if it does not support --format= it doesn't create
805 # ustar tarball either.
806 (tar --version) >/dev/null 2>&1 && continue
807 am__tar='tar chf - "$$tardir"'
808 am__tar_='tar chf - "$tardir"'
812 am__tar='pax -L -x $1 -w "$$tardir"'
813 am__tar_='pax -L -x $1 -w "$tardir"'
817 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
818 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
819 am__untar='cpio -i -H $1 -d'
828 # If the value was cached, stop now. We just wanted to have am__tar
830 test -n "${am_cv_prog_tar_$1}" && break
832 # tar/untar a dummy directory, and stop if the command works
835 echo GrepMe > conftest.dir/file
836 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
838 if test -s conftest.tar; then
839 AM_RUN_LOG([$am__untar <conftest.tar])
840 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
845 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
846 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
848 AC_SUBST([am__untar])
851 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
853 # serial 47 AC_PROG_LIBTOOL
856 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
857 # -----------------------------------------------------------
858 # If this macro is not defined by Autoconf, define it here.
859 m4_ifdef([AC_PROVIDE_IFELSE],
861 [m4_define([AC_PROVIDE_IFELSE],
862 [m4_ifdef([AC_PROVIDE_$1],
868 AC_DEFUN([AC_PROG_LIBTOOL],
869 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
870 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
871 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
872 AC_PROVIDE_IFELSE([AC_PROG_CXX],
874 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
876 dnl And a similar setup for Fortran 77 support
877 AC_PROVIDE_IFELSE([AC_PROG_F77],
879 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
882 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
883 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
884 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
885 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
887 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
889 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
891 [ifdef([AC_PROG_GCJ],
892 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
893 ifdef([A][M_PROG_GCJ],
894 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
895 ifdef([LT_AC_PROG_GCJ],
896 [define([LT_AC_PROG_GCJ],
897 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
898 ])])# AC_PROG_LIBTOOL
903 AC_DEFUN([_AC_PROG_LIBTOOL],
904 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
905 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
906 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
907 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
909 # This can be used to rebuild libtool when needed
910 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
912 # Always use our own libtool.
913 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
916 # Prevent multiple expansion
917 define([AC_PROG_LIBTOOL], [])
923 AC_DEFUN([AC_LIBTOOL_SETUP],
925 AC_REQUIRE([AC_ENABLE_SHARED])dnl
926 AC_REQUIRE([AC_ENABLE_STATIC])dnl
927 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
928 AC_REQUIRE([AC_CANONICAL_HOST])dnl
929 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
930 AC_REQUIRE([AC_PROG_CC])dnl
931 AC_REQUIRE([AC_PROG_LD])dnl
932 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
933 AC_REQUIRE([AC_PROG_NM])dnl
935 AC_REQUIRE([AC_PROG_LN_S])dnl
936 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
937 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
938 AC_REQUIRE([AC_OBJEXT])dnl
939 AC_REQUIRE([AC_EXEEXT])dnl
942 AC_LIBTOOL_SYS_MAX_CMD_LEN
943 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
946 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
947 _LT_AC_PROG_ECHO_BACKSLASH
951 # AIX sometimes has problems with the GCC collect2 program. For some
952 # reason, if we set the COLLECT_NAMES environment variable, the problems
953 # vanish in a puff of smoke.
954 if test "X${COLLECT_NAMES+set}" != Xset; then
961 # Sed substitution that helps us do robust quoting. It backslashifies
962 # metacharacters that are still active within double-quoted strings.
964 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
966 # Same as above, but do not quote variable references.
967 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
969 # Sed substitution to delay expansion of an escaped shell variable in a
970 # double_quote_subst'ed string.
971 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
973 # Sed substitution to avoid accidental globbing in evaled expressions
974 no_glob_subst='s/\*/\\\*/g'
980 default_ofile=libtool
983 # All known linkers require a `.a' archive for static linking (except M$VC,
984 # which needs '.lib').
986 ltmain="$ac_aux_dir/ltmain.sh"
987 ofile="$default_ofile"
988 with_gnu_ld="$lt_cv_prog_gnu_ld"
990 AC_CHECK_TOOL(AR, ar, false)
991 AC_CHECK_TOOL(RANLIB, ranlib, :)
992 AC_CHECK_TOOL(STRIP, strip, :)
997 # Set sane defaults for various variables
998 test -z "$AR" && AR=ar
999 test -z "$AR_FLAGS" && AR_FLAGS=cru
1000 test -z "$AS" && AS=as
1001 test -z "$CC" && CC=cc
1002 test -z "$LTCC" && LTCC=$CC
1003 test -z "$DLLTOOL" && DLLTOOL=dlltool
1004 test -z "$LD" && LD=ld
1005 test -z "$LN_S" && LN_S="ln -s"
1006 test -z "$MAGIC_CMD" && MAGIC_CMD=file
1007 test -z "$NM" && NM=nm
1008 test -z "$SED" && SED=sed
1009 test -z "$OBJDUMP" && OBJDUMP=objdump
1010 test -z "$RANLIB" && RANLIB=:
1011 test -z "$STRIP" && STRIP=:
1012 test -z "$ac_objext" && ac_objext=o
1014 # Determine commands to create old-style static archives.
1015 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1016 old_postinstall_cmds='chmod 644 $oldlib'
1017 old_postuninstall_cmds=
1019 if test -n "$RANLIB"; then
1022 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1025 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1028 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1031 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
1033 # Only perform the check for file, if the check method requires it
1034 case $deplibs_check_method in
1036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1042 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1043 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1044 enable_win32_dll=yes, enable_win32_dll=no)
1046 AC_ARG_ENABLE([libtool-lock],
1047 [AC_HELP_STRING([--disable-libtool-lock],
1048 [avoid locking (might break parallel builds)])])
1049 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1052 [AC_HELP_STRING([--with-pic],
1053 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1054 [pic_mode="$withval"],
1056 test -z "$pic_mode" && pic_mode=default
1058 # Use C for the default configuration in the libtool script
1060 AC_LIBTOOL_LANG_C_CONFIG
1062 ])# AC_LIBTOOL_SETUP
1065 # _LT_AC_SYS_COMPILER
1066 # -------------------
1067 AC_DEFUN([_LT_AC_SYS_COMPILER],
1068 [AC_REQUIRE([AC_PROG_CC])dnl
1070 # If no C compiler was specified, use CC.
1073 # Allow CC to be a program name with arguments.
1075 ])# _LT_AC_SYS_COMPILER
1078 # _LT_AC_SYS_LIBPATH_AIX
1079 # ----------------------
1080 # Links a minimal program and checks the executable
1081 # for the system default hardcoded library path. In most cases,
1082 # this is /usr/lib:/lib, but when the MPI compilers are used
1083 # the location of the communication and MPI libs are included too.
1084 # If we don't find anything, use the default library path according
1085 # to the aix ld manual.
1086 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1087 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1090 # Check for a 64-bit object if we didn't find anything.
1091 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1094 ])# _LT_AC_SYS_LIBPATH_AIX
1097 # _LT_AC_SHELL_INIT(ARG)
1098 # ----------------------
1099 AC_DEFUN([_LT_AC_SHELL_INIT],
1100 [ifdef([AC_DIVERSION_NOTICE],
1101 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1102 [AC_DIVERT_PUSH(NOTICE)])
1105 ])# _LT_AC_SHELL_INIT
1108 # _LT_AC_PROG_ECHO_BACKSLASH
1109 # --------------------------
1110 # Add some code to the start of the generated configure script which
1111 # will find an echo command which doesn't interpret backslashes.
1112 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1113 [_LT_AC_SHELL_INIT([
1114 # Check that we are running under the correct shell.
1115 SHELL=${CONFIG_SHELL-/bin/sh}
1119 # Remove one level of quotation (which was required for Make).
1120 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1125 if test "X[$]1" = X--no-reexec; then
1126 # Discard the --no-reexec flag, and continue.
1128 elif test "X[$]1" = X--fallback-echo; then
1129 # Avoid inline document here, it may be left over
1131 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1132 # Yippee, $echo works!
1135 # Restart under the correct shell.
1136 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1139 if test "X[$]1" = X--fallback-echo; then
1140 # used as fallback echo
1148 # The HP-UX ksh and POSIX shell print the target directory to stdout
1150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1152 if test -z "$ECHO"; then
1153 if test "X${echo_test_string+set}" != Xset; then
1154 # find a string as large as possible, as long as the shell can cope with it
1155 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1156 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1157 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1158 echo_test_string="`eval $cmd`" &&
1159 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1166 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1167 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1168 test "X$echo_testing_string" = "X$echo_test_string"; then
1171 # The Solaris, AIX, and Digital Unix default echo programs unquote
1172 # backslashes. This makes it impossible to quote backslashes using
1173 # echo "$something" | sed 's/\\/\\\\/g'
1175 # So, first we look for a working echo in the user's PATH.
1177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1178 for dir in $PATH /usr/ucb; do
1180 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1181 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1182 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1183 test "X$echo_testing_string" = "X$echo_test_string"; then
1190 if test "X$echo" = Xecho; then
1191 # We didn't find a better echo, so look for alternatives.
1192 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1193 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1194 test "X$echo_testing_string" = "X$echo_test_string"; then
1195 # This shell has a builtin print -r that does the trick.
1197 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1198 test "X$CONFIG_SHELL" != X/bin/ksh; then
1199 # If we have ksh, try running configure again with it.
1200 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1201 export ORIGINAL_CONFIG_SHELL
1202 CONFIG_SHELL=/bin/ksh
1204 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1208 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1209 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1210 test "X$echo_testing_string" = "X$echo_test_string"; then
1211 # Cool, printf works
1213 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1214 test "X$echo_testing_string" = 'X\t' &&
1215 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1216 test "X$echo_testing_string" = "X$echo_test_string"; then
1217 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1219 SHELL="$CONFIG_SHELL"
1221 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1222 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1223 test "X$echo_testing_string" = 'X\t' &&
1224 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1225 test "X$echo_testing_string" = "X$echo_test_string"; then
1226 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1228 # maybe with a smaller string...
1231 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1232 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1239 if test "$prev" != 'sed 50q "[$]0"'; then
1240 echo_test_string=`eval $prev`
1241 export echo_test_string
1242 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1244 # Oops. We lost completely, so just stick with echo.
1253 # Copy echo and quote the copy suitably for passing to libtool from
1254 # the Makefile, instead of quoting the original, which is used later.
1256 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1257 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1261 ])])# _LT_AC_PROG_ECHO_BACKSLASH
1266 AC_DEFUN([_LT_AC_LOCK],
1267 [AC_ARG_ENABLE([libtool-lock],
1268 [AC_HELP_STRING([--disable-libtool-lock],
1269 [avoid locking (might break parallel builds)])])
1270 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1272 # Some flags need to be propagated to the compiler or linker for good
1276 # Find out which ABI we are using.
1277 echo 'int i;' > conftest.$ac_ext
1278 if AC_TRY_EVAL(ac_compile); then
1279 case `/usr/bin/file conftest.$ac_objext` in
1291 # Find out which ABI we are using.
1292 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1293 if AC_TRY_EVAL(ac_compile); then
1294 if test "$lt_cv_prog_gnu_ld" = yes; then
1295 case `/usr/bin/file conftest.$ac_objext` in
1297 LD="${LD-ld} -melf32bsmip"
1300 LD="${LD-ld} -melf32bmipn32"
1303 LD="${LD-ld} -melf64bmip"
1307 case `/usr/bin/file conftest.$ac_objext` in
1323 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1324 # Find out which ABI we are using.
1325 echo 'int i;' > conftest.$ac_ext
1326 if AC_TRY_EVAL(ac_compile); then
1327 case "`/usr/bin/file conftest.o`" in
1331 LD="${LD-ld} -m elf_i386"
1333 ppc64-*linux*|powerpc64-*linux*)
1334 LD="${LD-ld} -m elf32ppclinux"
1337 LD="${LD-ld} -m elf_s390"
1340 LD="${LD-ld} -m elf32_sparc"
1347 LD="${LD-ld} -m elf_x86_64"
1349 ppc*-*linux*|powerpc*-*linux*)
1350 LD="${LD-ld} -m elf64ppc"
1353 LD="${LD-ld} -m elf64_s390"
1356 LD="${LD-ld} -m elf64_sparc"
1366 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1367 SAVE_CFLAGS="$CFLAGS"
1368 CFLAGS="$CFLAGS -belf"
1369 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1371 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1373 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1374 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1375 CFLAGS="$SAVE_CFLAGS"
1378 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1379 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1380 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1381 AC_CHECK_TOOL(AS, as, false)
1382 AC_CHECK_TOOL(OBJDUMP, objdump, false)
1387 need_locks="$enable_libtool_lock"
1392 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1393 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1394 # ----------------------------------------------------------------
1395 # Check whether the given compiler option works
1396 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1397 [AC_REQUIRE([LT_AC_PROG_SED])
1398 AC_CACHE_CHECK([$1], [$2],
1400 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1402 lt_compiler_flag="$3"
1403 # Insert the option either (1) after the last *FLAGS variable, or
1404 # (2) before a word containing "conftest.", or (3) at the end.
1405 # Note that $ac_compile itself does not contain backslashes and begins
1406 # with a dollar sign (not a hyphen), so the echo should work correctly.
1407 # The option is referenced via a variable to avoid confusing sed.
1408 lt_compile=`echo "$ac_compile" | $SED \
1409 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1410 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1411 -e 's:$: $lt_compiler_flag:'`
1412 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1413 (eval "$lt_compile" 2>conftest.err)
1415 cat conftest.err >&AS_MESSAGE_LOG_FD
1416 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1417 if (exit $ac_status) && test -s "$ac_outfile"; then
1418 # The compiler can only warn and ignore the option if not recognized
1419 # So say no if there are warnings
1420 if test ! -s conftest.err; then
1427 if test x"[$]$2" = xyes; then
1428 ifelse([$5], , :, [$5])
1430 ifelse([$6], , :, [$6])
1432 ])# AC_LIBTOOL_COMPILER_OPTION
1435 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1436 # [ACTION-SUCCESS], [ACTION-FAILURE])
1437 # ------------------------------------------------------------
1438 # Check whether the given compiler option works
1439 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1440 [AC_CACHE_CHECK([$1], [$2],
1442 save_LDFLAGS="$LDFLAGS"
1443 LDFLAGS="$LDFLAGS $3"
1444 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1446 # The compiler can only warn and ignore the option if not recognized
1447 # So say no if there are warnings
1448 if test -s conftest.err; then
1449 # Append any errors to the config.log.
1450 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1456 LDFLAGS="$save_LDFLAGS"
1459 if test x"[$]$2" = xyes; then
1460 ifelse([$4], , :, [$4])
1462 ifelse([$5], , :, [$5])
1464 ])# AC_LIBTOOL_LINKER_OPTION
1467 # AC_LIBTOOL_SYS_MAX_CMD_LEN
1468 # --------------------------
1469 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1470 [# find the maximum length of command line arguments
1471 AC_MSG_CHECKING([the maximum length of command line arguments])
1472 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1478 # On DJGPP, this test can blow up pretty badly due to problems in libc
1479 # (any single argument exceeding 2000 bytes causes a buffer overrun
1480 # during glob expansion). Even if it were fixed, the result of this
1481 # check would be larger than it should be.
1482 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1486 # Under GNU Hurd, this test is not required because there is
1487 # no limit to the length of command line arguments.
1488 # Libtool will interpret -1 as no limit whatsoever
1489 lt_cv_sys_max_cmd_len=-1;
1493 # On Win9x/ME, this test blows up -- it succeeds, but takes
1494 # about 5 minutes as the teststring grows exponentially.
1495 # Worse, since 9x/ME are not pre-emptively multitasking,
1496 # you end up with a "frozen" computer, even though with patience
1497 # the test eventually succeeds (with a max line length of 256k).
1498 # Instead, let's just punt: use the minimum linelength reported by
1499 # all of the supported platforms: 8192 (on NT/2K/XP).
1500 lt_cv_sys_max_cmd_len=8192;
1504 # On AmigaOS with pdksh, this test takes hours, literally.
1505 # So we just punt and use a minimum line length of 8192.
1506 lt_cv_sys_max_cmd_len=8192;
1509 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1510 # This has been around since 386BSD, at least. Likely further.
1511 if test -x /sbin/sysctl; then
1512 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1513 elif test -x /usr/sbin/sysctl; then
1514 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1516 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
1518 # And add a safety zone
1519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1522 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1523 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1524 # nice to cause kernel panics so lets avoid the loop below.
1525 # First set a reasonable default.
1526 lt_cv_sys_max_cmd_len=16384
1528 if test -x /sbin/sysconfig; then
1529 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1530 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1535 # If test is not a shell built-in, we'll probably end up computing a
1536 # maximum length that is only half of the actual maximum length, but
1538 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1539 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1540 = "XX$teststring") >/dev/null 2>&1 &&
1541 new_result=`expr "X$teststring" : ".*" 2>&1` &&
1542 lt_cv_sys_max_cmd_len=$new_result &&
1543 test $i != 17 # 1/2 MB should be enough
1546 teststring=$teststring$teststring
1549 # Add a significant safety factor because C++ compilers can tack on massive
1550 # amounts of additional arguments before passing them to the linker.
1551 # It appears as though 1/2 is a usable value.
1552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1556 if test -n $lt_cv_sys_max_cmd_len ; then
1557 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1561 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1564 # _LT_AC_CHECK_DLFCN
1565 # --------------------
1566 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1567 [AC_CHECK_HEADERS(dlfcn.h)dnl
1568 ])# _LT_AC_CHECK_DLFCN
1571 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1572 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1573 # ------------------------------------------------------------------
1574 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1575 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1576 if test "$cross_compiling" = yes; then :
1579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1580 lt_status=$lt_dlunknown
1581 cat > conftest.$ac_ext <<EOF
1582 [#line __oline__ "configure"
1583 #include "confdefs.h"
1592 # define LT_DLGLOBAL RTLD_GLOBAL
1595 # define LT_DLGLOBAL DL_GLOBAL
1597 # define LT_DLGLOBAL 0
1601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1602 find out it does not work in some platform. */
1603 #ifndef LT_DLLAZY_OR_NOW
1605 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1608 # define LT_DLLAZY_OR_NOW DL_LAZY
1611 # define LT_DLLAZY_OR_NOW RTLD_NOW
1614 # define LT_DLLAZY_OR_NOW DL_NOW
1616 # define LT_DLLAZY_OR_NOW 0
1624 extern "C" void exit (int);
1627 void fnord() { int i=42;}
1630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1631 int status = $lt_dlunknown;
1635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1636 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1637 /* dlclose (self); */
1643 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1644 (./conftest; exit; ) 2>/dev/null
1647 x$lt_dlno_uscore) $1 ;;
1648 x$lt_dlneed_uscore) $2 ;;
1649 x$lt_unknown|x*) $3 ;;
1652 # compilation failed
1657 ])# _LT_AC_TRY_DLOPEN_SELF
1660 # AC_LIBTOOL_DLOPEN_SELF
1661 # -------------------
1662 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1663 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1664 if test "x$enable_dlopen" != xyes; then
1665 enable_dlopen=unknown
1666 enable_dlopen_self=unknown
1667 enable_dlopen_self_static=unknown
1674 lt_cv_dlopen="load_add_on"
1676 lt_cv_dlopen_self=yes
1680 lt_cv_dlopen="LoadLibrary"
1685 lt_cv_dlopen="dlopen"
1690 # if libdl is installed we need to link against it
1691 AC_CHECK_LIB([dl], [dlopen],
1692 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1695 lt_cv_dlopen_self=yes
1700 AC_CHECK_FUNC([shl_load],
1701 [lt_cv_dlopen="shl_load"],
1702 [AC_CHECK_LIB([dld], [shl_load],
1703 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1704 [AC_CHECK_FUNC([dlopen],
1705 [lt_cv_dlopen="dlopen"],
1706 [AC_CHECK_LIB([dl], [dlopen],
1707 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1708 [AC_CHECK_LIB([svld], [dlopen],
1709 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1710 [AC_CHECK_LIB([dld], [dld_link],
1711 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1720 if test "x$lt_cv_dlopen" != xno; then
1726 case $lt_cv_dlopen in
1728 save_CPPFLAGS="$CPPFLAGS"
1729 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1731 save_LDFLAGS="$LDFLAGS"
1732 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1735 LIBS="$lt_cv_dlopen_libs $LIBS"
1737 AC_CACHE_CHECK([whether a program can dlopen itself],
1738 lt_cv_dlopen_self, [dnl
1739 _LT_AC_TRY_DLOPEN_SELF(
1740 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1741 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1744 if test "x$lt_cv_dlopen_self" = xyes; then
1745 LDFLAGS="$LDFLAGS $link_static_flag"
1746 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1747 lt_cv_dlopen_self_static, [dnl
1748 _LT_AC_TRY_DLOPEN_SELF(
1749 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1750 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1754 CPPFLAGS="$save_CPPFLAGS"
1755 LDFLAGS="$save_LDFLAGS"
1760 case $lt_cv_dlopen_self in
1761 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1762 *) enable_dlopen_self=unknown ;;
1765 case $lt_cv_dlopen_self_static in
1766 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1767 *) enable_dlopen_self_static=unknown ;;
1770 ])# AC_LIBTOOL_DLOPEN_SELF
1773 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1774 # ---------------------------------
1775 # Check to see if options -c and -o are simultaneously supported by compiler
1776 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1777 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1778 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1779 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1780 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1781 $rm -r conftest 2>/dev/null
1785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1787 lt_compiler_flag="-o out/conftest2.$ac_objext"
1788 # Insert the option either (1) after the last *FLAGS variable, or
1789 # (2) before a word containing "conftest.", or (3) at the end.
1790 # Note that $ac_compile itself does not contain backslashes and begins
1791 # with a dollar sign (not a hyphen), so the echo should work correctly.
1792 lt_compile=`echo "$ac_compile" | $SED \
1793 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1794 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1795 -e 's:$: $lt_compiler_flag:'`
1796 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1797 (eval "$lt_compile" 2>out/conftest.err)
1799 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1800 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1803 # The compiler can only warn and ignore the option if not recognized
1804 # So say no if there are warnings
1805 if test ! -s out/conftest.err; then
1806 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1811 # SGI C++ compiler will create directory out/ii_files/ for
1812 # template instantiation
1813 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1814 $rm out/* && rmdir out
1819 ])# AC_LIBTOOL_PROG_CC_C_O
1822 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1823 # -----------------------------------------
1824 # Check to see if we can do hard links to lock some files if needed
1825 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1826 [AC_REQUIRE([_LT_AC_LOCK])dnl
1828 hard_links="nottested"
1829 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1830 # do not overwrite the value of need_locks provided by the user
1831 AC_MSG_CHECKING([if we can lock with hard links])
1834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1836 ln conftest.a conftest.b 2>&5 || hard_links=no
1837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1838 AC_MSG_RESULT([$hard_links])
1839 if test "$hard_links" = no; then
1840 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1846 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1851 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1852 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1853 [rm -f .libs 2>/dev/null
1854 mkdir .libs 2>/dev/null
1855 if test -d .libs; then
1858 # MS-DOS does not allow filenames that begin with a dot.
1861 rmdir .libs 2>/dev/null])
1862 objdir=$lt_cv_objdir
1863 ])# AC_LIBTOOL_OBJDIR
1866 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1867 # ----------------------------------------------
1868 # Check hardcoding attributes.
1869 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1870 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1871 _LT_AC_TAGVAR(hardcode_action, $1)=
1872 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1873 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1874 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1876 # We can hardcode non-existant directories.
1877 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1878 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1879 # have to relink, otherwise we might link with an installed library
1880 # when we should be linking with a yet-to-be-installed one
1881 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1882 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1883 # Linking always hardcodes the temporary library directory.
1884 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1886 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1887 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1890 # We cannot hardcode anything, or else we can only hardcode existing
1892 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1894 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1896 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1897 # Fast installation is not supported
1898 enable_fast_install=no
1899 elif test "$shlibpath_overrides_runpath" = yes ||
1900 test "$enable_shared" = no; then
1901 # Fast installation is not necessary
1902 enable_fast_install=needless
1904 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1907 # AC_LIBTOOL_SYS_LIB_STRIP
1908 # ------------------------
1909 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1912 AC_MSG_CHECKING([whether stripping libraries is possible])
1913 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1914 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1915 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1916 AC_MSG_RESULT([yes])
1918 # FIXME - insert some real tests, host_os isn't really good enough
1921 if test -n "$STRIP" ; then
1922 striplib="$STRIP -x"
1923 AC_MSG_RESULT([yes])
1933 ])# AC_LIBTOOL_SYS_LIB_STRIP
1936 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1937 # -----------------------------
1938 # PORTME Fill in your ld.so characteristics
1939 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1940 [AC_MSG_CHECKING([dynamic linker characteristics])
1942 libname_spec='lib$name'
1950 shlibpath_overrides_runpath=unknown
1952 dynamic_linker="$host_os ld.so"
1953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1954 if test "$GCC" = yes; then
1955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1956 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1957 # if the path contains ";" then we assume it to be the separator
1958 # otherwise default to the standard path separator (i.e. ":") - it is
1959 # assumed that no part of a normal pathname contains ";" but that should
1960 # okay in the real world where ";" in dirpaths is itself problematic.
1961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1968 need_lib_prefix=unknown
1969 hardcode_into_libs=no
1971 # when you set need_version to no, make sure it does not cause -set_version
1972 # flags to be left without arguments
1973 need_version=unknown
1978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1979 shlibpath_var=LIBPATH
1981 # AIX 3 has no versioning support, so we append a major version to the name.
1982 soname_spec='${libname}${release}${shared_ext}$major'
1989 hardcode_into_libs=yes
1990 if test "$host_cpu" = ia64; then
1991 # AIX 5 supports IA64
1992 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1993 shlibpath_var=LD_LIBRARY_PATH
1995 # With GCC up to 2.95.x, collect2 would create an import file
1996 # for dependence libraries. The import file would start with
1997 # the line `#! .'. This would cause the generated library to
1998 # depend on `.', always an invalid library. This was fixed in
1999 # development snapshots of GCC prior to 3.0.
2001 aix4 | aix4.[[01]] | aix4.[[01]].*)
2002 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2004 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2011 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2012 # soname into executable. Probably we can add versioning support to
2013 # collect2, so additional links can be useful in future.
2014 if test "$aix_use_runtimelinking" = yes; then
2015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2016 # instead of lib<name>.a to let people know that these are not
2017 # typical AIX shared libraries.
2018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2020 # We preserve .a as extension for shared libraries through AIX4.2
2021 # and later when we are not doing run time linking.
2022 library_names_spec='${libname}${release}.a $libname.a'
2023 soname_spec='${libname}${release}${shared_ext}$major'
2025 shlibpath_var=LIBPATH
2030 library_names_spec='$libname.ixlibrary $libname.a'
2031 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2032 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'
2036 library_names_spec='${libname}${shared_ext}'
2037 dynamic_linker="$host_os ld.so"
2038 shlibpath_var=LIBRARY_PATH
2044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2045 soname_spec='${libname}${release}${shared_ext}$major'
2046 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2047 shlibpath_var=LD_LIBRARY_PATH
2048 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2049 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2050 # the default ld.so.conf also contains /usr/contrib/lib and
2051 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2052 # libtool to hard-code these into programs
2055 cygwin* | mingw* | pw32*)
2056 version_type=windows
2061 case $GCC,$host_os in
2062 yes,cygwin* | yes,mingw* | yes,pw32*)
2063 library_names_spec='$libname.dll.a'
2064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2065 postinstall_cmds='base_file=`basename \${file}`~
2066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2067 dldir=$destdir/`dirname \$dlpath`~
2068 test -d \$dldir || mkdir -p \$dldir~
2069 $install_prog $dir/$dlname \$dldir/$dlname'
2070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2071 dlpath=$dir/\$dldll~
2073 shlibpath_overrides_runpath=yes
2077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2079 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2082 # MinGW DLLs use traditional 'lib' prefix
2083 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2084 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2085 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2086 # It is most probably a Windows format PATH printed by
2087 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2088 # path with ; separators, and with drive letters. We can handle the
2089 # drive letters (cygwin fileutils understands them), so leave them,
2090 # especially as we might pass files found there to a mingw objdump,
2091 # which wouldn't understand a cygwinified path. Ahh.
2092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2098 # pw32 DLLs use 'pw' prefix rather than 'lib'
2099 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2105 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2108 dynamic_linker='Win32 ld.exe'
2109 # FIXME: first we should search . and the directory the executable is in
2113 darwin* | rhapsody*)
2114 dynamic_linker="$host_os dyld"
2118 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2119 soname_spec='${libname}${release}${major}$shared_ext'
2120 shlibpath_overrides_runpath=yes
2121 shlibpath_var=DYLD_LIBRARY_PATH
2122 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2123 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2124 if test "$GCC" = yes; then
2125 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2127 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2129 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2137 soname_spec='${libname}${release}${shared_ext}$major'
2138 shlibpath_var=LD_LIBRARY_PATH
2149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2150 soname_spec='${libname}${release}${shared_ext}$major'
2151 shlibpath_var=LD_LIBRARY_PATH
2152 shlibpath_overrides_runpath=no
2153 hardcode_into_libs=yes
2154 dynamic_linker='GNU ld.so'
2157 freebsd* | dragonfly*)
2158 # DragonFly does not have aout. When/if they implement a new
2159 # versioning mechanism, adjust this.
2160 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2161 version_type=freebsd-$objformat
2162 case $version_type in
2164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2173 shlibpath_var=LD_LIBRARY_PATH
2176 shlibpath_overrides_runpath=yes
2178 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2179 shlibpath_overrides_runpath=yes
2180 hardcode_into_libs=yes
2183 shlibpath_overrides_runpath=no
2184 hardcode_into_libs=yes
2193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2194 soname_spec='${libname}${release}${shared_ext}$major'
2195 shlibpath_var=LD_LIBRARY_PATH
2196 hardcode_into_libs=yes
2199 hpux9* | hpux10* | hpux11*)
2200 # Give a soname corresponding to the major version so that dld.sl refuses to
2201 # link against other versions.
2208 hardcode_into_libs=yes
2209 dynamic_linker="$host_os dld.so"
2210 shlibpath_var=LD_LIBRARY_PATH
2211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
2215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2223 hardcode_into_libs=yes
2224 dynamic_linker="$host_os dld.sl"
2225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2228 soname_spec='${libname}${release}${shared_ext}$major'
2229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2234 dynamic_linker="$host_os dld.sl"
2235 shlibpath_var=SHLIB_PATH
2236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2238 soname_spec='${libname}${release}${shared_ext}$major'
2241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2242 postinstall_cmds='chmod 555 $lib'
2245 irix5* | irix6* | nonstopux*)
2247 nonstopux*) version_type=nonstopux ;;
2249 if test "$lt_cv_prog_gnu_ld" = yes; then
2257 soname_spec='${libname}${release}${shared_ext}$major'
2258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2260 irix5* | nonstopux*)
2264 case $LD in # libtool.m4 will add one of these switches to LD
2265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2266 libsuff= shlibsuff= libmagic=32-bit;;
2267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2268 libsuff=32 shlibsuff=N32 libmagic=N32;;
2269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2271 *) libsuff= shlibsuff= libmagic=never-match;;
2275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2276 shlibpath_overrides_runpath=no
2277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2279 hardcode_into_libs=yes
2282 # No shared lib support for Linux oldld, aout, or coff.
2283 linux*oldld* | linux*aout* | linux*coff*)
2287 # This must be Linux ELF.
2292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2293 soname_spec='${libname}${release}${shared_ext}$major'
2294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2295 shlibpath_var=LD_LIBRARY_PATH
2296 shlibpath_overrides_runpath=no
2297 # This implies no fast_install, which is unacceptable.
2298 # Some rework will be needed to allow for fast_install
2299 # before this can be enabled.
2300 hardcode_into_libs=yes
2302 # Append ld.so.conf contents to the search path
2303 if test -f /etc/ld.so.conf; then
2304 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2308 # We used to test for /lib/ld.so.1 and disable shared libraries on
2309 # powerpc, because MkLinux only supported shared libraries with the
2310 # GNU dynamic linker. Since this was broken with cross compilers,
2311 # most powerpc-linux boxes support dynamic linking these days and
2312 # people can always --disable-shared, the test was removed, and we
2313 # assume the GNU/Linux dynamic linker is in use.
2314 dynamic_linker='GNU/Linux ld.so'
2321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2322 soname_spec='${libname}${release}${shared_ext}$major'
2323 shlibpath_var=LD_LIBRARY_PATH
2324 shlibpath_overrides_runpath=no
2325 hardcode_into_libs=yes
2326 dynamic_linker='GNU ld.so'
2333 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2336 dynamic_linker='NetBSD (a.out) ld.so'
2338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2339 soname_spec='${libname}${release}${shared_ext}$major'
2340 dynamic_linker='NetBSD ld.elf_so'
2342 shlibpath_var=LD_LIBRARY_PATH
2343 shlibpath_overrides_runpath=yes
2344 hardcode_into_libs=yes
2349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2350 shlibpath_var=LD_LIBRARY_PATH
2351 shlibpath_overrides_runpath=yes
2358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2359 soname_spec='${libname}${release}${shared_ext}$major'
2360 shlibpath_var=LD_LIBRARY_PATH
2361 shlibpath_overrides_runpath=yes
2368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2370 shlibpath_var=LD_LIBRARY_PATH
2371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2373 openbsd2.[[89]] | openbsd2.[[89]].*)
2374 shlibpath_overrides_runpath=no
2377 shlibpath_overrides_runpath=yes
2381 shlibpath_overrides_runpath=yes
2386 libname_spec='$name'
2389 library_names_spec='$libname${shared_ext} $libname.a'
2390 dynamic_linker='OS/2 ld.exe'
2391 shlibpath_var=LIBPATH
2394 osf3* | osf4* | osf5*)
2398 soname_spec='${libname}${release}${shared_ext}$major'
2399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2400 shlibpath_var=LD_LIBRARY_PATH
2401 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2402 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2407 soname_spec='${libname}${release}${shared_ext}$major'
2408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2409 shlibpath_var=LD_LIBRARY_PATH
2416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2417 soname_spec='${libname}${release}${shared_ext}$major'
2418 shlibpath_var=LD_LIBRARY_PATH
2419 shlibpath_overrides_runpath=yes
2420 hardcode_into_libs=yes
2421 # ldd complains unless libraries are executable
2422 postinstall_cmds='chmod +x $lib'
2427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2429 shlibpath_var=LD_LIBRARY_PATH
2430 shlibpath_overrides_runpath=yes
2431 if test "$with_gnu_ld" = yes; then
2437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2440 soname_spec='${libname}${release}${shared_ext}$major'
2441 shlibpath_var=LD_LIBRARY_PATH
2442 case $host_vendor in
2444 shlibpath_overrides_runpath=no
2446 export_dynamic_flag_spec='${wl}-Blargedynsym'
2447 runpath_var=LD_RUN_PATH
2455 shlibpath_overrides_runpath=no
2456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2462 if test -d /usr/nec ;then
2464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2465 soname_spec='$libname${shared_ext}.$major'
2466 shlibpath_var=LD_LIBRARY_PATH
2472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2473 soname_spec='${libname}${release}${shared_ext}$major'
2474 shlibpath_var=LD_LIBRARY_PATH
2481 AC_MSG_RESULT([$dynamic_linker])
2482 test "$dynamic_linker" = no && can_build_shared=no
2483 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2488 AC_DEFUN([_LT_AC_TAGCONFIG],
2489 [AC_ARG_WITH([tags],
2490 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2491 [include additional configurations @<:@automatic@:>@])],
2492 [tagnames="$withval"])
2494 if test -f "$ltmain" && test -n "$tagnames"; then
2495 if test ! -f "${ofile}"; then
2496 AC_MSG_WARN([output file `$ofile' does not exist])
2499 if test -z "$LTCC"; then
2500 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2501 if test -z "$LTCC"; then
2502 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2504 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2508 # Extract list of available tagged configurations in $ofile.
2509 # Note that this assumes the entire list is on one line.
2510 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2513 for tagname in $tagnames; do
2515 # Check whether tagname contains only valid characters
2516 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2518 *) AC_MSG_ERROR([invalid tag name: $tagname])
2522 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2524 AC_MSG_ERROR([tag name \"$tagname\" already exists])
2527 # Update the list of available tags.
2528 if test -n "$tagname"; then
2529 echo appending configuration tag \"$tagname\" to $ofile
2533 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2534 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2535 (test "X$CXX" != "Xg++"))) ; then
2536 AC_LIBTOOL_LANG_CXX_CONFIG
2543 if test -n "$F77" && test "X$F77" != "Xno"; then
2544 AC_LIBTOOL_LANG_F77_CONFIG
2551 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2552 AC_LIBTOOL_LANG_GCJ_CONFIG
2559 AC_LIBTOOL_LANG_RC_CONFIG
2563 AC_MSG_ERROR([Unsupported tag name: $tagname])
2567 # Append the new tag name to the list of available tags.
2568 if test -n "$tagname" ; then
2569 available_tags="$available_tags $tagname"
2575 # Now substitute the updated list of available tags.
2576 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2577 mv "${ofile}T" "$ofile"
2581 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2584 ])# _LT_AC_TAGCONFIG
2589 # enable checks for dlopen support
2590 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2591 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2592 ])# AC_LIBTOOL_DLOPEN
2595 # AC_LIBTOOL_WIN32_DLL
2596 # --------------------
2597 # declare package support for building win32 dll's
2598 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2599 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2600 ])# AC_LIBTOOL_WIN32_DLL
2603 # AC_ENABLE_SHARED([DEFAULT])
2604 # ---------------------------
2605 # implement the --enable-shared flag
2606 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2607 AC_DEFUN([AC_ENABLE_SHARED],
2608 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2609 AC_ARG_ENABLE([shared],
2610 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2611 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2612 [p=${PACKAGE-default}
2614 yes) enable_shared=yes ;;
2615 no) enable_shared=no ;;
2618 # Look at the argument we got. We use all the common list separators.
2619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2620 for pkg in $enableval; do
2622 if test "X$pkg" = "X$p"; then
2629 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2630 ])# AC_ENABLE_SHARED
2635 #- set the default shared flag to --disable-shared
2636 AC_DEFUN([AC_DISABLE_SHARED],
2637 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2638 AC_ENABLE_SHARED(no)
2639 ])# AC_DISABLE_SHARED
2642 # AC_ENABLE_STATIC([DEFAULT])
2643 # ---------------------------
2644 # implement the --enable-static flag
2645 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2646 AC_DEFUN([AC_ENABLE_STATIC],
2647 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2648 AC_ARG_ENABLE([static],
2649 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2650 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2651 [p=${PACKAGE-default}
2653 yes) enable_static=yes ;;
2654 no) enable_static=no ;;
2657 # Look at the argument we got. We use all the common list separators.
2658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2659 for pkg in $enableval; do
2661 if test "X$pkg" = "X$p"; then
2668 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2669 ])# AC_ENABLE_STATIC
2674 # set the default static flag to --disable-static
2675 AC_DEFUN([AC_DISABLE_STATIC],
2676 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2677 AC_ENABLE_STATIC(no)
2678 ])# AC_DISABLE_STATIC
2681 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2682 # ---------------------------------
2683 # implement the --enable-fast-install flag
2684 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2685 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2686 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2687 AC_ARG_ENABLE([fast-install],
2688 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2689 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2690 [p=${PACKAGE-default}
2692 yes) enable_fast_install=yes ;;
2693 no) enable_fast_install=no ;;
2695 enable_fast_install=no
2696 # Look at the argument we got. We use all the common list separators.
2697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2698 for pkg in $enableval; do
2700 if test "X$pkg" = "X$p"; then
2701 enable_fast_install=yes
2707 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2708 ])# AC_ENABLE_FAST_INSTALL
2711 # AC_DISABLE_FAST_INSTALL
2712 # -----------------------
2713 # set the default to --disable-fast-install
2714 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2715 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2716 AC_ENABLE_FAST_INSTALL(no)
2717 ])# AC_DISABLE_FAST_INSTALL
2720 # AC_LIBTOOL_PICMODE([MODE])
2721 # --------------------------
2722 # implement the --with-pic flag
2723 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2724 AC_DEFUN([AC_LIBTOOL_PICMODE],
2725 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2726 pic_mode=ifelse($#,1,$1,default)
2727 ])# AC_LIBTOOL_PICMODE
2732 # This is predefined starting with Autoconf 2.54, so this conditional
2733 # definition can be removed once we require Autoconf 2.54 or later.
2734 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2735 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2736 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2737 then ac_cv_prog_egrep='grep -E'
2738 else ac_cv_prog_egrep='egrep'
2740 EGREP=$ac_cv_prog_egrep
2745 # AC_PATH_TOOL_PREFIX
2746 # -------------------
2747 # find a file program which can recognise shared library
2748 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2749 [AC_REQUIRE([AC_PROG_EGREP])dnl
2750 AC_MSG_CHECKING([for $1])
2751 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2753 [[\\/*] | ?:[\\/]*])
2754 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2757 lt_save_MAGIC_CMD="$MAGIC_CMD"
2758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2759 dnl $ac_dummy forces splitting on constant user-supplied paths.
2760 dnl POSIX.2 word splitting is done only on the output of word expansions,
2761 dnl not every word. This closes a longstanding sh security hole.
2762 ac_dummy="ifelse([$2], , $PATH, [$2])"
2763 for ac_dir in $ac_dummy; do
2765 test -z "$ac_dir" && ac_dir=.
2766 if test -f $ac_dir/$1; then
2767 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2768 if test -n "$file_magic_test_file"; then
2769 case $deplibs_check_method in
2771 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2774 $EGREP "$file_magic_regex" > /dev/null; then
2779 *** Warning: the command libtool uses to detect shared libraries,
2780 *** $file_magic_cmd, produces output that libtool cannot recognize.
2781 *** The result is that libtool may fail to recognize shared libraries
2782 *** as such. This will affect the creation of libtool libraries that
2783 *** depend on shared libraries, but programs linked with such libtool
2784 *** libraries will work regardless of this problem. Nevertheless, you
2785 *** may want to report the problem to your system manager and/or to
2786 *** bug-libtool@gnu.org
2796 MAGIC_CMD="$lt_save_MAGIC_CMD"
2799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2800 if test -n "$MAGIC_CMD"; then
2801 AC_MSG_RESULT($MAGIC_CMD)
2805 ])# AC_PATH_TOOL_PREFIX
2810 # find a file program which can recognise a shared library
2811 AC_DEFUN([AC_PATH_MAGIC],
2812 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2813 if test -z "$lt_cv_path_MAGIC_CMD"; then
2814 if test -n "$ac_tool_prefix"; then
2815 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2825 # find the pathname to the GNU or non-GNU linker
2826 AC_DEFUN([AC_PROG_LD],
2827 [AC_ARG_WITH([gnu-ld],
2828 [AC_HELP_STRING([--with-gnu-ld],
2829 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2830 [test "$withval" = no || with_gnu_ld=yes],
2832 AC_REQUIRE([LT_AC_PROG_SED])dnl
2833 AC_REQUIRE([AC_PROG_CC])dnl
2834 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2835 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2837 if test "$GCC" = yes; then
2838 # Check if gcc -print-prog-name=ld gives a path.
2839 AC_MSG_CHECKING([for ld used by $CC])
2842 # gcc leaves a trailing carriage return which upsets mingw
2843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2848 # Accept absolute paths.
2849 [[\\/]]* | ?:[[\\/]]*)
2850 re_direlt='/[[^/]][[^/]]*/\.\./'
2851 # Canonicalize the pathname of ld
2852 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2853 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2854 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2856 test -z "$LD" && LD="$ac_prog"
2859 # If it fails, then pretend we aren't using GCC.
2863 # If it is relative, then search for the first ld in PATH.
2867 elif test "$with_gnu_ld" = yes; then
2868 AC_MSG_CHECKING([for GNU ld])
2870 AC_MSG_CHECKING([for non-GNU ld])
2872 AC_CACHE_VAL(lt_cv_path_LD,
2873 [if test -z "$LD"; then
2874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2875 for ac_dir in $PATH; do
2877 test -z "$ac_dir" && ac_dir=.
2878 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2879 lt_cv_path_LD="$ac_dir/$ac_prog"
2880 # Check to see if the program is GNU ld. I'd rather use --version,
2881 # but apparently some GNU ld's only accept -v.
2882 # Break only if it was the GNU/non-GNU ld that we prefer.
2883 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2884 *GNU* | *'with BFD'*)
2885 test "$with_gnu_ld" != no && break
2888 test "$with_gnu_ld" != yes && break
2895 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2898 if test -n "$LD"; then
2903 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2910 AC_DEFUN([AC_PROG_LD_GNU],
2911 [AC_REQUIRE([AC_PROG_EGREP])dnl
2912 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2913 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2914 case `$LD -v 2>&1 </dev/null` in
2915 *GNU* | *'with BFD'*)
2916 lt_cv_prog_gnu_ld=yes
2919 lt_cv_prog_gnu_ld=no
2922 with_gnu_ld=$lt_cv_prog_gnu_ld
2926 # AC_PROG_LD_RELOAD_FLAG
2927 # ----------------------
2928 # find reload flag for linker
2929 # -- PORTME Some linkers may need a different reload flag.
2930 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2931 [AC_CACHE_CHECK([for $LD option to reload object files],
2932 lt_cv_ld_reload_flag,
2933 [lt_cv_ld_reload_flag='-r'])
2934 reload_flag=$lt_cv_ld_reload_flag
2935 case $reload_flag in
2937 *) reload_flag=" $reload_flag" ;;
2939 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2942 if test "$GCC" = yes; then
2943 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2945 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2949 ])# AC_PROG_LD_RELOAD_FLAG
2952 # AC_DEPLIBS_CHECK_METHOD
2953 # -----------------------
2954 # how to check for library dependencies
2955 # -- PORTME fill in with the dynamic library characteristics
2956 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2957 [AC_CACHE_CHECK([how to recognise dependent libraries],
2958 lt_cv_deplibs_check_method,
2959 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2960 lt_cv_file_magic_test_file=
2961 lt_cv_deplibs_check_method='unknown'
2962 # Need to set the preceding variable on all platforms that support
2963 # interlibrary dependencies.
2964 # 'none' -- dependencies not supported.
2965 # `unknown' -- same as none, but documents that we really don't know.
2966 # 'pass_all' -- all dependencies passed with no checks.
2967 # 'test_compile' -- check by making test program.
2968 # 'file_magic [[regex]]' -- check by looking for files in library path
2969 # which responds to the $file_magic_cmd with a given extended regex.
2970 # If you have `file' or equivalent on your system and you're not sure
2971 # whether `pass_all' will *always* work, you probably want this one.
2975 lt_cv_deplibs_check_method=pass_all
2979 lt_cv_deplibs_check_method=pass_all
2983 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2984 lt_cv_file_magic_cmd='/usr/bin/file -L'
2985 lt_cv_file_magic_test_file=/shlib/libc.so
2989 # func_win32_libid is a shell function defined in ltmain.sh
2990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2991 lt_cv_file_magic_cmd='func_win32_libid'
2995 # Base MSYS/MinGW do not provide the 'file' command needed by
2996 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2997 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2998 lt_cv_file_magic_cmd='$OBJDUMP -f'
3001 darwin* | rhapsody*)
3002 lt_cv_deplibs_check_method=pass_all
3005 freebsd* | kfreebsd*-gnu | dragonfly*)
3006 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3009 # Not sure whether the presence of OpenBSD here was a mistake.
3010 # Let's accept both of them until this is cleared up.
3011 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3012 lt_cv_file_magic_cmd=/usr/bin/file
3013 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3017 lt_cv_deplibs_check_method=pass_all
3022 lt_cv_deplibs_check_method=pass_all
3025 hpux10.20* | hpux11*)
3026 lt_cv_file_magic_cmd=/usr/bin/file
3029 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3033 [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]']
3034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3037 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3038 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3043 irix5* | irix6* | nonstopux*)
3045 *-32|*"-32 ") libmagic=32-bit;;
3046 *-n32|*"-n32 ") libmagic=N32;;
3047 *-64|*"-64 ") libmagic=64-bit;;
3048 *) libmagic=never-match;;
3050 lt_cv_deplibs_check_method=pass_all
3053 # This must be Linux ELF.
3055 lt_cv_deplibs_check_method=pass_all
3059 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3060 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3062 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3067 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3068 lt_cv_file_magic_cmd=/usr/bin/file
3069 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3073 lt_cv_deplibs_check_method=unknown
3077 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3078 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3080 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3084 osf3* | osf4* | osf5*)
3085 lt_cv_deplibs_check_method=pass_all
3089 lt_cv_deplibs_check_method=pass_all
3093 lt_cv_deplibs_check_method=pass_all
3096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3097 case $host_vendor in
3099 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]]'
3100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3103 lt_cv_deplibs_check_method=pass_all
3106 lt_cv_file_magic_cmd='/bin/file'
3107 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3110 lt_cv_file_magic_cmd='/bin/file'
3111 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3112 lt_cv_file_magic_test_file=/lib/libc.so
3115 lt_cv_deplibs_check_method=pass_all
3120 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3121 lt_cv_deplibs_check_method=pass_all
3125 file_magic_cmd=$lt_cv_file_magic_cmd
3126 deplibs_check_method=$lt_cv_deplibs_check_method
3127 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3128 ])# AC_DEPLIBS_CHECK_METHOD
3133 # find the pathname to a BSD-compatible name lister
3134 AC_DEFUN([AC_PROG_NM],
3135 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3136 [if test -n "$NM"; then
3137 # Let the user override the test.
3140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3141 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3143 test -z "$ac_dir" && ac_dir=.
3144 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3145 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3146 # Check to see if the nm accepts a BSD-compat flag.
3147 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3148 # nm: unknown option "B" ignored
3149 # Tru64's nm complains that /dev/null is an invalid object file
3150 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3151 */dev/null* | *'Invalid file or object type'*)
3152 lt_cv_path_NM="$tmp_nm -B"
3156 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3158 lt_cv_path_NM="$tmp_nm -p"
3162 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3163 continue # so that we can try to find one that supports BSD flags
3170 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3178 # check for math library
3179 AC_DEFUN([AC_CHECK_LIBM],
3180 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3183 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3184 # These system don't have libm, or don't need it
3187 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3188 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3191 AC_CHECK_LIB(m, cos, LIBM="-lm")
3197 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3198 # -----------------------------------
3199 # sets LIBLTDL to the link flags for the libltdl convenience library and
3200 # LTDLINCL to the include flags for the libltdl header and adds
3201 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3202 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3203 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3204 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3205 # '${top_srcdir}/' (note the single quotes!). If your package is not
3206 # flat and you're not using automake, define top_builddir and
3207 # top_srcdir appropriately in the Makefiles.
3208 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3209 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3210 case $enable_ltdl_convenience in
3211 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3212 "") enable_ltdl_convenience=yes
3213 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3215 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3216 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3217 # For backwards non-gettext consistent compatibility...
3219 ])# AC_LIBLTDL_CONVENIENCE
3222 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3223 # -----------------------------------
3224 # sets LIBLTDL to the link flags for the libltdl installable library and
3225 # LTDLINCL to the include flags for the libltdl header and adds
3226 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3227 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3228 # DIRECTORY is not provided and an installed libltdl is not found, it is
3229 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3230 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3231 # quotes!). If your package is not flat and you're not using automake,
3232 # define top_builddir and top_srcdir appropriately in the Makefiles.
3233 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3234 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3235 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3236 AC_CHECK_LIB(ltdl, lt_dlinit,
3237 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3238 [if test x"$enable_ltdl_install" = xno; then
3239 AC_MSG_WARN([libltdl not installed, but installation disabled])
3241 enable_ltdl_install=yes
3244 if test x"$enable_ltdl_install" = x"yes"; then
3245 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3246 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3247 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3249 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3253 # For backwards non-gettext consistent compatibility...
3255 ])# AC_LIBLTDL_INSTALLABLE
3260 # enable support for C++ libraries
3261 AC_DEFUN([AC_LIBTOOL_CXX],
3262 [AC_REQUIRE([_LT_AC_LANG_CXX])
3268 AC_DEFUN([_LT_AC_LANG_CXX],
3269 [AC_REQUIRE([AC_PROG_CXX])
3270 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3271 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3274 # _LT_AC_PROG_CXXCPP
3276 AC_DEFUN([_LT_AC_PROG_CXXCPP],
3278 AC_REQUIRE([AC_PROG_CXX])
3279 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3280 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3281 (test "X$CXX" != "Xg++"))) ; then
3284 ])# _LT_AC_PROG_CXXCPP
3288 # enable support for Fortran 77 libraries
3289 AC_DEFUN([AC_LIBTOOL_F77],
3290 [AC_REQUIRE([_LT_AC_LANG_F77])
3296 AC_DEFUN([_LT_AC_LANG_F77],
3297 [AC_REQUIRE([AC_PROG_F77])
3298 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3304 # enable support for GCJ libraries
3305 AC_DEFUN([AC_LIBTOOL_GCJ],
3306 [AC_REQUIRE([_LT_AC_LANG_GCJ])
3312 AC_DEFUN([_LT_AC_LANG_GCJ],
3313 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3314 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3315 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3316 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3317 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3318 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3319 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3325 # enable support for Windows resource files
3326 AC_DEFUN([AC_LIBTOOL_RC],
3327 [AC_REQUIRE([LT_AC_PROG_RC])
3328 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3332 # AC_LIBTOOL_LANG_C_CONFIG
3333 # ------------------------
3334 # Ensure that the configuration vars for the C compiler are
3335 # suitably defined. Those variables are subsequently used by
3336 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3337 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3338 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3342 # Source file extension for C test sources.
3345 # Object file extension for compiled C test sources.
3347 _LT_AC_TAGVAR(objext, $1)=$objext
3349 # Code to be used in simple compile tests
3350 lt_simple_compile_test_code="int some_variable = 0;\n"
3352 # Code to be used in simple link tests
3353 lt_simple_link_test_code='int main(){return(0);}\n'
3358 # Check for any special shared library compilation flags.
3360 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3361 if test "$GCC" = no; then
3364 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3368 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3369 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3370 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3372 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3373 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3379 # Check to make sure the static flag actually works.
3381 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3382 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3383 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3385 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3388 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3389 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3390 AC_LIBTOOL_PROG_CC_C_O($1)
3391 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3392 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3393 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3394 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3395 AC_LIBTOOL_SYS_LIB_STRIP
3396 AC_LIBTOOL_DLOPEN_SELF($1)
3398 # Report which librarie types wil actually be built
3399 AC_MSG_CHECKING([if libtool supports shared libraries])
3400 AC_MSG_RESULT([$can_build_shared])
3402 AC_MSG_CHECKING([whether to build shared libraries])
3403 test "$can_build_shared" = "no" && enable_shared=no
3405 # On AIX, shared libraries and static libraries use the same namespace, and
3406 # are all built from PIC.
3409 test "$enable_shared" = yes && enable_static=no
3410 if test -n "$RANLIB"; then
3411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3412 postinstall_cmds='$RANLIB $lib'
3417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3418 test "$enable_shared" = yes && enable_static=no
3422 AC_MSG_RESULT([$enable_shared])
3424 AC_MSG_CHECKING([whether to build static libraries])
3425 # Make sure either enable_shared or enable_static is yes.
3426 test "$enable_shared" = yes || enable_static=yes
3427 AC_MSG_RESULT([$enable_static])
3429 AC_LIBTOOL_CONFIG($1)
3433 ])# AC_LIBTOOL_LANG_C_CONFIG
3436 # AC_LIBTOOL_LANG_CXX_CONFIG
3437 # --------------------------
3438 # Ensure that the configuration vars for the C compiler are
3439 # suitably defined. Those variables are subsequently used by
3440 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3441 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3442 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3444 AC_REQUIRE([AC_PROG_CXX])
3445 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3447 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3448 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3449 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3450 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3451 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3452 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3453 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3454 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3455 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3456 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3457 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3458 _LT_AC_TAGVAR(module_cmds, $1)=
3459 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3460 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3461 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3462 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3463 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3464 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3466 # Dependencies to place before and after the object being linked:
3467 _LT_AC_TAGVAR(predep_objects, $1)=
3468 _LT_AC_TAGVAR(postdep_objects, $1)=
3469 _LT_AC_TAGVAR(predeps, $1)=
3470 _LT_AC_TAGVAR(postdeps, $1)=
3471 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3473 # Source file extension for C++ test sources.
3476 # Object file extension for compiled C++ test sources.
3478 _LT_AC_TAGVAR(objext, $1)=$objext
3480 # Code to be used in simple compile tests
3481 lt_simple_compile_test_code="int some_variable = 0;\n"
3483 # Code to be used in simple link tests
3484 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3489 # Allow CC to be a program name with arguments.
3494 lt_save_with_gnu_ld=$with_gnu_ld
3495 lt_save_path_LD=$lt_cv_path_LD
3496 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3497 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3499 unset lt_cv_prog_gnu_ld
3501 if test -n "${lt_cv_path_LDCXX+set}"; then
3502 lt_cv_path_LD=$lt_cv_path_LDCXX
3506 test -z "${LDCXX+set}" || LD=$LDCXX
3509 _LT_AC_TAGVAR(compiler, $1)=$CC
3510 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3512 # We don't want -fno-exception wen compiling C++ code, so set the
3513 # no_builtin_flag separately
3514 if test "$GXX" = yes; then
3515 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3517 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3520 if test "$GXX" = yes; then
3521 # Set up default GNU C++ configuration
3525 # Check if GNU C++ uses GNU ld as the underlying linker, since the
3526 # archiving commands below assume that GNU ld is being used.
3527 if test "$with_gnu_ld" = yes; then
3528 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3529 _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'
3531 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3532 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3534 # If archive_cmds runs LD, not CC, wlarc should be empty
3535 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3536 # investigate it a little bit more. (MM)
3539 # ancient GNU ld didn't support --whole-archive et. al.
3540 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3541 grep 'no-whole-archive' > /dev/null; then
3542 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3544 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3550 # A generic and very simple default shared library creation
3551 # command for GNU C++ for the case where it uses the native
3552 # linker, instead of GNU ld. If possible, this setting should
3553 # overridden to take advantage of the native linker features on
3554 # the platform it is being used on.
3555 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3558 # Commands to make compiler produce verbose output that lists
3559 # what "hidden" libraries, object files and flags are used when
3560 # linking a shared library.
3561 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3569 # PORTME: fill in a description of your system's C++ link characteristics
3570 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3571 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3574 # FIXME: insert proper C++ library support
3575 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3578 if test "$host_cpu" = ia64; then
3579 # On IA64, the linker does run time linking by default, so we don't
3580 # have to do anything special.
3581 aix_use_runtimelinking=no
3582 exp_sym_flag='-Bexport'
3585 aix_use_runtimelinking=no
3587 # Test if we are trying to use run time linking or normal
3588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3589 # need to do runtime linking.
3590 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3591 for ld_flag in $LDFLAGS; do
3594 aix_use_runtimelinking=yes
3601 exp_sym_flag='-bexport'
3602 no_entry_flag='-bnoentry'
3605 # When large executables or shared objects are built, AIX ld can
3606 # have problems creating the table of contents. If linking a library
3607 # or program results in "error TOC overflow" add -mminimal-toc to
3608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3611 _LT_AC_TAGVAR(archive_cmds, $1)=''
3612 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3613 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3614 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3616 if test "$GXX" = yes; then
3617 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3618 # We only want to do this on AIX 4.2 and lower, the check
3619 # below for broken collect2 doesn't work under 4.3+
3620 collect2name=`${CC} -print-prog-name=collect2`
3621 if test -f "$collect2name" && \
3622 strings "$collect2name" | grep resolve_lib_name >/dev/null
3624 # We have reworked collect2
3625 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3627 # We have old collect2
3628 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3629 # It fails to find uninstalled libraries when the uninstalled
3630 # path is not listed in the libpath. Setting hardcode_minus_L
3631 # to unsupported forces relinking
3632 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3633 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3634 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3637 shared_flag='-shared'
3638 if test "$aix_use_runtimelinking" = yes; then
3639 shared_flag="$shared_flag "'${wl}-G'
3643 if test "$host_cpu" = ia64; then
3644 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3645 # chokes on -Wl,-G. The following line is correct:
3648 if test "$aix_use_runtimelinking" = yes; then
3649 shared_flag='${wl}-G'
3651 shared_flag='${wl}-bM:SRE'
3656 # It seems that -bexpall does not export symbols beginning with
3657 # underscore (_), so it is better to generate a list of symbols to export.
3658 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3659 if test "$aix_use_runtimelinking" = yes; then
3660 # Warning - without using the other runtime loading flags (-brtl),
3661 # -berok will link without error, but may produce a broken library.
3662 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3663 # Determine the default libpath from the value encoded in an empty executable.
3664 _LT_AC_SYS_LIBPATH_AIX
3665 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3667 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3669 if test "$host_cpu" = ia64; then
3670 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3671 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3672 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3674 # Determine the default libpath from the value encoded in an empty executable.
3675 _LT_AC_SYS_LIBPATH_AIX
3676 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3677 # Warning - without using the other run time loading flags,
3678 # -berok will link without error, but may produce a broken library.
3679 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3680 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3681 # -bexpall does not export symbols beginning with underscore (_)
3682 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3683 # Exported symbols can be pulled into shared objects from archives
3684 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3685 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3686 # This is similar to how AIX traditionally builds it's shared libraries.
3687 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3692 case $cc_basename in
3694 # FIXME: insert proper C++ library support
3695 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3701 cygwin* | mingw* | pw32*)
3702 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3703 # as there is no search path for DLLs.
3704 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3705 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3706 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3707 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3709 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3710 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3711 # If the export-symbols file already is a .def file (1st line
3712 # is EXPORTS), use it as is; otherwise, prepend...
3713 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3714 cp $export_symbols $output_objdir/$soname.def;
3716 echo EXPORTS > $output_objdir/$soname.def;
3717 cat $export_symbols >> $output_objdir/$soname.def;
3719 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3721 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3724 darwin* | rhapsody*)
3726 rhapsody* | darwin1.[[012]])
3727 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3730 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3731 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3733 case ${MACOSX_DEPLOYMENT_TARGET} in
3735 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3738 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3744 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3745 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3746 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3747 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3748 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3749 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3751 if test "$GXX" = yes ; then
3752 lt_int_apple_cc_single_mod=no
3753 output_verbose_link_cmd='echo'
3754 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3755 lt_int_apple_cc_single_mod=yes
3757 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3758 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3760 _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'
3762 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3763 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3764 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3765 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3767 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3769 _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}'
3771 case "$cc_basename" in
3773 output_verbose_link_cmd='echo'
3774 _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` $verstring'
3775 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3776 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3777 _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3778 _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}'
3781 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3788 case $cc_basename in
3790 # FIXME: insert proper C++ library support
3791 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3794 # Green Hills C++ Compiler
3795 # FIXME: insert proper C++ library support
3796 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3799 # FIXME: insert proper C++ library support
3800 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3805 # C++ shared libraries reported to be fairly broken before switch to ELF
3806 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3809 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3811 freebsd* | kfreebsd*-gnu | dragonfly*)
3812 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3814 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3819 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3820 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3821 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3822 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3823 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3824 # but as the default
3825 # location of the library.
3827 case $cc_basename in
3829 # FIXME: insert proper C++ library support
3830 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3833 _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'
3834 # Commands to make compiler produce verbose output that lists
3835 # what "hidden" libraries, object files and flags are used when
3836 # linking a shared library.
3838 # There doesn't appear to be a way to prevent this compiler from
3839 # explicitly linking system object files so we need to strip them
3840 # from the output so that they don't get included in the library
3842 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'
3845 if test "$GXX" = yes; then
3846 _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'
3848 # FIXME: insert proper C++ library support
3849 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3855 if test $with_gnu_ld = no; then
3858 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3859 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3860 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3863 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3866 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3867 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3868 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3874 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3875 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3878 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3879 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3880 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3881 # but as the default
3882 # location of the library.
3885 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3886 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3887 # but as the default
3888 # location of the library.
3892 case $cc_basename in
3894 # FIXME: insert proper C++ library support
3895 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3900 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3903 _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'
3906 # Commands to make compiler produce verbose output that lists
3907 # what "hidden" libraries, object files and flags are used when
3908 # linking a shared library.
3910 # There doesn't appear to be a way to prevent this compiler from
3911 # explicitly linking system object files so we need to strip them
3912 # from the output so that they don't get included in the library
3914 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'
3917 if test "$GXX" = yes; then
3918 if test $with_gnu_ld = no; then
3921 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3924 _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'
3929 # FIXME: insert proper C++ library support
3930 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3936 case $cc_basename in
3939 _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 ${objdir}/so_locations -o $lib'
3941 # Archives containing C++ object files must be created using
3942 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3943 # necessary to make sure instantiated templates are included
3945 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3948 if test "$GXX" = yes; then
3949 if test "$with_gnu_ld" = no; then
3950 _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}${objdir}/so_locations -o $lib'
3952 _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'
3955 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3958 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3959 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3962 case $cc_basename in
3964 # Kuck and Associates, Inc. (KAI) C++ Compiler
3966 # KCC will only create a shared library if the output file
3967 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3968 # to its proper name (with version) after linking.
3969 _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'
3970 _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'
3971 # Commands to make compiler produce verbose output that lists
3972 # what "hidden" libraries, object files and flags are used when
3973 # linking a shared library.
3975 # There doesn't appear to be a way to prevent this compiler from
3976 # explicitly linking system object files so we need to strip them
3977 # from the output so that they don't get included in the library
3979 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'
3981 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3982 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3984 # Archives containing C++ object files must be created using
3985 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3986 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3991 # version 8.0 and above of icpc choke on multiply defined symbols
3992 # if we add $predep_objects and $postdep_objects, however 7.1 and
3993 # earlier do not add the objects themselves.
3994 case `$CC -V 2>&1` in
3996 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3997 _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'
3999 *) # Version 8.0 or newer
4002 ia64*) tmp_idyn=' -i_dynamic';;
4004 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4005 _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'
4008 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4009 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4010 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4011 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4014 # Portland Group C++ compiler
4015 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4016 _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'
4018 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4019 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4023 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4024 _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'
4026 runpath_var=LD_RUN_PATH
4027 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4028 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4030 # Commands to make compiler produce verbose output that lists
4031 # what "hidden" libraries, object files and flags are used when
4032 # linking a shared library.
4034 # There doesn't appear to be a way to prevent this compiler from
4035 # explicitly linking system object files so we need to strip them
4036 # from the output so that they don't get included in the library
4038 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'
4043 # FIXME: insert proper C++ library support
4044 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4047 # FIXME: insert proper C++ library support
4048 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4051 case $cc_basename in
4053 # FIXME: insert proper C++ library support
4054 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4057 # FIXME: insert proper C++ library support
4058 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4064 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4066 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4067 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4068 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4070 # Workaround some broken pre-1.5 toolchains
4071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4074 # C++ shared libraries are fairly broken
4075 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4078 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4079 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4080 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4081 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4083 _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'
4084 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4085 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4087 output_verbose_link_cmd='echo'
4090 case $cc_basename in
4092 # Kuck and Associates, Inc. (KAI) C++ Compiler
4094 # KCC will only create a shared library if the output file
4095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4096 # to its proper name (with version) after linking.
4097 _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'
4099 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4100 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4102 # Archives containing C++ object files must be created using
4103 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4104 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4108 # Rational C++ 2.4.1
4109 # FIXME: insert proper C++ library support
4110 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4113 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4114 _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 ${objdir}/so_locations -o $lib'
4116 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4117 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4119 # Commands to make compiler produce verbose output that lists
4120 # what "hidden" libraries, object files and flags are used when
4121 # linking a shared library.
4123 # There doesn't appear to be a way to prevent this compiler from
4124 # explicitly linking system object files so we need to strip them
4125 # from the output so that they don't get included in the library
4127 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'
4130 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4131 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4132 _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}${objdir}/so_locations -o $lib'
4134 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4135 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4137 # Commands to make compiler produce verbose output that lists
4138 # what "hidden" libraries, object files and flags are used when
4139 # linking a shared library.
4140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4143 # FIXME: insert proper C++ library support
4144 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4150 case $cc_basename in
4152 # Kuck and Associates, Inc. (KAI) C++ Compiler
4154 # KCC will only create a shared library if the output file
4155 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4156 # to its proper name (with version) after linking.
4157 _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'
4159 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4160 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4162 # Archives containing C++ object files must be created using
4163 # the KAI C++ compiler.
4164 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4167 # Rational C++ 2.4.1
4168 # FIXME: insert proper C++ library support
4169 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4172 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4173 _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 ${objdir}/so_locations -o $lib'
4174 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4175 echo "-hidden">> $lib.exp~
4176 $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 $objdir/so_locations -o $lib~
4179 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4180 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4182 # Commands to make compiler produce verbose output that lists
4183 # what "hidden" libraries, object files and flags are used when
4184 # linking a shared library.
4186 # There doesn't appear to be a way to prevent this compiler from
4187 # explicitly linking system object files so we need to strip them
4188 # from the output so that they don't get included in the library
4190 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'
4193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4194 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4195 _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}${objdir}/so_locations -o $lib'
4197 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4198 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4200 # Commands to make compiler produce verbose output that lists
4201 # what "hidden" libraries, object files and flags are used when
4202 # linking a shared library.
4203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4206 # FIXME: insert proper C++ library support
4207 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4213 # FIXME: insert proper C++ library support
4214 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4217 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4218 case $cc_basename in
4220 # FIXME: insert proper C++ library support
4221 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4224 # FIXME: insert proper C++ library support
4225 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4230 case $cc_basename in
4233 # FIXME: insert proper C++ library support
4234 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4238 # FIXME: insert proper C++ library support
4239 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4242 # FIXME: insert proper C++ library support
4243 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4248 case $cc_basename in
4250 # Sun C++ 4.2, 5.x and Centerline C++
4251 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4252 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4253 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4254 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4257 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4259 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4261 # The C++ compiler is used as linker so we must use $wl
4262 # flag to pass the commands to the underlying system
4264 # Supported since Solaris 2.6 (maybe 2.5.1?)
4265 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4268 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4270 # Commands to make compiler produce verbose output that lists
4271 # what "hidden" libraries, object files and flags are used when
4272 # linking a shared library.
4274 # There doesn't appear to be a way to prevent this compiler from
4275 # explicitly linking system object files so we need to strip them
4276 # from the output so that they don't get included in the library
4278 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4280 # Archives containing C++ object files must be created using
4281 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4282 # necessary to make sure instantiated templates are included
4284 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4287 # Green Hills C++ Compiler
4288 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4290 # The C++ compiler must be used to create the archive.
4291 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4294 # GNU C++ compiler with Solaris linker
4295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4296 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4297 if $CC --version | grep -v '^2\.7' > /dev/null; then
4298 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4299 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4300 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4302 # Commands to make compiler produce verbose output that lists
4303 # what "hidden" libraries, object files and flags are used when
4304 # linking a shared library.
4305 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4307 # g++ 2.7 appears to require `-G' NOT `-shared' on this
4309 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4310 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4311 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4313 # Commands to make compiler produce verbose output that lists
4314 # what "hidden" libraries, object files and flags are used when
4315 # linking a shared library.
4316 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4325 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4328 case $cc_basename in
4330 # NonStop-UX NCC 3.20
4331 # FIXME: insert proper C++ library support
4332 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4335 # FIXME: insert proper C++ library support
4336 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4341 # FIXME: insert proper C++ library support
4342 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4345 # FIXME: insert proper C++ library support
4346 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4349 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4350 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4352 _LT_AC_TAGVAR(GCC, $1)="$GXX"
4353 _LT_AC_TAGVAR(LD, $1)="$LD"
4355 AC_LIBTOOL_POSTDEP_PREDEP($1)
4356 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4357 AC_LIBTOOL_PROG_CC_C_O($1)
4358 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4359 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4360 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4361 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4362 AC_LIBTOOL_SYS_LIB_STRIP
4363 AC_LIBTOOL_DLOPEN_SELF($1)
4365 AC_LIBTOOL_CONFIG($1)
4372 with_gnu_ldcxx=$with_gnu_ld
4373 with_gnu_ld=$lt_save_with_gnu_ld
4374 lt_cv_path_LDCXX=$lt_cv_path_LD
4375 lt_cv_path_LD=$lt_save_path_LD
4376 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4377 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4378 ])# AC_LIBTOOL_LANG_CXX_CONFIG
4380 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4381 # ------------------------
4382 # Figure out "hidden" library dependencies from verbose
4383 # compiler output when linking a shared library.
4384 # Parse the compiler output and extract the necessary
4385 # objects, libraries and library flags.
4386 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4387 dnl we can't use the lt_simple_compile_test_code here,
4388 dnl because it contains code intended for an executable,
4389 dnl not a library. It's possible we should let each
4390 dnl tag define a new lt_????_link_test_code variable,
4391 dnl but it's only used here...
4392 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4394 void foo (void) { a = 0; }
4396 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4400 Foo (void) { a = 0; }
4405 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4413 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4416 public void bar (void) {
4422 dnl Parse the compiler output and extract the necessary
4423 dnl objects, libraries and library flags.
4424 if AC_TRY_EVAL(ac_compile); then
4425 # Parse the compiler output and extract the necessary
4426 # objects, libraries and library flags.
4428 # Sentinel used to keep track of whether or not we are before
4429 # the conftest object file.
4430 pre_test_object_deps_done=no
4432 # The `*' in the case matches for architectures that use `case' in
4433 # $output_verbose_cmd can trigger glob expansion during the loop
4434 # eval without this substitution.
4435 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4437 for p in `eval $output_verbose_link_cmd`; do
4441 # Some compilers place space between "-{L,R}" and the path.
4444 || test $p = "-R"; then
4451 if test "$pre_test_object_deps_done" = no; then
4454 # Internal compiler library paths should come after those
4455 # provided the user. The postdeps already come after the
4456 # user supplied libs so there is no need to process them.
4457 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4458 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4460 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4463 # The "-l" case would never come before the object being
4464 # linked, so don't bother handling this case.
4467 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4468 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4470 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4476 # This assumes that the test object file only shows up
4477 # once in the compiler output.
4478 if test "$p" = "conftest.$objext"; then
4479 pre_test_object_deps_done=yes
4483 if test "$pre_test_object_deps_done" = no; then
4484 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4485 _LT_AC_TAGVAR(predep_objects, $1)="$p"
4487 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4490 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4491 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4493 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4498 *) ;; # Ignore the rest.
4506 echo "libtool.m4: error: problem compiling $1 test program"
4509 $rm -f confest.$objext
4511 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4512 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4514 ])# AC_LIBTOOL_POSTDEP_PREDEP
4516 # AC_LIBTOOL_LANG_F77_CONFIG
4517 # ------------------------
4518 # Ensure that the configuration vars for the C compiler are
4519 # suitably defined. Those variables are subsequently used by
4520 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4521 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4522 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4523 [AC_REQUIRE([AC_PROG_F77])
4524 AC_LANG_PUSH(Fortran 77)
4526 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4527 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4528 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4529 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4530 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4531 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4532 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4533 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4534 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4535 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4536 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4537 _LT_AC_TAGVAR(module_cmds, $1)=
4538 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4539 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4540 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4541 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4542 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4543 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4545 # Source file extension for f77 test sources.
4548 # Object file extension for compiled f77 test sources.
4550 _LT_AC_TAGVAR(objext, $1)=$objext
4552 # Code to be used in simple compile tests
4553 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4555 # Code to be used in simple link tests
4556 lt_simple_link_test_code=" program t\n end\n"
4558 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4561 # Allow CC to be a program name with arguments.
4565 _LT_AC_TAGVAR(compiler, $1)=$CC
4566 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4568 AC_MSG_CHECKING([if libtool supports shared libraries])
4569 AC_MSG_RESULT([$can_build_shared])
4571 AC_MSG_CHECKING([whether to build shared libraries])
4572 test "$can_build_shared" = "no" && enable_shared=no
4574 # On AIX, shared libraries and static libraries use the same namespace, and
4575 # are all built from PIC.
4578 test "$enable_shared" = yes && enable_static=no
4579 if test -n "$RANLIB"; then
4580 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4581 postinstall_cmds='$RANLIB $lib'
4585 test "$enable_shared" = yes && enable_static=no
4588 AC_MSG_RESULT([$enable_shared])
4590 AC_MSG_CHECKING([whether to build static libraries])
4591 # Make sure either enable_shared or enable_static is yes.
4592 test "$enable_shared" = yes || enable_static=yes
4593 AC_MSG_RESULT([$enable_static])
4595 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4597 _LT_AC_TAGVAR(GCC, $1)="$G77"
4598 _LT_AC_TAGVAR(LD, $1)="$LD"
4600 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4601 AC_LIBTOOL_PROG_CC_C_O($1)
4602 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4603 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4604 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4605 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4606 AC_LIBTOOL_SYS_LIB_STRIP
4609 AC_LIBTOOL_CONFIG($1)
4613 ])# AC_LIBTOOL_LANG_F77_CONFIG
4616 # AC_LIBTOOL_LANG_GCJ_CONFIG
4617 # --------------------------
4618 # Ensure that the configuration vars for the C compiler are
4619 # suitably defined. Those variables are subsequently used by
4620 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4621 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4622 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4625 # Source file extension for Java test sources.
4628 # Object file extension for compiled Java test sources.
4630 _LT_AC_TAGVAR(objext, $1)=$objext
4632 # Code to be used in simple compile tests
4633 lt_simple_compile_test_code="class foo {}\n"
4635 # Code to be used in simple link tests
4636 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4641 # Allow CC to be a program name with arguments.
4645 _LT_AC_TAGVAR(compiler, $1)=$CC
4647 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4648 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4650 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4651 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4652 AC_LIBTOOL_PROG_CC_C_O($1)
4653 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4654 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4655 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4656 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4657 AC_LIBTOOL_SYS_LIB_STRIP
4658 AC_LIBTOOL_DLOPEN_SELF($1)
4660 AC_LIBTOOL_CONFIG($1)
4664 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4667 # AC_LIBTOOL_LANG_RC_CONFIG
4668 # --------------------------
4669 # Ensure that the configuration vars for the Windows resource compiler are
4670 # suitably defined. Those variables are subsequently used by
4671 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4672 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4673 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4676 # Source file extension for RC test sources.
4679 # Object file extension for compiled RC test sources.
4681 _LT_AC_TAGVAR(objext, $1)=$objext
4683 # Code to be used in simple compile tests
4684 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4686 # Code to be used in simple link tests
4687 lt_simple_link_test_code="$lt_simple_compile_test_code"
4689 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4692 # Allow CC to be a program name with arguments.
4696 _LT_AC_TAGVAR(compiler, $1)=$CC
4697 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4699 AC_LIBTOOL_CONFIG($1)
4703 ])# AC_LIBTOOL_LANG_RC_CONFIG
4706 # AC_LIBTOOL_CONFIG([TAGNAME])
4707 # ----------------------------
4708 # If TAGNAME is not passed, then create an initial libtool script
4709 # with a default configuration from the untagged config vars. Otherwise
4710 # add code to config.status for appending the configuration named by
4711 # TAGNAME from the matching tagged config vars.
4712 AC_DEFUN([AC_LIBTOOL_CONFIG],
4713 [# The else clause should only fire when bootstrapping the
4714 # libtool distribution, otherwise you forgot to ship ltmain.sh
4715 # with your package, and you will get complaints that there are
4716 # no rules to generate ltmain.sh.
4717 if test -f "$ltmain"; then
4718 # See if we are running on zsh, and set the options which allow our commands through
4719 # without removal of \ escapes.
4720 if test -n "${ZSH_VERSION+set}" ; then
4721 setopt NO_GLOB_SUBST
4723 # Now quote all the things that may contain metacharacters while being
4724 # careful not to overquote the AC_SUBSTed values. We take copies of the
4725 # variables and quote the copies for generation of the libtool script.
4726 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4728 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4729 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4730 deplibs_check_method reload_flag reload_cmds need_locks \
4731 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4732 lt_cv_sys_global_symbol_to_c_name_address \
4733 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4734 old_postinstall_cmds old_postuninstall_cmds \
4735 _LT_AC_TAGVAR(compiler, $1) \
4736 _LT_AC_TAGVAR(CC, $1) \
4737 _LT_AC_TAGVAR(LD, $1) \
4738 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4739 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4740 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4741 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4742 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4743 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4744 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4745 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4746 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4747 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4748 _LT_AC_TAGVAR(predep_objects, $1) \
4749 _LT_AC_TAGVAR(postdep_objects, $1) \
4750 _LT_AC_TAGVAR(predeps, $1) \
4751 _LT_AC_TAGVAR(postdeps, $1) \
4752 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4753 _LT_AC_TAGVAR(archive_cmds, $1) \
4754 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4755 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4756 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4757 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4758 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4759 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4760 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4761 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4762 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4763 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4764 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4765 _LT_AC_TAGVAR(module_cmds, $1) \
4766 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4767 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4768 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4769 _LT_AC_TAGVAR(include_expsyms, $1); do
4772 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4773 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4774 _LT_AC_TAGVAR(archive_cmds, $1) | \
4775 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4776 _LT_AC_TAGVAR(module_cmds, $1) | \
4777 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4778 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4779 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4780 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4781 postinstall_cmds | postuninstall_cmds | \
4782 old_postinstall_cmds | old_postuninstall_cmds | \
4783 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4784 # Double-quote double-evaled strings.
4785 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4788 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4794 *'\[$]0 --fallback-echo"')
4795 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4800 [cfgfile="${ofile}T"
4801 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4803 AC_MSG_NOTICE([creating $ofile])],
4806 cat <<__EOF__ >> "$cfgfile"
4810 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4811 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4812 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4814 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4815 # Free Software Foundation, Inc.
4817 # This file is part of GNU Libtool:
4818 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4820 # This program is free software; you can redistribute it and/or modify
4821 # it under the terms of the GNU General Public License as published by
4822 # the Free Software Foundation; either version 2 of the License, or
4823 # (at your option) any later version.
4825 # This program is distributed in the hope that it will be useful, but
4826 # WITHOUT ANY WARRANTY; without even the implied warranty of
4827 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4828 # General Public License for more details.
4830 # You should have received a copy of the GNU General Public License
4831 # along with this program; if not, write to the Free Software
4832 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4834 # As a special exception to the GNU General Public License, if you
4835 # distribute this file as part of a program that contains a
4836 # configuration script generated by Autoconf, you may include it under
4837 # the same distribution terms that you use for the rest of that program.
4839 # A sed program that does not truncate output.
4842 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4843 Xsed="$SED -e s/^X//"
4845 # The HP-UX ksh and POSIX shell print the target directory to stdout
4847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4849 # The names of the tagged configurations supported by this script.
4852 # ### BEGIN LIBTOOL CONFIG],
4853 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4855 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4857 # Shell to use when invoking shell scripts.
4860 # Whether or not to build shared libraries.
4861 build_libtool_libs=$enable_shared
4863 # Whether or not to build static libraries.
4864 build_old_libs=$enable_static
4866 # Whether or not to add -lc for building shared libraries.
4867 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4869 # Whether or not to disallow shared libs when runtime libs are static
4870 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4872 # Whether or not to optimize for fast installation.
4873 fast_install=$enable_fast_install
4876 host_alias=$host_alias
4881 build_alias=$build_alias
4885 # An echo program that does not interpret backslashes.
4890 AR_FLAGS=$lt_AR_FLAGS
4895 # A language-specific compiler.
4896 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4898 # Is the compiler the GNU C compiler?
4899 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4904 # The linker used to build libraries.
4905 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4907 # Whether we need hard or soft links.
4910 # A BSD-compatible nm program.
4913 # A symbol stripping program
4916 # Used to examine libraries when file_magic_cmd begins "file"
4917 MAGIC_CMD=$MAGIC_CMD
4919 # Used on cygwin: DLL creation program.
4922 # Used on cygwin: object dumper.
4925 # Used on cygwin: assembler.
4928 # The name of the directory that contains temporary libtool files.
4931 # How to create reloadable object files.
4932 reload_flag=$lt_reload_flag
4933 reload_cmds=$lt_reload_cmds
4935 # How to pass a linker flag through the compiler.
4936 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4938 # Object file suffix (normally "o").
4941 # Old archive suffix (normally "a").
4944 # Shared library suffix (normally ".so").
4945 shrext_cmds='$shrext_cmds'
4947 # Executable file suffix (normally "").
4950 # Additional compiler flags for building library objects.
4951 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4954 # What is the maximum length of a command?
4955 max_cmd_len=$lt_cv_sys_max_cmd_len
4957 # Does compiler simultaneously support -c and -o options?
4958 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4960 # Must we lock files when doing compilation ?
4961 need_locks=$lt_need_locks
4963 # Do we need the lib prefix for modules?
4964 need_lib_prefix=$need_lib_prefix
4966 # Do we need a version for libraries?
4967 need_version=$need_version
4969 # Whether dlopen is supported.
4970 dlopen_support=$enable_dlopen
4972 # Whether dlopen of programs is supported.
4973 dlopen_self=$enable_dlopen_self
4975 # Whether dlopen of statically linked programs is supported.
4976 dlopen_self_static=$enable_dlopen_self_static
4978 # Compiler flag to prevent dynamic linking.
4979 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4981 # Compiler flag to turn off builtin functions.
4982 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4984 # Compiler flag to allow reflexive dlopens.
4985 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4987 # Compiler flag to generate shared objects directly from archives.
4988 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4990 # Compiler flag to generate thread-safe objects.
4991 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4993 # Library versioning type.
4994 version_type=$version_type
4996 # Format of library name prefix.
4997 libname_spec=$lt_libname_spec
4999 # List of archive names. First name is the real one, the rest are links.
5000 # The last name is the one that the linker finds with -lNAME.
5001 library_names_spec=$lt_library_names_spec
5003 # The coded name of the library, if different from the real name.
5004 soname_spec=$lt_soname_spec
5006 # Commands used to build and install an old-style archive.
5008 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5009 old_postinstall_cmds=$lt_old_postinstall_cmds
5010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5012 # Create an old-style archive from a shared archive.
5013 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5015 # Create a temporary old-style archive to link instead of a shared archive.
5016 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5018 # Commands used to build and install a shared archive.
5019 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5020 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5021 postinstall_cmds=$lt_postinstall_cmds
5022 postuninstall_cmds=$lt_postuninstall_cmds
5024 # Commands used to build a loadable module (assumed same as above if empty)
5025 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5026 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5028 # Commands to strip libraries.
5029 old_striplib=$lt_old_striplib
5030 striplib=$lt_striplib
5032 # Dependencies to place before the objects being linked to create a
5034 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5036 # Dependencies to place after the objects being linked to create a
5038 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5040 # Dependencies to place before the objects being linked to create a
5042 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5044 # Dependencies to place after the objects being linked to create a
5046 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5048 # The library search path used internally by the compiler when linking
5050 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5052 # Method to check whether dependent libraries are shared objects.
5053 deplibs_check_method=$lt_deplibs_check_method
5055 # Command to use when deplibs_check_method == file_magic.
5056 file_magic_cmd=$lt_file_magic_cmd
5058 # Flag that allows shared libraries with undefined symbols to be built.
5059 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5061 # Flag that forces no undefined symbols.
5062 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5064 # Commands used to finish a libtool library installation in a directory.
5065 finish_cmds=$lt_finish_cmds
5067 # Same as above, but a single script fragment to be evaled but not shown.
5068 finish_eval=$lt_finish_eval
5070 # Take the output of nm and produce a listing of raw symbols and C names.
5071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5073 # Transform the output of nm in a proper C declaration
5074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5076 # Transform the output of nm in a C name address pair
5077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5079 # This is the shared library runtime path variable.
5080 runpath_var=$runpath_var
5082 # This is the shared library path variable.
5083 shlibpath_var=$shlibpath_var
5085 # Is shlibpath searched before the hard-coded library search path?
5086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5088 # How to hardcode a shared library path into an executable.
5089 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5091 # Whether we should hardcode library paths into libraries.
5092 hardcode_into_libs=$hardcode_into_libs
5094 # Flag to hardcode \$libdir into a binary during linking.
5095 # This must work even if \$libdir does not exist.
5096 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5098 # If ld is used when linking, flag to hardcode \$libdir into
5099 # a binary during linking. This must work even if \$libdir does
5101 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5103 # Whether we need a single -rpath flag with a separated argument.
5104 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5108 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5112 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5115 # the resulting binary.
5116 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5118 # Set to yes if building a shared library automatically hardcodes DIR into the library
5119 # and all subsequent libraries and executables linked against it.
5120 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5122 # Variables whose values should be saved in libtool wrapper scripts and
5123 # restored at relink time.
5124 variables_saved_for_relink="$variables_saved_for_relink"
5126 # Whether libtool must link a program against all its dependency libraries.
5127 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5129 # Compile-time system search path for libraries
5130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5132 # Run-time system search path for libraries
5133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5135 # Fix the shell variable \$srcfile for the compiler.
5136 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5138 # Set to yes if exported symbols are required.
5139 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5141 # The commands to list exported symbols.
5142 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5144 # The commands to extract the exported symbol list from a shared archive.
5145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5147 # Symbols that should not be listed in the preloaded symbols.
5148 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5150 # Symbols that must always be exported.
5151 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5154 [# ### END LIBTOOL CONFIG],
5155 [# ### END LIBTOOL TAG CONFIG: $tagname])
5162 cat <<\EOF >> "$cfgfile"
5164 # AIX sometimes has problems with the GCC collect2 program. For some
5165 # reason, if we set the COLLECT_NAMES environment variable, the problems
5166 # vanish in a puff of smoke.
5167 if test "X${COLLECT_NAMES+set}" != Xset; then
5169 export COLLECT_NAMES
5175 # We use sed instead of cat because bash on DJGPP gets confused if
5176 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5177 # text mode, it properly converts lines to CR/LF. This bash problem
5178 # is reportedly fixed, but why not run on old versions too?
5179 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5181 mv -f "$cfgfile" "$ofile" || \
5182 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5186 # If there is no Makefile yet, we rely on a make rule to execute
5187 # `config.status --recheck' to rerun these tests and create the
5188 # libtool script then.
5189 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5190 if test -f "$ltmain_in"; then
5191 test -f Makefile && make "$ltmain"
5194 ])# AC_LIBTOOL_CONFIG
5197 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5198 # -------------------------------------------
5199 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5200 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5202 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5204 if test "$GCC" = yes; then
5205 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5207 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5208 lt_cv_prog_compiler_rtti_exceptions,
5209 [-fno-rtti -fno-exceptions], [],
5210 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5212 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5215 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5216 # ---------------------------------
5217 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5218 [AC_REQUIRE([AC_CANONICAL_HOST])
5219 AC_REQUIRE([AC_PROG_NM])
5220 AC_REQUIRE([AC_OBJEXT])
5221 # Check for command to grab the raw symbol name followed by C symbol from nm.
5222 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5223 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5225 # These are sane defaults that work on at least a few old systems.
5226 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5228 # Character class describing NM global symbol codes.
5229 symcode='[[BCDEGRST]]'
5231 # Regexp to match symbols that can be accessed directly from C.
5232 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5234 # Transform an extracted symbol line into a proper C declaration
5235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5237 # Transform an extracted symbol line into symbol name and symbol address
5238 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'"
5240 # Define system-specific variables.
5245 cygwin* | mingw* | pw32*)
5246 symcode='[[ABCDGISTW]]'
5248 hpux*) # Its linker distinguishes data from code symbols
5249 if test "$host_cpu" = ia64; then
5250 symcode='[[ABCDEGRST]]'
5252 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5253 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'"
5256 if test "$host_cpu" = ia64; then
5257 symcode='[[ABCDGIRSTW]]'
5258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5259 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'"
5263 symcode='[[BCDEGRST]]'
5266 symcode='[[BCDEGQRST]]'
5272 symcode='[[DFNSTU]]'
5276 # Handle CRLF in mingw tool chain
5280 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5284 # If we're using GNU nm, then use its standard symbol codes.
5285 case `$NM -V 2>&1` in
5286 *GNU* | *'with BFD'*)
5287 symcode='[[ABCDGIRSTW]]' ;;
5290 # Try without a prefix undercore, then with it.
5291 for ac_symprfx in "" "_"; do
5293 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5294 symxfrm="\\1 $ac_symprfx\\2 \\2"
5296 # Write the raw and C identifiers.
5297 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5299 # Check to see that the pipe works correctly.
5303 cat > conftest.$ac_ext <<EOF
5308 void nm_test_func(){}
5312 int main(){nm_test_var='a';nm_test_func();return(0);}
5315 if AC_TRY_EVAL(ac_compile); then
5316 # Now try to grab the symbols.
5318 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5319 # Try sorting and uniquifying the output.
5320 if sort "$nlist" | uniq > "$nlist"T; then
5321 mv -f "$nlist"T "$nlist"
5326 # Make sure that we snagged all the symbols we need.
5327 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5328 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5329 cat <<EOF > conftest.$ac_ext
5335 # Now generate the symbol file.
5336 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5338 cat <<EOF >> conftest.$ac_ext
5339 #if defined (__STDC__) && __STDC__
5340 # define lt_ptr_t void *
5342 # define lt_ptr_t char *
5346 /* The mapping between symbol names and symbols. */
5351 lt_preloaded_symbols[[]] =
5354 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5355 cat <<\EOF >> conftest.$ac_ext
5363 # Now try linking the two files.
5364 mv conftest.$ac_objext conftstm.$ac_objext
5365 lt_save_LIBS="$LIBS"
5366 lt_save_CFLAGS="$CFLAGS"
5367 LIBS="conftstm.$ac_objext"
5368 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5369 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5372 LIBS="$lt_save_LIBS"
5373 CFLAGS="$lt_save_CFLAGS"
5375 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5378 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5381 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5384 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5385 cat conftest.$ac_ext >&5
5387 rm -f conftest* conftst*
5389 # Do not use the global_symbol_pipe unless it works.
5390 if test "$pipe_works" = yes; then
5393 lt_cv_sys_global_symbol_pipe=
5397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5398 lt_cv_sys_global_symbol_to_cdecl=
5400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5401 AC_MSG_RESULT(failed)
5405 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5408 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5409 # ---------------------------------------
5410 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5411 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5412 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5413 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5415 AC_MSG_CHECKING([for $compiler option to produce PIC])
5417 # C++ specific cases for pic, static, wl, etc.
5418 if test "$GXX" = yes; then
5419 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5420 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5424 # All AIX code is PIC.
5425 if test "$host_cpu" = ia64; then
5426 # AIX 5 now supports IA64 processor
5427 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5431 # FIXME: we need at least 68020 code to build shared libraries, but
5432 # adding the `-m68020' flag to GCC prevents building anything better,
5434 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5436 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5437 # PIC is the default for these OSes.
5439 mingw* | os2* | pw32*)
5440 # This hack is so that the source file can tell whether it is being
5441 # built for inclusion in a dll (and should export symbols for example).
5442 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5444 darwin* | rhapsody*)
5445 # PIC is the default on this platform
5446 # Common symbols not allowed in MH_DYLIB files
5447 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5450 # DJGPP does not support shared libraries at all
5451 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5454 if test -d /usr/nec; then
5455 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5465 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5470 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5476 # All AIX code is PIC.
5477 if test "$host_cpu" = ia64; then
5478 # AIX 5 now supports IA64 processor
5479 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5481 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5485 case $cc_basename in
5487 # Green Hills C++ Compiler
5488 # _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"
5493 # PIC is the default on this platform
5494 # Common symbols not allowed in MH_DYLIB files
5495 case "$cc_basename" in
5497 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5498 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5503 case $cc_basename in
5505 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5508 # Green Hills C++ Compiler
5509 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5515 freebsd* | kfreebsd*-gnu | dragonfly*)
5516 # FreeBSD uses GNU C++
5518 hpux9* | hpux10* | hpux11*)
5519 case $cc_basename in
5521 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5522 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5523 if test "$host_cpu" != ia64; then
5524 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5528 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5529 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5535 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5543 irix5* | irix6* | nonstopux*)
5544 case $cc_basename in
5546 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5547 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5548 # CC pic flag -KPIC is the default.
5555 case $cc_basename in
5558 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5559 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5563 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5564 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5565 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5568 # Portland Group C++ compiler.
5569 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5570 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5571 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5575 # Make sure the PIC flag is empty. It appears that all Alpha
5576 # Linux and Compaq Tru64 Unix objects are PIC.
5577 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5578 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5589 case $cc_basename in
5591 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5599 osf3* | osf4* | osf5*)
5600 case $cc_basename in
5602 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5605 # Rational C++ 2.4.1
5606 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5609 # Digital/Compaq C++
5610 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5611 # Make sure the PIC flag is empty. It appears that all Alpha
5612 # Linux and Compaq Tru64 Unix objects are PIC.
5613 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5614 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5623 case $cc_basename in
5625 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5632 case $cc_basename in
5634 # Sun C++ 4.2, 5.x and Centerline C++
5635 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5636 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5637 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5640 # Green Hills C++ Compiler
5641 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5648 case $cc_basename in
5651 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5652 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5656 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5663 case $cc_basename in
5665 # NonStop-UX NCC 3.20
5666 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5677 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5683 if test "$GCC" = yes; then
5684 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5685 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5689 # All AIX code is PIC.
5690 if test "$host_cpu" = ia64; then
5691 # AIX 5 now supports IA64 processor
5692 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5697 # FIXME: we need at least 68020 code to build shared libraries, but
5698 # adding the `-m68020' flag to GCC prevents building anything better,
5700 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5703 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5704 # PIC is the default for these OSes.
5707 mingw* | pw32* | os2*)
5708 # This hack is so that the source file can tell whether it is being
5709 # built for inclusion in a dll (and should export symbols for example).
5710 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5713 darwin* | rhapsody*)
5714 # PIC is the default on this platform
5715 # Common symbols not allowed in MH_DYLIB files
5716 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5720 # Just because we use GCC doesn't mean we suddenly get shared libraries
5721 # on systems that don't support them.
5722 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5727 if test -d /usr/nec; then
5728 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5740 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5746 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5750 # PORTME Check for flag to pass linker flags through the system compiler.
5753 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5754 if test "$host_cpu" = ia64; then
5755 # AIX 5 now supports IA64 processor
5756 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5758 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5762 # PIC is the default on this platform
5763 # Common symbols not allowed in MH_DYLIB files
5764 case "$cc_basename" in
5766 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5767 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5772 mingw* | pw32* | os2*)
5773 # This hack is so that the source file can tell whether it is being
5774 # built for inclusion in a dll (and should export symbols for example).
5775 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5778 hpux9* | hpux10* | hpux11*)
5779 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5787 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5790 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5791 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5794 irix5* | irix6* | nonstopux*)
5795 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5796 # PIC (with -KPIC) is the default.
5797 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5801 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5802 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5806 case $cc_basename in
5808 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5809 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5810 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5812 pgcc | pgf77 | pgf90)
5813 # Portland Group compilers (*not* the Pentium gcc compiler,
5814 # which looks to be a dead project)
5815 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5816 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5817 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5820 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5821 # All Alpha code is PIC.
5822 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5825 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
5830 osf3* | osf4* | osf5*)
5831 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5832 # All OSF/1 code is PIC.
5833 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5837 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5838 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5842 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5843 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5844 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5848 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5849 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5850 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5853 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5854 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5855 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5856 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5860 if test -d /usr/nec ;then
5861 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5862 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5867 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5868 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5872 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5873 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5877 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5882 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5885 # Check to make sure the PIC flag actually works.
5887 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5888 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5889 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5890 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5891 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5893 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5895 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5896 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5899 # For platforms which do not support PIC, -DPIC is meaningless:
5901 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5904 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5910 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5911 # ------------------------------------
5912 # See if the linker supports building shared libraries.
5913 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5914 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5916 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5919 # If we're using GNU nm, then we don't want the "-C" option.
5920 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5921 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5922 _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'
5924 _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'
5928 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5931 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5934 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5939 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5940 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5941 _LT_AC_TAGVAR(archive_cmds, $1)=
5942 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5943 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5944 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5945 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5946 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5947 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5948 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5949 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5950 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5951 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5952 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5953 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5954 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5955 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5956 _LT_AC_TAGVAR(module_cmds, $1)=
5957 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5958 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5959 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5960 # include_expsyms should be a list of space-separated symbols to be *always*
5961 # included in the symbol list
5962 _LT_AC_TAGVAR(include_expsyms, $1)=
5963 # exclude_expsyms can be an extended regexp of symbols to exclude
5964 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5965 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5966 # as well as any symbol that contains `d'.
5967 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5968 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5969 # platforms (ab)use it in PIC code, but their linkers get confused if
5970 # the symbol is explicitly referenced. Since portable code cannot
5971 # rely on this symbol name, it's probably fine to never include it in
5972 # preloaded symbol tables.
5973 extract_expsyms_cmds=
5976 cygwin* | mingw* | pw32*)
5977 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5978 # When not using gcc, we currently assume that we are using
5979 # Microsoft Visual C++.
5980 if test "$GCC" != yes; then
5989 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5990 if test "$with_gnu_ld" = yes; then
5991 # If archive_cmds runs LD, not CC, wlarc should be empty
5994 # See if GNU ld supports shared libraries.
5996 aix3* | aix4* | aix5*)
5997 # On AIX/PPC, the GNU linker is very broken
5998 if test "$host_cpu" != ia64; then
5999 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6002 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6003 *** to be unable to reliably create shared libraries on AIX.
6004 *** Therefore, libtool is disabling shared libraries support. If you
6005 *** really care for shared libraries, you may want to modify your PATH
6006 *** so that a non-GNU linker is found, and then restart.
6013 _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)'
6014 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6015 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6017 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6018 # that the semantics of dynamic libraries on AmigaOS, at least up
6019 # to version 4, is to share data among multiple programs linked
6020 # with the same dynamic library. Since this doesn't match the
6021 # behavior of shared libraries on other platforms, we can't use
6023 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6028 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6029 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6030 # support --undefined. This deserves some investigation. FIXME
6031 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6033 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6037 cygwin* | mingw* | pw32*)
6038 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6039 # as there is no search path for DLLs.
6040 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6041 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6042 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6043 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6044 _LT_AC_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'
6046 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6047 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6048 # If the export-symbols file already is a .def file (1st line
6049 # is EXPORTS), use it as is; otherwise, prepend...
6050 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6051 cp $export_symbols $output_objdir/$soname.def;
6053 echo EXPORTS > $output_objdir/$soname.def;
6054 cat $export_symbols >> $output_objdir/$soname.def;
6056 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6058 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6064 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6067 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6068 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6073 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6074 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6077 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6078 *** create shared libraries on Solaris systems. Therefore, libtool
6079 *** is disabling shared libraries support. We urge you to upgrade GNU
6080 *** binutils to release 2.9.1 or newer. Another option is to modify
6081 *** your PATH or compiler configuration so that the native linker is
6082 *** used, and then restart.
6085 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6086 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6087 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6089 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6094 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6096 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6097 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6103 case $CC,$host_cpu in
6104 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6105 tmp_addflag=' -fpic' ;;
6106 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6107 tmp_addflag=' -i_dynamic' ;;
6108 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6109 tmp_addflag=' -i_dynamic -nofor_main' ;;
6110 ifc* | ifort*) # Intel Fortran compiler
6111 tmp_addflag=' -nofor_main' ;;
6113 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6114 supports_anon_versioning=no
6115 case `$LD -v 2>/dev/null` in
6116 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6117 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6118 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6119 *\ 2.11.*) ;; # other 2.11 versions
6120 *) supports_anon_versioning=yes ;;
6122 if test $supports_anon_versioning = yes; then
6123 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6125 $echo "local: *; };" >> $output_objdir/$libname.ver~
6126 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6128 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=$_LT_AC_TAGVAR(archive_cmds, $1)
6131 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6137 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6138 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6140 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6145 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6146 runpath_var=LD_RUN_PATH
6147 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6148 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6149 # ancient GNU ld didn't support --whole-archive et. al.
6150 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6151 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6153 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6157 # PORTME fill in a description of your system's linker (not GNU ld)
6160 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6161 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6162 _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'
6163 # Note: this linker hardcodes the directories in LIBPATH if there
6164 # are no directories specified by -L.
6165 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6166 if test "$GCC" = yes && test -z "$link_static_flag"; then
6167 # Neither direct hardcoding nor static linking is supported with a
6169 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6174 if test "$host_cpu" = ia64; then
6175 # On IA64, the linker does run time linking by default, so we don't
6176 # have to do anything special.
6177 aix_use_runtimelinking=no
6178 exp_sym_flag='-Bexport'
6181 # If we're using GNU nm, then we don't want the "-C" option.
6182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6183 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6184 _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'
6186 _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'
6188 aix_use_runtimelinking=no
6190 # Test if we are trying to use run time linking or normal
6191 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6192 # need to do runtime linking.
6193 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6194 for ld_flag in $LDFLAGS; do
6195 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6196 aix_use_runtimelinking=yes
6202 exp_sym_flag='-bexport'
6203 no_entry_flag='-bnoentry'
6206 # When large executables or shared objects are built, AIX ld can
6207 # have problems creating the table of contents. If linking a library
6208 # or program results in "error TOC overflow" add -mminimal-toc to
6209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6212 _LT_AC_TAGVAR(archive_cmds, $1)=''
6213 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6214 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6215 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6217 if test "$GCC" = yes; then
6218 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6219 # We only want to do this on AIX 4.2 and lower, the check
6220 # below for broken collect2 doesn't work under 4.3+
6221 collect2name=`${CC} -print-prog-name=collect2`
6222 if test -f "$collect2name" && \
6223 strings "$collect2name" | grep resolve_lib_name >/dev/null
6225 # We have reworked collect2
6226 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6228 # We have old collect2
6229 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6230 # It fails to find uninstalled libraries when the uninstalled
6231 # path is not listed in the libpath. Setting hardcode_minus_L
6232 # to unsupported forces relinking
6233 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6234 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6235 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6238 shared_flag='-shared'
6239 if test "$aix_use_runtimelinking" = yes; then
6240 shared_flag="$shared_flag "'${wl}-G'
6244 if test "$host_cpu" = ia64; then
6245 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6246 # chokes on -Wl,-G. The following line is correct:
6249 if test "$aix_use_runtimelinking" = yes; then
6250 shared_flag='${wl}-G'
6252 shared_flag='${wl}-bM:SRE'
6257 # It seems that -bexpall does not export symbols beginning with
6258 # underscore (_), so it is better to generate a list of symbols to export.
6259 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6260 if test "$aix_use_runtimelinking" = yes; then
6261 # Warning - without using the other runtime loading flags (-brtl),
6262 # -berok will link without error, but may produce a broken library.
6263 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6264 # Determine the default libpath from the value encoded in an empty executable.
6265 _LT_AC_SYS_LIBPATH_AIX
6266 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6267 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6269 if test "$host_cpu" = ia64; then
6270 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6271 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6272 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6274 # Determine the default libpath from the value encoded in an empty executable.
6275 _LT_AC_SYS_LIBPATH_AIX
6276 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6277 # Warning - without using the other run time loading flags,
6278 # -berok will link without error, but may produce a broken library.
6279 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6280 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6281 # -bexpall does not export symbols beginning with underscore (_)
6282 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6283 # Exported symbols can be pulled into shared objects from archives
6284 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6285 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6286 # This is similar to how AIX traditionally builds it's shared libraries.
6287 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6293 _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)'
6294 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6295 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6296 # see comment about different semantics on the GNU ld section
6297 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6301 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6304 cygwin* | mingw* | pw32*)
6305 # When not using gcc, we currently assume that we are using
6306 # Microsoft Visual C++.
6307 # hardcode_libdir_flag_spec is actually meaningless, as there is
6308 # no search path for DLLs.
6309 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6310 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6311 # Tell ltmain to make .lib files, not .a files.
6313 # Tell ltmain to make .dll files, not .so files.
6315 # FIXME: Setting linknames here is a bad hack.
6316 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6317 # The linker will automatically build a .lib file if we build a DLL.
6318 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6319 # FIXME: Should let the user specify the lib program.
6320 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6321 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6322 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6325 darwin* | rhapsody*)
6327 rhapsody* | darwin1.[[012]])
6328 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6331 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6332 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6334 case ${MACOSX_DEPLOYMENT_TARGET} in
6336 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6339 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6345 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6346 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6347 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6348 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6349 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6350 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6351 if test "$GCC" = yes ; then
6352 output_verbose_link_cmd='echo'
6353 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6354 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6355 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6356 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6357 _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}'
6359 case "$cc_basename" in
6361 output_verbose_link_cmd='echo'
6362 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6363 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6364 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6365 _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6366 _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}'
6369 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6376 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6377 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6378 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6382 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6386 # support. Future versions do this automatically, but an explicit c++rt0.o
6387 # does not break anything, and helps significantly (at the cost of a little
6390 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6391 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6392 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6393 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6396 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6398 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6399 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6400 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6401 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6405 freebsd* | kfreebsd*-gnu | dragonfly*)
6406 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6407 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6408 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6409 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6413 if test "$GCC" = yes; then
6414 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6416 _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'
6418 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6419 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6420 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6422 # hardcode_minus_L: Not really in the search PATH,
6423 # but as the default location of the library.
6424 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6425 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6429 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6432 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6435 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6441 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6444 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6448 if test "$with_gnu_ld" = no; then
6451 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6452 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6453 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6454 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6455 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6458 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6459 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6460 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6462 # hardcode_minus_L: Not really in the search PATH,
6463 # but as the default location of the library.
6464 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6467 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6468 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6469 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6470 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6472 # hardcode_minus_L: Not really in the search PATH,
6473 # but as the default location of the library.
6474 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6480 irix5* | irix6* | nonstopux*)
6481 if test "$GCC" = yes; then
6482 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $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'
6484 _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'
6485 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6487 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6488 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6489 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6494 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6496 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6498 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6499 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6500 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6504 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6505 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6506 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6507 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6508 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6512 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6513 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6515 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6516 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6517 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6518 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6521 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6522 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6523 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6526 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6527 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6534 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6535 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6536 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6537 _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'
6538 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6542 if test "$GCC" = yes; then
6543 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6544 _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'
6546 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6547 _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'
6549 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6550 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6553 osf4* | osf5*) # as osf3* with the addition of -msym flag
6554 if test "$GCC" = yes; then
6555 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6556 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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'
6557 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6559 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6560 _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'
6561 _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~
6562 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6564 # Both c and cxx compiler support -rpath directly
6565 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6567 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6571 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6572 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6573 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6574 runpath_var=LD_RUN_PATH
6575 hardcode_runpath_var=yes
6579 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6580 if test "$GCC" = yes; then
6581 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6582 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6583 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6585 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6586 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6587 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6589 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6590 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6592 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6593 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6594 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
6596 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6600 if test "x$host_vendor" = xsequent; then
6601 # Use $CC to link under sequent, because it throws in some extra .o
6602 # files that make .init and .fini sections work.
6603 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6605 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6607 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6608 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6609 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6610 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6614 case $host_vendor in
6616 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6617 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6620 ## LD is ld it makes a PLAMLIB
6621 ## CC just makes a GrossModule.
6622 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6623 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6624 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6627 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6628 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6631 runpath_var='LD_RUN_PATH'
6632 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6636 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6637 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6638 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6642 if test -d /usr/nec; then
6643 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6644 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6645 runpath_var=LD_RUN_PATH
6646 hardcode_runpath_var=yes
6647 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6652 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6653 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6654 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6655 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6656 hardcode_runpath_var=yes
6657 runpath_var=LD_RUN_PATH
6660 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6661 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6662 if test "$GCC" = yes; then
6663 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6665 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6667 runpath_var='LD_RUN_PATH'
6668 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6672 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6673 # $CC -shared without GNU ld will not create a library from C++
6674 # object files and a static libstdc++, better avoid it by now
6675 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6676 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6677 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6678 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6679 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6680 runpath_var='LD_RUN_PATH'
6684 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6685 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6686 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6690 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6695 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6696 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6699 if test "$GCC" = yes; then
6700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6704 # Do we need to explicitly link libc?
6706 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6708 # Assume -lc should be added
6709 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6711 if test "$enable_shared" = yes && test "$GCC" = yes; then
6712 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6714 # FIXME: we may have to deal with multi-command sequences.
6717 # Test whether the compiler implicitly links with -lc since on some
6718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6719 # to ld, don't add -lc before -lgcc.
6720 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6724 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6727 libobjs=conftest.$ac_objext
6729 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6735 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6736 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6737 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6739 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6741 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6743 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6745 cat conftest.err 1>&5
6748 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6754 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6757 # _LT_AC_FILE_LTDLL_C
6758 # -------------------
6759 # Be careful that the start marker always follows a newline.
6760 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6761 # /* ltdll.c starts here */
6762 # #define WIN32_LEAN_AND_MEAN
6763 # #include <windows.h>
6764 # #undef WIN32_LEAN_AND_MEAN
6765 # #include <stdio.h>
6767 # #ifndef __CYGWIN__
6768 # # ifdef __CYGWIN32__
6769 # # define __CYGWIN__ __CYGWIN32__
6773 # #ifdef __cplusplus
6776 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6777 # #ifdef __cplusplus
6782 # #include <cygwin/cygwin_dll.h>
6783 # DECLARE_CYGWIN_DLL( DllMain );
6785 # HINSTANCE __hDllInstance_base;
6788 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6790 # __hDllInstance_base = hInst;
6793 # /* ltdll.c ends here */
6794 ])# _LT_AC_FILE_LTDLL_C
6797 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6798 # ---------------------------------
6799 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6803 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6804 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6805 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6806 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6807 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6808 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6809 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6811 # This is just to silence aclocal about the macro not being used
6812 ifelse([AC_DISABLE_FAST_INSTALL])
6814 AC_DEFUN([LT_AC_PROG_GCJ],
6815 [AC_CHECK_TOOL(GCJ, gcj, no)
6816 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6820 AC_DEFUN([LT_AC_PROG_RC],
6821 [AC_CHECK_TOOL(RC, windres, no)
6824 # NOTE: This macro has been submitted for inclusion into #
6825 # GNU Autoconf as AC_PROG_SED. When it is available in #
6826 # a released version of Autoconf we should remove this #
6827 # macro and use it instead. #
6830 # Check for a fully-functional sed program, that truncates
6831 # as few characters as possible. Prefer GNU sed if found.
6832 AC_DEFUN([LT_AC_PROG_SED],
6833 [AC_MSG_CHECKING([for a sed that does not truncate output])
6834 AC_CACHE_VAL(lt_cv_path_SED,
6835 [# Loop through the user's path and test for sed and gsed.
6836 # Then use that list of sed's as ones to test for truncation.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for lt_ac_prog in sed gsed; do
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6845 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6852 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6853 # along with /bin/sed that truncates output.
6854 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6855 test ! -f $lt_ac_sed && continue
6856 cat /dev/null > conftest.in
6858 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6859 # Check for GNU sed and select it if it is found.
6860 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6861 lt_cv_path_SED=$lt_ac_sed
6865 cat conftest.in conftest.in >conftest.tmp
6866 mv conftest.tmp conftest.in
6867 cp conftest.in conftest.nl
6869 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6870 cmp -s conftest.out conftest.nl || break
6871 # 10000 chars as input seems more than enough
6872 test $lt_ac_count -gt 10 && break
6873 lt_ac_count=`expr $lt_ac_count + 1`
6874 if test $lt_ac_count -gt $lt_ac_max; then
6875 lt_ac_max=$lt_ac_count
6876 lt_cv_path_SED=$lt_ac_sed
6882 AC_MSG_RESULT([$SED])