1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17 [m4_warning([this file was generated for autoconf 2.65.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
24 # This file is free software; the Free Software Foundation
25 # gives unlimited permission to copy and/or distribute it,
26 # with or without modifications, as long as this notice is preserved.
28 # AM_AUTOMAKE_VERSION(VERSION)
29 # ----------------------------
30 # Automake X.Y traces this macro to ensure aclocal.m4 has been
31 # generated from the m4 files accompanying Automake X.Y.
32 # (This private macro should not be called outside this file.)
33 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.11'
35 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.11.1], [],
38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41 # _AM_AUTOCONF_VERSION(VERSION)
42 # -----------------------------
43 # aclocal traces this macro to find the Autoconf version.
44 # This is a private macro too. Using m4_define simplifies
45 # the logic in aclocal, which can simply ignore this definition.
46 m4_define([_AM_AUTOCONF_VERSION], [])
48 # AM_SET_CURRENT_AUTOMAKE_VERSION
49 # -------------------------------
50 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.11.1])dnl
54 m4_ifndef([AC_AUTOCONF_VERSION],
55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
60 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
62 # This file is free software; the Free Software Foundation
63 # gives unlimited permission to copy and/or distribute it,
64 # with or without modifications, as long as this notice is preserved.
66 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
68 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
70 # Of course, Automake must honor this variable whenever it calls a
71 # tool from the auxiliary directory. The problem is that $srcdir (and
72 # therefore $ac_aux_dir as well) can be either absolute or relative,
73 # depending on how configure is run. This is pretty annoying, since
74 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
75 # source directory, any form will work fine, but in subdirectories a
76 # relative path needs to be adjusted first.
79 # fails when called from a subdirectory if $ac_aux_dir is relative
80 # $top_srcdir/$ac_aux_dir/missing
81 # fails if $ac_aux_dir is absolute,
82 # fails when called from a subdirectory in a VPATH build with
83 # a relative $ac_aux_dir
85 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86 # are both prefixed by $srcdir. In an in-source build this is usually
87 # harmless because $srcdir is `.', but things will broke when you
88 # start a VPATH build or use an absolute $srcdir.
90 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93 # and then we would define $MISSING as
94 # MISSING="\${SHELL} $am_aux_dir/missing"
95 # This will work as long as MISSING is not called from configure, because
96 # unfortunately $(top_srcdir) has no meaning in configure.
97 # However there are other variables, like CC, which are often used in
98 # configure, and could therefore not use this "fixed" $ac_aux_dir.
100 # Another solution, used here, is to always expand $ac_aux_dir to an
101 # absolute PATH. The drawback is that using absolute paths prevent a
102 # configured tree to be moved without reconfiguration.
104 AC_DEFUN([AM_AUX_DIR_EXPAND],
105 [dnl Rely on autoconf to set up CDPATH properly.
107 # expand $ac_aux_dir to an absolute path
108 am_aux_dir=`cd $ac_aux_dir && pwd`
111 # AM_CONDITIONAL -*- Autoconf -*-
113 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114 # Free Software Foundation, Inc.
116 # This file is free software; the Free Software Foundation
117 # gives unlimited permission to copy and/or distribute it,
118 # with or without modifications, as long as this notice is preserved.
122 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
123 # -------------------------------------
124 # Define a conditional.
125 AC_DEFUN([AM_CONDITIONAL],
127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
128 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129 AC_SUBST([$1_TRUE])dnl
130 AC_SUBST([$1_FALSE])dnl
131 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
132 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
133 m4_define([_AM_COND_VALUE_$1], [$2])dnl
141 AC_CONFIG_COMMANDS_PRE(
142 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
143 AC_MSG_ERROR([[conditional "$1" was never defined.
144 Usually this means the macro was only invoked conditionally.]])
147 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148 # Free Software Foundation, Inc.
150 # This file is free software; the Free Software Foundation
151 # gives unlimited permission to copy and/or distribute it,
152 # with or without modifications, as long as this notice is preserved.
156 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157 # written in clear, in which case automake, when reading aclocal.m4,
158 # will think it sees a *use*, and therefore will trigger all it's
159 # C support machinery. Also note that it means that autoscan, seeing
160 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
163 # _AM_DEPENDENCIES(NAME)
164 # ----------------------
165 # See how the compiler implements dependency checking.
166 # NAME is "CC", "CXX", "GCJ", or "OBJC".
167 # We try a few techniques and use that to set a single cache variable.
169 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
170 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
171 # dependency, and given that the user is not expected to run this macro,
172 # just rely on AC_PROG_CC.
173 AC_DEFUN([_AM_DEPENDENCIES],
174 [AC_REQUIRE([AM_SET_DEPDIR])dnl
175 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
176 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177 AC_REQUIRE([AM_DEP_TRACK])dnl
179 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
180 [$1], CXX, [depcc="$CXX" am_compiler_list=],
181 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182 [$1], UPC, [depcc="$UPC" am_compiler_list=],
183 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
184 [depcc="$$1" am_compiler_list=])
186 AC_CACHE_CHECK([dependency style of $depcc],
187 [am_cv_$1_dependencies_compiler_type],
188 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
189 # We make a subdir and do the tests there. Otherwise we can end up
190 # making bogus files that we don't know about and never remove. For
191 # instance it was reported that on HP-UX the gcc test will end up
192 # making a dummy file named `D' -- because `-MD' means `put the output
195 # Copy depcomp to subdir because otherwise we won't find it if we're
196 # using a relative directory.
197 cp "$am_depcomp" conftest.dir
199 # We will build objects and dependencies in a subdirectory because
200 # it helps to detect inapplicable dependency modes. For instance
201 # both Tru64's cc and ICC support -MD to output dependencies as a
202 # side effect of compilation, but ICC will put the dependencies in
203 # the current directory while Tru64 will put them in the object
207 am_cv_$1_dependencies_compiler_type=none
208 if test "$am_compiler_list" = ""; then
209 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
213 [case " $depcc " in #(
214 *\ -arch\ *\ -arch\ *) am__universal=true ;;
217 [case " $depcc " in #(
218 *\ -arch\ *\ -arch\ *) am__universal=true ;;
221 for depmode in $am_compiler_list; do
222 # Setup a source with many dependencies, because some compilers
223 # like to wrap large dependency lists on column 80 (with \), and
224 # we should not choose a depcomp mode which is confused by this.
226 # We need to recreate these files for each test, as the compiler may
227 # overwrite some of them when testing with obscure command lines.
228 # This happens at least with the AIX C compiler.
230 for i in 1 2 3 4 5 6; do
231 echo '#include "conftst'$i'.h"' >> sub/conftest.c
232 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233 # Solaris 8's {/usr,}/bin/sh.
234 touch sub/conftst$i.h
236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
238 # We check with `-c' and `-o' for the sake of the "dashmstdout"
239 # mode. It turns out that the SunPro C++ compiler does not properly
240 # handle `-M -o', and we need to detect this. Also, some Intel
241 # versions had trouble with output in subdirs
242 am__obj=sub/conftest.${OBJEXT-o}
243 am__minus_obj="-o $am__obj"
246 # This depmode causes a compiler race in universal mode.
247 test "$am__universal" = false || continue
250 # after this tag, mechanisms are not by side-effect, so they'll
251 # only be used when explicitly requested
252 if test "x$enable_dependency_tracking" = xyes; then
258 msvisualcpp | msvcmsys)
259 # This compiler won't grok `-c -o', but also, the minuso test has
260 # not run yet. These depmodes are late enough in the game, and
261 # so weak that their functioning should not be impacted.
262 am__obj=conftest.${OBJEXT-o}
267 if depmode=$depmode \
268 source=sub/conftest.c object=$am__obj \
269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
271 >/dev/null 2>conftest.err &&
272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276 # icc doesn't choke on unknown options, it will just issue warnings
277 # or remarks (even with -Werror). So we grep stderr for any message
278 # that says an option was ignored or not supported.
279 # When given -MP, icc 7.0 and 7.1 complain thusly:
280 # icc: Command line warning: ignoring option '-M'; no argument required
281 # The diagnosis changed in icc 8.0:
282 # icc: Command line remark: option '-MP' not supported
283 if (grep 'ignoring option' conftest.err ||
284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
285 am_cv_$1_dependencies_compiler_type=$depmode
294 am_cv_$1_dependencies_compiler_type=none
297 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
298 AM_CONDITIONAL([am__fastdep$1], [
299 test "x$enable_dependency_tracking" != xno \
300 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
306 # Choose a directory name for dependency files.
307 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
308 AC_DEFUN([AM_SET_DEPDIR],
309 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
316 AC_DEFUN([AM_DEP_TRACK],
317 [AC_ARG_ENABLE(dependency-tracking,
318 [ --disable-dependency-tracking speeds up one-time build
319 --enable-dependency-tracking do not reject slow dependency extractors])
320 if test "x$enable_dependency_tracking" != xno; then
321 am_depcomp="$ac_aux_dir/depcomp"
324 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325 AC_SUBST([AMDEPBACKSLASH])dnl
326 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
329 # Generate code to set up dependency tracking. -*- Autoconf -*-
331 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332 # Free Software Foundation, Inc.
334 # This file is free software; the Free Software Foundation
335 # gives unlimited permission to copy and/or distribute it,
336 # with or without modifications, as long as this notice is preserved.
340 # _AM_OUTPUT_DEPENDENCY_COMMANDS
341 # ------------------------------
342 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
344 # Autoconf 2.62 quotes --file arguments for eval, but not when files
345 # are listed without --file. Let's play safe and only enable the eval
346 # if we detect the quoting.
347 case $CONFIG_FILES in
348 *\'*) eval set x "$CONFIG_FILES" ;;
349 *) set x $CONFIG_FILES ;;
354 # Strip MF so we end up with the name of the file.
355 mf=`echo "$mf" | sed -e 's/:.*$//'`
356 # Check whether this is an Automake generated Makefile or not.
357 # We used to match only the files named `Makefile.in', but
358 # some people rename them; so instead we look at the file content.
359 # Grep'ing the first line is not enough: some people post-process
360 # each Makefile.in and add a new line on top of each file to say so.
361 # Grep'ing the whole file is not good either: AIX grep has a line
362 # limit of 2048, but all sed's we know have understand at least 4000.
363 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364 dirpart=`AS_DIRNAME("$mf")`
368 # Extract the definition of DEPDIR, am__include, and am__quote
369 # from the Makefile without running `make'.
370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371 test -z "$DEPDIR" && continue
372 am__include=`sed -n 's/^am__include = //p' < "$mf"`
373 test -z "am__include" && continue
374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375 # When using ansi2knr, U may be empty or an underscore; expand it
376 U=`sed -n 's/^U = //p' < "$mf"`
377 # Find all dependency output files, they are included files with
378 # $(DEPDIR) in their names. We invoke sed twice because it is the
379 # simplest approach to changing $(DEPDIR) to its actual value in the
381 for file in `sed -n "
382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384 # Make sure the directory exists.
385 test -f "$dirpart/$file" && continue
386 fdir=`AS_DIRNAME(["$file"])`
387 AS_MKDIR_P([$dirpart/$fdir])
388 # echo "creating $dirpart/$file"
389 echo '# dummy' > "$dirpart/$file"
393 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
396 # AM_OUTPUT_DEPENDENCY_COMMANDS
397 # -----------------------------
398 # This macro should only be invoked once -- use via AC_REQUIRE.
400 # This code is only required when automatic dependency tracking
401 # is enabled. FIXME. This creates each `.P' file that we will
402 # need in order to bootstrap the dependency handling code.
403 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404 [AC_CONFIG_COMMANDS([depfiles],
405 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
406 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
409 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
410 # Free Software Foundation, Inc.
412 # This file is free software; the Free Software Foundation
413 # gives unlimited permission to copy and/or distribute it,
414 # with or without modifications, as long as this notice is preserved.
418 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
419 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
421 # Do all the work for Automake. -*- Autoconf -*-
423 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
424 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
426 # This file is free software; the Free Software Foundation
427 # gives unlimited permission to copy and/or distribute it,
428 # with or without modifications, as long as this notice is preserved.
432 # This macro actually does too much. Some checks are only needed if
433 # your package does certain things. But this isn't really a big deal.
435 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
436 # AM_INIT_AUTOMAKE([OPTIONS])
437 # -----------------------------------------------
438 # The call with PACKAGE and VERSION arguments is the old style
439 # call (pre autoconf-2.50), which is being phased out. PACKAGE
440 # and VERSION should now be passed to AC_INIT and removed from
441 # the call to AM_INIT_AUTOMAKE.
442 # We support both call styles for the transition. After
443 # the next Automake release, Autoconf can make the AC_INIT
444 # arguments mandatory, and then we can depend on a new Autoconf
445 # release and drop the old call support.
446 AC_DEFUN([AM_INIT_AUTOMAKE],
447 [AC_PREREQ([2.62])dnl
448 dnl Autoconf wants to disallow AM_ names. We explicitly allow
449 dnl the ones we care about.
450 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
451 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
452 AC_REQUIRE([AC_PROG_INSTALL])dnl
453 if test "`cd $srcdir && pwd`" != "`pwd`"; then
454 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
455 # is not polluted with repeated "-I."
456 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
457 # test to see if srcdir already configured
458 if test -f $srcdir/config.status; then
459 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
463 # test whether we have cygpath
464 if test -z "$CYGPATH_W"; then
465 if (cygpath --version) >/dev/null 2>/dev/null; then
466 CYGPATH_W='cygpath -w'
471 AC_SUBST([CYGPATH_W])
473 # Define the identity of the package.
474 dnl Distinguish between old-style and new-style calls.
476 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
477 AC_SUBST([PACKAGE], [$1])dnl
478 AC_SUBST([VERSION], [$2])],
479 [_AM_SET_OPTIONS([$1])dnl
480 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
481 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
482 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
483 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
484 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
486 _AM_IF_OPTION([no-define],,
487 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
488 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
490 # Some tools Automake needs.
491 AC_REQUIRE([AM_SANITY_CHECK])dnl
492 AC_REQUIRE([AC_ARG_PROGRAM])dnl
493 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
494 AM_MISSING_PROG(AUTOCONF, autoconf)
495 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
496 AM_MISSING_PROG(AUTOHEADER, autoheader)
497 AM_MISSING_PROG(MAKEINFO, makeinfo)
498 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
499 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
500 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
501 # We need awk for the "check" target. The system "awk" is bad on
503 AC_REQUIRE([AC_PROG_AWK])dnl
504 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
505 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
506 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
507 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
508 [_AM_PROG_TAR([v7])])])
509 _AM_IF_OPTION([no-dependencies],,
510 [AC_PROVIDE_IFELSE([AC_PROG_CC],
511 [_AM_DEPENDENCIES(CC)],
512 [define([AC_PROG_CC],
513 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
514 AC_PROVIDE_IFELSE([AC_PROG_CXX],
515 [_AM_DEPENDENCIES(CXX)],
516 [define([AC_PROG_CXX],
517 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
518 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
519 [_AM_DEPENDENCIES(OBJC)],
520 [define([AC_PROG_OBJC],
521 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
523 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
524 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
525 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
526 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
527 AC_CONFIG_COMMANDS_PRE(dnl
528 [m4_provide_if([_AM_COMPILER_EXEEXT],
529 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
532 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
533 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
534 dnl mangled by Autoconf and run in a shell conditional statement.
535 m4_define([_AC_COMPILER_EXEEXT],
536 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
539 # When config.status generates a header, we must update the stamp-h file.
540 # This file resides in the same directory as the config header
541 # that is generated. The stamp files are numbered to have different names.
543 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
544 # loop where config.status creates the headers, so we can generate
545 # our stamp files there.
546 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
547 [# Compute $1's index in $config_headers.
550 for _am_header in $config_headers :; do
552 $_am_arg | $_am_arg:* )
555 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
558 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
560 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
562 # This file is free software; the Free Software Foundation
563 # gives unlimited permission to copy and/or distribute it,
564 # with or without modifications, as long as this notice is preserved.
568 # Define $install_sh.
569 AC_DEFUN([AM_PROG_INSTALL_SH],
570 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571 if test x"${install_sh}" != xset; then
574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
576 install_sh="\${SHELL} $am_aux_dir/install-sh"
579 AC_SUBST(install_sh)])
581 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
583 # This file is free software; the Free Software Foundation
584 # gives unlimited permission to copy and/or distribute it,
585 # with or without modifications, as long as this notice is preserved.
589 # Check whether the underlying file-system supports filenames
590 # with a leading dot. For instance MS-DOS doesn't.
591 AC_DEFUN([AM_SET_LEADING_DOT],
592 [rm -rf .tst 2>/dev/null
593 mkdir .tst 2>/dev/null
594 if test -d .tst; then
599 rmdir .tst 2>/dev/null
600 AC_SUBST([am__leading_dot])])
602 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
605 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
606 # Free Software Foundation, Inc.
608 # This file is free software; the Free Software Foundation
609 # gives unlimited permission to copy and/or distribute it,
610 # with or without modifications, as long as this notice is preserved.
614 # AM_MAINTAINER_MODE([DEFAULT-MODE])
615 # ----------------------------------
616 # Control maintainer-specific portions of Makefiles.
617 # Default is to disable them, unless `enable' is passed literally.
618 # For symmetry, `disable' may be passed as well. Anyway, the user
619 # can override the default with the --enable/--disable switch.
620 AC_DEFUN([AM_MAINTAINER_MODE],
621 [m4_case(m4_default([$1], [disable]),
622 [enable], [m4_define([am_maintainer_other], [disable])],
623 [disable], [m4_define([am_maintainer_other], [enable])],
624 [m4_define([am_maintainer_other], [enable])
625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
626 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
628 AC_ARG_ENABLE([maintainer-mode],
629 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
630 (and sometimes confusing) to the casual installer],
631 [USE_MAINTAINER_MODE=$enableval],
632 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
633 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
634 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
635 MAINT=$MAINTAINER_MODE_TRUE
640 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
642 # Check to see how 'make' treats includes. -*- Autoconf -*-
644 # Copyright (C) 2001, 2002, 2003, 2005, 2009 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.
654 # Check to see how make treats includes.
655 AC_DEFUN([AM_MAKE_INCLUDE],
656 [am_make=${MAKE-make}
657 cat > confinc << 'END'
659 @echo this is the am__doit target
662 # If we don't find an include directive, just comment out the code.
663 AC_MSG_CHECKING([for style of include used by $am_make])
667 # First try GNU make style include.
668 echo "include confinc" > confmf
669 # Ignore all kinds of additional output from `make'.
670 case `$am_make -s -f confmf 2> /dev/null` in #(
671 *the\ am__doit\ target*)
677 # Now try BSD make style include.
678 if test "$am__include" = "#"; then
679 echo '.include "confinc"' > confmf
680 case `$am_make -s -f confmf 2> /dev/null` in #(
681 *the\ am__doit\ target*)
688 AC_SUBST([am__include])
689 AC_SUBST([am__quote])
690 AC_MSG_RESULT([$_am_result])
694 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
696 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
697 # Free Software Foundation, Inc.
699 # This file is free software; the Free Software Foundation
700 # gives unlimited permission to copy and/or distribute it,
701 # with or without modifications, as long as this notice is preserved.
705 # AM_MISSING_PROG(NAME, PROGRAM)
706 # ------------------------------
707 AC_DEFUN([AM_MISSING_PROG],
708 [AC_REQUIRE([AM_MISSING_HAS_RUN])
709 $1=${$1-"${am_missing_run}$2"}
715 # Define MISSING if not defined so far and test if it supports --run.
716 # If it does, set am_missing_run to use it, otherwise, to nothing.
717 AC_DEFUN([AM_MISSING_HAS_RUN],
718 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
719 AC_REQUIRE_AUX_FILE([missing])dnl
720 if test x"${MISSING+set}" != xset; then
723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
728 # Use eval to expand $SHELL
729 if eval "$MISSING --run true"; then
730 am_missing_run="$MISSING --run "
733 AC_MSG_WARN([`missing' script is too old or missing])
737 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
739 # This file is free software; the Free Software Foundation
740 # gives unlimited permission to copy and/or distribute it,
741 # with or without modifications, as long as this notice is preserved.
745 # Check for `mkdir -p'.
746 AC_DEFUN([AM_PROG_MKDIR_P],
747 [AC_PREREQ([2.60])dnl
748 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
749 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
750 dnl while keeping a definition of mkdir_p for backward compatibility.
751 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
752 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
753 dnl Makefile.ins that do not define MKDIR_P, so we do our own
754 dnl adjustment using top_builddir (which is defined more often than
756 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
758 [[\\/$]]* | ?:[[\\/]]*) ;;
759 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
763 # Helper functions for option handling. -*- Autoconf -*-
765 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
767 # This file is free software; the Free Software Foundation
768 # gives unlimited permission to copy and/or distribute it,
769 # with or without modifications, as long as this notice is preserved.
773 # _AM_MANGLE_OPTION(NAME)
774 # -----------------------
775 AC_DEFUN([_AM_MANGLE_OPTION],
776 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
778 # _AM_SET_OPTION(NAME)
779 # ------------------------------
780 # Set option NAME. Presently that only means defining a flag for this option.
781 AC_DEFUN([_AM_SET_OPTION],
782 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
784 # _AM_SET_OPTIONS(OPTIONS)
785 # ----------------------------------
786 # OPTIONS is a space-separated list of Automake options.
787 AC_DEFUN([_AM_SET_OPTIONS],
788 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
790 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
791 # -------------------------------------------
792 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
793 AC_DEFUN([_AM_IF_OPTION],
794 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
796 # Check to make sure that the build environment is sane. -*- Autoconf -*-
798 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
799 # Free Software Foundation, Inc.
801 # This file is free software; the Free Software Foundation
802 # gives unlimited permission to copy and/or distribute it,
803 # with or without modifications, as long as this notice is preserved.
809 AC_DEFUN([AM_SANITY_CHECK],
810 [AC_MSG_CHECKING([whether build environment is sane])
813 echo timestamp > conftest.file
814 # Reject unsafe characters in $srcdir or the absolute working directory
815 # name. Accept space and tab only in the latter.
819 *[[\\\"\#\$\&\'\`$am_lf]]*)
820 AC_MSG_ERROR([unsafe absolute working directory name]);;
823 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
824 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
827 # Do `set' in a subshell so we don't clobber the current shell's
828 # arguments. Must try -L first in case configure is actually a
829 # symlink; some systems play weird games with the mod time of symlinks
830 # (eg FreeBSD returns the mod time of the symlink's containing
833 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
834 if test "$[*]" = "X"; then
836 set X `ls -t "$srcdir/configure" conftest.file`
839 if test "$[*]" != "X $srcdir/configure conftest.file" \
840 && test "$[*]" != "X conftest.file $srcdir/configure"; then
842 # If neither matched, then we have a broken ls. This can happen
843 # if, for instance, CONFIG_SHELL is bash and it inherits a
844 # broken ls alias from the environment. This has actually
845 # happened. Such a system could not be considered "sane".
846 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
847 alias in your environment])
850 test "$[2]" = conftest.file
856 AC_MSG_ERROR([newly created file is older than distributed files!
857 Check your system clock])
861 # Copyright (C) 2009 Free Software Foundation, Inc.
863 # This file is free software; the Free Software Foundation
864 # gives unlimited permission to copy and/or distribute it,
865 # with or without modifications, as long as this notice is preserved.
869 # AM_SILENT_RULES([DEFAULT])
870 # --------------------------
871 # Enable less verbose build rules; with the default set to DEFAULT
872 # (`yes' being less verbose, `no' or empty being verbose).
873 AC_DEFUN([AM_SILENT_RULES],
874 [AC_ARG_ENABLE([silent-rules],
875 [ --enable-silent-rules less verbose build output (undo: `make V=1')
876 --disable-silent-rules verbose build output (undo: `make V=0')])
877 case $enable_silent_rules in
878 yes) AM_DEFAULT_VERBOSITY=0;;
879 no) AM_DEFAULT_VERBOSITY=1;;
880 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
882 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
884 AC_SUBST([AM_BACKSLASH])dnl
885 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
888 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
890 # This file is free software; the Free Software Foundation
891 # gives unlimited permission to copy and/or distribute it,
892 # with or without modifications, as long as this notice is preserved.
894 # AM_PROG_INSTALL_STRIP
895 # ---------------------
896 # One issue with vendor `install' (even GNU) is that you can't
897 # specify the program used to strip binaries. This is especially
898 # annoying in cross-compiling environments, where the build's strip
899 # is unlikely to handle the host's binaries.
900 # Fortunately install-sh will honor a STRIPPROG variable, so we
901 # always use install-sh in `make install-strip', and initialize
902 # STRIPPROG with the value of the STRIP variable (set by the user).
903 AC_DEFUN([AM_PROG_INSTALL_STRIP],
904 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
905 # Installed binaries are usually stripped using `strip' when the user
906 # run `make install-strip'. However `strip' might not be the right
907 # tool to use in cross-compilation environments, therefore Automake
908 # will honor the `STRIP' environment variable to overrule this program.
909 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
910 if test "$cross_compiling" != no; then
911 AC_CHECK_TOOL([STRIP], [strip], :)
913 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
914 AC_SUBST([INSTALL_STRIP_PROGRAM])])
916 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
918 # This file is free software; the Free Software Foundation
919 # gives unlimited permission to copy and/or distribute it,
920 # with or without modifications, as long as this notice is preserved.
924 # _AM_SUBST_NOTMAKE(VARIABLE)
925 # ---------------------------
926 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
927 # This macro is traced by Automake.
928 AC_DEFUN([_AM_SUBST_NOTMAKE])
930 # AM_SUBST_NOTMAKE(VARIABLE)
931 # ---------------------------
932 # Public sister of _AM_SUBST_NOTMAKE.
933 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
935 # Check how to create a tarball. -*- Autoconf -*-
937 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
939 # This file is free software; the Free Software Foundation
940 # gives unlimited permission to copy and/or distribute it,
941 # with or without modifications, as long as this notice is preserved.
945 # _AM_PROG_TAR(FORMAT)
946 # --------------------
947 # Check how to create a tarball in format FORMAT.
948 # FORMAT should be one of `v7', `ustar', or `pax'.
950 # Substitute a variable $(am__tar) that is a command
951 # writing to stdout a FORMAT-tarball containing the directory
953 # tardir=directory && $(am__tar) > result.tar
955 # Substitute a variable $(am__untar) that extract such
956 # a tarball read from stdin.
957 # $(am__untar) < result.tar
958 AC_DEFUN([_AM_PROG_TAR],
959 [# Always define AMTAR for backward compatibility.
960 AM_MISSING_PROG([AMTAR], [tar])
962 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
963 [m4_case([$1], [ustar],, [pax],,
964 [m4_fatal([Unknown tar format])])
965 AC_MSG_CHECKING([how to create a $1 tar archive])
966 # Loop over all known methods to create a tar archive until one works.
967 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
968 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
969 # Do not fold the above two line into one, because Tru64 sh and
970 # Solaris sh will not grok spaces in the rhs of `-'.
971 for _am_tool in $_am_tools
975 for _am_tar in tar gnutar gtar;
977 AM_RUN_LOG([$_am_tar --version]) && break
979 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
980 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
981 am__untar="$_am_tar -xf -"
984 # Must skip GNU tar: if it does not support --format= it doesn't create
985 # ustar tarball either.
986 (tar --version) >/dev/null 2>&1 && continue
987 am__tar='tar chf - "$$tardir"'
988 am__tar_='tar chf - "$tardir"'
992 am__tar='pax -L -x $1 -w "$$tardir"'
993 am__tar_='pax -L -x $1 -w "$tardir"'
997 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
998 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
999 am__untar='cpio -i -H $1 -d'
1008 # If the value was cached, stop now. We just wanted to have am__tar
1009 # and am__untar set.
1010 test -n "${am_cv_prog_tar_$1}" && break
1012 # tar/untar a dummy directory, and stop if the command works
1015 echo GrepMe > conftest.dir/file
1016 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1018 if test -s conftest.tar; then
1019 AM_RUN_LOG([$am__untar <conftest.tar])
1020 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1025 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1026 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1028 AC_SUBST([am__untar])
1031 dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
1033 dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
1035 dnl Permission is hereby granted, free of charge, to any person obtaining a
1036 dnl copy of this software and associated documentation files (the "Software"),
1037 dnl to deal in the Software without restriction, including without limitation
1038 dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
1039 dnl and/or sell copies of the Software, and to permit persons to whom the
1040 dnl Software is furnished to do so, subject to the following conditions:
1042 dnl The above copyright notice and this permission notice (including the next
1043 dnl paragraph) shall be included in all copies or substantial portions of the
1046 dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1047 dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1048 dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1049 dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1050 dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1051 dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1052 dnl DEALINGS IN THE SOFTWARE.
1054 # XORG_MACROS_VERSION(required-version)
1055 # -------------------------------------
1056 # Minimum version: 1.1.0
1058 # If you're using a macro added in Version 1.1 or newer, include this in
1059 # your configure.ac with the minimum required version, such as:
1060 # XORG_MACROS_VERSION(1.1)
1062 # To ensure that this macro is defined, also add:
1063 # m4_ifndef([XORG_MACROS_VERSION],
1064 # [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
1067 # See the "minimum version" comment for each macro you use to see what
1068 # version you require.
1069 m4_defun([XORG_MACROS_VERSION],[
1070 m4_define([vers_have], [1.8.0])
1071 m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
1072 m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
1073 m4_if(m4_cmp(maj_have, maj_needed), 0,,
1074 [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
1075 m4_if(m4_version_compare(vers_have, [$1]), -1,
1076 [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
1077 m4_undefine([vers_have])
1078 m4_undefine([maj_have])
1079 m4_undefine([maj_needed])
1080 ]) # XORG_MACROS_VERSION
1082 # XORG_PROG_RAWCPP()
1083 # ------------------
1084 # Minimum version: 1.0.0
1086 # Find cpp program and necessary flags for use in pre-processing text files
1087 # such as man pages and config files
1088 AC_DEFUN([XORG_PROG_RAWCPP],[
1089 AC_REQUIRE([AC_PROG_CPP])
1090 AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
1091 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
1093 # Check for flag to avoid builtin definitions - assumes unix is predefined,
1094 # which is not the best choice for supporting other OS'es, but covers most
1095 # of the ones we need for now.
1096 AC_MSG_CHECKING([if $RAWCPP requires -undef])
1097 AC_LANG_CONFTEST([Does cpp redefine unix ?])
1098 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
1101 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
1103 AC_MSG_RESULT([yes])
1104 # under Cygwin unix is still defined even with -undef
1105 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
1106 RAWCPPFLAGS="-undef -ansi"
1107 AC_MSG_RESULT([yes, with -ansi])
1109 AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
1112 rm -f conftest.$ac_ext
1114 AC_MSG_CHECKING([if $RAWCPP requires -traditional])
1115 AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
1116 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
1119 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
1120 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
1121 AC_MSG_RESULT([yes])
1123 AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
1126 rm -f conftest.$ac_ext
1127 AC_SUBST(RAWCPPFLAGS)
1128 ]) # XORG_PROG_RAWCPP
1130 # XORG_MANPAGE_SECTIONS()
1131 # -----------------------
1132 # Minimum version: 1.0.0
1134 # Determine which sections man pages go in for the different man page types
1135 # on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
1136 # Not sure if there's any better way than just hardcoding by OS name.
1137 # Override default settings by setting environment variables
1138 # Added MAN_SUBSTS in version 1.8
1139 # Added AC_PROG_SED in version 1.8
1141 AC_DEFUN([XORG_MANPAGE_SECTIONS],[
1142 AC_REQUIRE([AC_CANONICAL_HOST])
1143 AC_REQUIRE([AC_PROG_SED])
1145 if test x$APP_MAN_SUFFIX = x ; then
1148 if test x$APP_MAN_DIR = x ; then
1149 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1152 if test x$LIB_MAN_SUFFIX = x ; then
1155 if test x$LIB_MAN_DIR = x ; then
1156 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1159 if test x$FILE_MAN_SUFFIX = x ; then
1161 solaris*) FILE_MAN_SUFFIX=4 ;;
1162 *) FILE_MAN_SUFFIX=5 ;;
1165 if test x$FILE_MAN_DIR = x ; then
1166 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1169 if test x$MISC_MAN_SUFFIX = x ; then
1171 solaris*) MISC_MAN_SUFFIX=5 ;;
1172 *) MISC_MAN_SUFFIX=7 ;;
1175 if test x$MISC_MAN_DIR = x ; then
1176 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1179 if test x$DRIVER_MAN_SUFFIX = x ; then
1181 solaris*) DRIVER_MAN_SUFFIX=7 ;;
1182 *) DRIVER_MAN_SUFFIX=4 ;;
1185 if test x$DRIVER_MAN_DIR = x ; then
1186 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1189 if test x$ADMIN_MAN_SUFFIX = x ; then
1191 solaris*) ADMIN_MAN_SUFFIX=1m ;;
1192 *) ADMIN_MAN_SUFFIX=8 ;;
1195 if test x$ADMIN_MAN_DIR = x ; then
1196 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1200 AC_SUBST([APP_MAN_SUFFIX])
1201 AC_SUBST([LIB_MAN_SUFFIX])
1202 AC_SUBST([FILE_MAN_SUFFIX])
1203 AC_SUBST([MISC_MAN_SUFFIX])
1204 AC_SUBST([DRIVER_MAN_SUFFIX])
1205 AC_SUBST([ADMIN_MAN_SUFFIX])
1206 AC_SUBST([APP_MAN_DIR])
1207 AC_SUBST([LIB_MAN_DIR])
1208 AC_SUBST([FILE_MAN_DIR])
1209 AC_SUBST([MISC_MAN_DIR])
1210 AC_SUBST([DRIVER_MAN_DIR])
1211 AC_SUBST([ADMIN_MAN_DIR])
1213 XORG_MAN_PAGE="X Version 11"
1214 AC_SUBST([XORG_MAN_PAGE])
1216 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1217 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1218 -e 's|__xservername__|Xorg|g' \
1219 -e 's|__xconfigfile__|xorg.conf|g' \
1220 -e 's|__projectroot__|\$(prefix)|g' \
1221 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1222 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1223 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1224 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1225 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1226 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
1227 AC_SUBST([MAN_SUBSTS])
1229 ]) # XORG_MANPAGE_SECTIONS
1231 # XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION])
1232 # ------------------------
1233 # Minimum version: 1.7.0
1235 # Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent
1236 # provided by xorg-sgml-doctools, if installed.
1237 AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[
1238 AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])])
1240 PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])],
1241 [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`],
1243 [if test x"$cross_compiling" != x"yes" ; then
1244 AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent],
1245 [XORG_SGML_PATH=$prefix/share/sgml])
1249 if test "x$XORG_SGML_PATH" != "x" ; then
1250 AC_MSG_RESULT([$XORG_SGML_PATH])
1255 AC_SUBST(XORG_SGML_PATH)
1256 ]) # XORG_CHECK_SGML_DOCTOOLS
1258 # XORG_CHECK_LINUXDOC
1259 # -------------------
1260 # Minimum version: 1.0.0
1262 # Defines the variable MAKE_TEXT if the necessary tools and
1263 # files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
1264 # Whether or not the necessary tools and files are found can be checked
1265 # with the AM_CONDITIONAL "BUILD_LINUXDOC"
1266 AC_DEFUN([XORG_CHECK_LINUXDOC],[
1267 AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS])
1268 AC_REQUIRE([XORG_WITH_PS2PDF])
1270 AC_PATH_PROG(LINUXDOC, linuxdoc)
1272 AC_MSG_CHECKING([whether to build documentation])
1274 if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then
1280 AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
1282 AC_MSG_RESULT([$BUILDDOC])
1284 AC_MSG_CHECKING([whether to build pdf documentation])
1286 if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then
1292 AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
1294 AC_MSG_RESULT([$BUILDPDFDOC])
1296 MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f"
1297 MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
1299 MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
1305 ]) # XORG_CHECK_LINUXDOC
1307 # XORG_CHECK_DOCBOOK
1308 # -------------------
1309 # Minimum version: 1.0.0
1311 # Checks for the ability to build output formats from SGML DocBook source.
1312 # For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
1313 # indicates whether the necessary tools and files are found and, if set,
1314 # $(MAKE_XXX) blah.sgml will produce blah.xxx.
1315 AC_DEFUN([XORG_CHECK_DOCBOOK],[
1316 AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS])
1323 AC_PATH_PROG(DOCBOOKPS, docbook2ps)
1324 AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
1325 AC_PATH_PROG(DOCBOOKHTML, docbook2html)
1326 AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
1328 AC_MSG_CHECKING([whether to build text documentation])
1329 if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x &&
1330 test x$BUILD_TXTDOC != xno; then
1333 AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
1334 AC_MSG_RESULT([$BUILDTXTDOC])
1336 AC_MSG_CHECKING([whether to build PDF documentation])
1337 if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x &&
1338 test x$BUILD_PDFDOC != xno; then
1341 AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
1342 AC_MSG_RESULT([$BUILDPDFDOC])
1344 AC_MSG_CHECKING([whether to build PostScript documentation])
1345 if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x &&
1346 test x$BUILD_PSDOC != xno; then
1349 AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
1350 AC_MSG_RESULT([$BUILDPSDOC])
1352 AC_MSG_CHECKING([whether to build HTML documentation])
1353 if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x &&
1354 test x$BUILD_HTMLDOC != xno; then
1357 AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
1358 AC_MSG_RESULT([$BUILDHTMLDOC])
1360 MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
1361 MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
1362 MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
1363 MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
1369 ]) # XORG_CHECK_DOCBOOK
1371 # XORG_WITH_XMLTO([MIN-VERSION])
1373 # Minimum version: 1.5.0
1375 # Documentation tools are not always available on all platforms and sometimes
1376 # not at the appropriate level. This macro enables a module to test for the
1377 # presence of the tool and obtain it's path in separate variables. Coupled with
1378 # the --with-xmlto option, it allows maximum flexibilty in making decisions
1379 # as whether or not to use the xmlto package.
1381 # Interface to module:
1382 # HAVE_XMLTO: used in makefiles to conditionally generate documentation
1383 # XMLTO: returns the path of the xmlto program found
1384 # returns the path set by the user in the environment
1385 # --with-xmlto: 'yes' user instructs the module to use xmlto
1386 # 'no' user instructs the module not to use xmlto
1388 # If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path.
1390 AC_DEFUN([XORG_WITH_XMLTO],[
1391 AC_ARG_VAR([XMLTO], [Path to xmlto command])
1393 AS_HELP_STRING([--with-xmlto],
1394 [Use xmlto to regenerate documentation (default: yes, if installed)]),
1395 [use_xmlto=$withval], [use_xmlto=auto])
1397 if test "x$use_xmlto" = x"auto"; then
1398 AC_PATH_PROG([XMLTO], [xmlto])
1399 if test "x$XMLTO" = "x"; then
1400 AC_MSG_WARN([xmlto not found - documentation targets will be skipped])
1405 elif test "x$use_xmlto" = x"yes" ; then
1406 AC_PATH_PROG([XMLTO], [xmlto])
1407 if test "x$XMLTO" = "x"; then
1408 AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH])
1411 elif test "x$use_xmlto" = x"no" ; then
1412 if test "x$XMLTO" != "x"; then
1413 AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified])
1417 AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no'])
1420 [if test "$have_xmlto" = yes; then
1421 # scrape the xmlto version
1422 AC_MSG_CHECKING([the xmlto version])
1423 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
1424 AC_MSG_RESULT([$xmlto_version])
1425 AS_VERSION_COMPARE([$xmlto_version], [$1],
1426 [if test "x$use_xmlto" = xauto; then
1427 AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed])
1430 AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed])
1433 AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
1434 ]) # XORG_WITH_XMLTO
1436 # XORG_WITH_ASCIIDOC([MIN-VERSION])
1438 # Minimum version: 1.5.0
1440 # Documentation tools are not always available on all platforms and sometimes
1441 # not at the appropriate level. This macro enables a module to test for the
1442 # presence of the tool and obtain it's path in separate variables. Coupled with
1443 # the --with-asciidoc option, it allows maximum flexibilty in making decisions
1444 # as whether or not to use the asciidoc package.
1446 # Interface to module:
1447 # HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation
1448 # ASCIIDOC: returns the path of the asciidoc program found
1449 # returns the path set by the user in the environment
1450 # --with-asciidoc: 'yes' user instructs the module to use asciidoc
1451 # 'no' user instructs the module not to use asciidoc
1453 # If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path.
1455 AC_DEFUN([XORG_WITH_ASCIIDOC],[
1456 AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
1457 AC_ARG_WITH(asciidoc,
1458 AS_HELP_STRING([--with-asciidoc],
1459 [Use asciidoc to regenerate documentation (default: yes, if installed)]),
1460 [use_asciidoc=$withval], [use_asciidoc=auto])
1462 if test "x$use_asciidoc" = x"auto"; then
1463 AC_PATH_PROG([ASCIIDOC], [asciidoc])
1464 if test "x$ASCIIDOC" = "x"; then
1465 AC_MSG_WARN([asciidoc not found - documentation targets will be skipped])
1470 elif test "x$use_asciidoc" = x"yes" ; then
1471 AC_PATH_PROG([ASCIIDOC], [asciidoc])
1472 if test "x$ASCIIDOC" = "x"; then
1473 AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH])
1476 elif test "x$use_asciidoc" = x"no" ; then
1477 if test "x$ASCIIDOC" != "x"; then
1478 AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified])
1482 AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no'])
1485 [if test "$have_asciidoc" = yes; then
1486 # scrape the asciidoc version
1487 AC_MSG_CHECKING([the asciidoc version])
1488 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
1489 AC_MSG_RESULT([$asciidoc_version])
1490 AS_VERSION_COMPARE([$asciidoc_version], [$1],
1491 [if test "x$use_asciidoc" = xauto; then
1492 AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed])
1495 AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed])
1498 AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes])
1499 ]) # XORG_WITH_ASCIIDOC
1501 # XORG_WITH_DOXYGEN([MIN-VERSION])
1502 # --------------------------------
1503 # Minimum version: 1.5.0
1505 # Documentation tools are not always available on all platforms and sometimes
1506 # not at the appropriate level. This macro enables a module to test for the
1507 # presence of the tool and obtain it's path in separate variables. Coupled with
1508 # the --with-doxygen option, it allows maximum flexibilty in making decisions
1509 # as whether or not to use the doxygen package.
1511 # Interface to module:
1512 # HAVE_DOXYGEN: used in makefiles to conditionally generate documentation
1513 # DOXYGEN: returns the path of the doxygen program found
1514 # returns the path set by the user in the environment
1515 # --with-doxygen: 'yes' user instructs the module to use doxygen
1516 # 'no' user instructs the module not to use doxygen
1518 # If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path.
1520 AC_DEFUN([XORG_WITH_DOXYGEN],[
1521 AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
1522 AC_ARG_WITH(doxygen,
1523 AS_HELP_STRING([--with-doxygen],
1524 [Use doxygen to regenerate documentation (default: yes, if installed)]),
1525 [use_doxygen=$withval], [use_doxygen=auto])
1527 if test "x$use_doxygen" = x"auto"; then
1528 AC_PATH_PROG([DOXYGEN], [doxygen])
1529 if test "x$DOXYGEN" = "x"; then
1530 AC_MSG_WARN([doxygen not found - documentation targets will be skipped])
1535 elif test "x$use_doxygen" = x"yes" ; then
1536 AC_PATH_PROG([DOXYGEN], [doxygen])
1537 if test "x$DOXYGEN" = "x"; then
1538 AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH])
1541 elif test "x$use_doxygen" = x"no" ; then
1542 if test "x$DOXYGEN" != "x"; then
1543 AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified])
1547 AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no'])
1550 [if test "$have_doxygen" = yes; then
1551 # scrape the doxygen version
1552 AC_MSG_CHECKING([the doxygen version])
1553 doxygen_version=`$DOXYGEN --version 2>/dev/null`
1554 AC_MSG_RESULT([$doxygen_version])
1555 AS_VERSION_COMPARE([$doxygen_version], [$1],
1556 [if test "x$use_doxygen" = xauto; then
1557 AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed])
1560 AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed])
1563 AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
1564 ]) # XORG_WITH_DOXYGEN
1568 # Minimum version: 1.6.0
1570 # Documentation tools are not always available on all platforms and sometimes
1571 # not at the appropriate level. This macro enables a module to test for the
1572 # presence of the tool and obtain it's path in separate variables. Coupled with
1573 # the --with-groff option, it allows maximum flexibilty in making decisions
1574 # as whether or not to use the groff package.
1576 # Interface to module:
1577 # HAVE_GROFF: used in makefiles to conditionally generate documentation
1578 # HAVE_GROFF_MM: the memorandum macros (-mm) package
1579 # HAVE_GROFF_MS: the -ms macros package
1580 # GROFF: returns the path of the groff program found
1581 # returns the path set by the user in the environment
1582 # --with-groff: 'yes' user instructs the module to use groff
1583 # 'no' user instructs the module not to use groff
1585 # If the user sets the value of GROFF, AC_PATH_PROG skips testing the path.
1587 # OS and distros often splits groff in a basic and full package, the former
1588 # having the groff program and the later having devices, fonts and macros
1589 # Checking for the groff executable is not enough.
1591 # If macros are missing, we cannot assume that groff is useless, so we don't
1592 # unset HAVE_GROFF or GROFF env variables.
1593 # HAVE_GROFF_?? can never be true while HAVE_GROFF is false.
1595 AC_DEFUN([XORG_WITH_GROFF],[
1596 AC_ARG_VAR([GROFF], [Path to groff command])
1598 AS_HELP_STRING([--with-groff],
1599 [Use groff to regenerate documentation (default: yes, if installed)]),
1600 [use_groff=$withval], [use_groff=auto])
1602 if test "x$use_groff" = x"auto"; then
1603 AC_PATH_PROG([GROFF], [groff])
1604 if test "x$GROFF" = "x"; then
1605 AC_MSG_WARN([groff not found - documentation targets will be skipped])
1610 elif test "x$use_groff" = x"yes" ; then
1611 AC_PATH_PROG([GROFF], [groff])
1612 if test "x$GROFF" = "x"; then
1613 AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH])
1616 elif test "x$use_groff" = x"no" ; then
1617 if test "x$GROFF" != "x"; then
1618 AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified])
1622 AC_MSG_ERROR([--with-groff expects 'yes' or 'no'])
1624 # We have groff, test for the presence of the macro packages
1625 if test "x$have_groff" = x"yes"; then
1626 AC_MSG_CHECKING([for ${GROFF} -ms macros])
1627 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then
1632 AC_MSG_RESULT([$groff_ms_works])
1633 AC_MSG_CHECKING([for ${GROFF} -mm macros])
1634 if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then
1639 AC_MSG_RESULT([$groff_mm_works])
1641 AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes])
1642 AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes])
1643 AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes])
1644 ]) # XORG_WITH_GROFF
1648 # Minimum version: 1.6.0
1650 # Documentation tools are not always available on all platforms and sometimes
1651 # not at the appropriate level. This macro enables a module to test for the
1652 # presence of the tool and obtain it's path in separate variables. Coupled with
1653 # the --with-fop option, it allows maximum flexibilty in making decisions
1654 # as whether or not to use the fop package.
1656 # Interface to module:
1657 # HAVE_FOP: used in makefiles to conditionally generate documentation
1658 # FOP: returns the path of the fop program found
1659 # returns the path set by the user in the environment
1660 # --with-fop: 'yes' user instructs the module to use fop
1661 # 'no' user instructs the module not to use fop
1663 # If the user sets the value of FOP, AC_PATH_PROG skips testing the path.
1665 AC_DEFUN([XORG_WITH_FOP],[
1666 AC_ARG_VAR([FOP], [Path to fop command])
1668 AS_HELP_STRING([--with-fop],
1669 [Use fop to regenerate documentation (default: yes, if installed)]),
1670 [use_fop=$withval], [use_fop=auto])
1672 if test "x$use_fop" = x"auto"; then
1673 AC_PATH_PROG([FOP], [fop])
1674 if test "x$FOP" = "x"; then
1675 AC_MSG_WARN([fop not found - documentation targets will be skipped])
1680 elif test "x$use_fop" = x"yes" ; then
1681 AC_PATH_PROG([FOP], [fop])
1682 if test "x$FOP" = "x"; then
1683 AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH])
1686 elif test "x$use_fop" = x"no" ; then
1687 if test "x$FOP" != "x"; then
1688 AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified])
1692 AC_MSG_ERROR([--with-fop expects 'yes' or 'no'])
1694 AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
1699 # Minimum version: 1.6.0
1701 # Documentation tools are not always available on all platforms and sometimes
1702 # not at the appropriate level. This macro enables a module to test for the
1703 # presence of the tool and obtain it's path in separate variables. Coupled with
1704 # the --with-ps2pdf option, it allows maximum flexibilty in making decisions
1705 # as whether or not to use the ps2pdf package.
1707 # Interface to module:
1708 # HAVE_PS2PDF: used in makefiles to conditionally generate documentation
1709 # PS2PDF: returns the path of the ps2pdf program found
1710 # returns the path set by the user in the environment
1711 # --with-ps2pdf: 'yes' user instructs the module to use ps2pdf
1712 # 'no' user instructs the module not to use ps2pdf
1714 # If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path.
1716 AC_DEFUN([XORG_WITH_PS2PDF],[
1717 AC_ARG_VAR([PS2PDF], [Path to ps2pdf command])
1719 AS_HELP_STRING([--with-ps2pdf],
1720 [Use ps2pdf to regenerate documentation (default: yes, if installed)]),
1721 [use_ps2pdf=$withval], [use_ps2pdf=auto])
1723 if test "x$use_ps2pdf" = x"auto"; then
1724 AC_PATH_PROG([PS2PDF], [ps2pdf])
1725 if test "x$PS2PDF" = "x"; then
1726 AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped])
1731 elif test "x$use_ps2pdf" = x"yes" ; then
1732 AC_PATH_PROG([PS2PDF], [ps2pdf])
1733 if test "x$PS2PDF" = "x"; then
1734 AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH])
1737 elif test "x$use_ps2pdf" = x"no" ; then
1738 if test "x$PS2PDF" != "x"; then
1739 AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified])
1743 AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no'])
1745 AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes])
1746 ]) # XORG_WITH_PS2PDF
1748 # XORG_ENABLE_DOCS (enable_docs=yes)
1750 # Minimum version: 1.6.0
1752 # Documentation tools are not always available on all platforms and sometimes
1753 # not at the appropriate level. This macro enables a builder to skip all
1754 # documentation targets except traditional man pages.
1755 # Combined with the specific tool checking macros XORG_WITH_*, it provides
1756 # maximum flexibilty in controlling documentation building.
1758 # XORG_WITH_XMLTO --with-xmlto
1759 # XORG_WITH_ASCIIDOC --with-asciidoc
1760 # XORG_WITH_DOXYGEN --with-doxygen
1761 # XORG_WITH_FOP --with-fop
1762 # XORG_WITH_GROFF --with-groff
1763 # XORG_WITH_PS2PDF --with-ps2pdf
1765 # Interface to module:
1766 # ENABLE_DOCS: used in makefiles to conditionally generate documentation
1767 # --enable-docs: 'yes' user instructs the module to generate docs
1768 # 'no' user instructs the module not to generate docs
1769 # parm1: specify the default value, yes or no.
1771 AC_DEFUN([XORG_ENABLE_DOCS],[
1773 if test "x$default" = x ; then
1777 AS_HELP_STRING([--enable-docs],
1778 [Enable building the documentation (default: yes)]),
1779 [build_docs=$enableval], [build_docs=$default])
1780 AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes])
1781 AC_MSG_CHECKING([whether to build documentation])
1782 AC_MSG_RESULT([$build_docs])
1783 ]) # XORG_ENABLE_DOCS
1785 # XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes)
1787 # Minimum version: 1.6.0
1789 # This macro enables a builder to skip all developer documentation.
1790 # Combined with the specific tool checking macros XORG_WITH_*, it provides
1791 # maximum flexibilty in controlling documentation building.
1793 # XORG_WITH_XMLTO --with-xmlto
1794 # XORG_WITH_ASCIIDOC --with-asciidoc
1795 # XORG_WITH_DOXYGEN --with-doxygen
1796 # XORG_WITH_FOP --with-fop
1797 # XORG_WITH_GROFF --with-groff
1798 # XORG_WITH_PS2PDF --with-ps2pdf
1800 # Interface to module:
1801 # ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs
1802 # --enable-devel-docs: 'yes' user instructs the module to generate developer docs
1803 # 'no' user instructs the module not to generate developer docs
1804 # parm1: specify the default value, yes or no.
1806 AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[
1808 if test "x$devel_default" = x ; then
1811 AC_ARG_ENABLE(devel-docs,
1812 AS_HELP_STRING([--enable-devel-docs],
1813 [Enable building the developer documentation (default: yes)]),
1814 [build_devel_docs=$enableval], [build_devel_docs=$devel_default])
1815 AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes])
1816 AC_MSG_CHECKING([whether to build developer documentation])
1817 AC_MSG_RESULT([$build_devel_docs])
1818 ]) # XORG_ENABLE_DEVEL_DOCS
1820 # XORG_ENABLE_SPECS (enable_specs=yes)
1822 # Minimum version: 1.6.0
1824 # This macro enables a builder to skip all functional specification targets.
1825 # Combined with the specific tool checking macros XORG_WITH_*, it provides
1826 # maximum flexibilty in controlling documentation building.
1828 # XORG_WITH_XMLTO --with-xmlto
1829 # XORG_WITH_ASCIIDOC --with-asciidoc
1830 # XORG_WITH_DOXYGEN --with-doxygen
1831 # XORG_WITH_FOP --with-fop
1832 # XORG_WITH_GROFF --with-groff
1833 # XORG_WITH_PS2PDF --with-ps2pdf
1835 # Interface to module:
1836 # ENABLE_SPECS: used in makefiles to conditionally generate specs
1837 # --enable-specs: 'yes' user instructs the module to generate specs
1838 # 'no' user instructs the module not to generate specs
1839 # parm1: specify the default value, yes or no.
1841 AC_DEFUN([XORG_ENABLE_SPECS],[
1843 if test "x$spec_default" = x ; then
1846 AC_ARG_ENABLE(specs,
1847 AS_HELP_STRING([--enable-specs],
1848 [Enable building the specs (default: yes)]),
1849 [build_specs=$enableval], [build_specs=$spec_default])
1850 AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes])
1851 AC_MSG_CHECKING([whether to build functional specifications])
1852 AC_MSG_RESULT([$build_specs])
1853 ]) # XORG_ENABLE_SPECS
1855 # XORG_CHECK_MALLOC_ZERO
1856 # ----------------------
1857 # Minimum version: 1.0.0
1859 # Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
1860 # malloc(0) returns NULL. Packages should add one of these cflags to
1861 # their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
1862 AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
1863 AC_ARG_ENABLE(malloc0returnsnull,
1864 AS_HELP_STRING([--enable-malloc0returnsnull],
1865 [malloc(0) returns NULL (default: auto)]),
1866 [MALLOC_ZERO_RETURNS_NULL=$enableval],
1867 [MALLOC_ZERO_RETURNS_NULL=auto])
1869 AC_MSG_CHECKING([whether malloc(0) returns NULL])
1870 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
1876 char *m0, *r0, *c0, *p;
1881 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
1883 [MALLOC_ZERO_RETURNS_NULL=yes],
1884 [MALLOC_ZERO_RETURNS_NULL=no],
1885 [MALLOC_ZERO_RETURNS_NULL=yes])
1887 AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
1889 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
1890 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
1891 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
1892 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
1894 MALLOC_ZERO_CFLAGS=""
1895 XMALLOC_ZERO_CFLAGS=""
1896 XTMALLOC_ZERO_CFLAGS=""
1899 AC_SUBST([MALLOC_ZERO_CFLAGS])
1900 AC_SUBST([XMALLOC_ZERO_CFLAGS])
1901 AC_SUBST([XTMALLOC_ZERO_CFLAGS])
1902 ]) # XORG_CHECK_MALLOC_ZERO
1906 # Minimum version: 1.1.0
1908 # This macro enables the use of a tool that flags some suspicious and
1909 # non-portable constructs (likely to be bugs) in C language source code.
1910 # It will attempt to locate the tool and use appropriate options.
1911 # There are various lint type tools on different platforms.
1913 # Interface to module:
1914 # LINT: returns the path to the tool found on the platform
1915 # or the value set to LINT on the configure cmd line
1916 # also an Automake conditional
1917 # LINT_FLAGS: an Automake variable with appropriate flags
1919 # --with-lint: 'yes' user instructs the module to use lint
1920 # 'no' user instructs the module not to use lint (default)
1922 # If the user sets the value of LINT, AC_PATH_PROG skips testing the path.
1923 # If the user sets the value of LINT_FLAGS, they are used verbatim.
1925 AC_DEFUN([XORG_WITH_LINT],[
1927 AC_ARG_VAR([LINT], [Path to a lint-style command])
1928 AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command])
1929 AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
1930 [Use a lint-style source code checker (default: disabled)])],
1931 [use_lint=$withval], [use_lint=no])
1933 # Obtain platform specific info like program name and options
1934 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
1936 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
1938 lint_options="-badflag"
1940 *freebsd* | *netbsd*)
1942 lint_options="-u -b"
1946 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
1950 # Test for the presence of the program (either guessed by the code or spelled out by the user)
1951 if test "x$use_lint" = x"yes" ; then
1952 AC_PATH_PROG([LINT], [$lint_name])
1953 if test "x$LINT" = "x"; then
1954 AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH])
1956 elif test "x$use_lint" = x"no" ; then
1957 if test "x$LINT" != "x"; then
1958 AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified])
1961 AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.])
1964 # User supplied flags override default flags
1965 if test "x$LINT_FLAGS" != "x"; then
1966 lint_options=$LINT_FLAGS
1969 AC_SUBST([LINT_FLAGS],[$lint_options])
1970 AM_CONDITIONAL(LINT, [test "x$LINT" != x])
1974 # XORG_LINT_LIBRARY(LIBNAME)
1975 # --------------------------
1976 # Minimum version: 1.1.0
1978 # Sets up flags for building lint libraries for checking programs that call
1979 # functions in the library.
1981 # Interface to module:
1982 # LINTLIB - Automake variable with the name of lint library file to make
1983 # MAKE_LINT_LIB - Automake conditional
1985 # --enable-lint-library: - 'yes' user instructs the module to created a lint library
1986 # - 'no' user instructs the module not to create a lint library (default)
1988 AC_DEFUN([XORG_LINT_LIBRARY],[
1989 AC_REQUIRE([XORG_WITH_LINT])
1990 AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
1991 [Create lint library (default: disabled)])],
1992 [make_lint_lib=$enableval], [make_lint_lib=no])
1994 if test "x$make_lint_lib" = x"yes" ; then
1996 if test "x$LINT" = "x"; then
1997 AC_MSG_ERROR([Cannot make lint library without --with-lint])
1999 elif test "x$make_lint_lib" != x"no" ; then
2000 AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.])
2004 AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
2006 ]) # XORG_LINT_LIBRARY
2010 # Minimum version: 1.2.0
2012 # Defines CWARNFLAGS to enable C compiler warnings.
2014 AC_DEFUN([XORG_CWARNFLAGS], [
2015 AC_REQUIRE([AC_PROG_CC_C99])
2016 if test "x$GCC" = xyes ; then
2017 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
2018 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
2019 -Wbad-function-cast -Wformat=2"
2020 case `$CC -dumpversion` in
2022 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
2026 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
2027 if test "x$SUNCC" = "xyes"; then
2031 AC_SUBST(CWARNFLAGS)
2032 ]) # XORG_CWARNFLAGS
2034 # XORG_STRICT_OPTION
2035 # -----------------------
2036 # Minimum version: 1.3.0
2038 # Add configure option to enable strict compilation
2039 AC_DEFUN([XORG_STRICT_OPTION], [
2040 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
2041 AC_REQUIRE([AC_PROG_CC_C99])
2042 AC_REQUIRE([XORG_CWARNFLAGS])
2044 AC_ARG_ENABLE(strict-compilation,
2045 AS_HELP_STRING([--enable-strict-compilation],
2046 [Enable all warnings from compiler and make them errors (default: disabled)]),
2047 [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
2048 if test "x$STRICT_COMPILE" = "xyes"; then
2049 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
2050 AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
2051 if test "x$GCC" = xyes ; then
2052 STRICT_CFLAGS="-pedantic -Werror"
2053 elif test "x$SUNCC" = "xyes"; then
2054 STRICT_CFLAGS="-errwarn"
2055 elif test "x$INTELCC" = "xyes"; then
2056 STRICT_CFLAGS="-Werror"
2059 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
2060 AC_SUBST([CWARNFLAGS])
2061 ]) # XORG_STRICT_OPTION
2063 # XORG_DEFAULT_OPTIONS
2064 # --------------------
2065 # Minimum version: 1.3.0
2067 # Defines default options for X.Org modules.
2069 AC_DEFUN([XORG_DEFAULT_OPTIONS], [
2070 AC_REQUIRE([AC_PROG_INSTALL])
2073 XORG_RELEASE_VERSION
2076 XORG_MANPAGE_SECTIONS
2077 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
2078 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
2079 ]) # XORG_DEFAULT_OPTIONS
2083 # Minimum version: 1.4.0
2085 # Defines the variable INSTALL_CMD as the command to copy
2086 # INSTALL from $prefix/share/util-macros.
2088 AC_DEFUN([XORG_INSTALL], [
2089 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2090 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
2091 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
2092 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
2093 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
2094 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
2095 AC_SUBST([INSTALL_CMD])
2097 dnl Copyright 2005 Red Hat, Inc
2099 dnl Permission to use, copy, modify, distribute, and sell this software and its
2100 dnl documentation for any purpose is hereby granted without fee, provided that
2101 dnl the above copyright notice appear in all copies and that both that
2102 dnl copyright notice and this permission notice appear in supporting
2105 dnl The above copyright notice and this permission notice shall be included
2106 dnl in all copies or substantial portions of the Software.
2108 dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2109 dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2110 dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
2111 dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
2112 dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
2113 dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2114 dnl OTHER DEALINGS IN THE SOFTWARE.
2116 dnl Except as contained in this notice, the name of the copyright holders shall
2117 dnl not be used in advertising or otherwise to promote the sale, use or
2118 dnl other dealings in this Software without prior written authorization
2119 dnl from the copyright holders.
2122 # XORG_RELEASE_VERSION
2123 # --------------------
2124 # Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
2126 AC_DEFUN([XORG_RELEASE_VERSION],[
2127 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
2128 [`echo $PACKAGE_VERSION | cut -d . -f 1`],
2129 [Major version of this package])
2130 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
2131 if test "x$PVM" = "x"; then
2134 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
2136 [Minor version of this package])
2137 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
2138 if test "x$PVP" = "x"; then
2141 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
2143 [Patch version of this package])
2148 # Minimum version: 1.2.0
2150 # Defines the variable CHANGELOG_CMD as the command to generate
2151 # ChangeLog from git.
2154 AC_DEFUN([XORG_CHANGELOG], [
2155 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
2156 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
2157 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
2158 echo 'git directory not found: installing possibly empty changelog.' >&2)"
2159 AC_SUBST([CHANGELOG_CMD])
2162 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
2164 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
2166 # This program is free software; you can redistribute it and/or modify
2167 # it under the terms of the GNU General Public License as published by
2168 # the Free Software Foundation; either version 2 of the License, or
2169 # (at your option) any later version.
2171 # This program is distributed in the hope that it will be useful, but
2172 # WITHOUT ANY WARRANTY; without even the implied warranty of
2173 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2174 # General Public License for more details.
2176 # You should have received a copy of the GNU General Public License
2177 # along with this program; if not, write to the Free Software
2178 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2180 # As a special exception to the GNU General Public License, if you
2181 # distribute this file as part of a program that contains a
2182 # configuration script generated by Autoconf, you may include it under
2183 # the same distribution terms that you use for the rest of that program.
2185 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
2186 # ----------------------------------
2187 AC_DEFUN([PKG_PROG_PKG_CONFIG],
2188 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
2189 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
2190 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
2191 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2192 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
2194 if test -n "$PKG_CONFIG"; then
2195 _pkg_min_version=m4_default([$1], [0.9.0])
2196 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
2197 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2198 AC_MSG_RESULT([yes])
2205 ])# PKG_PROG_PKG_CONFIG
2207 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2209 # Check to see whether a particular set of modules exists. Similar
2210 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
2213 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
2214 # this or PKG_CHECK_MODULES is called, or make sure to call
2215 # PKG_CHECK_EXISTS manually
2216 # --------------------------------------------------------------
2217 AC_DEFUN([PKG_CHECK_EXISTS],
2218 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2219 if test -n "$PKG_CONFIG" && \
2220 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
2221 m4_ifval([$2], [$2], [:])
2222 m4_ifvaln([$3], [else
2227 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
2228 # ---------------------------------------------
2229 m4_define([_PKG_CONFIG],
2230 [if test -n "$$1"; then
2232 elif test -n "$PKG_CONFIG"; then
2233 PKG_CHECK_EXISTS([$3],
2234 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
2241 # _PKG_SHORT_ERRORS_SUPPORTED
2242 # -----------------------------
2243 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
2244 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2246 _pkg_short_errors_supported=yes
2248 _pkg_short_errors_supported=no
2250 ])# _PKG_SHORT_ERRORS_SUPPORTED
2253 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
2254 # [ACTION-IF-NOT-FOUND])
2257 # Note that if there is a possibility the first call to
2258 # PKG_CHECK_MODULES might not happen, you should be sure to include an
2259 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
2262 # --------------------------------------------------------------
2263 AC_DEFUN([PKG_CHECK_MODULES],
2264 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2265 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
2266 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
2269 AC_MSG_CHECKING([for $1])
2271 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
2272 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
2274 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
2275 and $1[]_LIBS to avoid the need to call pkg-config.
2276 See the pkg-config man page for more details.])
2278 if test $pkg_failed = yes; then
2279 _PKG_SHORT_ERRORS_SUPPORTED
2280 if test $_pkg_short_errors_supported = yes; then
2281 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
2283 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
2285 # Put the nasty error message in config.log where it belongs
2286 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
2288 ifelse([$4], , [AC_MSG_ERROR(dnl
2289 [Package requirements ($2) were not met:
2293 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2294 installed software in a non-standard prefix.
2298 [AC_MSG_RESULT([no])
2300 elif test $pkg_failed = untried; then
2301 ifelse([$4], , [AC_MSG_FAILURE(dnl
2302 [The pkg-config script could not be found or is too old. Make sure it
2303 is in your PATH or set the PKG_CONFIG environment variable to the full
2308 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
2311 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
2312 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
2313 AC_MSG_RESULT([yes])
2314 ifelse([$3], , :, [$3])
2316 ])# PKG_CHECK_MODULES
2318 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2320 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2321 # 2006, 2007, 2008 Free Software Foundation, Inc.
2322 # Written by Gordon Matzigkeit, 1996
2324 # This file is free software; the Free Software Foundation gives
2325 # unlimited permission to copy and/or distribute it, with or without
2326 # modifications, as long as this notice is preserved.
2328 m4_define([_LT_COPYING], [dnl
2329 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2330 # 2006, 2007, 2008 Free Software Foundation, Inc.
2331 # Written by Gordon Matzigkeit, 1996
2333 # This file is part of GNU Libtool.
2335 # GNU Libtool is free software; you can redistribute it and/or
2336 # modify it under the terms of the GNU General Public License as
2337 # published by the Free Software Foundation; either version 2 of
2338 # the License, or (at your option) any later version.
2340 # As a special exception to the GNU General Public License,
2341 # if you distribute this file as part of a program or library that
2342 # is built using GNU Libtool, you may include this file under the
2343 # same distribution terms that you use for the rest of that program.
2345 # GNU Libtool is distributed in the hope that it will be useful,
2346 # but WITHOUT ANY WARRANTY; without even the implied warranty of
2347 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2348 # GNU General Public License for more details.
2350 # You should have received a copy of the GNU General Public License
2351 # along with GNU Libtool; see the file COPYING. If not, a copy
2352 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
2353 # obtained by writing to the Free Software Foundation, Inc.,
2354 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2360 # LT_PREREQ(VERSION)
2361 # ------------------
2362 # Complain and exit if this libtool version is less that VERSION.
2363 m4_defun([LT_PREREQ],
2364 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
2366 [m4_fatal([Libtool version $1 or higher is required],
2371 # _LT_CHECK_BUILDDIR
2372 # ------------------
2373 # Complain if the absolute build directory name contains unusual characters
2374 m4_defun([_LT_CHECK_BUILDDIR],
2377 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
2382 # LT_INIT([OPTIONS])
2383 # ------------------
2385 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
2386 AC_BEFORE([$0], [LT_LANG])dnl
2387 AC_BEFORE([$0], [LT_OUTPUT])dnl
2388 AC_BEFORE([$0], [LTDL_INIT])dnl
2389 m4_require([_LT_CHECK_BUILDDIR])dnl
2391 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
2392 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
2393 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
2394 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
2395 dnl unless we require an AC_DEFUNed macro:
2396 AC_REQUIRE([LTOPTIONS_VERSION])dnl
2397 AC_REQUIRE([LTSUGAR_VERSION])dnl
2398 AC_REQUIRE([LTVERSION_VERSION])dnl
2399 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
2400 m4_require([_LT_PROG_LTMAIN])dnl
2403 _LT_SET_OPTIONS([$0], [$1])
2405 # This can be used to rebuild libtool when needed
2406 LIBTOOL_DEPS="$ltmain"
2408 # Always use our own libtool.
2409 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2410 AC_SUBST(LIBTOOL)dnl
2415 m4_define([LT_INIT])
2419 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
2420 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
2421 dnl aclocal-1.4 backwards compatibility:
2422 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
2423 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
2426 # _LT_CC_BASENAME(CC)
2427 # -------------------
2428 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2429 m4_defun([_LT_CC_BASENAME],
2430 [for cc_temp in $1""; do
2432 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
2433 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
2438 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
2442 # _LT_FILEUTILS_DEFAULTS
2443 # ----------------------
2444 # It is okay to use these file commands and assume they have been set
2445 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2446 m4_defun([_LT_FILEUTILS_DEFAULTS],
2450 ])# _LT_FILEUTILS_DEFAULTS
2455 m4_defun([_LT_SETUP],
2456 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2457 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2458 _LT_DECL([], [host_alias], [0], [The host system])dnl
2459 _LT_DECL([], [host], [0])dnl
2460 _LT_DECL([], [host_os], [0])dnl
2462 _LT_DECL([], [build_alias], [0], [The build system])dnl
2463 _LT_DECL([], [build], [0])dnl
2464 _LT_DECL([], [build_os], [0])dnl
2466 AC_REQUIRE([AC_PROG_CC])dnl
2467 AC_REQUIRE([LT_PATH_LD])dnl
2468 AC_REQUIRE([LT_PATH_NM])dnl
2470 AC_REQUIRE([AC_PROG_LN_S])dnl
2471 test -z "$LN_S" && LN_S="ln -s"
2472 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
2474 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
2475 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
2476 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
2478 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2479 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2480 m4_require([_LT_CMD_RELOAD])dnl
2481 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
2482 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
2483 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
2485 _LT_CONFIG_LIBTOOL_INIT([
2486 # See if we are running on zsh, and set the options which allow our
2487 # commands through without removal of \ escapes INIT.
2488 if test -n "\${ZSH_VERSION+set}" ; then
2489 setopt NO_GLOB_SUBST
2492 if test -n "${ZSH_VERSION+set}" ; then
2493 setopt NO_GLOB_SUBST
2498 m4_require([_LT_TAG_COMPILER])dnl
2499 _LT_PROG_ECHO_BACKSLASH
2503 # AIX sometimes has problems with the GCC collect2 program. For some
2504 # reason, if we set the COLLECT_NAMES environment variable, the problems
2505 # vanish in a puff of smoke.
2506 if test "X${COLLECT_NAMES+set}" != Xset; then
2508 export COLLECT_NAMES
2513 # Sed substitution that helps us do robust quoting. It backslashifies
2514 # metacharacters that are still active within double-quoted strings.
2515 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2517 # Same as above, but do not quote variable references.
2518 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
2520 # Sed substitution to delay expansion of an escaped shell variable in a
2521 # double_quote_subst'ed string.
2522 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2524 # Sed substitution to delay expansion of an escaped single quote.
2525 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2527 # Sed substitution to avoid accidental globbing in evaled expressions
2528 no_glob_subst='s/\*/\\\*/g'
2532 can_build_shared=yes
2534 # All known linkers require a `.a' archive for static linking (except MSVC,
2535 # which needs '.lib').
2538 with_gnu_ld="$lt_cv_prog_gnu_ld"
2541 old_CFLAGS="$CFLAGS"
2543 # Set sane defaults for various variables
2544 test -z "$CC" && CC=cc
2545 test -z "$LTCC" && LTCC=$CC
2546 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2547 test -z "$LD" && LD=ld
2548 test -z "$ac_objext" && ac_objext=o
2550 _LT_CC_BASENAME([$compiler])
2552 # Only perform the check for file, if the check method requires it
2553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2554 case $deplibs_check_method in
2556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2562 # Use C for the default configuration in the libtool script
2563 LT_SUPPORTED_TAG([CC])
2565 _LT_LANG_DEFAULT_CONFIG
2572 # Note that this code is called both from `configure', and `config.status'
2573 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2574 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2575 # so we pass a copy along to make sure it has a sensible value anyway.
2576 m4_defun([_LT_PROG_LTMAIN],
2577 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
2578 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
2579 ltmain="$ac_aux_dir/ltmain.sh"
2584 # So that we can recreate a full libtool script including additional
2585 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2586 # in macros and then make a single call at the end using the `libtool'
2590 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2591 # ----------------------------------------
2592 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2593 m4_define([_LT_CONFIG_LIBTOOL_INIT],
2595 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
2600 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
2603 # _LT_CONFIG_LIBTOOL([COMMANDS])
2604 # ------------------------------
2605 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2606 m4_define([_LT_CONFIG_LIBTOOL],
2608 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
2613 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
2616 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2617 # -----------------------------------------------------
2618 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
2619 [_LT_CONFIG_LIBTOOL([$1])
2620 _LT_CONFIG_LIBTOOL_INIT([$2])
2624 # _LT_FORMAT_COMMENT([COMMENT])
2625 # -----------------------------
2626 # Add leading comment marks to the start of each line, and a trailing
2627 # full-stop to the whole comment if one is not present already.
2628 m4_define([_LT_FORMAT_COMMENT],
2630 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
2631 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
2638 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2639 # -------------------------------------------------------------------
2640 # CONFIGNAME is the name given to the value in the libtool script.
2641 # VARNAME is the (base) name used in the configure script.
2642 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2643 # VARNAME. Any other value will be used directly.
2644 m4_define([_LT_DECL],
2645 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
2646 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
2647 [m4_ifval([$1], [$1], [$2])])
2648 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
2650 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
2651 lt_dict_add_subkey([lt_decl_dict], [$2],
2652 [tagged?], [m4_ifval([$5], [yes], [no])])])
2656 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2657 # --------------------------------------------------------
2658 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
2661 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2662 # ------------------------------------------------
2663 m4_define([lt_decl_tag_varnames],
2664 [_lt_decl_filter([tagged?], [yes], $@)])
2667 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2668 # ---------------------------------------------------------
2669 m4_define([_lt_decl_filter],
2671 [0], [m4_fatal([$0: too few arguments: $#])],
2672 [1], [m4_fatal([$0: too few arguments: $#: $1])],
2673 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
2674 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
2675 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
2679 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2680 # --------------------------------------------------
2681 m4_define([lt_decl_quote_varnames],
2682 [_lt_decl_filter([value], [1], $@)])
2685 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2686 # ---------------------------------------------------
2687 m4_define([lt_decl_dquote_varnames],
2688 [_lt_decl_filter([value], [2], $@)])
2691 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2692 # ---------------------------------------------------
2693 m4_define([lt_decl_varnames_tagged],
2694 [m4_assert([$# <= 2])dnl
2695 _$0(m4_quote(m4_default([$1], [[, ]])),
2696 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
2697 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
2698 m4_define([_lt_decl_varnames_tagged],
2699 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
2702 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2703 # ------------------------------------------------
2704 m4_define([lt_decl_all_varnames],
2705 [_$0(m4_quote(m4_default([$1], [[, ]])),
2707 m4_quote(lt_decl_varnames),
2708 m4_quote(m4_shift($@))))[]dnl
2710 m4_define([_lt_decl_all_varnames],
2711 [lt_join($@, lt_decl_varnames_tagged([$1],
2712 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
2716 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2717 # ------------------------------------
2718 # Quote a variable value, and forward it to `config.status' so that its
2719 # declaration there will have the same value as in `configure'. VARNAME
2720 # must have a single quote delimited value for this to work.
2721 m4_define([_LT_CONFIG_STATUS_DECLARE],
2722 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
2725 # _LT_CONFIG_STATUS_DECLARATIONS
2726 # ------------------------------
2727 # We delimit libtool config variables with single quotes, so when
2728 # we write them to config.status, we have to be sure to quote all
2729 # embedded single quotes properly. In configure, this macro expands
2730 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2732 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
2733 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
2734 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
2735 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
2740 # Output comment and list of tags supported by the script
2741 m4_defun([_LT_LIBTOOL_TAGS],
2742 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
2743 available_tags="_LT_TAGS"dnl
2747 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2748 # -----------------------------------
2749 # Extract the dictionary values for VARNAME (optionally with TAG) and
2750 # expand to a commented shell variable setting:
2752 # # Some comment about what VAR is for.
2753 # visible_name=$lt_internal_name
2754 m4_define([_LT_LIBTOOL_DECLARE],
2755 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
2756 [description])))[]dnl
2757 m4_pushdef([_libtool_name],
2758 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
2759 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
2760 [0], [_libtool_name=[$]$1],
2761 [1], [_libtool_name=$lt_[]$1],
2762 [2], [_libtool_name=$lt_[]$1],
2763 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
2764 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
2768 # _LT_LIBTOOL_CONFIG_VARS
2769 # -----------------------
2770 # Produce commented declarations of non-tagged libtool config variables
2771 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2772 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2773 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2774 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
2775 [m4_foreach([_lt_var],
2776 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
2777 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
2780 # _LT_LIBTOOL_TAG_VARS(TAG)
2781 # -------------------------
2782 m4_define([_LT_LIBTOOL_TAG_VARS],
2783 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
2784 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
2787 # _LT_TAGVAR(VARNAME, [TAGNAME])
2788 # ------------------------------
2789 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
2792 # _LT_CONFIG_COMMANDS
2793 # -------------------
2794 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2795 # variables for single and double quote escaping we saved from calls
2796 # to _LT_DECL, we can put quote escaped variables declarations
2797 # into `config.status', and then the shell code to quote escape them in
2798 # for loops in `config.status'. Finally, any additional code accumulated
2799 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2800 m4_defun([_LT_CONFIG_COMMANDS],
2801 [AC_PROVIDE_IFELSE([LT_OUTPUT],
2802 dnl If the libtool generation code has been placed in $CONFIG_LT,
2803 dnl instead of duplicating it all over again into config.status,
2804 dnl then we will have config.status run $CONFIG_LT later, so it
2805 dnl needs to know what name is stored there:
2806 [AC_CONFIG_COMMANDS([libtool],
2807 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
2808 dnl If the libtool generation code is destined for config.status,
2809 dnl expand the accumulated commands and init code now:
2810 [AC_CONFIG_COMMANDS([libtool],
2811 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
2812 ])#_LT_CONFIG_COMMANDS
2816 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
2819 # The HP-UX ksh and POSIX shell print the target directory to stdout
2821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2823 sed_quote_subst='$sed_quote_subst'
2824 double_quote_subst='$double_quote_subst'
2825 delay_variable_subst='$delay_variable_subst'
2826 _LT_CONFIG_STATUS_DECLARATIONS
2828 LTCFLAGS='$LTCFLAGS'
2829 compiler='$compiler_DEFAULT'
2831 # Quote evaled strings.
2832 for var in lt_decl_all_varnames([[ \
2833 ]], lt_decl_quote_varnames); do
2834 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
2835 *[[\\\\\\\`\\"\\\$]]*)
2836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
2839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2844 # Double-quote double-evaled strings.
2845 for var in lt_decl_all_varnames([[ \
2846 ]], lt_decl_dquote_varnames); do
2847 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
2848 *[[\\\\\\\`\\"\\\$]]*)
2849 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
2852 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2857 # Fix-up fallback echo if it was mangled by the above quoting rules.
2859 *'\\\[$]0 --fallback-echo"')dnl "
2860 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
2864 _LT_OUTPUT_LIBTOOL_INIT
2870 # This macro allows early generation of the libtool script (before
2871 # AC_OUTPUT is called), incase it is used in configure for compilation
2873 AC_DEFUN([LT_OUTPUT],
2874 [: ${CONFIG_LT=./config.lt}
2875 AC_MSG_NOTICE([creating $CONFIG_LT])
2876 cat >"$CONFIG_LT" <<_LTEOF
2878 # Generated by $as_me.
2879 # Run this file to recreate a libtool stub with the current configuration.
2882 SHELL=\${CONFIG_SHELL-$SHELL}
2885 cat >>"$CONFIG_LT" <<\_LTEOF
2889 exec AS_MESSAGE_FD>&1
2890 exec AS_MESSAGE_LOG_FD>>config.log
2893 AS_BOX([Running $as_me.])
2894 } >&AS_MESSAGE_LOG_FD
2897 \`$as_me' creates a local libtool stub from the current configuration,
2898 for use in further configure time tests before the real libtool is
2901 Usage: $[0] [[OPTIONS]]
2903 -h, --help print this help, then exit
2904 -V, --version print version number, then exit
2905 -q, --quiet do not print progress messages
2906 -d, --debug don't remove temporary files
2908 Report bugs to <bug-libtool@gnu.org>."
2911 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
2912 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2913 configured by $[0], generated by m4_PACKAGE_STRING.
2915 Copyright (C) 2008 Free Software Foundation, Inc.
2916 This config.lt script is free software; the Free Software Foundation
2917 gives unlimited permision to copy, distribute and modify it."
2919 while test $[#] != 0
2922 --version | --v* | -V )
2923 echo "$lt_cl_version"; exit 0 ;;
2924 --help | --h* | -h )
2925 echo "$lt_cl_help"; exit 0 ;;
2926 --debug | --d* | -d )
2928 --quiet | --q* | --silent | --s* | -q )
2931 -*) AC_MSG_ERROR([unrecognized option: $[1]
2932 Try \`$[0] --help' for more information.]) ;;
2934 *) AC_MSG_ERROR([unrecognized argument: $[1]
2935 Try \`$[0] --help' for more information.]) ;;
2940 if $lt_cl_silent; then
2941 exec AS_MESSAGE_FD>/dev/null
2945 cat >>"$CONFIG_LT" <<_LTEOF
2946 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
2949 cat >>"$CONFIG_LT" <<\_LTEOF
2950 AC_MSG_NOTICE([creating $ofile])
2951 _LT_OUTPUT_LIBTOOL_COMMANDS
2954 chmod +x "$CONFIG_LT"
2956 # configure is writing to config.log, but config.lt does its own redirection,
2957 # appending to config.log, which fails on DOS, as config.log is still kept
2958 # open by configure. Here we exec the FD to /dev/null, effectively closing
2959 # config.log, so it can be properly (re)opened and appended to by config.lt.
2960 if test "$no_create" != yes; then
2962 test "$silent" = yes &&
2963 lt_config_lt_args="$lt_config_lt_args --quiet"
2964 exec AS_MESSAGE_LOG_FD>/dev/null
2965 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2966 exec AS_MESSAGE_LOG_FD>>config.log
2967 $lt_cl_success || AS_EXIT(1)
2974 # If TAG is the built-in tag, create an initial libtool script with a
2975 # default configuration from the untagged config vars. Otherwise add code
2976 # to config.status for appending the configuration named by TAG from the
2977 # matching tagged config vars.
2978 m4_defun([_LT_CONFIG],
2979 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2980 _LT_CONFIG_SAVE_COMMANDS([
2981 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
2982 m4_if(_LT_TAG, [C], [
2983 # See if we are running on zsh, and set the options which allow our
2984 # commands through without removal of \ escapes.
2985 if test -n "${ZSH_VERSION+set}" ; then
2986 setopt NO_GLOB_SUBST
2990 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
2993 cat <<_LT_EOF >> "$cfgfile"
2996 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2997 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
2998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2999 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
3004 # ### BEGIN LIBTOOL CONFIG
3005 _LT_LIBTOOL_CONFIG_VARS
3006 _LT_LIBTOOL_TAG_VARS
3007 # ### END LIBTOOL CONFIG
3013 cat <<\_LT_EOF >> "$cfgfile"
3014 # AIX sometimes has problems with the GCC collect2 program. For some
3015 # reason, if we set the COLLECT_NAMES environment variable, the problems
3016 # vanish in a puff of smoke.
3017 if test "X${COLLECT_NAMES+set}" != Xset; then
3019 export COLLECT_NAMES
3027 # We use sed instead of cat because bash on DJGPP gets confused if
3028 # if finds mixed CR/LF and LF-only lines. Since sed operates in
3029 # text mode, it properly converts lines to CR/LF. This bash problem
3030 # is reportedly fixed, but why not run on old versions too?
3031 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
3032 || (rm -f "$cfgfile"; exit 1)
3034 _LT_PROG_XSI_SHELLFNS
3036 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
3037 || (rm -f "$cfgfile"; exit 1)
3039 mv -f "$cfgfile" "$ofile" ||
3040 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
3043 [cat <<_LT_EOF >> "$ofile"
3045 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
3046 dnl in a comment (ie after a #).
3047 # ### BEGIN LIBTOOL TAG CONFIG: $1
3048 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
3049 # ### END LIBTOOL TAG CONFIG: $1
3056 TIMESTAMP='$TIMESTAMP'
3058 ofile='$ofile'], [])
3059 ])dnl /_LT_CONFIG_SAVE_COMMANDS
3063 # LT_SUPPORTED_TAG(TAG)
3064 # ---------------------
3065 # Trace this macro to discover what tags are supported by the libtool
3066 # --tag option, using:
3067 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
3068 AC_DEFUN([LT_SUPPORTED_TAG], [])
3071 # C support is built-in for now
3072 m4_define([_LT_LANG_C_enabled], [])
3073 m4_define([_LT_TAGS], [])
3078 # Enable libtool support for the given language if not already enabled.
3080 [AC_BEFORE([$0], [LT_OUTPUT])dnl
3083 [C++], [_LT_LANG(CXX)],
3084 [Java], [_LT_LANG(GCJ)],
3085 [Fortran 77], [_LT_LANG(F77)],
3086 [Fortran], [_LT_LANG(FC)],
3087 [Windows Resource], [_LT_LANG(RC)],
3088 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
3090 [m4_fatal([$0: unsupported language: "$1"])])])dnl
3094 # _LT_LANG(LANGNAME)
3095 # ------------------
3096 m4_defun([_LT_LANG],
3097 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
3098 [LT_SUPPORTED_TAG([$1])dnl
3099 m4_append([_LT_TAGS], [$1 ])dnl
3100 m4_define([_LT_LANG_]$1[_enabled], [])dnl
3101 _LT_LANG_$1_CONFIG($1)])dnl
3105 # _LT_LANG_DEFAULT_CONFIG
3106 # -----------------------
3107 m4_defun([_LT_LANG_DEFAULT_CONFIG],
3108 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
3110 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
3112 AC_PROVIDE_IFELSE([AC_PROG_F77],
3114 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
3116 AC_PROVIDE_IFELSE([AC_PROG_FC],
3118 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
3120 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
3121 dnl pulling things in needlessly.
3122 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
3124 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
3126 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
3128 [m4_ifdef([AC_PROG_GCJ],
3129 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
3130 m4_ifdef([A][M_PROG_GCJ],
3131 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
3132 m4_ifdef([LT_PROG_GCJ],
3133 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
3135 AC_PROVIDE_IFELSE([LT_PROG_RC],
3137 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
3138 ])# _LT_LANG_DEFAULT_CONFIG
3141 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
3142 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
3143 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
3144 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
3145 dnl aclocal-1.4 backwards compatibility:
3146 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
3147 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
3148 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
3149 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
3154 m4_defun([_LT_TAG_COMPILER],
3155 [AC_REQUIRE([AC_PROG_CC])dnl
3157 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
3158 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
3159 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
3160 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
3162 # If no C compiler was specified, use CC.
3165 # If no C compiler flags were specified, use CFLAGS.
3166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3168 # Allow CC to be a program name with arguments.
3170 ])# _LT_TAG_COMPILER
3173 # _LT_COMPILER_BOILERPLATE
3174 # ------------------------
3175 # Check for compiler boilerplate output or warnings with
3176 # the simple compiler test code.
3177 m4_defun([_LT_COMPILER_BOILERPLATE],
3178 [m4_require([_LT_DECL_SED])dnl
3179 ac_outfile=conftest.$ac_objext
3180 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
3181 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3182 _lt_compiler_boilerplate=`cat conftest.err`
3184 ])# _LT_COMPILER_BOILERPLATE
3187 # _LT_LINKER_BOILERPLATE
3188 # ----------------------
3189 # Check for linker boilerplate output or warnings with
3190 # the simple link test code.
3191 m4_defun([_LT_LINKER_BOILERPLATE],
3192 [m4_require([_LT_DECL_SED])dnl
3193 ac_outfile=conftest.$ac_objext
3194 echo "$lt_simple_link_test_code" >conftest.$ac_ext
3195 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3196 _lt_linker_boilerplate=`cat conftest.err`
3198 ])# _LT_LINKER_BOILERPLATE
3200 # _LT_REQUIRED_DARWIN_CHECKS
3201 # -------------------------
3202 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
3204 rhapsody* | darwin*)
3205 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
3206 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
3207 AC_CHECK_TOOL([LIPO], [lipo], [:])
3208 AC_CHECK_TOOL([OTOOL], [otool], [:])
3209 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
3210 _LT_DECL([], [DSYMUTIL], [1],
3211 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
3212 _LT_DECL([], [NMEDIT], [1],
3213 [Tool to change global to local symbols on Mac OS X])
3214 _LT_DECL([], [LIPO], [1],
3215 [Tool to manipulate fat objects and archives on Mac OS X])
3216 _LT_DECL([], [OTOOL], [1],
3217 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
3218 _LT_DECL([], [OTOOL64], [1],
3219 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
3221 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
3222 [lt_cv_apple_cc_single_mod=no
3223 if test -z "${LT_MULTI_MODULE}"; then
3224 # By default we will add the -single_module flag. You can override
3225 # by either setting the environment variable LT_MULTI_MODULE
3226 # non-empty at configure time, or by adding -multi_module to the
3228 rm -rf libconftest.dylib*
3229 echo "int foo(void){return 1;}" > conftest.c
3230 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
3231 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
3232 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
3233 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
3235 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
3236 lt_cv_apple_cc_single_mod=yes
3238 cat conftest.err >&AS_MESSAGE_LOG_FD
3240 rm -rf libconftest.dylib*
3243 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
3244 [lt_cv_ld_exported_symbols_list],
3245 [lt_cv_ld_exported_symbols_list=no
3246 save_LDFLAGS=$LDFLAGS
3247 echo "_main" > conftest.sym
3248 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
3249 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3250 [lt_cv_ld_exported_symbols_list=yes],
3251 [lt_cv_ld_exported_symbols_list=no])
3252 LDFLAGS="$save_LDFLAGS"
3255 rhapsody* | darwin1.[[012]])
3256 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
3258 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
3259 darwin*) # darwin 5.x on
3260 # if running on 10.5 or later, the deployment target defaults
3261 # to the OS version, if on x86, and 10.4, the deployment
3262 # target defaults to 10.4. Don't you love it?
3263 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
3264 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
3265 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
3267 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
3269 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
3273 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
3274 _lt_dar_single_mod='$single_module'
3276 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
3277 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
3279 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
3281 if test "$DSYMUTIL" != ":"; then
3282 _lt_dsymutil='~$DSYMUTIL $lib || :'
3291 # _LT_DARWIN_LINKER_FEATURES
3292 # --------------------------
3293 # Checks for linker and compiler features on darwin
3294 m4_defun([_LT_DARWIN_LINKER_FEATURES],
3296 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
3297 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
3298 _LT_TAGVAR(hardcode_direct, $1)=no
3299 _LT_TAGVAR(hardcode_automatic, $1)=yes
3300 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3301 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
3302 _LT_TAGVAR(link_all_deplibs, $1)=yes
3303 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3304 case $cc_basename in
3305 ifort*) _lt_dar_can_shared=yes ;;
3306 *) _lt_dar_can_shared=$GCC ;;
3308 if test "$_lt_dar_can_shared" = "yes"; then
3309 output_verbose_link_cmd=echo
3310 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3311 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3312 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3313 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3315 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3316 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3317 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3321 _LT_TAGVAR(ld_shlibs, $1)=no
3325 # _LT_SYS_MODULE_PATH_AIX
3326 # -----------------------
3327 # Links a minimal program and checks the executable
3328 # for the system default hardcoded library path. In most cases,
3329 # this is /usr/lib:/lib, but when the MPI compilers are used
3330 # the location of the communication and MPI libs are included too.
3331 # If we don't find anything, use the default library path according
3332 # to the aix ld manual.
3333 m4_defun([_LT_SYS_MODULE_PATH_AIX],
3334 [m4_require([_LT_DECL_SED])dnl
3335 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
3336 lt_aix_libpath_sed='
3337 /Import File Strings/,/^$/ {
3343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3344 # Check for a 64-bit object if we didn't find anything.
3345 if test -z "$aix_libpath"; then
3346 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3349 ])# _LT_SYS_MODULE_PATH_AIX
3352 # _LT_SHELL_INIT(ARG)
3353 # -------------------
3354 m4_define([_LT_SHELL_INIT],
3355 [ifdef([AC_DIVERSION_NOTICE],
3356 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3357 [AC_DIVERT_PUSH(NOTICE)])
3363 # _LT_PROG_ECHO_BACKSLASH
3364 # -----------------------
3365 # Add some code to the start of the generated configure script which
3366 # will find an echo command which doesn't interpret backslashes.
3367 m4_defun([_LT_PROG_ECHO_BACKSLASH],
3369 # Check that we are running under the correct shell.
3370 SHELL=${CONFIG_SHELL-/bin/sh}
3374 # Remove one level of quotation (which was required for Make).
3375 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3379 ECHO=${lt_ECHO-echo}
3380 if test "X[$]1" = X--no-reexec; then
3381 # Discard the --no-reexec flag, and continue.
3383 elif test "X[$]1" = X--fallback-echo; then
3384 # Avoid inline document here, it may be left over
3386 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
3387 # Yippee, $ECHO works!
3390 # Restart under the correct shell.
3391 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
3394 if test "X[$]1" = X--fallback-echo; then
3395 # used as fallback echo
3403 # The HP-UX ksh and POSIX shell print the target directory to stdout
3405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3407 if test -z "$lt_ECHO"; then
3408 if test "X${echo_test_string+set}" != Xset; then
3409 # find a string as large as possible, as long as the shell can cope with it
3410 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
3411 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3412 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
3413 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
3420 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3421 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3422 test "X$echo_testing_string" = "X$echo_test_string"; then
3425 # The Solaris, AIX, and Digital Unix default echo programs unquote
3426 # backslashes. This makes it impossible to quote backslashes using
3427 # echo "$something" | sed 's/\\/\\\\/g'
3429 # So, first we look for a working echo in the user's PATH.
3431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3432 for dir in $PATH /usr/ucb; do
3434 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3435 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3436 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
3437 test "X$echo_testing_string" = "X$echo_test_string"; then
3444 if test "X$ECHO" = Xecho; then
3445 # We didn't find a better echo, so look for alternatives.
3446 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
3447 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
3448 test "X$echo_testing_string" = "X$echo_test_string"; then
3449 # This shell has a builtin print -r that does the trick.
3451 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
3452 test "X$CONFIG_SHELL" != X/bin/ksh; then
3453 # If we have ksh, try running configure again with it.
3454 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3455 export ORIGINAL_CONFIG_SHELL
3456 CONFIG_SHELL=/bin/ksh
3458 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
3462 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3463 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3464 test "X$echo_testing_string" = "X$echo_test_string"; then
3465 # Cool, printf works
3467 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3468 test "X$echo_testing_string" = 'X\t' &&
3469 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3470 test "X$echo_testing_string" = "X$echo_test_string"; then
3471 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3473 SHELL="$CONFIG_SHELL"
3475 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3476 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3477 test "X$echo_testing_string" = 'X\t' &&
3478 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3479 test "X$echo_testing_string" = "X$echo_test_string"; then
3480 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3482 # maybe with a smaller string...
3485 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
3486 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
3493 if test "$prev" != 'sed 50q "[$]0"'; then
3494 echo_test_string=`eval $prev`
3495 export echo_test_string
3496 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
3498 # Oops. We lost completely, so just stick with echo.
3507 # Copy echo and quote the copy suitably for passing to libtool from
3508 # the Makefile, instead of quoting the original, which is used later.
3510 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3511 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3516 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
3517 _LT_DECL([], [ECHO], [1],
3518 [An echo program that does not interpret backslashes])
3519 ])# _LT_PROG_ECHO_BACKSLASH
3524 m4_defun([_LT_ENABLE_LOCK],
3525 [AC_ARG_ENABLE([libtool-lock],
3526 [AS_HELP_STRING([--disable-libtool-lock],
3527 [avoid locking (might break parallel builds)])])
3528 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3530 # Some flags need to be propagated to the compiler or linker for good
3534 # Find out which ABI we are using.
3535 echo 'int i;' > conftest.$ac_ext
3536 if AC_TRY_EVAL(ac_compile); then
3537 case `/usr/bin/file conftest.$ac_objext` in
3549 # Find out which ABI we are using.
3550 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3551 if AC_TRY_EVAL(ac_compile); then
3552 if test "$lt_cv_prog_gnu_ld" = yes; then
3553 case `/usr/bin/file conftest.$ac_objext` in
3555 LD="${LD-ld} -melf32bsmip"
3558 LD="${LD-ld} -melf32bmipn32"
3561 LD="${LD-ld} -melf64bmip"
3565 case `/usr/bin/file conftest.$ac_objext` in
3581 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3582 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
3583 # Find out which ABI we are using.
3584 echo 'int i;' > conftest.$ac_ext
3585 if AC_TRY_EVAL(ac_compile); then
3586 case `/usr/bin/file conftest.o` in
3589 x86_64-*kfreebsd*-gnu)
3590 LD="${LD-ld} -m elf_i386_fbsd"
3593 LD="${LD-ld} -m elf_i386"
3595 ppc64-*linux*|powerpc64-*linux*)
3596 LD="${LD-ld} -m elf32ppclinux"
3599 LD="${LD-ld} -m elf_s390"
3602 LD="${LD-ld} -m elf32_sparc"
3608 x86_64-*kfreebsd*-gnu)
3609 LD="${LD-ld} -m elf_x86_64_fbsd"
3612 LD="${LD-ld} -m elf_x86_64"
3614 ppc*-*linux*|powerpc*-*linux*)
3615 LD="${LD-ld} -m elf64ppc"
3617 s390*-*linux*|s390*-*tpf*)
3618 LD="${LD-ld} -m elf64_s390"
3621 LD="${LD-ld} -m elf64_sparc"
3631 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3632 SAVE_CFLAGS="$CFLAGS"
3633 CFLAGS="$CFLAGS -belf"
3634 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3636 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3640 CFLAGS="$SAVE_CFLAGS"
3644 # Find out which ABI we are using.
3645 echo 'int i;' > conftest.$ac_ext
3646 if AC_TRY_EVAL(ac_compile); then
3647 case `/usr/bin/file conftest.o` in
3649 case $lt_cv_prog_gnu_ld in
3650 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3652 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3664 need_locks="$enable_libtool_lock"
3668 # _LT_CMD_OLD_ARCHIVE
3669 # -------------------
3670 m4_defun([_LT_CMD_OLD_ARCHIVE],
3671 [AC_CHECK_TOOL(AR, ar, false)
3672 test -z "$AR" && AR=ar
3673 test -z "$AR_FLAGS" && AR_FLAGS=cru
3674 _LT_DECL([], [AR], [1], [The archiver])
3675 _LT_DECL([], [AR_FLAGS], [1])
3677 AC_CHECK_TOOL(STRIP, strip, :)
3678 test -z "$STRIP" && STRIP=:
3679 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
3681 AC_CHECK_TOOL(RANLIB, ranlib, :)
3682 test -z "$RANLIB" && RANLIB=:
3683 _LT_DECL([], [RANLIB], [1],
3684 [Commands used to install an old-style archive])
3686 # Determine commands to create old-style static archives.
3687 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
3688 old_postinstall_cmds='chmod 644 $oldlib'
3689 old_postuninstall_cmds=
3691 if test -n "$RANLIB"; then
3694 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
3697 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
3700 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3702 _LT_DECL([], [old_postinstall_cmds], [2])
3703 _LT_DECL([], [old_postuninstall_cmds], [2])
3704 _LT_TAGDECL([], [old_archive_cmds], [2],
3705 [Commands used to build an old-style archive])
3706 ])# _LT_CMD_OLD_ARCHIVE
3709 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3710 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3711 # ----------------------------------------------------------------
3712 # Check whether the given compiler option works
3713 AC_DEFUN([_LT_COMPILER_OPTION],
3714 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3715 m4_require([_LT_DECL_SED])dnl
3716 AC_CACHE_CHECK([$1], [$2],
3718 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3720 lt_compiler_flag="$3"
3721 # Insert the option either (1) after the last *FLAGS variable, or
3722 # (2) before a word containing "conftest.", or (3) at the end.
3723 # Note that $ac_compile itself does not contain backslashes and begins
3724 # with a dollar sign (not a hyphen), so the echo should work correctly.
3725 # The option is referenced via a variable to avoid confusing sed.
3726 lt_compile=`echo "$ac_compile" | $SED \
3727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3728 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3729 -e 's:$: $lt_compiler_flag:'`
3730 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3731 (eval "$lt_compile" 2>conftest.err)
3733 cat conftest.err >&AS_MESSAGE_LOG_FD
3734 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3735 if (exit $ac_status) && test -s "$ac_outfile"; then
3736 # The compiler can only warn and ignore the option if not recognized
3737 # So say no if there are warnings other than the usual output.
3738 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
3739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3747 if test x"[$]$2" = xyes; then
3748 m4_if([$5], , :, [$5])
3750 m4_if([$6], , :, [$6])
3752 ])# _LT_COMPILER_OPTION
3755 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
3756 dnl aclocal-1.4 backwards compatibility:
3757 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
3760 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3761 # [ACTION-SUCCESS], [ACTION-FAILURE])
3762 # ----------------------------------------------------
3763 # Check whether the given linker option works
3764 AC_DEFUN([_LT_LINKER_OPTION],
3765 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3766 m4_require([_LT_DECL_SED])dnl
3767 AC_CACHE_CHECK([$1], [$2],
3769 save_LDFLAGS="$LDFLAGS"
3770 LDFLAGS="$LDFLAGS $3"
3771 echo "$lt_simple_link_test_code" > conftest.$ac_ext
3772 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3773 # The linker can only warn and ignore the option if not recognized
3774 # So say no if there are warnings
3775 if test -s conftest.err; then
3776 # Append any errors to the config.log.
3777 cat conftest.err 1>&AS_MESSAGE_LOG_FD
3778 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
3779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3780 if diff conftest.exp conftest.er2 >/dev/null; then
3788 LDFLAGS="$save_LDFLAGS"
3791 if test x"[$]$2" = xyes; then
3792 m4_if([$4], , :, [$4])
3794 m4_if([$5], , :, [$5])
3796 ])# _LT_LINKER_OPTION
3799 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
3800 dnl aclocal-1.4 backwards compatibility:
3801 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
3806 AC_DEFUN([LT_CMD_MAX_LEN],
3807 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3808 # find the maximum length of command line arguments
3809 AC_MSG_CHECKING([the maximum length of command line arguments])
3810 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3816 # On DJGPP, this test can blow up pretty badly due to problems in libc
3817 # (any single argument exceeding 2000 bytes causes a buffer overrun
3818 # during glob expansion). Even if it were fixed, the result of this
3819 # check would be larger than it should be.
3820 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3824 # Under GNU Hurd, this test is not required because there is
3825 # no limit to the length of command line arguments.
3826 # Libtool will interpret -1 as no limit whatsoever
3827 lt_cv_sys_max_cmd_len=-1;
3830 cygwin* | mingw* | cegcc*)
3831 # On Win9x/ME, this test blows up -- it succeeds, but takes
3832 # about 5 minutes as the teststring grows exponentially.
3833 # Worse, since 9x/ME are not pre-emptively multitasking,
3834 # you end up with a "frozen" computer, even though with patience
3835 # the test eventually succeeds (with a max line length of 256k).
3836 # Instead, let's just punt: use the minimum linelength reported by
3837 # all of the supported platforms: 8192 (on NT/2K/XP).
3838 lt_cv_sys_max_cmd_len=8192;
3842 # On AmigaOS with pdksh, this test takes hours, literally.
3843 # So we just punt and use a minimum line length of 8192.
3844 lt_cv_sys_max_cmd_len=8192;
3847 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3848 # This has been around since 386BSD, at least. Likely further.
3849 if test -x /sbin/sysctl; then
3850 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3851 elif test -x /usr/sbin/sysctl; then
3852 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3854 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3856 # And add a safety zone
3857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3862 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3863 lt_cv_sys_max_cmd_len=196608
3867 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3868 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3869 # nice to cause kernel panics so lets avoid the loop below.
3870 # First set a reasonable default.
3871 lt_cv_sys_max_cmd_len=16384
3873 if test -x /sbin/sysconfig; then
3874 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3875 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3880 lt_cv_sys_max_cmd_len=102400
3882 sysv5* | sco5v6* | sysv4.2uw2*)
3883 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3884 if test -n "$kargmax"; then
3885 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
3887 lt_cv_sys_max_cmd_len=32768
3891 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3892 if test -n "$lt_cv_sys_max_cmd_len"; then
3893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3896 # Make teststring a little bigger before we do anything with it.
3897 # a 1K string should be a reasonable start.
3898 for i in 1 2 3 4 5 6 7 8 ; do
3899 teststring=$teststring$teststring
3901 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3902 # If test is not a shell built-in, we'll probably end up computing a
3903 # maximum length that is only half of the actual maximum length, but
3905 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3906 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3907 test $i != 17 # 1/2 MB should be enough
3910 teststring=$teststring$teststring
3912 # Only check the string length outside the loop.
3913 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3915 # Add a significant safety factor because C++ compilers can tack on
3916 # massive amounts of additional arguments before passing them to the
3917 # linker. It appears as though 1/2 is a usable value.
3918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3923 if test -n $lt_cv_sys_max_cmd_len ; then
3924 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
3928 max_cmd_len=$lt_cv_sys_max_cmd_len
3929 _LT_DECL([], [max_cmd_len], [0],
3930 [What is the maximum length of a command?])
3934 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
3935 dnl aclocal-1.4 backwards compatibility:
3936 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
3941 m4_defun([_LT_HEADER_DLFCN],
3942 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
3943 ])# _LT_HEADER_DLFCN
3946 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3947 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3948 # ----------------------------------------------------------------
3949 m4_defun([_LT_TRY_DLOPEN_SELF],
3950 [m4_require([_LT_HEADER_DLFCN])dnl
3951 if test "$cross_compiling" = yes; then :
3954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3955 lt_status=$lt_dlunknown
3956 cat > conftest.$ac_ext <<_LT_EOF
3957 [#line __oline__ "configure"
3958 #include "confdefs.h"
3967 # define LT_DLGLOBAL RTLD_GLOBAL
3970 # define LT_DLGLOBAL DL_GLOBAL
3972 # define LT_DLGLOBAL 0
3976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3977 find out it does not work in some platform. */
3978 #ifndef LT_DLLAZY_OR_NOW
3980 # define LT_DLLAZY_OR_NOW RTLD_LAZY
3983 # define LT_DLLAZY_OR_NOW DL_LAZY
3986 # define LT_DLLAZY_OR_NOW RTLD_NOW
3989 # define LT_DLLAZY_OR_NOW DL_NOW
3991 # define LT_DLLAZY_OR_NOW 0
3998 void fnord() { int i=42;}
4001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4002 int status = $lt_dlunknown;
4006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4007 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4008 /* dlclose (self); */
4016 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
4017 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
4020 x$lt_dlno_uscore) $1 ;;
4021 x$lt_dlneed_uscore) $2 ;;
4022 x$lt_dlunknown|x*) $3 ;;
4025 # compilation failed
4030 ])# _LT_TRY_DLOPEN_SELF
4033 # LT_SYS_DLOPEN_SELF
4034 # ------------------
4035 AC_DEFUN([LT_SYS_DLOPEN_SELF],
4036 [m4_require([_LT_HEADER_DLFCN])dnl
4037 if test "x$enable_dlopen" != xyes; then
4038 enable_dlopen=unknown
4039 enable_dlopen_self=unknown
4040 enable_dlopen_self_static=unknown
4047 lt_cv_dlopen="load_add_on"
4049 lt_cv_dlopen_self=yes
4052 mingw* | pw32* | cegcc*)
4053 lt_cv_dlopen="LoadLibrary"
4058 lt_cv_dlopen="dlopen"
4063 # if libdl is installed we need to link against it
4064 AC_CHECK_LIB([dl], [dlopen],
4065 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
4068 lt_cv_dlopen_self=yes
4073 AC_CHECK_FUNC([shl_load],
4074 [lt_cv_dlopen="shl_load"],
4075 [AC_CHECK_LIB([dld], [shl_load],
4076 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
4077 [AC_CHECK_FUNC([dlopen],
4078 [lt_cv_dlopen="dlopen"],
4079 [AC_CHECK_LIB([dl], [dlopen],
4080 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
4081 [AC_CHECK_LIB([svld], [dlopen],
4082 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
4083 [AC_CHECK_LIB([dld], [dld_link],
4084 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
4093 if test "x$lt_cv_dlopen" != xno; then
4099 case $lt_cv_dlopen in
4101 save_CPPFLAGS="$CPPFLAGS"
4102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4104 save_LDFLAGS="$LDFLAGS"
4105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4108 LIBS="$lt_cv_dlopen_libs $LIBS"
4110 AC_CACHE_CHECK([whether a program can dlopen itself],
4111 lt_cv_dlopen_self, [dnl
4112 _LT_TRY_DLOPEN_SELF(
4113 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
4114 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
4117 if test "x$lt_cv_dlopen_self" = xyes; then
4118 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
4119 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
4120 lt_cv_dlopen_self_static, [dnl
4121 _LT_TRY_DLOPEN_SELF(
4122 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
4123 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
4127 CPPFLAGS="$save_CPPFLAGS"
4128 LDFLAGS="$save_LDFLAGS"
4133 case $lt_cv_dlopen_self in
4134 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4135 *) enable_dlopen_self=unknown ;;
4138 case $lt_cv_dlopen_self_static in
4139 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4140 *) enable_dlopen_self_static=unknown ;;
4143 _LT_DECL([dlopen_support], [enable_dlopen], [0],
4144 [Whether dlopen is supported])
4145 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
4146 [Whether dlopen of programs is supported])
4147 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
4148 [Whether dlopen of statically linked programs is supported])
4149 ])# LT_SYS_DLOPEN_SELF
4152 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
4153 dnl aclocal-1.4 backwards compatibility:
4154 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
4157 # _LT_COMPILER_C_O([TAGNAME])
4158 # ---------------------------
4159 # Check to see if options -c and -o are simultaneously supported by compiler.
4160 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
4161 m4_defun([_LT_COMPILER_C_O],
4162 [m4_require([_LT_DECL_SED])dnl
4163 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4164 m4_require([_LT_TAG_COMPILER])dnl
4165 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
4166 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
4167 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
4168 $RM -r conftest 2>/dev/null
4172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4174 lt_compiler_flag="-o out/conftest2.$ac_objext"
4175 # Insert the option either (1) after the last *FLAGS variable, or
4176 # (2) before a word containing "conftest.", or (3) at the end.
4177 # Note that $ac_compile itself does not contain backslashes and begins
4178 # with a dollar sign (not a hyphen), so the echo should work correctly.
4179 lt_compile=`echo "$ac_compile" | $SED \
4180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4181 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
4182 -e 's:$: $lt_compiler_flag:'`
4183 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
4184 (eval "$lt_compile" 2>out/conftest.err)
4186 cat out/conftest.err >&AS_MESSAGE_LOG_FD
4187 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
4188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
4190 # The compiler can only warn and ignore the option if not recognized
4191 # So say no if there are warnings
4192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
4193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
4194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
4195 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4198 chmod u+w . 2>&AS_MESSAGE_LOG_FD
4200 # SGI C++ compiler will create directory out/ii_files/ for
4201 # template instantiation
4202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
4203 $RM out/* && rmdir out
4208 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
4209 [Does compiler simultaneously support -c and -o options?])
4210 ])# _LT_COMPILER_C_O
4213 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
4214 # ----------------------------------
4215 # Check to see if we can do hard links to lock some files if needed
4216 m4_defun([_LT_COMPILER_FILE_LOCKS],
4217 [m4_require([_LT_ENABLE_LOCK])dnl
4218 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4219 _LT_COMPILER_C_O([$1])
4221 hard_links="nottested"
4222 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
4223 # do not overwrite the value of need_locks provided by the user
4224 AC_MSG_CHECKING([if we can lock with hard links])
4227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4229 ln conftest.a conftest.b 2>&5 || hard_links=no
4230 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4231 AC_MSG_RESULT([$hard_links])
4232 if test "$hard_links" = no; then
4233 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
4239 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
4240 ])# _LT_COMPILER_FILE_LOCKS
4245 m4_defun([_LT_CHECK_OBJDIR],
4246 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
4247 [rm -f .libs 2>/dev/null
4248 mkdir .libs 2>/dev/null
4249 if test -d .libs; then
4252 # MS-DOS does not allow filenames that begin with a dot.
4255 rmdir .libs 2>/dev/null])
4256 objdir=$lt_cv_objdir
4257 _LT_DECL([], [objdir], [0],
4258 [The name of the directory that contains temporary libtool files])dnl
4259 m4_pattern_allow([LT_OBJDIR])dnl
4260 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
4261 [Define to the sub-directory in which libtool stores uninstalled libraries.])
4262 ])# _LT_CHECK_OBJDIR
4265 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
4266 # --------------------------------------
4267 # Check hardcoding attributes.
4268 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
4269 [AC_MSG_CHECKING([how to hardcode library paths into programs])
4270 _LT_TAGVAR(hardcode_action, $1)=
4271 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
4272 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
4273 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
4275 # We can hardcode non-existent directories.
4276 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
4277 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4278 # have to relink, otherwise we might link with an installed library
4279 # when we should be linking with a yet-to-be-installed one
4280 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
4281 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
4282 # Linking always hardcodes the temporary library directory.
4283 _LT_TAGVAR(hardcode_action, $1)=relink
4285 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4286 _LT_TAGVAR(hardcode_action, $1)=immediate
4289 # We cannot hardcode anything, or else we can only hardcode existing
4291 _LT_TAGVAR(hardcode_action, $1)=unsupported
4293 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
4295 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
4296 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
4297 # Fast installation is not supported
4298 enable_fast_install=no
4299 elif test "$shlibpath_overrides_runpath" = yes ||
4300 test "$enable_shared" = no; then
4301 # Fast installation is not necessary
4302 enable_fast_install=needless
4304 _LT_TAGDECL([], [hardcode_action], [0],
4305 [How to hardcode a shared library path into an executable])
4306 ])# _LT_LINKER_HARDCODE_LIBPATH
4311 m4_defun([_LT_CMD_STRIPLIB],
4312 [m4_require([_LT_DECL_EGREP])
4315 AC_MSG_CHECKING([whether stripping libraries is possible])
4316 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
4317 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4318 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4319 AC_MSG_RESULT([yes])
4321 # FIXME - insert some real tests, host_os isn't really good enough
4324 if test -n "$STRIP" ; then
4325 striplib="$STRIP -x"
4326 old_striplib="$STRIP -S"
4327 AC_MSG_RESULT([yes])
4337 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
4338 _LT_DECL([], [striplib], [1])
4339 ])# _LT_CMD_STRIPLIB
4342 # _LT_SYS_DYNAMIC_LINKER([TAG])
4343 # -----------------------------
4344 # PORTME Fill in your ld.so characteristics
4345 m4_defun([_LT_SYS_DYNAMIC_LINKER],
4346 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4347 m4_require([_LT_DECL_EGREP])dnl
4348 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4349 m4_require([_LT_DECL_OBJDUMP])dnl
4350 m4_require([_LT_DECL_SED])dnl
4351 AC_MSG_CHECKING([dynamic linker characteristics])
4354 if test "$GCC" = yes; then
4356 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4357 *) lt_awk_arg="/^libraries:/" ;;
4359 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4360 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
4361 # if the path contains ";" then we assume it to be the separator
4362 # otherwise default to the standard path separator (i.e. ":") - it is
4363 # assumed that no part of a normal pathname contains ";" but that should
4364 # okay in the real world where ";" in dirpaths is itself problematic.
4365 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4367 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4369 # Ok, now we have the path, separated by spaces, we can step through it
4370 # and add multilib dir if necessary.
4371 lt_tmp_lt_search_path_spec=
4372 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4373 for lt_sys_path in $lt_search_path_spec; do
4374 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
4375 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
4377 test -d "$lt_sys_path" && \
4378 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
4381 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
4382 BEGIN {RS=" "; FS="/|\n";} {
4385 for (lt_i = NF; lt_i > 0; lt_i--) {
4386 if ($lt_i != "" && $lt_i != ".") {
4387 if ($lt_i == "..") {
4390 if (lt_count == 0) {
4391 lt_foo="/" $lt_i lt_foo;
4398 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4399 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4401 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
4403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4406 libname_spec='lib$name'
4414 shlibpath_overrides_runpath=unknown
4416 dynamic_linker="$host_os ld.so"
4417 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4418 need_lib_prefix=unknown
4419 hardcode_into_libs=no
4421 # when you set need_version to no, make sure it does not cause -set_version
4422 # flags to be left without arguments
4423 need_version=unknown
4428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4429 shlibpath_var=LIBPATH
4431 # AIX 3 has no versioning support, so we append a major version to the name.
4432 soname_spec='${libname}${release}${shared_ext}$major'
4439 hardcode_into_libs=yes
4440 if test "$host_cpu" = ia64; then
4441 # AIX 5 supports IA64
4442 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4443 shlibpath_var=LD_LIBRARY_PATH
4445 # With GCC up to 2.95.x, collect2 would create an import file
4446 # for dependence libraries. The import file would start with
4447 # the line `#! .'. This would cause the generated library to
4448 # depend on `.', always an invalid library. This was fixed in
4449 # development snapshots of GCC prior to 3.0.
4451 aix4 | aix4.[[01]] | aix4.[[01]].*)
4452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4454 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
4461 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4462 # soname into executable. Probably we can add versioning support to
4463 # collect2, so additional links can be useful in future.
4464 if test "$aix_use_runtimelinking" = yes; then
4465 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4466 # instead of lib<name>.a to let people know that these are not
4467 # typical AIX shared libraries.
4468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4470 # We preserve .a as extension for shared libraries through AIX4.2
4471 # and later when we are not doing run time linking.
4472 library_names_spec='${libname}${release}.a $libname.a'
4473 soname_spec='${libname}${release}${shared_ext}$major'
4475 shlibpath_var=LIBPATH
4482 # Since July 2007 AmigaOS4 officially supports .so libraries.
4483 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
4484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4487 library_names_spec='$libname.ixlibrary $libname.a'
4488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4489 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'
4495 library_names_spec='${libname}${shared_ext}'
4496 dynamic_linker="$host_os ld.so"
4497 shlibpath_var=LIBRARY_PATH
4503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4504 soname_spec='${libname}${release}${shared_ext}$major'
4505 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4506 shlibpath_var=LD_LIBRARY_PATH
4507 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4508 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4509 # the default ld.so.conf also contains /usr/contrib/lib and
4510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4511 # libtool to hard-code these into programs
4514 cygwin* | mingw* | pw32* | cegcc*)
4515 version_type=windows
4520 case $GCC,$host_os in
4521 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
4522 library_names_spec='$libname.dll.a'
4523 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4524 postinstall_cmds='base_file=`basename \${file}`~
4525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4526 dldir=$destdir/`dirname \$dlpath`~
4527 test -d \$dldir || mkdir -p \$dldir~
4528 $install_prog $dir/$dlname \$dldir/$dlname~
4529 chmod a+x \$dldir/$dlname~
4530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4534 dlpath=$dir/\$dldll~
4536 shlibpath_overrides_runpath=yes
4540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4541 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4542 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4545 # MinGW DLLs use traditional 'lib' prefix
4546 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4547 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4548 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4549 # It is most probably a Windows format PATH printed by
4550 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4551 # path with ; separators, and with drive letters. We can handle the
4552 # drive letters (cygwin fileutils understands them), so leave them,
4553 # especially as we might pass files found there to a mingw objdump,
4554 # which wouldn't understand a cygwinified path. Ahh.
4555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4561 # pw32 DLLs use 'pw' prefix rather than 'lib'
4562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4568 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4571 dynamic_linker='Win32 ld.exe'
4572 # FIXME: first we should search . and the directory the executable is in
4576 darwin* | rhapsody*)
4577 dynamic_linker="$host_os dyld"
4581 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4582 soname_spec='${libname}${release}${major}$shared_ext'
4583 shlibpath_overrides_runpath=yes
4584 shlibpath_var=DYLD_LIBRARY_PATH
4585 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4587 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
4588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4596 soname_spec='${libname}${release}${shared_ext}$major'
4597 shlibpath_var=LD_LIBRARY_PATH
4604 freebsd* | dragonfly*)
4605 # DragonFly does not have aout. When/if they implement a new
4606 # versioning mechanism, adjust this.
4607 if test -x /usr/bin/objformat; then
4608 objformat=`/usr/bin/objformat`
4611 freebsd[[123]]*) objformat=aout ;;
4615 version_type=freebsd-$objformat
4616 case $version_type in
4618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4627 shlibpath_var=LD_LIBRARY_PATH
4630 shlibpath_overrides_runpath=yes
4632 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4633 shlibpath_overrides_runpath=yes
4634 hardcode_into_libs=yes
4636 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4637 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4638 shlibpath_overrides_runpath=no
4639 hardcode_into_libs=yes
4641 *) # from 4.6 on, and DragonFly
4642 shlibpath_overrides_runpath=yes
4643 hardcode_into_libs=yes
4652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4653 soname_spec='${libname}${release}${shared_ext}$major'
4654 shlibpath_var=LD_LIBRARY_PATH
4655 hardcode_into_libs=yes
4658 hpux9* | hpux10* | hpux11*)
4659 # Give a soname corresponding to the major version so that dld.sl refuses to
4660 # link against other versions.
4667 hardcode_into_libs=yes
4668 dynamic_linker="$host_os dld.so"
4669 shlibpath_var=LD_LIBRARY_PATH
4670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4672 soname_spec='${libname}${release}${shared_ext}$major'
4673 if test "X$HPUX_IA64_MODE" = X32; then
4674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4682 hardcode_into_libs=yes
4683 dynamic_linker="$host_os dld.sl"
4684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4687 soname_spec='${libname}${release}${shared_ext}$major'
4688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4693 dynamic_linker="$host_os dld.sl"
4694 shlibpath_var=SHLIB_PATH
4695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4697 soname_spec='${libname}${release}${shared_ext}$major'
4700 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4701 postinstall_cmds='chmod 555 $lib'
4708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4709 soname_spec='${libname}${release}${shared_ext}$major'
4710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4711 shlibpath_var=LD_LIBRARY_PATH
4712 shlibpath_overrides_runpath=no
4713 hardcode_into_libs=yes
4716 irix5* | irix6* | nonstopux*)
4718 nonstopux*) version_type=nonstopux ;;
4720 if test "$lt_cv_prog_gnu_ld" = yes; then
4728 soname_spec='${libname}${release}${shared_ext}$major'
4729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4731 irix5* | nonstopux*)
4735 case $LD in # libtool.m4 will add one of these switches to LD
4736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4737 libsuff= shlibsuff= libmagic=32-bit;;
4738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4739 libsuff=32 shlibsuff=N32 libmagic=N32;;
4740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4741 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4742 *) libsuff= shlibsuff= libmagic=never-match;;
4746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4747 shlibpath_overrides_runpath=no
4748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4750 hardcode_into_libs=yes
4753 # No shared lib support for Linux oldld, aout, or coff.
4754 linux*oldld* | linux*aout* | linux*coff*)
4758 # This must be Linux ELF.
4759 linux* | k*bsd*-gnu)
4763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4764 soname_spec='${libname}${release}${shared_ext}$major'
4765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4766 shlibpath_var=LD_LIBRARY_PATH
4767 shlibpath_overrides_runpath=no
4768 # Some binutils ld are patched to set DT_RUNPATH
4769 save_LDFLAGS=$LDFLAGS
4771 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4772 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4773 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4774 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4775 [shlibpath_overrides_runpath=yes])])
4776 LDFLAGS=$save_LDFLAGS
4779 # This implies no fast_install, which is unacceptable.
4780 # Some rework will be needed to allow for fast_install
4781 # before this can be enabled.
4782 hardcode_into_libs=yes
4784 # Append ld.so.conf contents to the search path
4785 if test -f /etc/ld.so.conf; then
4786 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
4787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4790 # We used to test for /lib/ld.so.1 and disable shared libraries on
4791 # powerpc, because MkLinux only supported shared libraries with the
4792 # GNU dynamic linker. Since this was broken with cross compilers,
4793 # most powerpc-linux boxes support dynamic linking these days and
4794 # people can always --disable-shared, the test was removed, and we
4795 # assume the GNU/Linux dynamic linker is in use.
4796 dynamic_linker='GNU/Linux ld.so'
4803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4806 dynamic_linker='NetBSD (a.out) ld.so'
4808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4809 soname_spec='${libname}${release}${shared_ext}$major'
4810 dynamic_linker='NetBSD ld.elf_so'
4812 shlibpath_var=LD_LIBRARY_PATH
4813 shlibpath_overrides_runpath=yes
4814 hardcode_into_libs=yes
4819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4820 shlibpath_var=LD_LIBRARY_PATH
4821 shlibpath_overrides_runpath=yes
4828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4829 soname_spec='${libname}${release}${shared_ext}$major'
4830 shlibpath_var=LD_LIBRARY_PATH
4831 shlibpath_overrides_runpath=no
4832 hardcode_into_libs=yes
4833 dynamic_linker='ldqnx.so'
4838 sys_lib_dlsearch_path_spec="/usr/lib"
4840 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4842 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4843 *) need_version=no ;;
4845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4847 shlibpath_var=LD_LIBRARY_PATH
4848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4850 openbsd2.[[89]] | openbsd2.[[89]].*)
4851 shlibpath_overrides_runpath=no
4854 shlibpath_overrides_runpath=yes
4858 shlibpath_overrides_runpath=yes
4863 libname_spec='$name'
4866 library_names_spec='$libname${shared_ext} $libname.a'
4867 dynamic_linker='OS/2 ld.exe'
4868 shlibpath_var=LIBPATH
4871 osf3* | osf4* | osf5*)
4875 soname_spec='${libname}${release}${shared_ext}$major'
4876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4877 shlibpath_var=LD_LIBRARY_PATH
4878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4879 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4891 soname_spec='${libname}${release}${shared_ext}$major'
4892 shlibpath_var=LD_LIBRARY_PATH
4893 shlibpath_overrides_runpath=yes
4894 hardcode_into_libs=yes
4895 # ldd complains unless libraries are executable
4896 postinstall_cmds='chmod +x $lib'
4901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4902 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4903 shlibpath_var=LD_LIBRARY_PATH
4904 shlibpath_overrides_runpath=yes
4905 if test "$with_gnu_ld" = yes; then
4913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4914 soname_spec='${libname}${release}${shared_ext}$major'
4915 shlibpath_var=LD_LIBRARY_PATH
4916 case $host_vendor in
4918 shlibpath_overrides_runpath=no
4920 runpath_var=LD_RUN_PATH
4928 shlibpath_overrides_runpath=no
4929 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4935 if test -d /usr/nec ;then
4937 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4938 soname_spec='$libname${shared_ext}.$major'
4939 shlibpath_var=LD_LIBRARY_PATH
4943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4944 version_type=freebsd-elf
4947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4948 soname_spec='${libname}${release}${shared_ext}$major'
4949 shlibpath_var=LD_LIBRARY_PATH
4950 shlibpath_overrides_runpath=yes
4951 hardcode_into_libs=yes
4952 if test "$with_gnu_ld" = yes; then
4953 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4955 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4958 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4962 sys_lib_dlsearch_path_spec='/usr/lib'
4966 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
4970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4971 shlibpath_var=LD_LIBRARY_PATH
4972 shlibpath_overrides_runpath=no
4973 hardcode_into_libs=yes
4978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4979 soname_spec='${libname}${release}${shared_ext}$major'
4980 shlibpath_var=LD_LIBRARY_PATH
4987 AC_MSG_RESULT([$dynamic_linker])
4988 test "$dynamic_linker" = no && can_build_shared=no
4990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4991 if test "$GCC" = yes; then
4992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4995 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
4996 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
4998 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
4999 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
5002 _LT_DECL([], [variables_saved_for_relink], [1],
5003 [Variables whose values should be saved in libtool wrapper scripts and
5004 restored at link time])
5005 _LT_DECL([], [need_lib_prefix], [0],
5006 [Do we need the "lib" prefix for modules?])
5007 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
5008 _LT_DECL([], [version_type], [0], [Library versioning type])
5009 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
5010 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
5011 _LT_DECL([], [shlibpath_overrides_runpath], [0],
5012 [Is shlibpath searched before the hard-coded library search path?])
5013 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
5014 _LT_DECL([], [library_names_spec], [1],
5015 [[List of archive names. First name is the real one, the rest are links.
5016 The last name is the one that the linker finds with -lNAME]])
5017 _LT_DECL([], [soname_spec], [1],
5018 [[The coded name of the library, if different from the real name]])
5019 _LT_DECL([], [postinstall_cmds], [2],
5020 [Command to use after installation of a shared archive])
5021 _LT_DECL([], [postuninstall_cmds], [2],
5022 [Command to use after uninstallation of a shared archive])
5023 _LT_DECL([], [finish_cmds], [2],
5024 [Commands used to finish a libtool library installation in a directory])
5025 _LT_DECL([], [finish_eval], [1],
5026 [[As "finish_cmds", except a single script fragment to be evaled but
5028 _LT_DECL([], [hardcode_into_libs], [0],
5029 [Whether we should hardcode library paths into libraries])
5030 _LT_DECL([], [sys_lib_search_path_spec], [2],
5031 [Compile-time system search path for libraries])
5032 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
5033 [Run-time system search path for libraries])
5034 ])# _LT_SYS_DYNAMIC_LINKER
5037 # _LT_PATH_TOOL_PREFIX(TOOL)
5038 # --------------------------
5039 # find a file program which can recognize shared library
5040 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
5041 [m4_require([_LT_DECL_EGREP])dnl
5042 AC_MSG_CHECKING([for $1])
5043 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
5045 [[\\/*] | ?:[\\/]*])
5046 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5049 lt_save_MAGIC_CMD="$MAGIC_CMD"
5050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5051 dnl $ac_dummy forces splitting on constant user-supplied paths.
5052 dnl POSIX.2 word splitting is done only on the output of word expansions,
5053 dnl not every word. This closes a longstanding sh security hole.
5054 ac_dummy="m4_if([$2], , $PATH, [$2])"
5055 for ac_dir in $ac_dummy; do
5057 test -z "$ac_dir" && ac_dir=.
5058 if test -f $ac_dir/$1; then
5059 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
5060 if test -n "$file_magic_test_file"; then
5061 case $deplibs_check_method in
5063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5066 $EGREP "$file_magic_regex" > /dev/null; then
5071 *** Warning: the command libtool uses to detect shared libraries,
5072 *** $file_magic_cmd, produces output that libtool cannot recognize.
5073 *** The result is that libtool may fail to recognize shared libraries
5074 *** as such. This will affect the creation of libtool libraries that
5075 *** depend on shared libraries, but programs linked with such libtool
5076 *** libraries will work regardless of this problem. Nevertheless, you
5077 *** may want to report the problem to your system manager and/or to
5078 *** bug-libtool@gnu.org
5088 MAGIC_CMD="$lt_save_MAGIC_CMD"
5091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5092 if test -n "$MAGIC_CMD"; then
5093 AC_MSG_RESULT($MAGIC_CMD)
5097 _LT_DECL([], [MAGIC_CMD], [0],
5098 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
5099 ])# _LT_PATH_TOOL_PREFIX
5102 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
5103 dnl aclocal-1.4 backwards compatibility:
5104 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
5109 # find a file program which can recognize a shared library
5110 m4_defun([_LT_PATH_MAGIC],
5111 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
5112 if test -z "$lt_cv_path_MAGIC_CMD"; then
5113 if test -n "$ac_tool_prefix"; then
5114 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
5124 # find the pathname to the GNU or non-GNU linker
5125 AC_DEFUN([LT_PATH_LD],
5126 [AC_REQUIRE([AC_PROG_CC])dnl
5127 AC_REQUIRE([AC_CANONICAL_HOST])dnl
5128 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
5129 m4_require([_LT_DECL_SED])dnl
5130 m4_require([_LT_DECL_EGREP])dnl
5132 AC_ARG_WITH([gnu-ld],
5133 [AS_HELP_STRING([--with-gnu-ld],
5134 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
5135 [test "$withval" = no || with_gnu_ld=yes],
5136 [with_gnu_ld=no])dnl
5139 if test "$GCC" = yes; then
5140 # Check if gcc -print-prog-name=ld gives a path.
5141 AC_MSG_CHECKING([for ld used by $CC])
5144 # gcc leaves a trailing carriage return which upsets mingw
5145 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5147 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5150 # Accept absolute paths.
5151 [[\\/]]* | ?:[[\\/]]*)
5152 re_direlt='/[[^/]][[^/]]*/\.\./'
5153 # Canonicalize the pathname of ld
5154 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5155 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5156 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5158 test -z "$LD" && LD="$ac_prog"
5161 # If it fails, then pretend we aren't using GCC.
5165 # If it is relative, then search for the first ld in PATH.
5169 elif test "$with_gnu_ld" = yes; then
5170 AC_MSG_CHECKING([for GNU ld])
5172 AC_MSG_CHECKING([for non-GNU ld])
5174 AC_CACHE_VAL(lt_cv_path_LD,
5175 [if test -z "$LD"; then
5176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5177 for ac_dir in $PATH; do
5179 test -z "$ac_dir" && ac_dir=.
5180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5181 lt_cv_path_LD="$ac_dir/$ac_prog"
5182 # Check to see if the program is GNU ld. I'd rather use --version,
5183 # but apparently some variants of GNU ld only accept -v.
5184 # Break only if it was the GNU/non-GNU ld that we prefer.
5185 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5186 *GNU* | *'with BFD'*)
5187 test "$with_gnu_ld" != no && break
5190 test "$with_gnu_ld" != yes && break
5197 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5200 if test -n "$LD"; then
5205 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
5209 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
5213 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
5214 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
5215 dnl aclocal-1.4 backwards compatibility:
5216 dnl AC_DEFUN([AM_PROG_LD], [])
5217 dnl AC_DEFUN([AC_PROG_LD], [])
5222 m4_defun([_LT_PATH_LD_GNU],
5223 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
5224 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
5225 case `$LD -v 2>&1 </dev/null` in
5226 *GNU* | *'with BFD'*)
5227 lt_cv_prog_gnu_ld=yes
5230 lt_cv_prog_gnu_ld=no
5233 with_gnu_ld=$lt_cv_prog_gnu_ld
5239 # find reload flag for linker
5240 # -- PORTME Some linkers may need a different reload flag.
5241 m4_defun([_LT_CMD_RELOAD],
5242 [AC_CACHE_CHECK([for $LD option to reload object files],
5243 lt_cv_ld_reload_flag,
5244 [lt_cv_ld_reload_flag='-r'])
5245 reload_flag=$lt_cv_ld_reload_flag
5246 case $reload_flag in
5248 *) reload_flag=" $reload_flag" ;;
5250 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5253 if test "$GCC" = yes; then
5254 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5256 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5260 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
5261 _LT_DECL([], [reload_cmds], [2])dnl
5265 # _LT_CHECK_MAGIC_METHOD
5266 # ----------------------
5267 # how to check for library dependencies
5268 # -- PORTME fill in with the dynamic library characteristics
5269 m4_defun([_LT_CHECK_MAGIC_METHOD],
5270 [m4_require([_LT_DECL_EGREP])
5271 m4_require([_LT_DECL_OBJDUMP])
5272 AC_CACHE_CHECK([how to recognize dependent libraries],
5273 lt_cv_deplibs_check_method,
5274 [lt_cv_file_magic_cmd='$MAGIC_CMD'
5275 lt_cv_file_magic_test_file=
5276 lt_cv_deplibs_check_method='unknown'
5277 # Need to set the preceding variable on all platforms that support
5278 # interlibrary dependencies.
5279 # 'none' -- dependencies not supported.
5280 # `unknown' -- same as none, but documents that we really don't know.
5281 # 'pass_all' -- all dependencies passed with no checks.
5282 # 'test_compile' -- check by making test program.
5283 # 'file_magic [[regex]]' -- check by looking for files in library path
5284 # which responds to the $file_magic_cmd with a given extended regex.
5285 # If you have `file' or equivalent on your system and you're not sure
5286 # whether `pass_all' will *always* work, you probably want this one.
5290 lt_cv_deplibs_check_method=pass_all
5294 lt_cv_deplibs_check_method=pass_all
5298 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
5299 lt_cv_file_magic_cmd='/usr/bin/file -L'
5300 lt_cv_file_magic_test_file=/shlib/libc.so
5304 # func_win32_libid is a shell function defined in ltmain.sh
5305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5306 lt_cv_file_magic_cmd='func_win32_libid'
5310 # Base MSYS/MinGW do not provide the 'file' command needed by
5311 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5312 # unless we find 'file', for example because we are cross-compiling.
5313 if ( file / ) >/dev/null 2>&1; then
5314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5315 lt_cv_file_magic_cmd='func_win32_libid'
5317 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5318 lt_cv_file_magic_cmd='$OBJDUMP -f'
5323 # use the weaker test based on 'objdump'. See mingw*.
5324 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5325 lt_cv_file_magic_cmd='$OBJDUMP -f'
5328 darwin* | rhapsody*)
5329 lt_cv_deplibs_check_method=pass_all
5332 freebsd* | dragonfly*)
5333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5336 # Not sure whether the presence of OpenBSD here was a mistake.
5337 # Let's accept both of them until this is cleared up.
5338 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
5339 lt_cv_file_magic_cmd=/usr/bin/file
5340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5344 lt_cv_deplibs_check_method=pass_all
5349 lt_cv_deplibs_check_method=pass_all
5352 hpux10.20* | hpux11*)
5353 lt_cv_file_magic_cmd=/usr/bin/file
5356 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
5357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5360 [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]']
5361 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5364 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
5365 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5371 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5372 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
5375 irix5* | irix6* | nonstopux*)
5377 *-32|*"-32 ") libmagic=32-bit;;
5378 *-n32|*"-n32 ") libmagic=N32;;
5379 *-64|*"-64 ") libmagic=64-bit;;
5380 *) libmagic=never-match;;
5382 lt_cv_deplibs_check_method=pass_all
5385 # This must be Linux ELF.
5386 linux* | k*bsd*-gnu)
5387 lt_cv_deplibs_check_method=pass_all
5391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5392 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5394 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
5399 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
5400 lt_cv_file_magic_cmd=/usr/bin/file
5401 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5405 lt_cv_deplibs_check_method=pass_all
5409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5410 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
5412 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5416 osf3* | osf4* | osf5*)
5417 lt_cv_deplibs_check_method=pass_all
5421 lt_cv_deplibs_check_method=pass_all
5425 lt_cv_deplibs_check_method=pass_all
5428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5429 lt_cv_deplibs_check_method=pass_all
5433 case $host_vendor in
5435 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]]'
5436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5439 lt_cv_deplibs_check_method=pass_all
5442 lt_cv_file_magic_cmd='/bin/file'
5443 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
5446 lt_cv_file_magic_cmd='/bin/file'
5447 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
5448 lt_cv_file_magic_test_file=/lib/libc.so
5451 lt_cv_deplibs_check_method=pass_all
5454 lt_cv_deplibs_check_method=pass_all
5460 lt_cv_deplibs_check_method=pass_all
5464 file_magic_cmd=$lt_cv_file_magic_cmd
5465 deplibs_check_method=$lt_cv_deplibs_check_method
5466 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5468 _LT_DECL([], [deplibs_check_method], [1],
5469 [Method to check whether dependent libraries are shared objects])
5470 _LT_DECL([], [file_magic_cmd], [1],
5471 [Command to use when deplibs_check_method == "file_magic"])
5472 ])# _LT_CHECK_MAGIC_METHOD
5477 # find the pathname to a BSD- or MS-compatible name lister
5478 AC_DEFUN([LT_PATH_NM],
5479 [AC_REQUIRE([AC_PROG_CC])dnl
5480 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
5481 [if test -n "$NM"; then
5482 # Let the user override the test.
5485 lt_nm_to_check="${ac_tool_prefix}nm"
5486 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5487 lt_nm_to_check="$lt_nm_to_check nm"
5489 for lt_tmp_nm in $lt_nm_to_check; do
5490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5491 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5493 test -z "$ac_dir" && ac_dir=.
5494 tmp_nm="$ac_dir/$lt_tmp_nm"
5495 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5496 # Check to see if the nm accepts a BSD-compat flag.
5497 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5498 # nm: unknown option "B" ignored
5499 # Tru64's nm complains that /dev/null is an invalid object file
5500 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5501 */dev/null* | *'Invalid file or object type'*)
5502 lt_cv_path_NM="$tmp_nm -B"
5506 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5508 lt_cv_path_NM="$tmp_nm -p"
5512 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5513 continue # so that we can try to find one that supports BSD flags
5522 : ${lt_cv_path_NM=no}
5524 if test "$lt_cv_path_NM" != "no"; then
5527 # Didn't find any BSD compatible name lister, look for dumpbin.
5528 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
5530 if test "$DUMPBIN" != ":"; then
5534 test -z "$NM" && NM=nm
5536 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
5538 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
5539 [lt_cv_nm_interface="BSD nm"
5540 echo "int some_variable = 0;" > conftest.$ac_ext
5541 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
5542 (eval "$ac_compile" 2>conftest.err)
5543 cat conftest.err >&AS_MESSAGE_LOG_FD
5544 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
5545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5546 cat conftest.err >&AS_MESSAGE_LOG_FD
5547 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
5548 cat conftest.out >&AS_MESSAGE_LOG_FD
5549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5550 lt_cv_nm_interface="MS dumpbin"
5556 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
5557 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
5558 dnl aclocal-1.4 backwards compatibility:
5559 dnl AC_DEFUN([AM_PROG_NM], [])
5560 dnl AC_DEFUN([AC_PROG_NM], [])
5565 # check for math library
5566 AC_DEFUN([LT_LIB_M],
5567 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
5570 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
5571 # These system don't have libm, or don't need it
5574 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
5575 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
5578 AC_CHECK_LIB(m, cos, LIBM="-lm")
5585 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
5586 dnl aclocal-1.4 backwards compatibility:
5587 dnl AC_DEFUN([AC_CHECK_LIBM], [])
5590 # _LT_COMPILER_NO_RTTI([TAGNAME])
5591 # -------------------------------
5592 m4_defun([_LT_COMPILER_NO_RTTI],
5593 [m4_require([_LT_TAG_COMPILER])dnl
5595 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5597 if test "$GCC" = yes; then
5598 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5600 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5601 lt_cv_prog_compiler_rtti_exceptions,
5602 [-fno-rtti -fno-exceptions], [],
5603 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5605 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
5606 [Compiler flag to turn off builtin functions])
5607 ])# _LT_COMPILER_NO_RTTI
5610 # _LT_CMD_GLOBAL_SYMBOLS
5611 # ----------------------
5612 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
5613 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
5614 AC_REQUIRE([AC_PROG_CC])dnl
5615 AC_REQUIRE([LT_PATH_NM])dnl
5616 AC_REQUIRE([LT_PATH_LD])dnl
5617 m4_require([_LT_DECL_SED])dnl
5618 m4_require([_LT_DECL_EGREP])dnl
5619 m4_require([_LT_TAG_COMPILER])dnl
5621 # Check for command to grab the raw symbol name followed by C symbol from nm.
5622 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5623 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5625 # These are sane defaults that work on at least a few old systems.
5626 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5628 # Character class describing NM global symbol codes.
5629 symcode='[[BCDEGRST]]'
5631 # Regexp to match symbols that can be accessed directly from C.
5632 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5634 # Define system-specific variables.
5639 cygwin* | mingw* | pw32* | cegcc*)
5640 symcode='[[ABCDGISTW]]'
5643 if test "$host_cpu" = ia64; then
5644 symcode='[[ABCDEGRST]]'
5648 symcode='[[BCDEGRST]]'
5651 symcode='[[BCDEGQRST]]'
5662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5666 symcode='[[DFNSTU]]'
5670 # If we're using GNU nm, then use its standard symbol codes.
5671 case `$NM -V 2>&1` in
5672 *GNU* | *'with BFD'*)
5673 symcode='[[ABCDGIRSTW]]' ;;
5676 # Transform an extracted symbol line into a proper C declaration.
5677 # Some systems (esp. on ia64) link data and code symbols differently,
5678 # so use this general approach.
5679 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5681 # Transform an extracted symbol line into symbol name and symbol address
5682 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
5683 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5685 # Handle CRLF in mingw tool chain
5689 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5693 # Try without a prefix underscore, then with it.
5694 for ac_symprfx in "" "_"; do
5696 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5697 symxfrm="\\1 $ac_symprfx\\2 \\2"
5699 # Write the raw and C identifiers.
5700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5701 # Fake it for dumpbin and say T for any non-static function
5702 # and D for any global variable.
5703 # Also find C++ and __fastcall symbols from MSVC++,
5704 # which start with @ or ?.
5705 lt_cv_sys_global_symbol_pipe="$AWK ['"\
5706 " {last_section=section; section=\$ 3};"\
5707 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5708 " \$ 0!~/External *\|/{next};"\
5709 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5710 " {if(hide[section]) next};"\
5711 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5712 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5713 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5714 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5715 " ' prfx=^$ac_symprfx]"
5717 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5720 # Check to see that the pipe works correctly.
5724 cat > conftest.$ac_ext <<_LT_EOF
5729 void nm_test_func(void);
5730 void nm_test_func(void){}
5734 int main(){nm_test_var='a';nm_test_func();return(0);}
5737 if AC_TRY_EVAL(ac_compile); then
5738 # Now try to grab the symbols.
5740 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5741 # Try sorting and uniquifying the output.
5742 if sort "$nlist" | uniq > "$nlist"T; then
5743 mv -f "$nlist"T "$nlist"
5748 # Make sure that we snagged all the symbols we need.
5749 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5750 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5751 cat <<_LT_EOF > conftest.$ac_ext
5757 # Now generate the symbol file.
5758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5760 cat <<_LT_EOF >> conftest.$ac_ext
5762 /* The mapping between symbol names and symbols. */
5767 lt__PROGRAM__LTX_preloaded_symbols[[]] =
5769 { "@PROGRAM@", (void *) 0 },
5771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5772 cat <<\_LT_EOF >> conftest.$ac_ext
5776 /* This works around a problem in FreeBSD linker */
5777 #ifdef FREEBSD_WORKAROUND
5778 static const void *lt_preloaded_setup() {
5779 return lt__PROGRAM__LTX_preloaded_symbols;
5787 # Now try linking the two files.
5788 mv conftest.$ac_objext conftstm.$ac_objext
5789 lt_save_LIBS="$LIBS"
5790 lt_save_CFLAGS="$CFLAGS"
5791 LIBS="conftstm.$ac_objext"
5792 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5793 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5796 LIBS="$lt_save_LIBS"
5797 CFLAGS="$lt_save_CFLAGS"
5799 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5802 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5805 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5808 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5809 cat conftest.$ac_ext >&5
5811 rm -rf conftest* conftst*
5813 # Do not use the global_symbol_pipe unless it works.
5814 if test "$pipe_works" = yes; then
5817 lt_cv_sys_global_symbol_pipe=
5821 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5822 lt_cv_sys_global_symbol_to_cdecl=
5824 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5825 AC_MSG_RESULT(failed)
5830 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
5831 [Take the output of nm and produce a listing of raw symbols and C names])
5832 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
5833 [Transform the output of nm in a proper C declaration])
5834 _LT_DECL([global_symbol_to_c_name_address],
5835 [lt_cv_sys_global_symbol_to_c_name_address], [1],
5836 [Transform the output of nm in a C name address pair])
5837 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
5838 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
5839 [Transform the output of nm in a C name address pair when lib prefix is needed])
5840 ]) # _LT_CMD_GLOBAL_SYMBOLS
5843 # _LT_COMPILER_PIC([TAGNAME])
5844 # ---------------------------
5845 m4_defun([_LT_COMPILER_PIC],
5846 [m4_require([_LT_TAG_COMPILER])dnl
5847 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
5848 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5849 _LT_TAGVAR(lt_prog_compiler_static, $1)=
5851 AC_MSG_CHECKING([for $compiler option to produce PIC])
5852 m4_if([$1], [CXX], [
5853 # C++ specific cases for pic, static, wl, etc.
5854 if test "$GXX" = yes; then
5855 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5856 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5860 # All AIX code is PIC.
5861 if test "$host_cpu" = ia64; then
5862 # AIX 5 now supports IA64 processor
5863 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5870 # see comment about AmigaOS4 .so support
5871 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5874 # FIXME: we need at least 68020 code to build shared libraries, but
5875 # adding the `-m68020' flag to GCC prevents building anything better,
5877 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5882 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5883 # PIC is the default for these OSes.
5885 mingw* | cygwin* | os2* | pw32* | cegcc*)
5886 # This hack is so that the source file can tell whether it is being
5887 # built for inclusion in a dll (and should export symbols for example).
5888 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5889 # (--disable-auto-import) libraries
5890 m4_if([$1], [GCJ], [],
5891 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5893 darwin* | rhapsody*)
5894 # PIC is the default on this platform
5895 # Common symbols not allowed in MH_DYLIB files
5896 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5899 # DJGPP does not support shared libraries at all
5900 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5903 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5904 # Instead, we relocate shared libraries at runtime.
5907 if test -d /usr/nec; then
5908 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5912 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5913 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
5914 # sets the default TLS model and affects inlining.
5919 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5924 # QNX uses GNU C++, but need to define -shared option too, otherwise
5926 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5929 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5935 # All AIX code is PIC.
5936 if test "$host_cpu" = ia64; then
5937 # AIX 5 now supports IA64 processor
5938 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5940 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5944 case $cc_basename in
5946 # Green Hills C++ Compiler
5947 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5952 case $cc_basename in
5954 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5957 # Green Hills C++ Compiler
5958 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5964 freebsd* | dragonfly*)
5965 # FreeBSD uses GNU C++
5967 hpux9* | hpux10* | hpux11*)
5968 case $cc_basename in
5970 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5971 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5972 if test "$host_cpu" != ia64; then
5973 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5977 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5978 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5984 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5993 # This is c89, which is MS Visual C++ (no shared libs)
5994 # Anyone wants to do a port?
5996 irix5* | irix6* | nonstopux*)
5997 case $cc_basename in
5999 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6000 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6001 # CC pic flag -KPIC is the default.
6007 linux* | k*bsd*-gnu)
6008 case $cc_basename in
6011 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6012 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6015 # old Intel C++ for x86_64 which still supported -KPIC.
6016 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6017 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6018 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6021 # Intel C++, used to be incompatible with GCC.
6022 # ICC 10 doesn't accept -KPIC any more.
6023 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6024 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6025 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6028 # Portland Group C++ compiler
6029 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6030 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6031 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6035 # Make sure the PIC flag is empty. It appears that all Alpha
6036 # Linux and Compaq Tru64 Unix objects are PIC.
6037 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6038 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6042 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6043 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6044 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6047 case `$CC -V 2>&1 | sed 5q` in
6050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6052 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6063 case $cc_basename in
6065 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6074 # QNX uses GNU C++, but need to define -shared option too, otherwise
6076 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6078 osf3* | osf4* | osf5*)
6079 case $cc_basename in
6081 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6084 # Rational C++ 2.4.1
6085 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6088 # Digital/Compaq C++
6089 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6090 # Make sure the PIC flag is empty. It appears that all Alpha
6091 # Linux and Compaq Tru64 Unix objects are PIC.
6092 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6102 case $cc_basename in
6104 # Sun C++ 4.2, 5.x and Centerline C++
6105 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6106 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6107 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6110 # Green Hills C++ Compiler
6111 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6118 case $cc_basename in
6121 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6122 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6126 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6133 case $cc_basename in
6135 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6136 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6137 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6142 case $cc_basename in
6144 # NonStop-UX NCC 3.20
6145 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6154 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6160 if test "$GCC" = yes; then
6161 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6162 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6166 # All AIX code is PIC.
6167 if test "$host_cpu" = ia64; then
6168 # AIX 5 now supports IA64 processor
6169 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6176 # see comment about AmigaOS4 .so support
6177 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6180 # FIXME: we need at least 68020 code to build shared libraries, but
6181 # adding the `-m68020' flag to GCC prevents building anything better,
6183 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6188 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6189 # PIC is the default for these OSes.
6192 mingw* | cygwin* | pw32* | os2* | cegcc*)
6193 # This hack is so that the source file can tell whether it is being
6194 # built for inclusion in a dll (and should export symbols for example).
6195 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6196 # (--disable-auto-import) libraries
6197 m4_if([$1], [GCJ], [],
6198 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6201 darwin* | rhapsody*)
6202 # PIC is the default on this platform
6203 # Common symbols not allowed in MH_DYLIB files
6204 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6208 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6209 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6210 # sets the default TLS model and affects inlining.
6216 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6222 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6223 # Instead, we relocate shared libraries at runtime.
6227 # Just because we use GCC doesn't mean we suddenly get shared libraries
6228 # on systems that don't support them.
6229 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6234 # QNX uses GNU C++, but need to define -shared option too, otherwise
6236 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6240 if test -d /usr/nec; then
6241 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6246 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6250 # PORTME Check for flag to pass linker flags through the system compiler.
6253 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6254 if test "$host_cpu" = ia64; then
6255 # AIX 5 now supports IA64 processor
6256 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6258 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6262 mingw* | cygwin* | pw32* | os2* | cegcc*)
6263 # This hack is so that the source file can tell whether it is being
6264 # built for inclusion in a dll (and should export symbols for example).
6265 m4_if([$1], [GCJ], [],
6266 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6269 hpux9* | hpux10* | hpux11*)
6270 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6278 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6281 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6282 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6285 irix5* | irix6* | nonstopux*)
6286 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6287 # PIC (with -KPIC) is the default.
6288 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6291 linux* | k*bsd*-gnu)
6292 case $cc_basename in
6293 # old Intel for x86_64 which still supported -KPIC.
6295 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6296 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6297 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6299 # icc used to be incompatible with GCC.
6300 # ICC 10 doesn't accept -KPIC any more.
6302 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6303 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6304 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6306 # Lahey Fortran 8.1.
6308 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6309 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
6310 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6312 pgcc* | pgf77* | pgf90* | pgf95*)
6313 # Portland Group compilers (*not* the Pentium gcc compiler,
6314 # which looks to be a dead project)
6315 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6316 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6317 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6320 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6321 # All Alpha code is PIC.
6322 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6325 # IBM XL C 8.0/Fortran 10.1 on PPC
6326 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6327 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6328 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6331 case `$CC -V 2>&1 | sed 5q` in
6334 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6335 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6336 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6339 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6341 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6342 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6350 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6351 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6355 # QNX uses GNU C++, but need to define -shared option too, otherwise
6357 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6360 osf3* | osf4* | osf5*)
6361 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6362 # All OSF/1 code is PIC.
6363 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6367 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6371 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6372 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6373 case $cc_basename in
6375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6377 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6383 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6387 sysv4 | sysv4.2uw2* | sysv4.3*)
6388 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6389 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6390 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6394 if test -d /usr/nec ;then
6395 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6396 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6401 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6407 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6408 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6417 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6423 # For platforms which do not support PIC, -DPIC is meaningless:
6425 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6428 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
6431 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
6432 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
6433 [How to pass a linker flag through the compiler])
6436 # Check to make sure the PIC flag actually works.
6438 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6439 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
6440 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
6441 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
6442 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6444 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6446 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6447 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6449 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
6450 [Additional compiler flags for building library objects])
6453 # Check to make sure the static flag actually works.
6455 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
6456 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6457 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6458 $lt_tmp_static_flag,
6460 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
6461 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
6462 [Compiler flag to prevent dynamic linking])
6463 ])# _LT_COMPILER_PIC
6466 # _LT_LINKER_SHLIBS([TAGNAME])
6467 # ----------------------------
6468 # See if the linker supports building shared libraries.
6469 m4_defun([_LT_LINKER_SHLIBS],
6470 [AC_REQUIRE([LT_PATH_LD])dnl
6471 AC_REQUIRE([LT_PATH_NM])dnl
6472 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6473 m4_require([_LT_DECL_EGREP])dnl
6474 m4_require([_LT_DECL_SED])dnl
6475 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
6476 m4_require([_LT_TAG_COMPILER])dnl
6477 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6478 m4_if([$1], [CXX], [
6479 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6482 # If we're using GNU nm, then we don't want the "-C" option.
6483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6484 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6485 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6487 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6491 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6493 cygwin* | mingw* | cegcc*)
6494 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6497 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6500 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6503 _LT_TAGVAR(allow_undefined_flag, $1)=
6504 _LT_TAGVAR(always_export_symbols, $1)=no
6505 _LT_TAGVAR(archive_cmds, $1)=
6506 _LT_TAGVAR(archive_expsym_cmds, $1)=
6507 _LT_TAGVAR(compiler_needs_object, $1)=no
6508 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6509 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6510 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6511 _LT_TAGVAR(hardcode_automatic, $1)=no
6512 _LT_TAGVAR(hardcode_direct, $1)=no
6513 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6514 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6515 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6516 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6517 _LT_TAGVAR(hardcode_minus_L, $1)=no
6518 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6519 _LT_TAGVAR(inherit_rpath, $1)=no
6520 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6521 _LT_TAGVAR(module_cmds, $1)=
6522 _LT_TAGVAR(module_expsym_cmds, $1)=
6523 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
6524 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6525 _LT_TAGVAR(thread_safe_flag_spec, $1)=
6526 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6527 # include_expsyms should be a list of space-separated symbols to be *always*
6528 # included in the symbol list
6529 _LT_TAGVAR(include_expsyms, $1)=
6530 # exclude_expsyms can be an extended regexp of symbols to exclude
6531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6533 # as well as any symbol that contains `d'.
6534 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6536 # platforms (ab)use it in PIC code, but their linkers get confused if
6537 # the symbol is explicitly referenced. Since portable code cannot
6538 # rely on this symbol name, it's probably fine to never include it in
6539 # preloaded symbol tables.
6540 # Exclude shared library initialization/finalization symbols.
6541 dnl Note also adjust exclude_expsyms for C++ above.
6542 extract_expsyms_cmds=
6545 cygwin* | mingw* | pw32* | cegcc*)
6546 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6547 # When not using gcc, we currently assume that we are using
6548 # Microsoft Visual C++.
6549 if test "$GCC" != yes; then
6554 # we just hope/assume this is gcc and not c89 (= MSVC++)
6562 _LT_TAGVAR(ld_shlibs, $1)=yes
6563 if test "$with_gnu_ld" = yes; then
6564 # If archive_cmds runs LD, not CC, wlarc should be empty
6567 # Set some defaults for GNU ld with shared library support. These
6568 # are reset later if shared libraries are not supported. Putting them
6569 # here allows them to be overridden if necessary.
6570 runpath_var=LD_RUN_PATH
6571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6572 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6573 # ancient GNU ld didn't support --whole-archive et. al.
6574 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6575 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6577 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6579 supports_anon_versioning=no
6580 case `$LD -v 2>&1` in
6581 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6582 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6583 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6584 *\ 2.11.*) ;; # other 2.11 versions
6585 *) supports_anon_versioning=yes ;;
6588 # See if GNU ld supports shared libraries.
6591 # On AIX/PPC, the GNU linker is very broken
6592 if test "$host_cpu" != ia64; then
6593 _LT_TAGVAR(ld_shlibs, $1)=no
6596 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6597 *** to be unable to reliably create shared libraries on AIX.
6598 *** Therefore, libtool is disabling shared libraries support. If you
6599 *** really care for shared libraries, you may want to modify your PATH
6600 *** so that a non-GNU linker is found, and then restart.
6609 # see comment about AmigaOS4 .so support
6610 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6611 _LT_TAGVAR(archive_expsym_cmds, $1)=''
6614 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6615 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6616 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6623 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6625 # support --undefined. This deserves some investigation. FIXME
6626 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6628 _LT_TAGVAR(ld_shlibs, $1)=no
6632 cygwin* | mingw* | pw32* | cegcc*)
6633 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6634 # as there is no search path for DLLs.
6635 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6636 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6637 _LT_TAGVAR(always_export_symbols, $1)=no
6638 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6639 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6641 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6642 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6643 # If the export-symbols file already is a .def file (1st line
6644 # is EXPORTS), use it as is; otherwise, prepend...
6645 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6646 cp $export_symbols $output_objdir/$soname.def;
6648 echo EXPORTS > $output_objdir/$soname.def;
6649 cat $export_symbols >> $output_objdir/$soname.def;
6651 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6653 _LT_TAGVAR(ld_shlibs, $1)=no
6658 _LT_TAGVAR(hardcode_direct, $1)=no
6659 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6661 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6663 # Instead, shared libraries are loaded at an image base (0x10000000 by
6664 # default) and relocated if they conflict, which is a slow very memory
6665 # consuming and fragmenting process. To avoid this, we pick a random,
6666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6667 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6668 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6669 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6672 gnu* | linux* | tpf* | k*bsd*-gnu)
6674 if test "$host_os" = linux-dietlibc; then
6675 case $cc_basename in
6676 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6679 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6680 && test "$tmp_diet" = no
6683 tmp_sharedflag='-shared'
6684 case $cc_basename,$host_cpu in
6685 pgcc*) # Portland Group C compiler
6686 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6687 tmp_addflag=' $pic_flag'
6689 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6690 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6691 tmp_addflag=' $pic_flag -Mnomain' ;;
6692 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6693 tmp_addflag=' -i_dynamic' ;;
6694 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6695 tmp_addflag=' -i_dynamic -nofor_main' ;;
6696 ifc* | ifort*) # Intel Fortran compiler
6697 tmp_addflag=' -nofor_main' ;;
6698 lf95*) # Lahey Fortran 8.1
6699 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6700 tmp_sharedflag='--shared' ;;
6701 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6702 tmp_sharedflag='-qmkshrobj'
6705 case `$CC -V 2>&1 | sed 5q` in
6706 *Sun\ C*) # Sun C 5.9
6707 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6708 _LT_TAGVAR(compiler_needs_object, $1)=yes
6709 tmp_sharedflag='-G' ;;
6710 *Sun\ F*) # Sun Fortran 8.3
6711 tmp_sharedflag='-G' ;;
6713 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6715 if test "x$supports_anon_versioning" = xyes; then
6716 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6718 echo "local: *; };" >> $output_objdir/$libname.ver~
6719 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6722 case $cc_basename in
6724 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6725 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6726 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6727 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6728 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
6729 if test "x$supports_anon_versioning" = xyes; then
6730 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6732 echo "local: *; };" >> $output_objdir/$libname.ver~
6733 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6738 _LT_TAGVAR(ld_shlibs, $1)=no
6743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6744 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6747 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6748 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6753 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6754 _LT_TAGVAR(ld_shlibs, $1)=no
6757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6758 *** create shared libraries on Solaris systems. Therefore, libtool
6759 *** is disabling shared libraries support. We urge you to upgrade GNU
6760 *** binutils to release 2.9.1 or newer. Another option is to modify
6761 *** your PATH or compiler configuration so that the native linker is
6762 *** used, and then restart.
6765 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6766 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6767 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6769 _LT_TAGVAR(ld_shlibs, $1)=no
6773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6774 case `$LD -v 2>&1` in
6775 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6776 _LT_TAGVAR(ld_shlibs, $1)=no
6779 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6780 *** reliably create shared libraries on SCO systems. Therefore, libtool
6781 *** is disabling shared libraries support. We urge you to upgrade GNU
6782 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6783 *** your PATH or compiler configuration so that the native linker is
6784 *** used, and then restart.
6789 # For security reasons, it is highly recommended that you always
6790 # use absolute paths for naming shared libraries, and exclude the
6791 # DT_RUNPATH tag from executables and libraries. But doing so
6792 # requires that you compile everything twice, which is a pain.
6793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6794 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6798 _LT_TAGVAR(ld_shlibs, $1)=no
6805 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6807 _LT_TAGVAR(hardcode_direct, $1)=yes
6808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6813 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6814 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6816 _LT_TAGVAR(ld_shlibs, $1)=no
6821 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6823 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6824 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6825 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6828 # PORTME fill in a description of your system's linker (not GNU ld)
6831 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6832 _LT_TAGVAR(always_export_symbols, $1)=yes
6833 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6834 # Note: this linker hardcodes the directories in LIBPATH if there
6835 # are no directories specified by -L.
6836 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6837 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6838 # Neither direct hardcoding nor static linking is supported with a
6840 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6845 if test "$host_cpu" = ia64; then
6846 # On IA64, the linker does run time linking by default, so we don't
6847 # have to do anything special.
6848 aix_use_runtimelinking=no
6849 exp_sym_flag='-Bexport'
6852 # If we're using GNU nm, then we don't want the "-C" option.
6853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6854 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6855 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6857 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6859 aix_use_runtimelinking=no
6861 # Test if we are trying to use run time linking or normal
6862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6863 # need to do runtime linking.
6864 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6865 for ld_flag in $LDFLAGS; do
6866 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6867 aix_use_runtimelinking=yes
6874 exp_sym_flag='-bexport'
6875 no_entry_flag='-bnoentry'
6878 # When large executables or shared objects are built, AIX ld can
6879 # have problems creating the table of contents. If linking a library
6880 # or program results in "error TOC overflow" add -mminimal-toc to
6881 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6882 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6884 _LT_TAGVAR(archive_cmds, $1)=''
6885 _LT_TAGVAR(hardcode_direct, $1)=yes
6886 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6887 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6888 _LT_TAGVAR(link_all_deplibs, $1)=yes
6889 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6891 if test "$GCC" = yes; then
6892 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6893 # We only want to do this on AIX 4.2 and lower, the check
6894 # below for broken collect2 doesn't work under 4.3+
6895 collect2name=`${CC} -print-prog-name=collect2`
6896 if test -f "$collect2name" &&
6897 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6899 # We have reworked collect2
6902 # We have old collect2
6903 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6904 # It fails to find uninstalled libraries when the uninstalled
6905 # path is not listed in the libpath. Setting hardcode_minus_L
6906 # to unsupported forces relinking
6907 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6909 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6913 shared_flag='-shared'
6914 if test "$aix_use_runtimelinking" = yes; then
6915 shared_flag="$shared_flag "'${wl}-G'
6919 if test "$host_cpu" = ia64; then
6920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6921 # chokes on -Wl,-G. The following line is correct:
6924 if test "$aix_use_runtimelinking" = yes; then
6925 shared_flag='${wl}-G'
6927 shared_flag='${wl}-bM:SRE'
6932 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6933 # It seems that -bexpall does not export symbols beginning with
6934 # underscore (_), so it is better to generate a list of symbols to export.
6935 _LT_TAGVAR(always_export_symbols, $1)=yes
6936 if test "$aix_use_runtimelinking" = yes; then
6937 # Warning - without using the other runtime loading flags (-brtl),
6938 # -berok will link without error, but may produce a broken library.
6939 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6940 # Determine the default libpath from the value encoded in an
6942 _LT_SYS_MODULE_PATH_AIX
6943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6944 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6946 if test "$host_cpu" = ia64; then
6947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6948 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6949 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6951 # Determine the default libpath from the value encoded in an
6953 _LT_SYS_MODULE_PATH_AIX
6954 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6955 # Warning - without using the other run time loading flags,
6956 # -berok will link without error, but may produce a broken library.
6957 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6958 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6959 # Exported symbols can be pulled into shared objects from archives
6960 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6961 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6962 # This is similar to how AIX traditionally builds its shared libraries.
6963 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6971 # see comment about AmigaOS4 .so support
6972 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6973 _LT_TAGVAR(archive_expsym_cmds, $1)=''
6976 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6977 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6978 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6984 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6987 cygwin* | mingw* | pw32* | cegcc*)
6988 # When not using gcc, we currently assume that we are using
6989 # Microsoft Visual C++.
6990 # hardcode_libdir_flag_spec is actually meaningless, as there is
6991 # no search path for DLLs.
6992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6993 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6994 # Tell ltmain to make .lib files, not .a files.
6996 # Tell ltmain to make .dll files, not .so files.
6998 # FIXME: Setting linknames here is a bad hack.
6999 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7000 # The linker will automatically build a .lib file if we build a DLL.
7001 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7002 # FIXME: Should let the user specify the lib program.
7003 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
7004 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7005 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7008 darwin* | rhapsody*)
7009 _LT_DARWIN_LINKER_FEATURES($1)
7013 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7014 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7015 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7019 _LT_TAGVAR(ld_shlibs, $1)=no
7022 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7023 # support. Future versions do this automatically, but an explicit c++rt0.o
7024 # does not break anything, and helps significantly (at the cost of a little
7027 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7029 _LT_TAGVAR(hardcode_direct, $1)=yes
7030 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7033 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7035 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7036 _LT_TAGVAR(hardcode_direct, $1)=yes
7037 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7038 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7041 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7042 freebsd* | dragonfly*)
7043 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7044 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7045 _LT_TAGVAR(hardcode_direct, $1)=yes
7046 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7050 if test "$GCC" = yes; then
7051 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7053 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7056 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7057 _LT_TAGVAR(hardcode_direct, $1)=yes
7059 # hardcode_minus_L: Not really in the search PATH,
7060 # but as the default location of the library.
7061 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7066 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7067 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7069 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7071 if test "$with_gnu_ld" = no; then
7072 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7073 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7074 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7075 _LT_TAGVAR(hardcode_direct, $1)=yes
7076 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7077 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7078 # hardcode_minus_L: Not really in the search PATH,
7079 # but as the default location of the library.
7080 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7085 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7088 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7091 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7094 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7100 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7103 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7106 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7110 if test "$with_gnu_ld" = no; then
7111 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7112 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7116 _LT_TAGVAR(hardcode_direct, $1)=no
7117 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7120 _LT_TAGVAR(hardcode_direct, $1)=yes
7121 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7122 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7124 # hardcode_minus_L: Not really in the search PATH,
7125 # but as the default location of the library.
7126 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7132 irix5* | irix6* | nonstopux*)
7133 if test "$GCC" = yes; then
7134 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7135 # Try to use the -exported_symbol ld option, if it does not
7136 # work, assume that -exports_file does not work either and
7137 # implicitly export all symbols.
7138 save_LDFLAGS="$LDFLAGS"
7139 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7140 AC_LINK_IFELSE(int foo(void) {},
7141 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7143 LDFLAGS="$save_LDFLAGS"
7145 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7146 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7148 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7149 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7150 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7151 _LT_TAGVAR(inherit_rpath, $1)=yes
7152 _LT_TAGVAR(link_all_deplibs, $1)=yes
7156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7157 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7159 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7161 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7162 _LT_TAGVAR(hardcode_direct, $1)=yes
7163 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7167 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7168 _LT_TAGVAR(hardcode_direct, $1)=yes
7169 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7170 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7171 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7178 if test -f /usr/libexec/ld.so; then
7179 _LT_TAGVAR(hardcode_direct, $1)=yes
7180 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7181 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7183 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7184 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7186 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7189 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7190 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7194 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7200 _LT_TAGVAR(ld_shlibs, $1)=no
7205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7206 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7207 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7208 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7209 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7213 if test "$GCC" = yes; then
7214 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7215 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7217 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7218 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7220 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7221 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7222 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7225 osf4* | osf5*) # as osf3* with the addition of -msym flag
7226 if test "$GCC" = yes; then
7227 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7228 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7229 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7231 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7232 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7233 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7234 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7236 # Both c and cxx compiler support -rpath directly
7237 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7239 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7240 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7244 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7245 if test "$GCC" = yes; then
7247 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7248 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7249 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7251 case `$CC -V 2>&1` in
7254 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7255 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7256 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7260 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7261 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7262 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7266 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7267 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7269 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7271 # The compiler driver will combine and reorder linker options,
7272 # but understands `-z linker_flag'. GCC discards it without `$wl',
7273 # but is careful enough not to reorder.
7274 # Supported since Solaris 2.6 (maybe 2.5.1?)
7275 if test "$GCC" = yes; then
7276 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7278 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7282 _LT_TAGVAR(link_all_deplibs, $1)=yes
7286 if test "x$host_vendor" = xsequent; then
7287 # Use $CC to link under sequent, because it throws in some extra .o
7288 # files that make .init and .fini sections work.
7289 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7291 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7293 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7294 _LT_TAGVAR(hardcode_direct, $1)=yes
7295 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7296 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7300 case $host_vendor in
7302 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7303 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7306 ## LD is ld it makes a PLAMLIB
7307 ## CC just makes a GrossModule.
7308 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7309 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7310 _LT_TAGVAR(hardcode_direct, $1)=no
7313 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7317 runpath_var='LD_RUN_PATH'
7318 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7322 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7323 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7324 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7328 if test -d /usr/nec; then
7329 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7331 runpath_var=LD_RUN_PATH
7332 hardcode_runpath_var=yes
7333 _LT_TAGVAR(ld_shlibs, $1)=yes
7337 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7338 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7339 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7340 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7341 runpath_var='LD_RUN_PATH'
7343 if test "$GCC" = yes; then
7344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7347 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7348 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7352 sysv5* | sco3.2v5* | sco5v6*)
7353 # Note: We can NOT use -z defs as we might desire, because we do not
7354 # link with -lc, and that would cause any symbols used from libc to
7355 # always be unresolved, which means just about no library would
7356 # ever link correctly. If we're not using GNU ld we use -z text
7357 # though, which does catch some bad symbols but isn't as heavy-handed
7359 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7360 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7361 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7362 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7363 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7364 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7365 _LT_TAGVAR(link_all_deplibs, $1)=yes
7366 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7367 runpath_var='LD_RUN_PATH'
7369 if test "$GCC" = yes; then
7370 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7371 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7373 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7374 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7379 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7380 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7381 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7385 _LT_TAGVAR(ld_shlibs, $1)=no
7389 if test x$host_vendor = xsni; then
7391 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7392 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
7398 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7399 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7401 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
7403 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
7404 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
7405 _LT_DECL([], [extract_expsyms_cmds], [2],
7406 [The commands to extract the exported symbol list from a shared archive])
7409 # Do we need to explicitly link libc?
7411 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
7413 # Assume -lc should be added
7414 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7416 if test "$enable_shared" = yes && test "$GCC" = yes; then
7417 case $_LT_TAGVAR(archive_cmds, $1) in
7419 # FIXME: we may have to deal with multi-command sequences.
7422 # Test whether the compiler implicitly links with -lc since on some
7423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7424 # to ld, don't add -lc before -lgcc.
7425 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7429 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7432 libobjs=conftest.$ac_objext
7434 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7435 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7441 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7442 _LT_TAGVAR(allow_undefined_flag, $1)=
7443 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7445 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7447 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7449 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7451 cat conftest.err 1>&5
7454 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7461 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
7462 [Whether or not to add -lc for building shared libraries])
7463 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
7464 [enable_shared_with_static_runtimes], [0],
7465 [Whether or not to disallow shared libs when runtime libs are static])
7466 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
7467 [Compiler flag to allow reflexive dlopens])
7468 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
7469 [Compiler flag to generate shared objects directly from archives])
7470 _LT_TAGDECL([], [compiler_needs_object], [1],
7471 [Whether the compiler copes with passing no objects directly])
7472 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
7473 [Create an old-style archive from a shared archive])
7474 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
7475 [Create a temporary old-style archive to link instead of a shared archive])
7476 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
7477 _LT_TAGDECL([], [archive_expsym_cmds], [2])
7478 _LT_TAGDECL([], [module_cmds], [2],
7479 [Commands used to build a loadable module if different from building
7481 _LT_TAGDECL([], [module_expsym_cmds], [2])
7482 _LT_TAGDECL([], [with_gnu_ld], [1],
7483 [Whether we are building with GNU ld or not])
7484 _LT_TAGDECL([], [allow_undefined_flag], [1],
7485 [Flag that allows shared libraries with undefined symbols to be built])
7486 _LT_TAGDECL([], [no_undefined_flag], [1],
7487 [Flag that enforces no undefined symbols])
7488 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
7489 [Flag to hardcode $libdir into a binary during linking.
7490 This must work even if $libdir does not exist])
7491 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
7492 [[If ld is used when linking, flag to hardcode $libdir into a binary
7493 during linking. This must work even if $libdir does not exist]])
7494 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
7495 [Whether we need a single "-rpath" flag with a separated argument])
7496 _LT_TAGDECL([], [hardcode_direct], [0],
7497 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7498 DIR into the resulting binary])
7499 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
7500 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7501 DIR into the resulting binary and the resulting library dependency is
7502 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
7503 library is relocated])
7504 _LT_TAGDECL([], [hardcode_minus_L], [0],
7505 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
7506 into the resulting binary])
7507 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
7508 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
7509 into the resulting binary])
7510 _LT_TAGDECL([], [hardcode_automatic], [0],
7511 [Set to "yes" if building a shared library automatically hardcodes DIR
7512 into the library and all subsequent libraries and executables linked
7514 _LT_TAGDECL([], [inherit_rpath], [0],
7515 [Set to yes if linker adds runtime paths of dependent libraries
7516 to runtime path list])
7517 _LT_TAGDECL([], [link_all_deplibs], [0],
7518 [Whether libtool must link a program against all its dependency libraries])
7519 _LT_TAGDECL([], [fix_srcfile_path], [1],
7520 [Fix the shell variable $srcfile for the compiler])
7521 _LT_TAGDECL([], [always_export_symbols], [0],
7522 [Set to "yes" if exported symbols are required])
7523 _LT_TAGDECL([], [export_symbols_cmds], [2],
7524 [The commands to list exported symbols])
7525 _LT_TAGDECL([], [exclude_expsyms], [1],
7526 [Symbols that should not be listed in the preloaded symbols])
7527 _LT_TAGDECL([], [include_expsyms], [1],
7528 [Symbols that must always be exported])
7529 _LT_TAGDECL([], [prelink_cmds], [2],
7530 [Commands necessary for linking programs (against libraries) with templates])
7531 _LT_TAGDECL([], [file_list_spec], [1],
7532 [Specify filename containing input files])
7533 dnl FIXME: Not yet implemented
7534 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
7535 dnl [Compiler flag to generate thread safe objects])
7536 ])# _LT_LINKER_SHLIBS
7539 # _LT_LANG_C_CONFIG([TAG])
7540 # ------------------------
7541 # Ensure that the configuration variables for a C compiler are suitably
7542 # defined. These variables are subsequently used by _LT_CONFIG to write
7543 # the compiler configuration to `libtool'.
7544 m4_defun([_LT_LANG_C_CONFIG],
7545 [m4_require([_LT_DECL_EGREP])dnl
7549 # Source file extension for C test sources.
7552 # Object file extension for compiled C test sources.
7554 _LT_TAGVAR(objext, $1)=$objext
7556 # Code to be used in simple compile tests
7557 lt_simple_compile_test_code="int some_variable = 0;"
7559 # Code to be used in simple link tests
7560 lt_simple_link_test_code='int main(){return(0);}'
7563 # Save the default compiler, since it gets overwritten when the other
7564 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7565 compiler_DEFAULT=$CC
7567 # save warnings/boilerplate of simple test code
7568 _LT_COMPILER_BOILERPLATE
7569 _LT_LINKER_BOILERPLATE
7571 if test -n "$compiler"; then
7572 _LT_COMPILER_NO_RTTI($1)
7573 _LT_COMPILER_PIC($1)
7574 _LT_COMPILER_C_O($1)
7575 _LT_COMPILER_FILE_LOCKS($1)
7576 _LT_LINKER_SHLIBS($1)
7577 _LT_SYS_DYNAMIC_LINKER($1)
7578 _LT_LINKER_HARDCODE_LIBPATH($1)
7582 # Report which library types will actually be built
7583 AC_MSG_CHECKING([if libtool supports shared libraries])
7584 AC_MSG_RESULT([$can_build_shared])
7586 AC_MSG_CHECKING([whether to build shared libraries])
7587 test "$can_build_shared" = "no" && enable_shared=no
7589 # On AIX, shared libraries and static libraries use the same namespace, and
7590 # are all built from PIC.
7593 test "$enable_shared" = yes && enable_static=no
7594 if test -n "$RANLIB"; then
7595 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7596 postinstall_cmds='$RANLIB $lib'
7601 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7602 test "$enable_shared" = yes && enable_static=no
7606 AC_MSG_RESULT([$enable_shared])
7608 AC_MSG_CHECKING([whether to build static libraries])
7609 # Make sure either enable_shared or enable_static is yes.
7610 test "$enable_shared" = yes || enable_static=yes
7611 AC_MSG_RESULT([$enable_static])
7617 ])# _LT_LANG_C_CONFIG
7622 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
7623 # compiler, we have our own version here.
7624 m4_defun([_LT_PROG_CXX],
7626 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
7628 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7629 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7630 (test "X$CXX" != "Xg++"))) ; then
7633 _lt_caught_CXX_error=yes
7635 popdef([AC_MSG_ERROR])
7638 dnl aclocal-1.4 backwards compatibility:
7639 dnl AC_DEFUN([_LT_PROG_CXX], [])
7642 # _LT_LANG_CXX_CONFIG([TAG])
7643 # --------------------------
7644 # Ensure that the configuration variables for a C++ compiler are suitably
7645 # defined. These variables are subsequently used by _LT_CONFIG to write
7646 # the compiler configuration to `libtool'.
7647 m4_defun([_LT_LANG_CXX_CONFIG],
7648 [AC_REQUIRE([_LT_PROG_CXX])dnl
7649 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7650 m4_require([_LT_DECL_EGREP])dnl
7653 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7654 _LT_TAGVAR(allow_undefined_flag, $1)=
7655 _LT_TAGVAR(always_export_symbols, $1)=no
7656 _LT_TAGVAR(archive_expsym_cmds, $1)=
7657 _LT_TAGVAR(compiler_needs_object, $1)=no
7658 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7659 _LT_TAGVAR(hardcode_direct, $1)=no
7660 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7661 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7662 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7663 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7664 _LT_TAGVAR(hardcode_minus_L, $1)=no
7665 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7666 _LT_TAGVAR(hardcode_automatic, $1)=no
7667 _LT_TAGVAR(inherit_rpath, $1)=no
7668 _LT_TAGVAR(module_cmds, $1)=
7669 _LT_TAGVAR(module_expsym_cmds, $1)=
7670 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7671 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7672 _LT_TAGVAR(no_undefined_flag, $1)=
7673 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7674 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7676 # Source file extension for C++ test sources.
7679 # Object file extension for compiled C++ test sources.
7681 _LT_TAGVAR(objext, $1)=$objext
7683 # No sense in running all these tests if we already determined that
7684 # the CXX compiler isn't working. Some variables (like enable_shared)
7685 # are currently assumed to apply to all compilers on this platform,
7686 # and will be corrupted by setting them based on a non-working compiler.
7687 if test "$_lt_caught_CXX_error" != yes; then
7688 # Code to be used in simple compile tests
7689 lt_simple_compile_test_code="int some_variable = 0;"
7691 # Code to be used in simple link tests
7692 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
7694 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7697 # save warnings/boilerplate of simple test code
7698 _LT_COMPILER_BOILERPLATE
7699 _LT_LINKER_BOILERPLATE
7701 # Allow CC to be a program name with arguments.
7706 lt_save_with_gnu_ld=$with_gnu_ld
7707 lt_save_path_LD=$lt_cv_path_LD
7708 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
7709 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
7711 $as_unset lt_cv_prog_gnu_ld
7713 if test -n "${lt_cv_path_LDCXX+set}"; then
7714 lt_cv_path_LD=$lt_cv_path_LDCXX
7716 $as_unset lt_cv_path_LD
7718 test -z "${LDCXX+set}" || LD=$LDCXX
7721 _LT_TAGVAR(compiler, $1)=$CC
7722 _LT_CC_BASENAME([$compiler])
7724 if test -n "$compiler"; then
7725 # We don't want -fno-exception when compiling C++ code, so set the
7726 # no_builtin_flag separately
7727 if test "$GXX" = yes; then
7728 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7730 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7733 if test "$GXX" = yes; then
7734 # Set up default GNU C++ configuration
7738 # Check if GNU C++ uses GNU ld as the underlying linker, since the
7739 # archiving commands below assume that GNU ld is being used.
7740 if test "$with_gnu_ld" = yes; then
7741 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7742 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7744 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7745 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7747 # If archive_cmds runs LD, not CC, wlarc should be empty
7748 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7749 # investigate it a little bit more. (MM)
7752 # ancient GNU ld didn't support --whole-archive et. al.
7753 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
7754 $GREP 'no-whole-archive' > /dev/null; then
7755 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7757 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7763 # A generic and very simple default shared library creation
7764 # command for GNU C++ for the case where it uses the native
7765 # linker, instead of GNU ld. If possible, this setting should
7766 # overridden to take advantage of the native linker features on
7767 # the platform it is being used on.
7768 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7771 # Commands to make compiler produce verbose output that lists
7772 # what "hidden" libraries, object files and flags are used when
7773 # linking a shared library.
7774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7782 # PORTME: fill in a description of your system's C++ link characteristics
7783 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7784 _LT_TAGVAR(ld_shlibs, $1)=yes
7787 # FIXME: insert proper C++ library support
7788 _LT_TAGVAR(ld_shlibs, $1)=no
7791 if test "$host_cpu" = ia64; then
7792 # On IA64, the linker does run time linking by default, so we don't
7793 # have to do anything special.
7794 aix_use_runtimelinking=no
7795 exp_sym_flag='-Bexport'
7798 aix_use_runtimelinking=no
7800 # Test if we are trying to use run time linking or normal
7801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7802 # need to do runtime linking.
7803 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7804 for ld_flag in $LDFLAGS; do
7807 aix_use_runtimelinking=yes
7815 exp_sym_flag='-bexport'
7816 no_entry_flag='-bnoentry'
7819 # When large executables or shared objects are built, AIX ld can
7820 # have problems creating the table of contents. If linking a library
7821 # or program results in "error TOC overflow" add -mminimal-toc to
7822 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7823 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7825 _LT_TAGVAR(archive_cmds, $1)=''
7826 _LT_TAGVAR(hardcode_direct, $1)=yes
7827 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7828 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7829 _LT_TAGVAR(link_all_deplibs, $1)=yes
7830 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
7832 if test "$GXX" = yes; then
7833 case $host_os in aix4.[[012]]|aix4.[[012]].*)
7834 # We only want to do this on AIX 4.2 and lower, the check
7835 # below for broken collect2 doesn't work under 4.3+
7836 collect2name=`${CC} -print-prog-name=collect2`
7837 if test -f "$collect2name" &&
7838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7840 # We have reworked collect2
7843 # We have old collect2
7844 _LT_TAGVAR(hardcode_direct, $1)=unsupported
7845 # It fails to find uninstalled libraries when the uninstalled
7846 # path is not listed in the libpath. Setting hardcode_minus_L
7847 # to unsupported forces relinking
7848 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7849 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7850 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7853 shared_flag='-shared'
7854 if test "$aix_use_runtimelinking" = yes; then
7855 shared_flag="$shared_flag "'${wl}-G'
7859 if test "$host_cpu" = ia64; then
7860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7861 # chokes on -Wl,-G. The following line is correct:
7864 if test "$aix_use_runtimelinking" = yes; then
7865 shared_flag='${wl}-G'
7867 shared_flag='${wl}-bM:SRE'
7872 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7873 # It seems that -bexpall does not export symbols beginning with
7874 # underscore (_), so it is better to generate a list of symbols to
7876 _LT_TAGVAR(always_export_symbols, $1)=yes
7877 if test "$aix_use_runtimelinking" = yes; then
7878 # Warning - without using the other runtime loading flags (-brtl),
7879 # -berok will link without error, but may produce a broken library.
7880 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7881 # Determine the default libpath from the value encoded in an empty
7883 _LT_SYS_MODULE_PATH_AIX
7884 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7886 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7888 if test "$host_cpu" = ia64; then
7889 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7890 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7891 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7893 # Determine the default libpath from the value encoded in an
7895 _LT_SYS_MODULE_PATH_AIX
7896 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7897 # Warning - without using the other run time loading flags,
7898 # -berok will link without error, but may produce a broken library.
7899 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7900 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7901 # Exported symbols can be pulled into shared objects from archives
7902 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7903 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7904 # This is similar to how AIX traditionally builds its shared
7906 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7913 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7915 # support --undefined. This deserves some investigation. FIXME
7916 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7918 _LT_TAGVAR(ld_shlibs, $1)=no
7923 case $cc_basename in
7925 # FIXME: insert proper C++ library support
7926 _LT_TAGVAR(ld_shlibs, $1)=no
7931 cygwin* | mingw* | pw32* | cegcc*)
7932 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7933 # as there is no search path for DLLs.
7934 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7935 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7936 _LT_TAGVAR(always_export_symbols, $1)=no
7937 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7940 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7941 # If the export-symbols file already is a .def file (1st line
7942 # is EXPORTS), use it as is; otherwise, prepend...
7943 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7944 cp $export_symbols $output_objdir/$soname.def;
7946 echo EXPORTS > $output_objdir/$soname.def;
7947 cat $export_symbols >> $output_objdir/$soname.def;
7949 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7951 _LT_TAGVAR(ld_shlibs, $1)=no
7954 darwin* | rhapsody*)
7955 _LT_DARWIN_LINKER_FEATURES($1)
7959 case $cc_basename in
7961 # FIXME: insert proper C++ library support
7962 _LT_TAGVAR(ld_shlibs, $1)=no
7965 # Green Hills C++ Compiler
7966 # FIXME: insert proper C++ library support
7967 _LT_TAGVAR(ld_shlibs, $1)=no
7970 # FIXME: insert proper C++ library support
7971 _LT_TAGVAR(ld_shlibs, $1)=no
7977 # C++ shared libraries reported to be fairly broken before
7979 _LT_TAGVAR(ld_shlibs, $1)=no
7983 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7986 freebsd* | dragonfly*)
7987 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7989 _LT_TAGVAR(ld_shlibs, $1)=yes
7996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7997 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7998 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7999 _LT_TAGVAR(hardcode_direct, $1)=yes
8000 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8001 # but as the default
8002 # location of the library.
8004 case $cc_basename in
8006 # FIXME: insert proper C++ library support
8007 _LT_TAGVAR(ld_shlibs, $1)=no
8010 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8011 # Commands to make compiler produce verbose output that lists
8012 # what "hidden" libraries, object files and flags are used when
8013 # linking a shared library.
8015 # There doesn't appear to be a way to prevent this compiler from
8016 # explicitly linking system object files so we need to strip them
8017 # from the output so that they don't get included in the library
8019 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
8022 if test "$GXX" = yes; then
8023 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8025 # FIXME: insert proper C++ library support
8026 _LT_TAGVAR(ld_shlibs, $1)=no
8033 if test $with_gnu_ld = no; then
8034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8035 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8047 _LT_TAGVAR(hardcode_direct, $1)=no
8048 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8051 _LT_TAGVAR(hardcode_direct, $1)=yes
8052 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8053 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8054 # but as the default
8055 # location of the library.
8059 case $cc_basename in
8061 # FIXME: insert proper C++ library support
8062 _LT_TAGVAR(ld_shlibs, $1)=no
8067 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8070 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8073 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8076 # Commands to make compiler produce verbose output that lists
8077 # what "hidden" libraries, object files and flags are used when
8078 # linking a shared library.
8080 # There doesn't appear to be a way to prevent this compiler from
8081 # explicitly linking system object files so we need to strip them
8082 # from the output so that they don't get included in the library
8084 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
8087 if test "$GXX" = yes; then
8088 if test $with_gnu_ld = no; then
8091 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8094 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8097 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8102 # FIXME: insert proper C++ library support
8103 _LT_TAGVAR(ld_shlibs, $1)=no
8110 _LT_TAGVAR(hardcode_direct, $1)=no
8111 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8112 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8113 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8114 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8115 # Instead, shared libraries are loaded at an image base (0x10000000 by
8116 # default) and relocated if they conflict, which is a slow very memory
8117 # consuming and fragmenting process. To avoid this, we pick a random,
8118 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8119 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8120 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8121 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8124 case $cc_basename in
8127 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8129 # Archives containing C++ object files must be created using
8130 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
8131 # necessary to make sure instantiated templates are included
8133 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
8136 if test "$GXX" = yes; then
8137 if test "$with_gnu_ld" = no; then
8138 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8140 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
8143 _LT_TAGVAR(link_all_deplibs, $1)=yes
8146 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8147 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8148 _LT_TAGVAR(inherit_rpath, $1)=yes
8151 linux* | k*bsd*-gnu)
8152 case $cc_basename in
8154 # Kuck and Associates, Inc. (KAI) C++ Compiler
8156 # KCC will only create a shared library if the output file
8157 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8158 # to its proper name (with version) after linking.
8159 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8160 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
8161 # Commands to make compiler produce verbose output that lists
8162 # what "hidden" libraries, object files and flags are used when
8163 # linking a shared library.
8165 # There doesn't appear to be a way to prevent this compiler from
8166 # explicitly linking system object files so we need to strip them
8167 # from the output so that they don't get included in the library
8169 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
8171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8172 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8174 # Archives containing C++ object files must be created using
8175 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8176 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8181 # version 8.0 and above of icpc choke on multiply defined symbols
8182 # if we add $predep_objects and $postdep_objects, however 7.1 and
8183 # earlier do not add the objects themselves.
8184 case `$CC -V 2>&1` in
8186 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8187 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8189 *) # Version 8.0 or newer
8192 ia64*) tmp_idyn=' -i_dynamic';;
8194 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8195 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8198 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8199 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8200 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8201 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8204 # Portland Group C++ compiler
8206 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
8207 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
8209 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8210 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
8211 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
8213 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8214 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
8216 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
8218 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8219 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8220 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
8222 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8223 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8225 *) # Version 6 will use weak symbols
8226 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8227 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8232 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8233 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8237 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
8240 runpath_var=LD_RUN_PATH
8241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8242 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8244 # Commands to make compiler produce verbose output that lists
8245 # what "hidden" libraries, object files and flags are used when
8246 # linking a shared library.
8248 # There doesn't appear to be a way to prevent this compiler from
8249 # explicitly linking system object files so we need to strip them
8250 # from the output so that they don't get included in the library
8252 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
8255 # IBM XL 8.0 on PPC, with GNU ld
8256 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8257 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8258 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259 if test "x$supports_anon_versioning" = xyes; then
8260 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8262 echo "local: *; };" >> $output_objdir/$libname.ver~
8263 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8267 case `$CC -V 2>&1 | sed 5q` in
8270 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8271 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8272 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
8273 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8274 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8275 _LT_TAGVAR(compiler_needs_object, $1)=yes
8277 # Not sure whether something based on
8278 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
8280 output_verbose_link_cmd='echo'
8282 # Archives containing C++ object files must be created using
8283 # "CC -xar", where "CC" is the Sun C++ compiler. This is
8284 # necessary to make sure instantiated templates are included
8286 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8294 # FIXME: insert proper C++ library support
8295 _LT_TAGVAR(ld_shlibs, $1)=no
8299 # FIXME: insert proper C++ library support
8300 _LT_TAGVAR(ld_shlibs, $1)=no
8304 case $cc_basename in
8306 # FIXME: insert proper C++ library support
8307 _LT_TAGVAR(ld_shlibs, $1)=no
8310 # FIXME: insert proper C++ library support
8311 _LT_TAGVAR(ld_shlibs, $1)=no
8317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8318 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8320 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8321 _LT_TAGVAR(hardcode_direct, $1)=yes
8322 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8324 # Workaround some broken pre-1.5 toolchains
8325 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8329 _LT_TAGVAR(ld_shlibs, $1)=yes
8333 # C++ shared libraries are fairly broken
8334 _LT_TAGVAR(ld_shlibs, $1)=no
8338 if test -f /usr/libexec/ld.so; then
8339 _LT_TAGVAR(hardcode_direct, $1)=yes
8340 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8341 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8343 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
8346 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8347 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8349 output_verbose_link_cmd=echo
8351 _LT_TAGVAR(ld_shlibs, $1)=no
8355 osf3* | osf4* | osf5*)
8356 case $cc_basename in
8358 # Kuck and Associates, Inc. (KAI) C++ Compiler
8360 # KCC will only create a shared library if the output file
8361 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8362 # to its proper name (with version) after linking.
8363 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8365 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8366 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8368 # Archives containing C++ object files must be created using
8369 # the KAI C++ compiler.
8371 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
8372 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
8376 # Rational C++ 2.4.1
8377 # FIXME: insert proper C++ library support
8378 _LT_TAGVAR(ld_shlibs, $1)=no
8383 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8385 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8388 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8389 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8390 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8391 echo "-hidden">> $lib.exp~
8392 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
8394 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8398 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8400 # Commands to make compiler produce verbose output that lists
8401 # what "hidden" libraries, object files and flags are used when
8402 # linking a shared library.
8404 # There doesn't appear to be a way to prevent this compiler from
8405 # explicitly linking system object files so we need to strip them
8406 # from the output so that they don't get included in the library
8408 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
8411 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8412 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8415 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8418 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8422 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8423 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8425 # Commands to make compiler produce verbose output that lists
8426 # what "hidden" libraries, object files and flags are used when
8427 # linking a shared library.
8428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8431 # FIXME: insert proper C++ library support
8432 _LT_TAGVAR(ld_shlibs, $1)=no
8439 # FIXME: insert proper C++ library support
8440 _LT_TAGVAR(ld_shlibs, $1)=no
8444 case $cc_basename in
8447 # FIXME: insert proper C++ library support
8448 _LT_TAGVAR(ld_shlibs, $1)=no
8452 # FIXME: insert proper C++ library support
8453 _LT_TAGVAR(ld_shlibs, $1)=no
8456 # FIXME: insert proper C++ library support
8457 _LT_TAGVAR(ld_shlibs, $1)=no
8463 case $cc_basename in
8465 # Sun C++ 4.2, 5.x and Centerline C++
8466 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
8467 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8468 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8469 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8470 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8472 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8473 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8475 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8477 # The compiler driver will combine and reorder linker options,
8478 # but understands `-z linker_flag'.
8479 # Supported since Solaris 2.6 (maybe 2.5.1?)
8480 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8483 _LT_TAGVAR(link_all_deplibs, $1)=yes
8485 output_verbose_link_cmd='echo'
8487 # Archives containing C++ object files must be created using
8488 # "CC -xar", where "CC" is the Sun C++ compiler. This is
8489 # necessary to make sure instantiated templates are included
8491 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8494 # Green Hills C++ Compiler
8495 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8497 # The C++ compiler must be used to create the archive.
8498 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8501 # GNU C++ compiler with Solaris linker
8502 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8503 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8504 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
8505 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8506 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8507 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8509 # Commands to make compiler produce verbose output that lists
8510 # what "hidden" libraries, object files and flags are used when
8511 # linking a shared library.
8512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8514 # g++ 2.7 appears to require `-G' NOT `-shared' on this
8516 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8517 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8518 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8520 # Commands to make compiler produce verbose output that lists
8521 # what "hidden" libraries, object files and flags are used when
8522 # linking a shared library.
8523 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8526 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8528 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8530 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8538 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8539 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8540 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8541 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8542 runpath_var='LD_RUN_PATH'
8544 case $cc_basename in
8546 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8547 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8550 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8551 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8556 sysv5* | sco3.2v5* | sco5v6*)
8557 # Note: We can NOT use -z defs as we might desire, because we do not
8558 # link with -lc, and that would cause any symbols used from libc to
8559 # always be unresolved, which means just about no library would
8560 # ever link correctly. If we're not using GNU ld we use -z text
8561 # though, which does catch some bad symbols but isn't as heavy-handed
8563 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8564 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8565 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8566 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
8568 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8569 _LT_TAGVAR(link_all_deplibs, $1)=yes
8570 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8571 runpath_var='LD_RUN_PATH'
8573 case $cc_basename in
8575 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8576 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8579 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8580 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8586 case $cc_basename in
8588 # NonStop-UX NCC 3.20
8589 # FIXME: insert proper C++ library support
8590 _LT_TAGVAR(ld_shlibs, $1)=no
8593 # FIXME: insert proper C++ library support
8594 _LT_TAGVAR(ld_shlibs, $1)=no
8600 # FIXME: insert proper C++ library support
8601 _LT_TAGVAR(ld_shlibs, $1)=no
8605 # FIXME: insert proper C++ library support
8606 _LT_TAGVAR(ld_shlibs, $1)=no
8610 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8611 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8613 _LT_TAGVAR(GCC, $1)="$GXX"
8614 _LT_TAGVAR(LD, $1)="$LD"
8617 ## There is no encapsulation within the following macros, do not change
8618 ## the running order or otherwise move them around unless you know exactly
8619 ## what you are doing...
8620 _LT_SYS_HIDDEN_LIBDEPS($1)
8621 _LT_COMPILER_PIC($1)
8622 _LT_COMPILER_C_O($1)
8623 _LT_COMPILER_FILE_LOCKS($1)
8624 _LT_LINKER_SHLIBS($1)
8625 _LT_SYS_DYNAMIC_LINKER($1)
8626 _LT_LINKER_HARDCODE_LIBPATH($1)
8629 fi # test -n "$compiler"
8635 with_gnu_ld=$lt_save_with_gnu_ld
8636 lt_cv_path_LDCXX=$lt_cv_path_LD
8637 lt_cv_path_LD=$lt_save_path_LD
8638 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8639 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8640 fi # test "$_lt_caught_CXX_error" != yes
8643 ])# _LT_LANG_CXX_CONFIG
8646 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8647 # ---------------------------------
8648 # Figure out "hidden" library dependencies from verbose
8649 # compiler output when linking a shared library.
8650 # Parse the compiler output and extract the necessary
8651 # objects, libraries and library flags.
8652 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
8653 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8654 # Dependencies to place before and after the object being linked:
8655 _LT_TAGVAR(predep_objects, $1)=
8656 _LT_TAGVAR(postdep_objects, $1)=
8657 _LT_TAGVAR(predeps, $1)=
8658 _LT_TAGVAR(postdeps, $1)=
8659 _LT_TAGVAR(compiler_lib_search_path, $1)=
8661 dnl we can't use the lt_simple_compile_test_code here,
8662 dnl because it contains code intended for an executable,
8663 dnl not a library. It's possible we should let each
8664 dnl tag define a new lt_????_link_test_code variable,
8665 dnl but it's only used here...
8666 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
8668 void foo (void) { a = 0; }
8670 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
8674 Foo (void) { a = 0; }
8679 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
8687 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
8695 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
8698 public void bar (void) {
8704 dnl Parse the compiler output and extract the necessary
8705 dnl objects, libraries and library flags.
8706 if AC_TRY_EVAL(ac_compile); then
8707 # Parse the compiler output and extract the necessary
8708 # objects, libraries and library flags.
8710 # Sentinel used to keep track of whether or not we are before
8711 # the conftest object file.
8712 pre_test_object_deps_done=no
8714 for p in `eval "$output_verbose_link_cmd"`; do
8718 # Some compilers place space between "-{L,R}" and the path.
8720 if test $p = "-L" ||
8721 test $p = "-R"; then
8728 if test "$pre_test_object_deps_done" = no; then
8731 # Internal compiler library paths should come after those
8732 # provided the user. The postdeps already come after the
8733 # user supplied libs so there is no need to process them.
8734 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
8735 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8737 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8740 # The "-l" case would never come before the object being
8741 # linked, so don't bother handling this case.
8744 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
8745 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
8747 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
8753 # This assumes that the test object file only shows up
8754 # once in the compiler output.
8755 if test "$p" = "conftest.$objext"; then
8756 pre_test_object_deps_done=yes
8760 if test "$pre_test_object_deps_done" = no; then
8761 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
8762 _LT_TAGVAR(predep_objects, $1)="$p"
8764 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8767 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8768 _LT_TAGVAR(postdep_objects, $1)="$p"
8770 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8775 *) ;; # Ignore the rest.
8783 echo "libtool.m4: error: problem compiling $1 test program"
8786 $RM -f confest.$objext
8788 # PORTME: override above test on systems where it is broken
8792 # Interix 3.5 installs completely hosed .la files for C++, so rather than
8793 # hack all around it, let's just trust "g++" to DTRT.
8794 _LT_TAGVAR(predep_objects,$1)=
8795 _LT_TAGVAR(postdep_objects,$1)=
8796 _LT_TAGVAR(postdeps,$1)=
8800 case `$CC -V 2>&1 | sed 5q` in
8804 # The more standards-conforming stlport4 library is
8805 # incompatible with the Cstd library. Avoid specifying
8806 # it if it's in CXXFLAGS. Ignore libCrun as
8807 # -library=stlport4 depends on it.
8808 case " $CXX $CXXFLAGS " in
8809 *" -library=stlport4 "*)
8810 solaris_use_stlport4=yes
8814 if test "$solaris_use_stlport4" != yes; then
8815 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8822 case $cc_basename in
8824 # The more standards-conforming stlport4 library is
8825 # incompatible with the Cstd library. Avoid specifying
8826 # it if it's in CXXFLAGS. Ignore libCrun as
8827 # -library=stlport4 depends on it.
8828 case " $CXX $CXXFLAGS " in
8829 *" -library=stlport4 "*)
8830 solaris_use_stlport4=yes
8834 # Adding this requires a known-good setup of shared libraries for
8835 # Sun compiler versions before 5.6, else PIC objects from an old
8836 # archive will be linked into the output, leading to subtle bugs.
8837 if test "$solaris_use_stlport4" != yes; then
8838 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8846 case " $_LT_TAGVAR(postdeps, $1) " in
8847 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8849 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
8850 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
8851 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
8853 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
8854 [The directories searched by this compiler when creating a shared library])
8855 _LT_TAGDECL([], [predep_objects], [1],
8856 [Dependencies to place before and after the objects being linked to
8857 create a shared library])
8858 _LT_TAGDECL([], [postdep_objects], [1])
8859 _LT_TAGDECL([], [predeps], [1])
8860 _LT_TAGDECL([], [postdeps], [1])
8861 _LT_TAGDECL([], [compiler_lib_search_path], [1],
8862 [The library search path used internally by the compiler when linking
8864 ])# _LT_SYS_HIDDEN_LIBDEPS
8869 # Since AC_PROG_F77 is broken, in that it returns the empty string
8870 # if there is no fortran compiler, we have our own version here.
8871 m4_defun([_LT_PROG_F77],
8873 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
8875 if test -z "$F77" || test "X$F77" = "Xno"; then
8878 popdef([AC_MSG_ERROR])
8881 dnl aclocal-1.4 backwards compatibility:
8882 dnl AC_DEFUN([_LT_PROG_F77], [])
8885 # _LT_LANG_F77_CONFIG([TAG])
8886 # --------------------------
8887 # Ensure that the configuration variables for a Fortran 77 compiler are
8888 # suitably defined. These variables are subsequently used by _LT_CONFIG
8889 # to write the compiler configuration to `libtool'.
8890 m4_defun([_LT_LANG_F77_CONFIG],
8891 [AC_REQUIRE([_LT_PROG_F77])dnl
8892 AC_LANG_PUSH(Fortran 77)
8894 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8895 _LT_TAGVAR(allow_undefined_flag, $1)=
8896 _LT_TAGVAR(always_export_symbols, $1)=no
8897 _LT_TAGVAR(archive_expsym_cmds, $1)=
8898 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8899 _LT_TAGVAR(hardcode_direct, $1)=no
8900 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8901 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8902 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8903 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8904 _LT_TAGVAR(hardcode_minus_L, $1)=no
8905 _LT_TAGVAR(hardcode_automatic, $1)=no
8906 _LT_TAGVAR(inherit_rpath, $1)=no
8907 _LT_TAGVAR(module_cmds, $1)=
8908 _LT_TAGVAR(module_expsym_cmds, $1)=
8909 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8910 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8911 _LT_TAGVAR(no_undefined_flag, $1)=
8912 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8913 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8915 # Source file extension for f77 test sources.
8918 # Object file extension for compiled f77 test sources.
8920 _LT_TAGVAR(objext, $1)=$objext
8922 # No sense in running all these tests if we already determined that
8923 # the F77 compiler isn't working. Some variables (like enable_shared)
8924 # are currently assumed to apply to all compilers on this platform,
8925 # and will be corrupted by setting them based on a non-working compiler.
8926 if test "$_lt_disable_F77" != yes; then
8927 # Code to be used in simple compile tests
8928 lt_simple_compile_test_code="\
8934 # Code to be used in simple link tests
8935 lt_simple_link_test_code="\
8940 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8943 # save warnings/boilerplate of simple test code
8944 _LT_COMPILER_BOILERPLATE
8945 _LT_LINKER_BOILERPLATE
8947 # Allow CC to be a program name with arguments.
8952 _LT_TAGVAR(compiler, $1)=$CC
8953 _LT_CC_BASENAME([$compiler])
8955 if test -n "$compiler"; then
8956 AC_MSG_CHECKING([if libtool supports shared libraries])
8957 AC_MSG_RESULT([$can_build_shared])
8959 AC_MSG_CHECKING([whether to build shared libraries])
8960 test "$can_build_shared" = "no" && enable_shared=no
8962 # On AIX, shared libraries and static libraries use the same namespace, and
8963 # are all built from PIC.
8966 test "$enable_shared" = yes && enable_static=no
8967 if test -n "$RANLIB"; then
8968 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8969 postinstall_cmds='$RANLIB $lib'
8973 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8974 test "$enable_shared" = yes && enable_static=no
8978 AC_MSG_RESULT([$enable_shared])
8980 AC_MSG_CHECKING([whether to build static libraries])
8981 # Make sure either enable_shared or enable_static is yes.
8982 test "$enable_shared" = yes || enable_static=yes
8983 AC_MSG_RESULT([$enable_static])
8985 _LT_TAGVAR(GCC, $1)="$G77"
8986 _LT_TAGVAR(LD, $1)="$LD"
8989 ## There is no encapsulation within the following macros, do not change
8990 ## the running order or otherwise move them around unless you know exactly
8991 ## what you are doing...
8992 _LT_COMPILER_PIC($1)
8993 _LT_COMPILER_C_O($1)
8994 _LT_COMPILER_FILE_LOCKS($1)
8995 _LT_LINKER_SHLIBS($1)
8996 _LT_SYS_DYNAMIC_LINKER($1)
8997 _LT_LINKER_HARDCODE_LIBPATH($1)
9000 fi # test -n "$compiler"
9004 fi # test "$_lt_disable_F77" != yes
9007 ])# _LT_LANG_F77_CONFIG
9012 # Since AC_PROG_FC is broken, in that it returns the empty string
9013 # if there is no fortran compiler, we have our own version here.
9014 m4_defun([_LT_PROG_FC],
9016 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
9018 if test -z "$FC" || test "X$FC" = "Xno"; then
9021 popdef([AC_MSG_ERROR])
9024 dnl aclocal-1.4 backwards compatibility:
9025 dnl AC_DEFUN([_LT_PROG_FC], [])
9028 # _LT_LANG_FC_CONFIG([TAG])
9029 # -------------------------
9030 # Ensure that the configuration variables for a Fortran compiler are
9031 # suitably defined. These variables are subsequently used by _LT_CONFIG
9032 # to write the compiler configuration to `libtool'.
9033 m4_defun([_LT_LANG_FC_CONFIG],
9034 [AC_REQUIRE([_LT_PROG_FC])dnl
9035 AC_LANG_PUSH(Fortran)
9037 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9038 _LT_TAGVAR(allow_undefined_flag, $1)=
9039 _LT_TAGVAR(always_export_symbols, $1)=no
9040 _LT_TAGVAR(archive_expsym_cmds, $1)=
9041 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
9042 _LT_TAGVAR(hardcode_direct, $1)=no
9043 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
9044 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9045 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9046 _LT_TAGVAR(hardcode_libdir_separator, $1)=
9047 _LT_TAGVAR(hardcode_minus_L, $1)=no
9048 _LT_TAGVAR(hardcode_automatic, $1)=no
9049 _LT_TAGVAR(inherit_rpath, $1)=no
9050 _LT_TAGVAR(module_cmds, $1)=
9051 _LT_TAGVAR(module_expsym_cmds, $1)=
9052 _LT_TAGVAR(link_all_deplibs, $1)=unknown
9053 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9054 _LT_TAGVAR(no_undefined_flag, $1)=
9055 _LT_TAGVAR(whole_archive_flag_spec, $1)=
9056 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9058 # Source file extension for fc test sources.
9059 ac_ext=${ac_fc_srcext-f}
9061 # Object file extension for compiled fc test sources.
9063 _LT_TAGVAR(objext, $1)=$objext
9065 # No sense in running all these tests if we already determined that
9066 # the FC compiler isn't working. Some variables (like enable_shared)
9067 # are currently assumed to apply to all compilers on this platform,
9068 # and will be corrupted by setting them based on a non-working compiler.
9069 if test "$_lt_disable_FC" != yes; then
9070 # Code to be used in simple compile tests
9071 lt_simple_compile_test_code="\
9077 # Code to be used in simple link tests
9078 lt_simple_link_test_code="\
9083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9086 # save warnings/boilerplate of simple test code
9087 _LT_COMPILER_BOILERPLATE
9088 _LT_LINKER_BOILERPLATE
9090 # Allow CC to be a program name with arguments.
9095 GCC=$ac_cv_fc_compiler_gnu
9097 _LT_TAGVAR(compiler, $1)=$CC
9098 _LT_CC_BASENAME([$compiler])
9100 if test -n "$compiler"; then
9101 AC_MSG_CHECKING([if libtool supports shared libraries])
9102 AC_MSG_RESULT([$can_build_shared])
9104 AC_MSG_CHECKING([whether to build shared libraries])
9105 test "$can_build_shared" = "no" && enable_shared=no
9107 # On AIX, shared libraries and static libraries use the same namespace, and
9108 # are all built from PIC.
9111 test "$enable_shared" = yes && enable_static=no
9112 if test -n "$RANLIB"; then
9113 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9114 postinstall_cmds='$RANLIB $lib'
9118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9119 test "$enable_shared" = yes && enable_static=no
9123 AC_MSG_RESULT([$enable_shared])
9125 AC_MSG_CHECKING([whether to build static libraries])
9126 # Make sure either enable_shared or enable_static is yes.
9127 test "$enable_shared" = yes || enable_static=yes
9128 AC_MSG_RESULT([$enable_static])
9130 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
9131 _LT_TAGVAR(LD, $1)="$LD"
9134 ## There is no encapsulation within the following macros, do not change
9135 ## the running order or otherwise move them around unless you know exactly
9136 ## what you are doing...
9137 _LT_SYS_HIDDEN_LIBDEPS($1)
9138 _LT_COMPILER_PIC($1)
9139 _LT_COMPILER_C_O($1)
9140 _LT_COMPILER_FILE_LOCKS($1)
9141 _LT_LINKER_SHLIBS($1)
9142 _LT_SYS_DYNAMIC_LINKER($1)
9143 _LT_LINKER_HARDCODE_LIBPATH($1)
9146 fi # test -n "$compiler"
9150 fi # test "$_lt_disable_FC" != yes
9153 ])# _LT_LANG_FC_CONFIG
9156 # _LT_LANG_GCJ_CONFIG([TAG])
9157 # --------------------------
9158 # Ensure that the configuration variables for the GNU Java Compiler compiler
9159 # are suitably defined. These variables are subsequently used by _LT_CONFIG
9160 # to write the compiler configuration to `libtool'.
9161 m4_defun([_LT_LANG_GCJ_CONFIG],
9162 [AC_REQUIRE([LT_PROG_GCJ])dnl
9165 # Source file extension for Java test sources.
9168 # Object file extension for compiled Java test sources.
9170 _LT_TAGVAR(objext, $1)=$objext
9172 # Code to be used in simple compile tests
9173 lt_simple_compile_test_code="class foo {}"
9175 # Code to be used in simple link tests
9176 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
9178 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9181 # save warnings/boilerplate of simple test code
9182 _LT_COMPILER_BOILERPLATE
9183 _LT_LINKER_BOILERPLATE
9185 # Allow CC to be a program name with arguments.
9191 _LT_TAGVAR(compiler, $1)=$CC
9192 _LT_TAGVAR(LD, $1)="$LD"
9193 _LT_CC_BASENAME([$compiler])
9195 # GCJ did not exist at the time GCC didn't implicitly link libc in.
9196 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9198 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9200 if test -n "$compiler"; then
9201 _LT_COMPILER_NO_RTTI($1)
9202 _LT_COMPILER_PIC($1)
9203 _LT_COMPILER_C_O($1)
9204 _LT_COMPILER_FILE_LOCKS($1)
9205 _LT_LINKER_SHLIBS($1)
9206 _LT_LINKER_HARDCODE_LIBPATH($1)
9215 ])# _LT_LANG_GCJ_CONFIG
9218 # _LT_LANG_RC_CONFIG([TAG])
9219 # -------------------------
9220 # Ensure that the configuration variables for the Windows resource compiler
9221 # are suitably defined. These variables are subsequently used by _LT_CONFIG
9222 # to write the compiler configuration to `libtool'.
9223 m4_defun([_LT_LANG_RC_CONFIG],
9224 [AC_REQUIRE([LT_PROG_RC])dnl
9227 # Source file extension for RC test sources.
9230 # Object file extension for compiled RC test sources.
9232 _LT_TAGVAR(objext, $1)=$objext
9234 # Code to be used in simple compile tests
9235 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
9237 # Code to be used in simple link tests
9238 lt_simple_link_test_code="$lt_simple_compile_test_code"
9240 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9243 # save warnings/boilerplate of simple test code
9244 _LT_COMPILER_BOILERPLATE
9245 _LT_LINKER_BOILERPLATE
9247 # Allow CC to be a program name with arguments.
9253 _LT_TAGVAR(compiler, $1)=$CC
9254 _LT_CC_BASENAME([$compiler])
9255 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
9257 if test -n "$compiler"; then
9265 ])# _LT_LANG_RC_CONFIG
9270 AC_DEFUN([LT_PROG_GCJ],
9271 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
9272 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
9273 [AC_CHECK_TOOL(GCJ, gcj,)
9274 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9275 AC_SUBST(GCJFLAGS)])])[]dnl
9279 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
9280 dnl aclocal-1.4 backwards compatibility:
9281 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
9286 AC_DEFUN([LT_PROG_RC],
9287 [AC_CHECK_TOOL(RC, windres,)
9291 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
9292 dnl aclocal-1.4 backwards compatibility:
9293 dnl AC_DEFUN([LT_AC_PROG_RC], [])
9298 # If we don't have a new enough Autoconf to choose the best grep
9299 # available, choose the one first in the user's PATH.
9300 m4_defun([_LT_DECL_EGREP],
9301 [AC_REQUIRE([AC_PROG_EGREP])dnl
9302 AC_REQUIRE([AC_PROG_FGREP])dnl
9303 test -z "$GREP" && GREP=grep
9304 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
9305 _LT_DECL([], [EGREP], [1], [An ERE matcher])
9306 _LT_DECL([], [FGREP], [1], [A literal string matcher])
9307 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
9314 # If we don't have a new enough Autoconf to choose the best objdump
9315 # available, choose the one first in the user's PATH.
9316 m4_defun([_LT_DECL_OBJDUMP],
9317 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
9318 test -z "$OBJDUMP" && OBJDUMP=objdump
9319 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
9326 # Check for a fully-functional sed program, that truncates
9327 # as few characters as possible. Prefer GNU sed if found.
9328 m4_defun([_LT_DECL_SED],
9330 test -z "$SED" && SED=sed
9331 Xsed="$SED -e 1s/^X//"
9332 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
9333 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
9334 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
9337 m4_ifndef([AC_PROG_SED], [
9338 # NOTE: This macro has been submitted for inclusion into #
9339 # GNU Autoconf as AC_PROG_SED. When it is available in #
9340 # a released version of Autoconf we should remove this #
9341 # macro and use it instead. #
9343 m4_defun([AC_PROG_SED],
9344 [AC_MSG_CHECKING([for a sed that does not truncate output])
9345 AC_CACHE_VAL(lt_cv_path_SED,
9346 [# Loop through the user's path and test for sed and gsed.
9347 # Then use that list of sed's as ones to test for truncation.
9348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352 test -z "$as_dir" && as_dir=.
9353 for lt_ac_prog in sed gsed; do
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9356 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9364 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9365 # along with /bin/sed that truncates output.
9366 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9367 test ! -f $lt_ac_sed && continue
9368 cat /dev/null > conftest.in
9370 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9371 # Check for GNU sed and select it if it is found.
9372 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9373 lt_cv_path_SED=$lt_ac_sed
9377 cat conftest.in conftest.in >conftest.tmp
9378 mv conftest.tmp conftest.in
9379 cp conftest.in conftest.nl
9381 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9382 cmp -s conftest.out conftest.nl || break
9383 # 10000 chars as input seems more than enough
9384 test $lt_ac_count -gt 10 && break
9385 lt_ac_count=`expr $lt_ac_count + 1`
9386 if test $lt_ac_count -gt $lt_ac_max; then
9387 lt_ac_max=$lt_ac_count
9388 lt_cv_path_SED=$lt_ac_sed
9395 AC_MSG_RESULT([$SED])
9400 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
9401 dnl aclocal-1.4 backwards compatibility:
9402 dnl AC_DEFUN([LT_AC_PROG_SED], [])
9405 # _LT_CHECK_SHELL_FEATURES
9406 # ------------------------
9407 # Find out whether the shell is Bourne or XSI compatible,
9408 # or has some other useful features.
9409 m4_defun([_LT_CHECK_SHELL_FEATURES],
9410 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
9411 # Try some XSI features
9414 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9416 && eval 'test $(( 1 + 1 )) -eq 2 \
9417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9419 AC_MSG_RESULT([$xsi_shell])
9420 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
9422 AC_MSG_CHECKING([whether the shell understands "+="])
9424 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
9426 && lt_shell_append=yes
9427 AC_MSG_RESULT([$lt_shell_append])
9428 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
9430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9435 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
9437 # test EBCDIC or ASCII
9438 case `echo X|tr X '\101'` in
9439 A) # ASCII based system
9440 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9441 lt_SP2NL='tr \040 \012'
9442 lt_NL2SP='tr \015\012 \040\040'
9444 *) # EBCDIC based system
9445 lt_SP2NL='tr \100 \n'
9446 lt_NL2SP='tr \r\n \100\100'
9449 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
9450 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
9451 ])# _LT_CHECK_SHELL_FEATURES
9454 # _LT_PROG_XSI_SHELLFNS
9455 # ---------------------
9456 # Bourne and XSI compatible variants of some useful shell functions.
9457 m4_defun([_LT_PROG_XSI_SHELLFNS],
9460 cat << \_LT_EOF >> "$cfgfile"
9462 # func_dirname file append nondir_replacement
9463 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
9464 # otherwise set result to NONDIR_REPLACEMENT.
9468 */*) func_dirname_result="${1%/*}${2}" ;;
9469 * ) func_dirname_result="${3}" ;;
9473 # func_basename file
9476 func_basename_result="${1##*/}"
9479 # func_dirname_and_basename file append nondir_replacement
9480 # perform func_basename and func_dirname in a single function
9482 # dirname: Compute the dirname of FILE. If nonempty,
9483 # add APPEND to the result, otherwise set result
9484 # to NONDIR_REPLACEMENT.
9485 # value returned in "$func_dirname_result"
9486 # basename: Compute filename of FILE.
9487 # value retuned in "$func_basename_result"
9488 # Implementation must be kept synchronized with func_dirname
9489 # and func_basename. For efficiency, we do not delegate to
9490 # those functions but instead duplicate the functionality here.
9491 func_dirname_and_basename ()
9494 */*) func_dirname_result="${1%/*}${2}" ;;
9495 * ) func_dirname_result="${3}" ;;
9497 func_basename_result="${1##*/}"
9500 # func_stripname prefix suffix name
9501 # strip PREFIX and SUFFIX off of NAME.
9502 # PREFIX and SUFFIX must not contain globbing or regex special
9503 # characters, hashes, percent signs, but SUFFIX may contain a leading
9504 # dot (in which case that matches only a dot).
9507 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
9508 # positional parameters, so assign one to ordinary parameter first.
9509 func_stripname_result=${3}
9510 func_stripname_result=${func_stripname_result#"${1}"}
9511 func_stripname_result=${func_stripname_result%"${2}"}
9517 func_opt_split_opt=${1%%=*}
9518 func_opt_split_arg=${1#*=}
9525 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
9526 *) func_lo2o_result=${1} ;;
9530 # func_xform libobj-or-source
9533 func_xform_result=${1%.*}.lo
9536 # func_arith arithmetic-term...
9539 func_arith_result=$(( $[*] ))
9543 # STRING may not start with a hyphen.
9546 func_len_result=${#1}
9551 *) # Bourne compatible functions.
9552 cat << \_LT_EOF >> "$cfgfile"
9554 # func_dirname file append nondir_replacement
9555 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
9556 # otherwise set result to NONDIR_REPLACEMENT.
9559 # Extract subdirectory from the argument.
9560 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
9561 if test "X$func_dirname_result" = "X${1}"; then
9562 func_dirname_result="${3}"
9564 func_dirname_result="$func_dirname_result${2}"
9568 # func_basename file
9571 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
9574 dnl func_dirname_and_basename
9575 dnl A portable version of this function is already defined in general.m4sh
9576 dnl so there is no need for it here.
9578 # func_stripname prefix suffix name
9579 # strip PREFIX and SUFFIX off of NAME.
9580 # PREFIX and SUFFIX must not contain globbing or regex special
9581 # characters, hashes, percent signs, but SUFFIX may contain a leading
9582 # dot (in which case that matches only a dot).
9583 # func_strip_suffix prefix name
9587 .*) func_stripname_result=`$ECHO "X${3}" \
9588 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
9589 *) func_stripname_result=`$ECHO "X${3}" \
9590 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
9595 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
9596 my_sed_long_arg='1s/^-[[^=]]*=//'
9601 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
9602 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
9608 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
9611 # func_xform libobj-or-source
9614 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
9617 # func_arith arithmetic-term...
9620 func_arith_result=`expr "$[@]"`
9624 # STRING may not start with a hyphen.
9627 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
9633 case $lt_shell_append in
9635 cat << \_LT_EOF >> "$cfgfile"
9637 # func_append var value
9638 # Append VALUE to the end of shell variable VAR.
9646 cat << \_LT_EOF >> "$cfgfile"
9648 # func_append var value
9649 # Append VALUE to the end of shell variable VAR.
9652 eval "$[1]=\$$[1]\$[2]"
9660 # Helper functions for option handling. -*- Autoconf -*-
9662 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9663 # Written by Gary V. Vaughan, 2004
9665 # This file is free software; the Free Software Foundation gives
9666 # unlimited permission to copy and/or distribute it, with or without
9667 # modifications, as long as this notice is preserved.
9669 # serial 6 ltoptions.m4
9671 # This is to help aclocal find these macros, as it can't see m4_define.
9672 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9675 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
9676 # ------------------------------------------
9677 m4_define([_LT_MANGLE_OPTION],
9678 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
9681 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
9682 # ---------------------------------------
9683 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
9684 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
9686 m4_define([_LT_SET_OPTION],
9687 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
9688 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
9689 _LT_MANGLE_DEFUN([$1], [$2]),
9690 [m4_warning([Unknown $1 option `$2'])])[]dnl
9694 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
9695 # ------------------------------------------------------------
9696 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9697 m4_define([_LT_IF_OPTION],
9698 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
9701 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
9702 # -------------------------------------------------------
9703 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
9705 m4_define([_LT_UNLESS_OPTIONS],
9706 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9707 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
9708 [m4_define([$0_found])])])[]dnl
9709 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
9714 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
9715 # ----------------------------------------
9716 # OPTION-LIST is a space-separated list of Libtool options associated
9717 # with MACRO-NAME. If any OPTION has a matching handler declared with
9718 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
9719 # the unknown option and exit.
9720 m4_defun([_LT_SET_OPTIONS],
9722 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9723 [_LT_SET_OPTION([$1], _LT_Option)])
9725 m4_if([$1],[LT_INIT],[
9727 dnl Simply set some default values (i.e off) if boolean options were not
9729 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
9731 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
9734 dnl If no reference was made to various pairs of opposing options, then
9735 dnl we run the default mode handler for the pair. For example, if neither
9736 dnl `shared' nor `disable-shared' was passed, we enable building of shared
9737 dnl archives by default:
9738 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
9739 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
9740 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
9741 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
9742 [_LT_ENABLE_FAST_INSTALL])
9748 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
9749 # -----------------------------------------
9750 m4_define([_LT_MANGLE_DEFUN],
9751 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
9754 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
9755 # -----------------------------------------------
9756 m4_define([LT_OPTION_DEFINE],
9757 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
9758 ])# LT_OPTION_DEFINE
9763 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
9766 AU_DEFUN([AC_LIBTOOL_DLOPEN],
9767 [_LT_SET_OPTION([LT_INIT], [dlopen])
9768 AC_DIAGNOSE([obsolete],
9769 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9770 put the `dlopen' option into LT_INIT's first parameter.])
9773 dnl aclocal-1.4 backwards compatibility:
9774 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9779 # Declare package support for building win32 dll's.
9780 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9781 [enable_win32_dll=yes
9784 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
9785 AC_CHECK_TOOL(AS, as, false)
9786 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9787 AC_CHECK_TOOL(OBJDUMP, objdump, false)
9791 test -z "$AS" && AS=as
9792 _LT_DECL([], [AS], [0], [Assembler program])dnl
9794 test -z "$DLLTOOL" && DLLTOOL=dlltool
9795 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
9797 test -z "$OBJDUMP" && OBJDUMP=objdump
9798 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
9801 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9802 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
9803 _LT_SET_OPTION([LT_INIT], [win32-dll])
9804 AC_DIAGNOSE([obsolete],
9805 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9806 put the `win32-dll' option into LT_INIT's first parameter.])
9809 dnl aclocal-1.4 backwards compatibility:
9810 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9813 # _LT_ENABLE_SHARED([DEFAULT])
9814 # ----------------------------
9815 # implement the --enable-shared flag, and supports the `shared' and
9816 # `disable-shared' LT_INIT options.
9817 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9818 m4_define([_LT_ENABLE_SHARED],
9819 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9820 AC_ARG_ENABLE([shared],
9821 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9822 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9823 [p=${PACKAGE-default}
9825 yes) enable_shared=yes ;;
9826 no) enable_shared=no ;;
9829 # Look at the argument we got. We use all the common list separators.
9830 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9831 for pkg in $enableval; do
9833 if test "X$pkg" = "X$p"; then
9840 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9842 _LT_DECL([build_libtool_libs], [enable_shared], [0],
9843 [Whether or not to build shared libraries])
9844 ])# _LT_ENABLE_SHARED
9846 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9847 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9850 AC_DEFUN([AC_ENABLE_SHARED],
9851 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9854 AC_DEFUN([AC_DISABLE_SHARED],
9855 [_LT_SET_OPTION([LT_INIT], [disable-shared])
9858 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9859 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9861 dnl aclocal-1.4 backwards compatibility:
9862 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9863 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9867 # _LT_ENABLE_STATIC([DEFAULT])
9868 # ----------------------------
9869 # implement the --enable-static flag, and support the `static' and
9870 # `disable-static' LT_INIT options.
9871 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9872 m4_define([_LT_ENABLE_STATIC],
9873 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9874 AC_ARG_ENABLE([static],
9875 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9876 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9877 [p=${PACKAGE-default}
9879 yes) enable_static=yes ;;
9880 no) enable_static=no ;;
9883 # Look at the argument we got. We use all the common list separators.
9884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9885 for pkg in $enableval; do
9887 if test "X$pkg" = "X$p"; then
9894 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9896 _LT_DECL([build_old_libs], [enable_static], [0],
9897 [Whether or not to build static libraries])
9898 ])# _LT_ENABLE_STATIC
9900 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9901 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9904 AC_DEFUN([AC_ENABLE_STATIC],
9905 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9908 AC_DEFUN([AC_DISABLE_STATIC],
9909 [_LT_SET_OPTION([LT_INIT], [disable-static])
9912 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9913 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9915 dnl aclocal-1.4 backwards compatibility:
9916 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
9917 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
9921 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
9922 # ----------------------------------
9923 # implement the --enable-fast-install flag, and support the `fast-install'
9924 # and `disable-fast-install' LT_INIT options.
9925 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9926 m4_define([_LT_ENABLE_FAST_INSTALL],
9927 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
9928 AC_ARG_ENABLE([fast-install],
9929 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
9930 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
9931 [p=${PACKAGE-default}
9933 yes) enable_fast_install=yes ;;
9934 no) enable_fast_install=no ;;
9936 enable_fast_install=no
9937 # Look at the argument we got. We use all the common list separators.
9938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9939 for pkg in $enableval; do
9941 if test "X$pkg" = "X$p"; then
9942 enable_fast_install=yes
9948 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9950 _LT_DECL([fast_install], [enable_fast_install], [0],
9951 [Whether or not to optimize for fast installation])dnl
9952 ])# _LT_ENABLE_FAST_INSTALL
9954 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9955 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9958 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9959 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9960 AC_DIAGNOSE([obsolete],
9961 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9962 the `fast-install' option into LT_INIT's first parameter.])
9965 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9966 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9967 AC_DIAGNOSE([obsolete],
9968 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9969 the `disable-fast-install' option into LT_INIT's first parameter.])
9972 dnl aclocal-1.4 backwards compatibility:
9973 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9974 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9977 # _LT_WITH_PIC([MODE])
9978 # --------------------
9979 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
9981 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
9982 m4_define([_LT_WITH_PIC],
9984 [AS_HELP_STRING([--with-pic],
9985 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9986 [pic_mode="$withval"],
9989 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9991 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9994 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9995 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9998 AU_DEFUN([AC_LIBTOOL_PICMODE],
9999 [_LT_SET_OPTION([LT_INIT], [pic-only])
10000 AC_DIAGNOSE([obsolete],
10001 [$0: Remove this warning and the call to _LT_SET_OPTION when you
10002 put the `pic-only' option into LT_INIT's first parameter.])
10005 dnl aclocal-1.4 backwards compatibility:
10006 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
10009 m4_define([_LTDL_MODE], [])
10010 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
10011 [m4_define([_LTDL_MODE], [nonrecursive])])
10012 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
10013 [m4_define([_LTDL_MODE], [recursive])])
10014 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
10015 [m4_define([_LTDL_MODE], [subproject])])
10017 m4_define([_LTDL_TYPE], [])
10018 LT_OPTION_DEFINE([LTDL_INIT], [installable],
10019 [m4_define([_LTDL_TYPE], [installable])])
10020 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
10021 [m4_define([_LTDL_TYPE], [convenience])])
10023 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
10025 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
10026 # Written by Gary V. Vaughan, 2004
10028 # This file is free software; the Free Software Foundation gives
10029 # unlimited permission to copy and/or distribute it, with or without
10030 # modifications, as long as this notice is preserved.
10032 # serial 6 ltsugar.m4
10034 # This is to help aclocal find these macros, as it can't see m4_define.
10035 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
10038 # lt_join(SEP, ARG1, [ARG2...])
10039 # -----------------------------
10040 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
10041 # associated separator.
10042 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
10043 # versions in m4sugar had bugs.
10044 m4_define([lt_join],
10045 [m4_if([$#], [1], [],
10047 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
10048 m4_define([_lt_join],
10049 [m4_if([$#$2], [2], [],
10050 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
10056 # Manipulate m4 lists.
10057 # These macros are necessary as long as will still need to support
10058 # Autoconf-2.59 which quotes differently.
10059 m4_define([lt_car], [[$1]])
10060 m4_define([lt_cdr],
10061 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
10063 [m4_dquote(m4_shift($@))])])
10064 m4_define([lt_unquote], $1)
10067 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
10068 # ------------------------------------------
10069 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
10070 # Note that neither SEPARATOR nor STRING are expanded; they are appended
10071 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
10072 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
10073 # than defined and empty).
10075 # This macro is needed until we can rely on Autoconf 2.62, since earlier
10076 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
10077 m4_define([lt_append],
10079 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
10083 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
10084 # ----------------------------------------------------------
10085 # Produce a SEP delimited list of all paired combinations of elements of
10086 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
10087 # has the form PREFIXmINFIXSUFFIXn.
10088 # Needed until we can rely on m4_combine added in Autoconf 2.62.
10089 m4_define([lt_combine],
10090 [m4_if(m4_eval([$# > 3]), [1],
10091 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
10092 [[m4_foreach([_Lt_prefix], [$2],
10093 [m4_foreach([_Lt_suffix],
10094 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
10095 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
10098 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
10099 # -----------------------------------------------------------------------
10100 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
10101 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
10102 m4_define([lt_if_append_uniq],
10104 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
10105 [lt_append([$1], [$2], [$3])$4],
10107 [lt_append([$1], [$2], [$3])$4])])
10110 # lt_dict_add(DICT, KEY, VALUE)
10111 # -----------------------------
10112 m4_define([lt_dict_add],
10113 [m4_define([$1($2)], [$3])])
10116 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
10117 # --------------------------------------------
10118 m4_define([lt_dict_add_subkey],
10119 [m4_define([$1($2:$3)], [$4])])
10122 # lt_dict_fetch(DICT, KEY, [SUBKEY])
10123 # ----------------------------------
10124 m4_define([lt_dict_fetch],
10126 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
10127 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
10130 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
10131 # -----------------------------------------------------------------
10132 m4_define([lt_if_dict_fetch],
10133 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
10138 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
10139 # --------------------------------------------------------------
10140 m4_define([lt_dict_filter],
10141 [m4_if([$5], [], [],
10142 [lt_join(m4_quote(m4_default([$4], [[, ]])),
10143 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
10144 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
10147 # ltversion.m4 -- version numbers -*- Autoconf -*-
10149 # Copyright (C) 2004 Free Software Foundation, Inc.
10150 # Written by Scott James Remnant, 2004
10152 # This file is free software; the Free Software Foundation gives
10153 # unlimited permission to copy and/or distribute it, with or without
10154 # modifications, as long as this notice is preserved.
10156 # Generated from ltversion.in.
10158 # serial 3017 ltversion.m4
10159 # This file is part of GNU Libtool
10161 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
10162 m4_define([LT_PACKAGE_REVISION], [1.3017])
10164 AC_DEFUN([LTVERSION_VERSION],
10165 [macro_version='2.2.6b'
10166 macro_revision='1.3017'
10167 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
10168 _LT_DECL(, macro_revision, 0)
10171 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
10173 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
10174 # Written by Scott James Remnant, 2004.
10176 # This file is free software; the Free Software Foundation gives
10177 # unlimited permission to copy and/or distribute it, with or without
10178 # modifications, as long as this notice is preserved.
10180 # serial 4 lt~obsolete.m4
10182 # These exist entirely to fool aclocal when bootstrapping libtool.
10184 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
10185 # which have later been changed to m4_define as they aren't part of the
10186 # exported API, or moved to Autoconf or Automake where they belong.
10188 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
10189 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
10190 # using a macro with the same name in our local m4/libtool.m4 it'll
10191 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
10192 # and doesn't know about Autoconf macros at all.)
10194 # So we provide this file, which has a silly filename so it's always
10195 # included after everything else. This provides aclocal with the
10196 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
10197 # because those macros already exist, or will be overwritten later.
10198 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
10200 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
10201 # Yes, that means every name once taken will need to remain here until
10202 # we give up compatibility with versions before 1.7, at which point
10203 # we need to keep only those names which we still refer to.
10205 # This is to help aclocal find these macros, as it can't see m4_define.
10206 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
10208 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
10209 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
10210 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
10211 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
10212 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
10213 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
10214 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
10215 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
10216 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
10217 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
10218 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
10219 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
10220 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
10221 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
10222 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
10223 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
10224 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
10225 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
10226 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
10227 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
10228 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
10229 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
10230 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
10231 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
10232 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
10233 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
10234 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
10235 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
10236 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
10237 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
10238 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
10239 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
10240 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
10241 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
10242 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
10243 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
10244 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
10245 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
10246 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
10247 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
10248 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
10249 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
10250 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
10251 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
10252 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
10253 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
10254 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
10255 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
10256 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
10257 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
10258 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
10259 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
10260 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
10261 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
10262 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])