1 ##############################################################################
2 dnl Configure Paths for Alsa
3 dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>
4 dnl Christopher Lansdown <lansdoct@cs.alfred.edu>
5 dnl Jaroslav Kysela <perex@suse.cz>
6 dnl Last modification: alsa.m4,v 1.23 2004/01/16 18:14:22 tiwai Exp
7 dnl AM_PATH_ALSA([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
8 dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.
9 dnl enables arguments --with-alsa-prefix=
10 dnl --with-alsa-enc-prefix=
11 dnl --disable-alsatest
13 dnl For backwards compatibility, if ACTION_IF_NOT_FOUND is not specified,
14 dnl and the alsa libraries are not found, a fatal AC_MSG_ERROR() will result.
16 AC_DEFUN([AM_PATH_ALSA],
17 [dnl Save the original CFLAGS, LDFLAGS, and LIBS
18 alsa_save_CFLAGS="$CFLAGS"
19 alsa_save_LDFLAGS="$LDFLAGS"
20 alsa_save_LIBS="$LIBS"
24 dnl Get the cflags and libraries for alsa
26 AC_ARG_WITH(alsa-prefix,
27 [ --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)],
28 [alsa_prefix="$withval"], [alsa_prefix=""])
30 AC_ARG_WITH(alsa-inc-prefix,
31 [ --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)],
32 [alsa_inc_prefix="$withval"], [alsa_inc_prefix=""])
34 dnl FIXME: this is not yet implemented
35 AC_ARG_ENABLE(alsatest,
36 [ --disable-alsatest Do not try to compile and run a test Alsa program],
37 [enable_alsatest="$enableval"],
38 [enable_alsatest=yes])
40 dnl Add any special include directories
41 AC_MSG_CHECKING(for ALSA CFLAGS)
42 if test "$alsa_inc_prefix" != "" ; then
43 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
44 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
46 AC_MSG_RESULT($ALSA_CFLAGS)
48 dnl add any special lib dirs
49 AC_MSG_CHECKING(for ALSA LDFLAGS)
50 if test "$alsa_prefix" != "" ; then
51 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
52 LDFLAGS="$LDFLAGS $ALSA_LIBS"
55 dnl add the alsa library
56 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
57 LIBS=`echo $LIBS | sed 's/-lm//'`
58 LIBS=`echo $LIBS | sed 's/-ldl//'`
59 LIBS=`echo $LIBS | sed 's/-lpthread//'`
60 LIBS=`echo $LIBS | sed 's/ //'`
61 LIBS="$ALSA_LIBS $LIBS"
62 AC_MSG_RESULT($ALSA_LIBS)
64 dnl Check for a working version of libasound that is of the right version.
65 min_alsa_version=ifelse([$1], ,0.1.1,$1)
66 AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version)
68 alsa_min_major_version=`echo $min_alsa_version | \
69 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
70 alsa_min_minor_version=`echo $min_alsa_version | \
71 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
72 alsa_min_micro_version=`echo $min_alsa_version | \
73 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
78 #include <alsa/asoundlib.h>
80 /* ensure backward compatibility */
81 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
82 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
84 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
85 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
87 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
88 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
91 # if(SND_LIB_MAJOR > $alsa_min_major_version)
94 # if(SND_LIB_MAJOR < $alsa_min_major_version)
98 # if(SND_LIB_MINOR > $alsa_min_minor_version)
101 # if(SND_LIB_MINOR < $alsa_min_minor_version)
105 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
112 [AC_MSG_RESULT(found.)],
113 [AC_MSG_RESULT(not present.)
114 ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)])
119 dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
120 if test "x$enable_alsatest" = "xyes"; then
121 AC_CHECK_LIB([asound], [snd_ctl_open],,
122 [ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)])
127 if test "x$alsa_found" = "xyes" ; then
128 ifelse([$2], , :, [$2])
129 LIBS=`echo $LIBS | sed 's/-lasound//g'`
130 LIBS=`echo $LIBS | sed 's/ //'`
131 LIBS="-lasound $LIBS"
133 if test "x$alsa_found" = "xno" ; then
134 ifelse([$3], , :, [$3])
135 CFLAGS="$alsa_save_CFLAGS"
136 LDFLAGS="$alsa_save_LDFLAGS"
137 LIBS="$alsa_save_LIBS"
142 dnl That should be it. Now just export out symbols:
143 AC_SUBST(ALSA_CFLAGS)
147 ##############################################################################
151 # Configure paths for ESD
152 # Manish Singh 98-9-30
153 # stolen back from Frank Belew
154 # stolen from Manish Singh
155 # Shamelessly stolen from Owen Taylor
157 dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
158 dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS
160 AC_DEFUN([AM_PATH_ESD],
162 dnl Get the cflags and libraries from the esd-config script
164 AC_ARG_WITH(esd-prefix,[ --with-esd-prefix=PFX Prefix where ESD is installed (optional)],
165 esd_prefix="$withval", esd_prefix="")
166 AC_ARG_WITH(esd-exec-prefix,[ --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)],
167 esd_exec_prefix="$withval", esd_exec_prefix="")
168 AC_ARG_ENABLE(esdtest, [ --disable-esdtest Do not try to compile and run a test ESD program],
169 , enable_esdtest=yes)
171 if test x$esd_exec_prefix != x ; then
172 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
173 if test x${ESD_CONFIG+set} != xset ; then
174 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
177 if test x$esd_prefix != x ; then
178 esd_args="$esd_args --prefix=$esd_prefix"
179 if test x${ESD_CONFIG+set} != xset ; then
180 ESD_CONFIG=$esd_prefix/bin/esd-config
184 AC_PATH_PROG(ESD_CONFIG, esd-config, no)
185 min_esd_version=ifelse([$1], ,0.2.7,$1)
186 AC_MSG_CHECKING(for ESD - version >= $min_esd_version)
188 if test "$ESD_CONFIG" = "no" ; then
191 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
192 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
194 esd_major_version=`$ESD_CONFIG $esd_args --version | \
195 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
196 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
197 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
198 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
199 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
200 if test "x$enable_esdtest" = "xyes" ; then
201 ac_save_CFLAGS="$CFLAGS"
203 CFLAGS="$CFLAGS $ESD_CFLAGS"
204 LIBS="$LIBS $ESD_LIBS"
206 dnl Now check if the installed ESD is sufficiently new. (Also sanity
207 dnl checks the results of esd-config to some extent
217 my_strdup (char *str)
223 new_str = malloc ((strlen (str) + 1) * sizeof(char));
224 strcpy (new_str, str);
234 int major, minor, micro;
237 system ("touch conf.esdtest");
239 /* HP/UX 9 (%@#!) writes to sscanf strings */
240 tmp_version = my_strdup("$min_esd_version");
241 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
242 printf("%s, bad version string\n", "$min_esd_version");
246 if (($esd_major_version > major) ||
247 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
248 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
254 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
255 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
256 printf("*** best to upgrade to the required version.\n");
257 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
258 printf("*** to point to the correct copy of esd-config, and remove the file\n");
259 printf("*** config.cache before re-running configure\n");
264 ],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
265 CFLAGS="$ac_save_CFLAGS"
269 if test "x$no_esd" = x ; then
271 ifelse([$2], , :, [$2])
274 if test "$ESD_CONFIG" = "no" ; then
275 echo "*** The esd-config script installed by ESD could not be found"
276 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
277 echo "*** your path, or set the ESD_CONFIG environment variable to the"
278 echo "*** full path to esd-config."
280 if test -f conf.esdtest ; then
283 echo "*** Could not run ESD test program, checking why..."
284 CFLAGS="$CFLAGS $ESD_CFLAGS"
285 LIBS="$LIBS $ESD_LIBS"
290 [ echo "*** The test program compiled, but did not run. This usually means"
291 echo "*** that the run-time linker is not finding ESD or finding the wrong"
292 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
293 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
294 echo "*** to the installed location Also, make sure you have run ldconfig if that"
295 echo "*** is required on your system"
297 echo "*** If you have an old version installed, it is best to remove it, although"
298 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
299 [ echo "*** The test program failed to compile or link. See the file config.log for the"
300 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
301 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
302 echo "*** may want to edit the esd-config script: $ESD_CONFIG" ])
303 CFLAGS="$ac_save_CFLAGS"
309 ifelse([$3], , :, [$3])
316 ##############################################################################
317 # Based on libtool-1.5.22
318 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
319 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
320 ## Free Software Foundation, Inc.
321 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
323 ## This file is free software; the Free Software Foundation gives
324 ## unlimited permission to copy and/or distribute it, with or without
325 ## modifications, as long as this notice is preserved.
327 # serial 48 AC_PROG_LIBTOOL
330 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
331 # -----------------------------------------------------------
332 # If this macro is not defined by Autoconf, define it here.
333 m4_ifdef([AC_PROVIDE_IFELSE],
335 [m4_define([AC_PROVIDE_IFELSE],
336 [m4_ifdef([AC_PROVIDE_$1],
342 AC_DEFUN([AC_PROG_LIBTOOL],
343 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
344 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
345 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
346 AC_PROVIDE_IFELSE([AC_PROG_CXX],
348 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
350 dnl And a similar setup for Fortran 77 support
351 AC_PROVIDE_IFELSE([AC_PROG_F77],
353 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
356 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
357 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
358 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
359 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
361 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
363 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
365 [ifdef([AC_PROG_GCJ],
366 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
367 ifdef([A][M_PROG_GCJ],
368 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
369 ifdef([LT_AC_PROG_GCJ],
370 [define([LT_AC_PROG_GCJ],
371 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
372 ])])# AC_PROG_LIBTOOL
377 AC_DEFUN([_AC_PROG_LIBTOOL],
378 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
379 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
380 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
381 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
383 # This can be used to rebuild libtool when needed
384 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
386 # Always use our own libtool.
387 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
390 # Prevent multiple expansion
391 define([AC_PROG_LIBTOOL], [])
397 AC_DEFUN([AC_LIBTOOL_SETUP],
399 AC_REQUIRE([AC_ENABLE_SHARED])dnl
400 AC_REQUIRE([AC_ENABLE_STATIC])dnl
401 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
402 AC_REQUIRE([AC_CANONICAL_HOST])dnl
403 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
404 AC_REQUIRE([AC_PROG_CC])dnl
405 AC_REQUIRE([AC_PROG_LD])dnl
406 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
407 AC_REQUIRE([AC_PROG_NM])dnl
409 AC_REQUIRE([AC_PROG_LN_S])dnl
410 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
411 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
412 AC_REQUIRE([AC_OBJEXT])dnl
413 AC_REQUIRE([AC_EXEEXT])dnl
416 AC_LIBTOOL_SYS_MAX_CMD_LEN
417 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
420 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
421 _LT_AC_PROG_ECHO_BACKSLASH
425 # AIX sometimes has problems with the GCC collect2 program. For some
426 # reason, if we set the COLLECT_NAMES environment variable, the problems
427 # vanish in a puff of smoke.
428 if test "X${COLLECT_NAMES+set}" != Xset; then
435 # Sed substitution that helps us do robust quoting. It backslashifies
436 # metacharacters that are still active within double-quoted strings.
437 Xsed='sed -e 1s/^X//'
438 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
440 # Same as above, but do not quote variable references.
441 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
443 # Sed substitution to delay expansion of an escaped shell variable in a
444 # double_quote_subst'ed string.
445 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
447 # Sed substitution to avoid accidental globbing in evaled expressions
448 no_glob_subst='s/\*/\\\*/g'
454 default_ofile=libtool
457 # All known linkers require a `.a' archive for static linking (except MSVC,
458 # which needs '.lib').
460 ltmain="$ac_aux_dir/ltmain.sh"
461 ofile="$default_ofile"
462 with_gnu_ld="$lt_cv_prog_gnu_ld"
464 AC_CHECK_TOOL(AR, ar, false)
465 AC_CHECK_TOOL(RANLIB, ranlib, :)
466 AC_CHECK_TOOL(STRIP, strip, :)
471 # Set sane defaults for various variables
472 test -z "$AR" && AR=ar
473 test -z "$AR_FLAGS" && AR_FLAGS=cru
474 test -z "$AS" && AS=as
475 test -z "$CC" && CC=cc
476 test -z "$LTCC" && LTCC=$CC
477 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
478 test -z "$DLLTOOL" && DLLTOOL=dlltool
479 test -z "$LD" && LD=ld
480 test -z "$LN_S" && LN_S="ln -s"
481 test -z "$MAGIC_CMD" && MAGIC_CMD=file
482 test -z "$NM" && NM=nm
483 test -z "$SED" && SED=sed
484 test -z "$OBJDUMP" && OBJDUMP=objdump
485 test -z "$RANLIB" && RANLIB=:
486 test -z "$STRIP" && STRIP=:
487 test -z "$ac_objext" && ac_objext=o
489 # Determine commands to create old-style static archives.
490 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
491 old_postinstall_cmds='chmod 644 $oldlib'
492 old_postuninstall_cmds=
494 if test -n "$RANLIB"; then
497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
500 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
503 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
506 _LT_CC_BASENAME([$compiler])
508 # Only perform the check for file, if the check method requires it
509 case $deplibs_check_method in
511 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
517 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
518 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
519 enable_win32_dll=yes, enable_win32_dll=no)
521 AC_ARG_ENABLE([libtool-lock],
522 [AC_HELP_STRING([--disable-libtool-lock],
523 [avoid locking (might break parallel builds)])])
524 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
527 [AC_HELP_STRING([--with-pic],
528 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
529 [pic_mode="$withval"],
531 test -z "$pic_mode" && pic_mode=default
533 # Use C for the default configuration in the libtool script
535 AC_LIBTOOL_LANG_C_CONFIG
540 # _LT_AC_SYS_COMPILER
541 # -------------------
542 AC_DEFUN([_LT_AC_SYS_COMPILER],
543 [AC_REQUIRE([AC_PROG_CC])dnl
545 # If no C compiler was specified, use CC.
548 # If no C compiler flags were specified, use CFLAGS.
549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
551 # Allow CC to be a program name with arguments.
553 ])# _LT_AC_SYS_COMPILER
556 # _LT_CC_BASENAME(CC)
557 # -------------------
558 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
559 AC_DEFUN([_LT_CC_BASENAME],
560 [for cc_temp in $1""; do
562 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
563 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
568 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
572 # _LT_COMPILER_BOILERPLATE
573 # ------------------------
574 # Check for compiler boilerplate output or warnings with
575 # the simple compiler test code.
576 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
577 [ac_outfile=conftest.$ac_objext
578 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
580 _lt_compiler_boilerplate=`cat conftest.err`
582 ])# _LT_COMPILER_BOILERPLATE
585 # _LT_LINKER_BOILERPLATE
586 # ----------------------
587 # Check for linker boilerplate output or warnings with
588 # the simple link test code.
589 AC_DEFUN([_LT_LINKER_BOILERPLATE],
590 [ac_outfile=conftest.$ac_objext
591 printf "$lt_simple_link_test_code" >conftest.$ac_ext
592 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
593 _lt_linker_boilerplate=`cat conftest.err`
595 ])# _LT_LINKER_BOILERPLATE
598 # _LT_AC_SYS_LIBPATH_AIX
599 # ----------------------
600 # Links a minimal program and checks the executable
601 # for the system default hardcoded library path. In most cases,
602 # this is /usr/lib:/lib, but when the MPI compilers are used
603 # the location of the communication and MPI libs are included too.
604 # If we don't find anything, use the default library path according
605 # to the aix ld manual.
606 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
607 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
610 # Check for a 64-bit object if we didn't find anything.
611 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
614 ])# _LT_AC_SYS_LIBPATH_AIX
617 # _LT_AC_SHELL_INIT(ARG)
618 # ----------------------
619 AC_DEFUN([_LT_AC_SHELL_INIT],
620 [ifdef([AC_DIVERSION_NOTICE],
621 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
622 [AC_DIVERT_PUSH(NOTICE)])
625 ])# _LT_AC_SHELL_INIT
628 # _LT_AC_PROG_ECHO_BACKSLASH
629 # --------------------------
630 # Add some code to the start of the generated configure script which
631 # will find an echo command which doesn't interpret backslashes.
632 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
634 # Check that we are running under the correct shell.
635 SHELL=${CONFIG_SHELL-/bin/sh}
639 # Remove one level of quotation (which was required for Make).
640 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
645 if test "X[$]1" = X--no-reexec; then
646 # Discard the --no-reexec flag, and continue.
648 elif test "X[$]1" = X--fallback-echo; then
649 # Avoid inline document here, it may be left over
651 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
652 # Yippee, $echo works!
655 # Restart under the correct shell.
656 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
659 if test "X[$]1" = X--fallback-echo; then
660 # used as fallback echo
668 # The HP-UX ksh and POSIX shell print the target directory to stdout
670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
672 if test -z "$ECHO"; then
673 if test "X${echo_test_string+set}" != Xset; then
674 # find a string as large as possible, as long as the shell can cope with it
675 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
676 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
677 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
678 echo_test_string=`eval $cmd` &&
679 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
686 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
687 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
691 # The Solaris, AIX, and Digital Unix default echo programs unquote
692 # backslashes. This makes it impossible to quote backslashes using
693 # echo "$something" | sed 's/\\/\\\\/g'
695 # So, first we look for a working echo in the user's PATH.
697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
698 for dir in $PATH /usr/ucb; do
700 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
701 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
702 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
703 test "X$echo_testing_string" = "X$echo_test_string"; then
710 if test "X$echo" = Xecho; then
711 # We didn't find a better echo, so look for alternatives.
712 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
713 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
714 test "X$echo_testing_string" = "X$echo_test_string"; then
715 # This shell has a builtin print -r that does the trick.
717 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
718 test "X$CONFIG_SHELL" != X/bin/ksh; then
719 # If we have ksh, try running configure again with it.
720 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
721 export ORIGINAL_CONFIG_SHELL
722 CONFIG_SHELL=/bin/ksh
724 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
728 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
729 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
730 test "X$echo_testing_string" = "X$echo_test_string"; then
733 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
734 test "X$echo_testing_string" = 'X\t' &&
735 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
736 test "X$echo_testing_string" = "X$echo_test_string"; then
737 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
739 SHELL="$CONFIG_SHELL"
741 echo="$CONFIG_SHELL [$]0 --fallback-echo"
742 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
743 test "X$echo_testing_string" = 'X\t' &&
744 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
745 test "X$echo_testing_string" = "X$echo_test_string"; then
746 echo="$CONFIG_SHELL [$]0 --fallback-echo"
748 # maybe with a smaller string...
751 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
752 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
759 if test "$prev" != 'sed 50q "[$]0"'; then
760 echo_test_string=`eval $prev`
761 export echo_test_string
762 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
764 # Oops. We lost completely, so just stick with echo.
773 # Copy echo and quote the copy suitably for passing to libtool from
774 # the Makefile, instead of quoting the original, which is used later.
776 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
777 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
781 ])])# _LT_AC_PROG_ECHO_BACKSLASH
786 AC_DEFUN([_LT_AC_LOCK],
787 [AC_ARG_ENABLE([libtool-lock],
788 [AC_HELP_STRING([--disable-libtool-lock],
789 [avoid locking (might break parallel builds)])])
790 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
792 # Some flags need to be propagated to the compiler or linker for good
796 # Find out which ABI we are using.
797 echo 'int i;' > conftest.$ac_ext
798 if AC_TRY_EVAL(ac_compile); then
799 case `/usr/bin/file conftest.$ac_objext` in
811 # Find out which ABI we are using.
812 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
813 if AC_TRY_EVAL(ac_compile); then
814 if test "$lt_cv_prog_gnu_ld" = yes; then
815 case `/usr/bin/file conftest.$ac_objext` in
817 LD="${LD-ld} -melf32bsmip"
820 LD="${LD-ld} -melf32bmipn32"
823 LD="${LD-ld} -melf64bmip"
827 case `/usr/bin/file conftest.$ac_objext` in
843 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
844 # Find out which ABI we are using.
845 echo 'int i;' > conftest.$ac_ext
846 if AC_TRY_EVAL(ac_compile); then
847 case `/usr/bin/file conftest.o` in
851 LD="${LD-ld} -m elf_i386"
853 ppc64-*linux*|powerpc64-*linux*)
854 LD="${LD-ld} -m elf32ppclinux"
857 LD="${LD-ld} -m elf_s390"
860 LD="${LD-ld} -m elf32_sparc"
867 LD="${LD-ld} -m elf_x86_64"
869 ppc*-*linux*|powerpc*-*linux*)
870 LD="${LD-ld} -m elf64ppc"
873 LD="${LD-ld} -m elf64_s390"
876 LD="${LD-ld} -m elf64_sparc"
886 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
887 SAVE_CFLAGS="$CFLAGS"
888 CFLAGS="$CFLAGS -belf"
889 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
891 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
893 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
894 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
895 CFLAGS="$SAVE_CFLAGS"
899 # Find out which ABI we are using.
900 echo 'int i;' > conftest.$ac_ext
901 if AC_TRY_EVAL(ac_compile); then
902 case `/usr/bin/file conftest.o` in
904 case $lt_cv_prog_gnu_ld in
905 yes*) LD="${LD-ld} -m elf64_sparc" ;;
906 *) LD="${LD-ld} -64" ;;
914 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
915 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
916 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
917 AC_CHECK_TOOL(AS, as, false)
918 AC_CHECK_TOOL(OBJDUMP, objdump, false)
923 need_locks="$enable_libtool_lock"
928 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
929 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
930 # ----------------------------------------------------------------
931 # Check whether the given compiler option works
932 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
933 [AC_REQUIRE([LT_AC_PROG_SED])
934 AC_CACHE_CHECK([$1], [$2],
936 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
938 lt_compiler_flag="$3"
939 # Insert the option either (1) after the last *FLAGS variable, or
940 # (2) before a word containing "conftest.", or (3) at the end.
941 # Note that $ac_compile itself does not contain backslashes and begins
942 # with a dollar sign (not a hyphen), so the echo should work correctly.
943 # The option is referenced via a variable to avoid confusing sed.
944 lt_compile=`echo "$ac_compile" | $SED \
945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
946 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
947 -e 's:$: $lt_compiler_flag:'`
948 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
949 (eval "$lt_compile" 2>conftest.err)
951 cat conftest.err >&AS_MESSAGE_LOG_FD
952 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
953 if (exit $ac_status) && test -s "$ac_outfile"; then
954 # The compiler can only warn and ignore the option if not recognized
955 # So say no if there are warnings other than the usual output.
956 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
965 if test x"[$]$2" = xyes; then
966 ifelse([$5], , :, [$5])
968 ifelse([$6], , :, [$6])
970 ])# AC_LIBTOOL_COMPILER_OPTION
973 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
974 # [ACTION-SUCCESS], [ACTION-FAILURE])
975 # ------------------------------------------------------------
976 # Check whether the given compiler option works
977 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
978 [AC_CACHE_CHECK([$1], [$2],
980 save_LDFLAGS="$LDFLAGS"
981 LDFLAGS="$LDFLAGS $3"
982 printf "$lt_simple_link_test_code" > conftest.$ac_ext
983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
984 # The linker can only warn and ignore the option if not recognized
985 # So say no if there are warnings
986 if test -s conftest.err; then
987 # Append any errors to the config.log.
988 cat conftest.err 1>&AS_MESSAGE_LOG_FD
989 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
991 if diff conftest.exp conftest.er2 >/dev/null; then
999 LDFLAGS="$save_LDFLAGS"
1002 if test x"[$]$2" = xyes; then
1003 ifelse([$4], , :, [$4])
1005 ifelse([$5], , :, [$5])
1007 ])# AC_LIBTOOL_LINKER_OPTION
1010 # AC_LIBTOOL_SYS_MAX_CMD_LEN
1011 # --------------------------
1012 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1013 [# find the maximum length of command line arguments
1014 AC_MSG_CHECKING([the maximum length of command line arguments])
1015 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1021 # On DJGPP, this test can blow up pretty badly due to problems in libc
1022 # (any single argument exceeding 2000 bytes causes a buffer overrun
1023 # during glob expansion). Even if it were fixed, the result of this
1024 # check would be larger than it should be.
1025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1029 # Under GNU Hurd, this test is not required because there is
1030 # no limit to the length of command line arguments.
1031 # Libtool will interpret -1 as no limit whatsoever
1032 lt_cv_sys_max_cmd_len=-1;
1036 # On Win9x/ME, this test blows up -- it succeeds, but takes
1037 # about 5 minutes as the teststring grows exponentially.
1038 # Worse, since 9x/ME are not pre-emptively multitasking,
1039 # you end up with a "frozen" computer, even though with patience
1040 # the test eventually succeeds (with a max line length of 256k).
1041 # Instead, let's just punt: use the minimum linelength reported by
1042 # all of the supported platforms: 8192 (on NT/2K/XP).
1043 lt_cv_sys_max_cmd_len=8192;
1047 # On BeOS, this test takes a really really long time.
1048 # So we just punt and use a minimum line length of 8192.
1049 lt_cv_sys_max_cmd_len=8192;
1053 # On AmigaOS with pdksh, this test takes hours, literally.
1054 # So we just punt and use a minimum line length of 8192.
1055 lt_cv_sys_max_cmd_len=8192;
1058 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1059 # This has been around since 386BSD, at least. Likely further.
1060 if test -x /sbin/sysctl; then
1061 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1062 elif test -x /usr/sbin/sysctl; then
1063 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1065 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1067 # And add a safety zone
1068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1073 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1074 lt_cv_sys_max_cmd_len=196608
1078 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1079 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1080 # nice to cause kernel panics so lets avoid the loop below.
1081 # First set a reasonable default.
1082 lt_cv_sys_max_cmd_len=16384
1084 if test -x /sbin/sysconfig; then
1085 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1086 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1091 lt_cv_sys_max_cmd_len=102400
1093 sysv5* | sco5v6* | sysv4.2uw2*)
1094 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1095 if test -n "$kargmax"; then
1096 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1098 lt_cv_sys_max_cmd_len=32768
1102 # If test is not a shell built-in, we'll probably end up computing a
1103 # maximum length that is only half of the actual maximum length, but
1105 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1106 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1107 = "XX$teststring") >/dev/null 2>&1 &&
1108 new_result=`expr "X$teststring" : ".*" 2>&1` &&
1109 lt_cv_sys_max_cmd_len=$new_result &&
1110 test $i != 17 # 1/2 MB should be enough
1113 teststring=$teststring$teststring
1116 # Add a significant safety factor because C++ compilers can tack on massive
1117 # amounts of additional arguments before passing them to the linker.
1118 # It appears as though 1/2 is a usable value.
1119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1123 if test -n $lt_cv_sys_max_cmd_len ; then
1124 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1128 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1131 # _LT_AC_CHECK_DLFCN
1132 # ------------------
1133 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1134 [AC_CHECK_HEADERS(dlfcn.h)dnl
1135 ])# _LT_AC_CHECK_DLFCN
1138 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1139 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1140 # ---------------------------------------------------------------------
1141 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1142 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1143 if test "$cross_compiling" = yes; then :
1146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1147 lt_status=$lt_dlunknown
1148 cat > conftest.$ac_ext <<EOF
1149 [#line __oline__ "configure"
1150 #include "confdefs.h"
1159 # define LT_DLGLOBAL RTLD_GLOBAL
1162 # define LT_DLGLOBAL DL_GLOBAL
1164 # define LT_DLGLOBAL 0
1168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1169 find out it does not work in some platform. */
1170 #ifndef LT_DLLAZY_OR_NOW
1172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1175 # define LT_DLLAZY_OR_NOW DL_LAZY
1178 # define LT_DLLAZY_OR_NOW RTLD_NOW
1181 # define LT_DLLAZY_OR_NOW DL_NOW
1183 # define LT_DLLAZY_OR_NOW 0
1191 extern "C" void exit (int);
1194 void fnord() { int i=42;}
1197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1198 int status = $lt_dlunknown;
1202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1204 /* dlclose (self); */
1212 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1213 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1216 x$lt_dlno_uscore) $1 ;;
1217 x$lt_dlneed_uscore) $2 ;;
1218 x$lt_dlunknown|x*) $3 ;;
1221 # compilation failed
1226 ])# _LT_AC_TRY_DLOPEN_SELF
1229 # AC_LIBTOOL_DLOPEN_SELF
1230 # ----------------------
1231 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1232 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1233 if test "x$enable_dlopen" != xyes; then
1234 enable_dlopen=unknown
1235 enable_dlopen_self=unknown
1236 enable_dlopen_self_static=unknown
1243 lt_cv_dlopen="load_add_on"
1245 lt_cv_dlopen_self=yes
1249 lt_cv_dlopen="LoadLibrary"
1254 lt_cv_dlopen="dlopen"
1259 # if libdl is installed we need to link against it
1260 AC_CHECK_LIB([dl], [dlopen],
1261 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1264 lt_cv_dlopen_self=yes
1269 AC_CHECK_FUNC([shl_load],
1270 [lt_cv_dlopen="shl_load"],
1271 [AC_CHECK_LIB([dld], [shl_load],
1272 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1273 [AC_CHECK_FUNC([dlopen],
1274 [lt_cv_dlopen="dlopen"],
1275 [AC_CHECK_LIB([dl], [dlopen],
1276 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1277 [AC_CHECK_LIB([svld], [dlopen],
1278 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1279 [AC_CHECK_LIB([dld], [dld_link],
1280 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1289 if test "x$lt_cv_dlopen" != xno; then
1295 case $lt_cv_dlopen in
1297 save_CPPFLAGS="$CPPFLAGS"
1298 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1300 save_LDFLAGS="$LDFLAGS"
1301 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1304 LIBS="$lt_cv_dlopen_libs $LIBS"
1306 AC_CACHE_CHECK([whether a program can dlopen itself],
1307 lt_cv_dlopen_self, [dnl
1308 _LT_AC_TRY_DLOPEN_SELF(
1309 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1310 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1313 if test "x$lt_cv_dlopen_self" = xyes; then
1314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1315 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1316 lt_cv_dlopen_self_static, [dnl
1317 _LT_AC_TRY_DLOPEN_SELF(
1318 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1319 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1323 CPPFLAGS="$save_CPPFLAGS"
1324 LDFLAGS="$save_LDFLAGS"
1329 case $lt_cv_dlopen_self in
1330 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1331 *) enable_dlopen_self=unknown ;;
1334 case $lt_cv_dlopen_self_static in
1335 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1336 *) enable_dlopen_self_static=unknown ;;
1339 ])# AC_LIBTOOL_DLOPEN_SELF
1342 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1343 # ---------------------------------
1344 # Check to see if options -c and -o are simultaneously supported by compiler
1345 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1346 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1347 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1348 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1349 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1350 $rm -r conftest 2>/dev/null
1354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1356 lt_compiler_flag="-o out/conftest2.$ac_objext"
1357 # Insert the option either (1) after the last *FLAGS variable, or
1358 # (2) before a word containing "conftest.", or (3) at the end.
1359 # Note that $ac_compile itself does not contain backslashes and begins
1360 # with a dollar sign (not a hyphen), so the echo should work correctly.
1361 lt_compile=`echo "$ac_compile" | $SED \
1362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1363 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1364 -e 's:$: $lt_compiler_flag:'`
1365 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1366 (eval "$lt_compile" 2>out/conftest.err)
1368 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1369 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1372 # The compiler can only warn and ignore the option if not recognized
1373 # So say no if there are warnings
1374 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1377 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1380 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1382 # SGI C++ compiler will create directory out/ii_files/ for
1383 # template instantiation
1384 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1385 $rm out/* && rmdir out
1390 ])# AC_LIBTOOL_PROG_CC_C_O
1393 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1394 # -----------------------------------------
1395 # Check to see if we can do hard links to lock some files if needed
1396 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1397 [AC_REQUIRE([_LT_AC_LOCK])dnl
1399 hard_links="nottested"
1400 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1401 # do not overwrite the value of need_locks provided by the user
1402 AC_MSG_CHECKING([if we can lock with hard links])
1405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1407 ln conftest.a conftest.b 2>&5 || hard_links=no
1408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1409 AC_MSG_RESULT([$hard_links])
1410 if test "$hard_links" = no; then
1411 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1417 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1422 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1423 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1424 [rm -f .libs 2>/dev/null
1425 mkdir .libs 2>/dev/null
1426 if test -d .libs; then
1429 # MS-DOS does not allow filenames that begin with a dot.
1432 rmdir .libs 2>/dev/null])
1433 objdir=$lt_cv_objdir
1434 ])# AC_LIBTOOL_OBJDIR
1437 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1438 # ----------------------------------------------
1439 # Check hardcoding attributes.
1440 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1441 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1442 _LT_AC_TAGVAR(hardcode_action, $1)=
1443 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1444 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1445 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1447 # We can hardcode non-existant directories.
1448 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1449 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1450 # have to relink, otherwise we might link with an installed library
1451 # when we should be linking with a yet-to-be-installed one
1452 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1453 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1454 # Linking always hardcodes the temporary library directory.
1455 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1457 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1458 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1461 # We cannot hardcode anything, or else we can only hardcode existing
1463 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1465 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1467 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1468 # Fast installation is not supported
1469 enable_fast_install=no
1470 elif test "$shlibpath_overrides_runpath" = yes ||
1471 test "$enable_shared" = no; then
1472 # Fast installation is not necessary
1473 enable_fast_install=needless
1475 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1478 # AC_LIBTOOL_SYS_LIB_STRIP
1479 # ------------------------
1480 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1483 AC_MSG_CHECKING([whether stripping libraries is possible])
1484 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1485 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1486 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1487 AC_MSG_RESULT([yes])
1489 # FIXME - insert some real tests, host_os isn't really good enough
1492 if test -n "$STRIP" ; then
1493 striplib="$STRIP -x"
1494 AC_MSG_RESULT([yes])
1504 ])# AC_LIBTOOL_SYS_LIB_STRIP
1507 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1508 # -----------------------------
1509 # PORTME Fill in your ld.so characteristics
1510 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1511 [AC_MSG_CHECKING([dynamic linker characteristics])
1513 libname_spec='lib$name'
1521 shlibpath_overrides_runpath=unknown
1523 dynamic_linker="$host_os ld.so"
1524 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1525 if test "$GCC" = yes; then
1526 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1527 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1528 # if the path contains ";" then we assume it to be the separator
1529 # otherwise default to the standard path separator (i.e. ":") - it is
1530 # assumed that no part of a normal pathname contains ";" but that should
1531 # okay in the real world where ";" in dirpaths is itself problematic.
1532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1539 need_lib_prefix=unknown
1540 hardcode_into_libs=no
1542 # when you set need_version to no, make sure it does not cause -set_version
1543 # flags to be left without arguments
1544 need_version=unknown
1549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1550 shlibpath_var=LIBPATH
1552 # AIX 3 has no versioning support, so we append a major version to the name.
1553 soname_spec='${libname}${release}${shared_ext}$major'
1560 hardcode_into_libs=yes
1561 if test "$host_cpu" = ia64; then
1562 # AIX 5 supports IA64
1563 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1564 shlibpath_var=LD_LIBRARY_PATH
1566 # With GCC up to 2.95.x, collect2 would create an import file
1567 # for dependence libraries. The import file would start with
1568 # the line `#! .'. This would cause the generated library to
1569 # depend on `.', always an invalid library. This was fixed in
1570 # development snapshots of GCC prior to 3.0.
1572 aix4 | aix4.[[01]] | aix4.[[01]].*)
1573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1575 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1582 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1583 # soname into executable. Probably we can add versioning support to
1584 # collect2, so additional links can be useful in future.
1585 if test "$aix_use_runtimelinking" = yes; then
1586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1587 # instead of lib<name>.a to let people know that these are not
1588 # typical AIX shared libraries.
1589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1591 # We preserve .a as extension for shared libraries through AIX4.2
1592 # and later when we are not doing run time linking.
1593 library_names_spec='${libname}${release}.a $libname.a'
1594 soname_spec='${libname}${release}${shared_ext}$major'
1596 shlibpath_var=LIBPATH
1601 library_names_spec='$libname.ixlibrary $libname.a'
1602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1603 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'
1607 library_names_spec='${libname}${shared_ext}'
1608 dynamic_linker="$host_os ld.so"
1609 shlibpath_var=LIBRARY_PATH
1615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1616 soname_spec='${libname}${release}${shared_ext}$major'
1617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1618 shlibpath_var=LD_LIBRARY_PATH
1619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1621 # the default ld.so.conf also contains /usr/contrib/lib and
1622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1623 # libtool to hard-code these into programs
1626 cygwin* | mingw* | pw32*)
1627 version_type=windows
1632 case $GCC,$host_os in
1633 yes,cygwin* | yes,mingw* | yes,pw32*)
1634 library_names_spec='$libname.dll.a'
1635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1636 postinstall_cmds='base_file=`basename \${file}`~
1637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1638 dldir=$destdir/`dirname \$dlpath`~
1639 test -d \$dldir || mkdir -p \$dldir~
1640 $install_prog $dir/$dlname \$dldir/$dlname~
1641 chmod a+x \$dldir/$dlname'
1642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1643 dlpath=$dir/\$dldll~
1645 shlibpath_overrides_runpath=yes
1649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1650 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1651 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
1652 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1655 # MinGW DLLs use traditional 'lib' prefix
1656 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1657 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
1658 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1659 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1660 # It is most probably a Windows format PATH printed by
1661 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1662 # path with ; separators, and with drive letters. We can handle the
1663 # drive letters (cygwin fileutils understands them), so leave them,
1664 # especially as we might pass files found there to a mingw objdump,
1665 # which wouldn't understand a cygwinified path. Ahh.
1666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1672 # pw32 DLLs use 'pw' prefix rather than 'lib'
1673 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1679 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1682 dynamic_linker='Win32 ld.exe'
1683 # FIXME: first we should search . and the directory the executable is in
1687 darwin* | rhapsody*)
1688 dynamic_linker="$host_os dyld"
1692 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1693 soname_spec='${libname}${release}${major}$shared_ext'
1694 shlibpath_overrides_runpath=yes
1695 shlibpath_var=DYLD_LIBRARY_PATH
1696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1697 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1698 if test "$GCC" = yes; then
1699 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1701 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1703 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1711 soname_spec='${libname}${release}${shared_ext}$major'
1712 shlibpath_var=LD_LIBRARY_PATH
1723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1724 soname_spec='${libname}${release}${shared_ext}$major'
1725 shlibpath_var=LD_LIBRARY_PATH
1726 shlibpath_overrides_runpath=no
1727 hardcode_into_libs=yes
1728 dynamic_linker='GNU ld.so'
1731 freebsd* | dragonfly*)
1732 # DragonFly does not have aout. When/if they implement a new
1733 # versioning mechanism, adjust this.
1734 if test -x /usr/bin/objformat; then
1735 objformat=`/usr/bin/objformat`
1738 freebsd[[123]]*) objformat=aout ;;
1742 version_type=freebsd-$objformat
1743 case $version_type in
1745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1754 shlibpath_var=LD_LIBRARY_PATH
1757 shlibpath_overrides_runpath=yes
1759 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1760 shlibpath_overrides_runpath=yes
1761 hardcode_into_libs=yes
1763 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1764 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1765 shlibpath_overrides_runpath=no
1766 hardcode_into_libs=yes
1768 freebsd*) # from 4.6 on
1769 shlibpath_overrides_runpath=yes
1770 hardcode_into_libs=yes
1779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1780 soname_spec='${libname}${release}${shared_ext}$major'
1781 shlibpath_var=LD_LIBRARY_PATH
1782 hardcode_into_libs=yes
1785 hpux9* | hpux10* | hpux11*)
1786 # Give a soname corresponding to the major version so that dld.sl refuses to
1787 # link against other versions.
1794 hardcode_into_libs=yes
1795 dynamic_linker="$host_os dld.so"
1796 shlibpath_var=LD_LIBRARY_PATH
1797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1799 soname_spec='${libname}${release}${shared_ext}$major'
1800 if test "X$HPUX_IA64_MODE" = X32; then
1801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1809 hardcode_into_libs=yes
1810 dynamic_linker="$host_os dld.sl"
1811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1814 soname_spec='${libname}${release}${shared_ext}$major'
1815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1820 dynamic_linker="$host_os dld.sl"
1821 shlibpath_var=SHLIB_PATH
1822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1824 soname_spec='${libname}${release}${shared_ext}$major'
1827 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1828 postinstall_cmds='chmod 555 $lib'
1835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1836 soname_spec='${libname}${release}${shared_ext}$major'
1837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1838 shlibpath_var=LD_LIBRARY_PATH
1839 shlibpath_overrides_runpath=no
1840 hardcode_into_libs=yes
1843 irix5* | irix6* | nonstopux*)
1845 nonstopux*) version_type=nonstopux ;;
1847 if test "$lt_cv_prog_gnu_ld" = yes; then
1855 soname_spec='${libname}${release}${shared_ext}$major'
1856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1858 irix5* | nonstopux*)
1862 case $LD in # libtool.m4 will add one of these switches to LD
1863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1864 libsuff= shlibsuff= libmagic=32-bit;;
1865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1866 libsuff=32 shlibsuff=N32 libmagic=N32;;
1867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1869 *) libsuff= shlibsuff= libmagic=never-match;;
1873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1874 shlibpath_overrides_runpath=no
1875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1877 hardcode_into_libs=yes
1880 # No shared lib support for Linux oldld, aout, or coff.
1881 linux*oldld* | linux*aout* | linux*coff*)
1885 # This must be Linux ELF.
1890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1891 soname_spec='${libname}${release}${shared_ext}$major'
1892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1893 shlibpath_var=LD_LIBRARY_PATH
1894 shlibpath_overrides_runpath=no
1895 # This implies no fast_install, which is unacceptable.
1896 # Some rework will be needed to allow for fast_install
1897 # before this can be enabled.
1898 hardcode_into_libs=yes
1900 # Append ld.so.conf contents to the search path
1901 if test -f /etc/ld.so.conf; then
1902 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1906 # We used to test for /lib/ld.so.1 and disable shared libraries on
1907 # powerpc, because MkLinux only supported shared libraries with the
1908 # GNU dynamic linker. Since this was broken with cross compilers,
1909 # most powerpc-linux boxes support dynamic linking these days and
1910 # people can always --disable-shared, the test was removed, and we
1911 # assume the GNU/Linux dynamic linker is in use.
1912 dynamic_linker='GNU/Linux ld.so'
1919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1920 soname_spec='${libname}${release}${shared_ext}$major'
1921 shlibpath_var=LD_LIBRARY_PATH
1922 shlibpath_overrides_runpath=no
1923 hardcode_into_libs=yes
1924 dynamic_linker='GNU ld.so'
1931 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1934 dynamic_linker='NetBSD (a.out) ld.so'
1936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1937 soname_spec='${libname}${release}${shared_ext}$major'
1938 dynamic_linker='NetBSD ld.elf_so'
1940 shlibpath_var=LD_LIBRARY_PATH
1941 shlibpath_overrides_runpath=yes
1942 hardcode_into_libs=yes
1947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1948 shlibpath_var=LD_LIBRARY_PATH
1949 shlibpath_overrides_runpath=yes
1956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1957 soname_spec='${libname}${release}${shared_ext}$major'
1958 shlibpath_var=LD_LIBRARY_PATH
1959 shlibpath_overrides_runpath=yes
1964 sys_lib_dlsearch_path_spec="/usr/lib"
1966 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1968 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1969 *) need_version=no ;;
1971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1973 shlibpath_var=LD_LIBRARY_PATH
1974 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1976 openbsd2.[[89]] | openbsd2.[[89]].*)
1977 shlibpath_overrides_runpath=no
1980 shlibpath_overrides_runpath=yes
1984 shlibpath_overrides_runpath=yes
1989 libname_spec='$name'
1992 library_names_spec='$libname${shared_ext} $libname.a'
1993 dynamic_linker='OS/2 ld.exe'
1994 shlibpath_var=LIBPATH
1997 osf3* | osf4* | osf5*)
2001 soname_spec='${libname}${release}${shared_ext}$major'
2002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2003 shlibpath_var=LD_LIBRARY_PATH
2004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2005 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2013 soname_spec='${libname}${release}${shared_ext}$major'
2014 shlibpath_var=LD_LIBRARY_PATH
2015 shlibpath_overrides_runpath=yes
2016 hardcode_into_libs=yes
2017 # ldd complains unless libraries are executable
2018 postinstall_cmds='chmod +x $lib'
2023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2024 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2025 shlibpath_var=LD_LIBRARY_PATH
2026 shlibpath_overrides_runpath=yes
2027 if test "$with_gnu_ld" = yes; then
2035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2036 soname_spec='${libname}${release}${shared_ext}$major'
2037 shlibpath_var=LD_LIBRARY_PATH
2038 case $host_vendor in
2040 shlibpath_overrides_runpath=no
2042 export_dynamic_flag_spec='${wl}-Blargedynsym'
2043 runpath_var=LD_RUN_PATH
2051 shlibpath_overrides_runpath=no
2052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2058 if test -d /usr/nec ;then
2060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2061 soname_spec='$libname${shared_ext}.$major'
2062 shlibpath_var=LD_LIBRARY_PATH
2066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2067 version_type=freebsd-elf
2070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2071 soname_spec='${libname}${release}${shared_ext}$major'
2072 shlibpath_var=LD_LIBRARY_PATH
2073 hardcode_into_libs=yes
2074 if test "$with_gnu_ld" = yes; then
2075 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2076 shlibpath_overrides_runpath=no
2078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2079 shlibpath_overrides_runpath=yes
2082 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2086 sys_lib_dlsearch_path_spec='/usr/lib'
2091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2092 soname_spec='${libname}${release}${shared_ext}$major'
2093 shlibpath_var=LD_LIBRARY_PATH
2100 AC_MSG_RESULT([$dynamic_linker])
2101 test "$dynamic_linker" = no && can_build_shared=no
2103 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2104 if test "$GCC" = yes; then
2105 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2107 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2112 AC_DEFUN([_LT_AC_TAGCONFIG],
2113 [AC_ARG_WITH([tags],
2114 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2115 [include additional configurations @<:@automatic@:>@])],
2116 [tagnames="$withval"])
2118 if test -f "$ltmain" && test -n "$tagnames"; then
2119 if test ! -f "${ofile}"; then
2120 AC_MSG_WARN([output file `$ofile' does not exist])
2123 if test -z "$LTCC"; then
2124 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2125 if test -z "$LTCC"; then
2126 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2128 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2131 if test -z "$LTCFLAGS"; then
2132 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2135 # Extract list of available tagged configurations in $ofile.
2136 # Note that this assumes the entire list is on one line.
2137 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2140 for tagname in $tagnames; do
2142 # Check whether tagname contains only valid characters
2143 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2145 *) AC_MSG_ERROR([invalid tag name: $tagname])
2149 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2151 AC_MSG_ERROR([tag name \"$tagname\" already exists])
2154 # Update the list of available tags.
2155 if test -n "$tagname"; then
2156 echo appending configuration tag \"$tagname\" to $ofile
2160 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2161 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2162 (test "X$CXX" != "Xg++"))) ; then
2163 AC_LIBTOOL_LANG_CXX_CONFIG
2170 if test -n "$F77" && test "X$F77" != "Xno"; then
2171 AC_LIBTOOL_LANG_F77_CONFIG
2178 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2179 AC_LIBTOOL_LANG_GCJ_CONFIG
2186 AC_LIBTOOL_LANG_RC_CONFIG
2190 AC_MSG_ERROR([Unsupported tag name: $tagname])
2194 # Append the new tag name to the list of available tags.
2195 if test -n "$tagname" ; then
2196 available_tags="$available_tags $tagname"
2202 # Now substitute the updated list of available tags.
2203 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2204 mv "${ofile}T" "$ofile"
2208 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2211 ])# _LT_AC_TAGCONFIG
2216 # enable checks for dlopen support
2217 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2218 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2219 ])# AC_LIBTOOL_DLOPEN
2222 # AC_LIBTOOL_WIN32_DLL
2223 # --------------------
2224 # declare package support for building win32 DLLs
2225 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2226 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2227 ])# AC_LIBTOOL_WIN32_DLL
2230 # AC_ENABLE_SHARED([DEFAULT])
2231 # ---------------------------
2232 # implement the --enable-shared flag
2233 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2234 AC_DEFUN([AC_ENABLE_SHARED],
2235 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2236 AC_ARG_ENABLE([shared],
2237 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2238 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2239 [p=${PACKAGE-default}
2241 yes) enable_shared=yes ;;
2242 no) enable_shared=no ;;
2245 # Look at the argument we got. We use all the common list separators.
2246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2247 for pkg in $enableval; do
2249 if test "X$pkg" = "X$p"; then
2256 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2257 ])# AC_ENABLE_SHARED
2262 # set the default shared flag to --disable-shared
2263 AC_DEFUN([AC_DISABLE_SHARED],
2264 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2265 AC_ENABLE_SHARED(no)
2266 ])# AC_DISABLE_SHARED
2269 # AC_ENABLE_STATIC([DEFAULT])
2270 # ---------------------------
2271 # implement the --enable-static flag
2272 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2273 AC_DEFUN([AC_ENABLE_STATIC],
2274 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2275 AC_ARG_ENABLE([static],
2276 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2277 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2278 [p=${PACKAGE-default}
2280 yes) enable_static=yes ;;
2281 no) enable_static=no ;;
2284 # Look at the argument we got. We use all the common list separators.
2285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2286 for pkg in $enableval; do
2288 if test "X$pkg" = "X$p"; then
2295 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2296 ])# AC_ENABLE_STATIC
2301 # set the default static flag to --disable-static
2302 AC_DEFUN([AC_DISABLE_STATIC],
2303 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2304 AC_ENABLE_STATIC(no)
2305 ])# AC_DISABLE_STATIC
2308 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2309 # ---------------------------------
2310 # implement the --enable-fast-install flag
2311 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2312 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2313 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2314 AC_ARG_ENABLE([fast-install],
2315 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2316 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2317 [p=${PACKAGE-default}
2319 yes) enable_fast_install=yes ;;
2320 no) enable_fast_install=no ;;
2322 enable_fast_install=no
2323 # Look at the argument we got. We use all the common list separators.
2324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2325 for pkg in $enableval; do
2327 if test "X$pkg" = "X$p"; then
2328 enable_fast_install=yes
2334 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2335 ])# AC_ENABLE_FAST_INSTALL
2338 # AC_DISABLE_FAST_INSTALL
2339 # -----------------------
2340 # set the default to --disable-fast-install
2341 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2342 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2343 AC_ENABLE_FAST_INSTALL(no)
2344 ])# AC_DISABLE_FAST_INSTALL
2347 # AC_LIBTOOL_PICMODE([MODE])
2348 # --------------------------
2349 # implement the --with-pic flag
2350 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2351 AC_DEFUN([AC_LIBTOOL_PICMODE],
2352 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2353 pic_mode=ifelse($#,1,$1,default)
2354 ])# AC_LIBTOOL_PICMODE
2359 # This is predefined starting with Autoconf 2.54, so this conditional
2360 # definition can be removed once we require Autoconf 2.54 or later.
2361 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2362 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2363 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2364 then ac_cv_prog_egrep='grep -E'
2365 else ac_cv_prog_egrep='egrep'
2367 EGREP=$ac_cv_prog_egrep
2372 # AC_PATH_TOOL_PREFIX
2373 # -------------------
2374 # find a file program which can recognise shared library
2375 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2376 [AC_REQUIRE([AC_PROG_EGREP])dnl
2377 AC_MSG_CHECKING([for $1])
2378 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2380 [[\\/*] | ?:[\\/]*])
2381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2384 lt_save_MAGIC_CMD="$MAGIC_CMD"
2385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2386 dnl $ac_dummy forces splitting on constant user-supplied paths.
2387 dnl POSIX.2 word splitting is done only on the output of word expansions,
2388 dnl not every word. This closes a longstanding sh security hole.
2389 ac_dummy="ifelse([$2], , $PATH, [$2])"
2390 for ac_dir in $ac_dummy; do
2392 test -z "$ac_dir" && ac_dir=.
2393 if test -f $ac_dir/$1; then
2394 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2395 if test -n "$file_magic_test_file"; then
2396 case $deplibs_check_method in
2398 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2400 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2401 $EGREP "$file_magic_regex" > /dev/null; then
2406 *** Warning: the command libtool uses to detect shared libraries,
2407 *** $file_magic_cmd, produces output that libtool cannot recognize.
2408 *** The result is that libtool may fail to recognize shared libraries
2409 *** as such. This will affect the creation of libtool libraries that
2410 *** depend on shared libraries, but programs linked with such libtool
2411 *** libraries will work regardless of this problem. Nevertheless, you
2412 *** may want to report the problem to your system manager and/or to
2413 *** bug-libtool@gnu.org
2423 MAGIC_CMD="$lt_save_MAGIC_CMD"
2426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2427 if test -n "$MAGIC_CMD"; then
2428 AC_MSG_RESULT($MAGIC_CMD)
2432 ])# AC_PATH_TOOL_PREFIX
2437 # find a file program which can recognise a shared library
2438 AC_DEFUN([AC_PATH_MAGIC],
2439 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2440 if test -z "$lt_cv_path_MAGIC_CMD"; then
2441 if test -n "$ac_tool_prefix"; then
2442 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2452 # find the pathname to the GNU or non-GNU linker
2453 AC_DEFUN([AC_PROG_LD],
2454 [AC_ARG_WITH([gnu-ld],
2455 [AC_HELP_STRING([--with-gnu-ld],
2456 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2457 [test "$withval" = no || with_gnu_ld=yes],
2459 AC_REQUIRE([LT_AC_PROG_SED])dnl
2460 AC_REQUIRE([AC_PROG_CC])dnl
2461 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2462 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2464 if test "$GCC" = yes; then
2465 # Check if gcc -print-prog-name=ld gives a path.
2466 AC_MSG_CHECKING([for ld used by $CC])
2469 # gcc leaves a trailing carriage return which upsets mingw
2470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2475 # Accept absolute paths.
2476 [[\\/]]* | ?:[[\\/]]*)
2477 re_direlt='/[[^/]][[^/]]*/\.\./'
2478 # Canonicalize the pathname of ld
2479 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2480 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2481 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2483 test -z "$LD" && LD="$ac_prog"
2486 # If it fails, then pretend we aren't using GCC.
2490 # If it is relative, then search for the first ld in PATH.
2494 elif test "$with_gnu_ld" = yes; then
2495 AC_MSG_CHECKING([for GNU ld])
2497 AC_MSG_CHECKING([for non-GNU ld])
2499 AC_CACHE_VAL(lt_cv_path_LD,
2500 [if test -z "$LD"; then
2501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2502 for ac_dir in $PATH; do
2504 test -z "$ac_dir" && ac_dir=.
2505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2506 lt_cv_path_LD="$ac_dir/$ac_prog"
2507 # Check to see if the program is GNU ld. I'd rather use --version,
2508 # but apparently some variants of GNU ld only accept -v.
2509 # Break only if it was the GNU/non-GNU ld that we prefer.
2510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2511 *GNU* | *'with BFD'*)
2512 test "$with_gnu_ld" != no && break
2515 test "$with_gnu_ld" != yes && break
2522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2525 if test -n "$LD"; then
2530 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2537 AC_DEFUN([AC_PROG_LD_GNU],
2538 [AC_REQUIRE([AC_PROG_EGREP])dnl
2539 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2540 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2541 case `$LD -v 2>&1 </dev/null` in
2542 *GNU* | *'with BFD'*)
2543 lt_cv_prog_gnu_ld=yes
2546 lt_cv_prog_gnu_ld=no
2549 with_gnu_ld=$lt_cv_prog_gnu_ld
2553 # AC_PROG_LD_RELOAD_FLAG
2554 # ----------------------
2555 # find reload flag for linker
2556 # -- PORTME Some linkers may need a different reload flag.
2557 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2558 [AC_CACHE_CHECK([for $LD option to reload object files],
2559 lt_cv_ld_reload_flag,
2560 [lt_cv_ld_reload_flag='-r'])
2561 reload_flag=$lt_cv_ld_reload_flag
2562 case $reload_flag in
2564 *) reload_flag=" $reload_flag" ;;
2566 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2569 if test "$GCC" = yes; then
2570 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2572 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2576 ])# AC_PROG_LD_RELOAD_FLAG
2579 # AC_DEPLIBS_CHECK_METHOD
2580 # -----------------------
2581 # how to check for library dependencies
2582 # -- PORTME fill in with the dynamic library characteristics
2583 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2584 [AC_CACHE_CHECK([how to recognise dependent libraries],
2585 lt_cv_deplibs_check_method,
2586 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2587 lt_cv_file_magic_test_file=
2588 lt_cv_deplibs_check_method='unknown'
2589 # Need to set the preceding variable on all platforms that support
2590 # interlibrary dependencies.
2591 # 'none' -- dependencies not supported.
2592 # `unknown' -- same as none, but documents that we really don't know.
2593 # 'pass_all' -- all dependencies passed with no checks.
2594 # 'test_compile' -- check by making test program.
2595 # 'file_magic [[regex]]' -- check by looking for files in library path
2596 # which responds to the $file_magic_cmd with a given extended regex.
2597 # If you have `file' or equivalent on your system and you're not sure
2598 # whether `pass_all' will *always* work, you probably want this one.
2602 lt_cv_deplibs_check_method=pass_all
2606 lt_cv_deplibs_check_method=pass_all
2610 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2611 lt_cv_file_magic_cmd='/usr/bin/file -L'
2612 lt_cv_file_magic_test_file=/shlib/libc.so
2616 # func_win32_libid is a shell function defined in ltmain.sh
2617 #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2618 lt_cv_deplibs_check_method=pass_all
2619 lt_cv_file_magic_cmd='func_win32_libid'
2623 # Base MSYS/MinGW do not provide the 'file' command needed by
2624 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2625 #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2626 lt_cv_deplibs_check_method=pass_all
2627 lt_cv_file_magic_cmd='$OBJDUMP -f'
2630 darwin* | rhapsody*)
2631 lt_cv_deplibs_check_method=pass_all
2634 freebsd* | kfreebsd*-gnu | dragonfly*)
2635 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2638 # Not sure whether the presence of OpenBSD here was a mistake.
2639 # Let's accept both of them until this is cleared up.
2640 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2641 lt_cv_file_magic_cmd=/usr/bin/file
2642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2646 lt_cv_deplibs_check_method=pass_all
2651 lt_cv_deplibs_check_method=pass_all
2654 hpux10.20* | hpux11*)
2655 lt_cv_file_magic_cmd=/usr/bin/file
2658 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2659 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2662 [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]']
2663 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2666 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2667 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2673 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2674 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2677 irix5* | irix6* | nonstopux*)
2679 *-32|*"-32 ") libmagic=32-bit;;
2680 *-n32|*"-n32 ") libmagic=N32;;
2681 *-64|*"-64 ") libmagic=64-bit;;
2682 *) libmagic=never-match;;
2684 lt_cv_deplibs_check_method=pass_all
2687 # This must be Linux ELF.
2689 lt_cv_deplibs_check_method=pass_all
2693 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2694 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2696 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2701 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2702 lt_cv_file_magic_cmd=/usr/bin/file
2703 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2707 lt_cv_deplibs_check_method=unknown
2711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2712 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2714 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2718 osf3* | osf4* | osf5*)
2719 lt_cv_deplibs_check_method=pass_all
2723 lt_cv_deplibs_check_method=pass_all
2727 case $host_vendor in
2729 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]]'
2730 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2733 lt_cv_deplibs_check_method=pass_all
2736 lt_cv_file_magic_cmd='/bin/file'
2737 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2740 lt_cv_file_magic_cmd='/bin/file'
2741 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2742 lt_cv_file_magic_test_file=/lib/libc.so
2745 lt_cv_deplibs_check_method=pass_all
2748 lt_cv_deplibs_check_method=pass_all
2753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2754 lt_cv_deplibs_check_method=pass_all
2758 file_magic_cmd=$lt_cv_file_magic_cmd
2759 deplibs_check_method=$lt_cv_deplibs_check_method
2760 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2761 ])# AC_DEPLIBS_CHECK_METHOD
2766 # find the pathname to a BSD-compatible name lister
2767 AC_DEFUN([AC_PROG_NM],
2768 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2769 [if test -n "$NM"; then
2770 # Let the user override the test.
2773 lt_nm_to_check="${ac_tool_prefix}nm"
2774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2775 lt_nm_to_check="$lt_nm_to_check nm"
2777 for lt_tmp_nm in $lt_nm_to_check; do
2778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2781 test -z "$ac_dir" && ac_dir=.
2782 tmp_nm="$ac_dir/$lt_tmp_nm"
2783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2784 # Check to see if the nm accepts a BSD-compat flag.
2785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2786 # nm: unknown option "B" ignored
2787 # Tru64's nm complains that /dev/null is an invalid object file
2788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2789 */dev/null* | *'Invalid file or object type'*)
2790 lt_cv_path_NM="$tmp_nm -B"
2794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2796 lt_cv_path_NM="$tmp_nm -p"
2800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2801 continue # so that we can try to find one that supports BSD flags
2810 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2818 # check for math library
2819 AC_DEFUN([AC_CHECK_LIBM],
2820 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2823 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2824 # These system don't have libm, or don't need it
2827 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2828 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2831 AC_CHECK_LIB(m, cos, LIBM="-lm")
2837 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2838 # -----------------------------------
2839 # sets LIBLTDL to the link flags for the libltdl convenience library and
2840 # LTDLINCL to the include flags for the libltdl header and adds
2841 # --enable-ltdl-convenience to the configure arguments. Note that
2842 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2843 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2844 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2845 # (note the single quotes!). If your package is not flat and you're not
2846 # using automake, define top_builddir and top_srcdir appropriately in
2848 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2849 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2850 case $enable_ltdl_convenience in
2851 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2852 "") enable_ltdl_convenience=yes
2853 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2855 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2856 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2857 # For backwards non-gettext consistent compatibility...
2859 ])# AC_LIBLTDL_CONVENIENCE
2862 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2863 # -----------------------------------
2864 # sets LIBLTDL to the link flags for the libltdl installable library and
2865 # LTDLINCL to the include flags for the libltdl header and adds
2866 # --enable-ltdl-install to the configure arguments. Note that
2867 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2868 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2869 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2870 # '${top_srcdir}/' (note the single quotes!). If your package is not
2871 # flat and you're not using automake, define top_builddir and top_srcdir
2872 # appropriately in the Makefiles.
2873 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2874 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2875 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2876 AC_CHECK_LIB(ltdl, lt_dlinit,
2877 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2878 [if test x"$enable_ltdl_install" = xno; then
2879 AC_MSG_WARN([libltdl not installed, but installation disabled])
2881 enable_ltdl_install=yes
2884 if test x"$enable_ltdl_install" = x"yes"; then
2885 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2886 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2887 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2889 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2893 # For backwards non-gettext consistent compatibility...
2895 ])# AC_LIBLTDL_INSTALLABLE
2900 # enable support for C++ libraries
2901 AC_DEFUN([AC_LIBTOOL_CXX],
2902 [AC_REQUIRE([_LT_AC_LANG_CXX])
2908 AC_DEFUN([_LT_AC_LANG_CXX],
2909 [AC_REQUIRE([AC_PROG_CXX])
2910 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2911 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2914 # _LT_AC_PROG_CXXCPP
2915 # ------------------
2916 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2918 AC_REQUIRE([AC_PROG_CXX])
2919 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2920 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2921 (test "X$CXX" != "Xg++"))) ; then
2924 ])# _LT_AC_PROG_CXXCPP
2928 # enable support for Fortran 77 libraries
2929 AC_DEFUN([AC_LIBTOOL_F77],
2930 [AC_REQUIRE([_LT_AC_LANG_F77])
2936 AC_DEFUN([_LT_AC_LANG_F77],
2937 [AC_REQUIRE([AC_PROG_F77])
2938 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2944 # enable support for GCJ libraries
2945 AC_DEFUN([AC_LIBTOOL_GCJ],
2946 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2952 AC_DEFUN([_LT_AC_LANG_GCJ],
2953 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2954 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2955 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2956 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2957 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2958 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2959 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2965 # enable support for Windows resource files
2966 AC_DEFUN([AC_LIBTOOL_RC],
2967 [AC_REQUIRE([LT_AC_PROG_RC])
2968 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2972 # AC_LIBTOOL_LANG_C_CONFIG
2973 # ------------------------
2974 # Ensure that the configuration vars for the C compiler are
2975 # suitably defined. Those variables are subsequently used by
2976 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2977 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2978 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2982 # Source file extension for C test sources.
2985 # Object file extension for compiled C test sources.
2987 _LT_AC_TAGVAR(objext, $1)=$objext
2989 # Code to be used in simple compile tests
2990 lt_simple_compile_test_code="int some_variable = 0;\n"
2992 # Code to be used in simple link tests
2993 lt_simple_link_test_code='int main(){return(0);}\n'
2997 # save warnings/boilerplate of simple test code
2998 _LT_COMPILER_BOILERPLATE
2999 _LT_LINKER_BOILERPLATE
3002 ## There is no encapsulation within the following macros, do not change
3003 ## the running order or otherwise move them around unless you know exactly
3004 ## what you are doing...
3005 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3006 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3007 AC_LIBTOOL_PROG_CC_C_O($1)
3008 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3009 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3010 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3011 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3012 AC_LIBTOOL_SYS_LIB_STRIP
3013 AC_LIBTOOL_DLOPEN_SELF
3015 # Report which library types will actually be built
3016 AC_MSG_CHECKING([if libtool supports shared libraries])
3017 AC_MSG_RESULT([$can_build_shared])
3019 AC_MSG_CHECKING([whether to build shared libraries])
3020 test "$can_build_shared" = "no" && enable_shared=no
3022 # On AIX, shared libraries and static libraries use the same namespace, and
3023 # are all built from PIC.
3026 test "$enable_shared" = yes && enable_static=no
3027 if test -n "$RANLIB"; then
3028 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3029 postinstall_cmds='$RANLIB $lib'
3034 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3035 test "$enable_shared" = yes && enable_static=no
3039 AC_MSG_RESULT([$enable_shared])
3041 AC_MSG_CHECKING([whether to build static libraries])
3042 # Make sure either enable_shared or enable_static is yes.
3043 test "$enable_shared" = yes || enable_static=yes
3044 AC_MSG_RESULT([$enable_static])
3046 AC_LIBTOOL_CONFIG($1)
3050 ])# AC_LIBTOOL_LANG_C_CONFIG
3053 # AC_LIBTOOL_LANG_CXX_CONFIG
3054 # --------------------------
3055 # Ensure that the configuration vars for the C compiler are
3056 # suitably defined. Those variables are subsequently used by
3057 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3058 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3059 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3061 AC_REQUIRE([AC_PROG_CXX])
3062 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3064 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3065 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3066 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3067 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3068 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3069 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3070 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3071 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3072 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3073 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3074 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3075 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3076 _LT_AC_TAGVAR(module_cmds, $1)=
3077 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3078 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3079 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3080 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3081 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3082 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3084 # Dependencies to place before and after the object being linked:
3085 _LT_AC_TAGVAR(predep_objects, $1)=
3086 _LT_AC_TAGVAR(postdep_objects, $1)=
3087 _LT_AC_TAGVAR(predeps, $1)=
3088 _LT_AC_TAGVAR(postdeps, $1)=
3089 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3091 # Source file extension for C++ test sources.
3094 # Object file extension for compiled C++ test sources.
3096 _LT_AC_TAGVAR(objext, $1)=$objext
3098 # Code to be used in simple compile tests
3099 lt_simple_compile_test_code="int some_variable = 0;\n"
3101 # Code to be used in simple link tests
3102 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3107 # save warnings/boilerplate of simple test code
3108 _LT_COMPILER_BOILERPLATE
3109 _LT_LINKER_BOILERPLATE
3111 # Allow CC to be a program name with arguments.
3116 lt_save_with_gnu_ld=$with_gnu_ld
3117 lt_save_path_LD=$lt_cv_path_LD
3118 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3119 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3121 $as_unset lt_cv_prog_gnu_ld
3123 if test -n "${lt_cv_path_LDCXX+set}"; then
3124 lt_cv_path_LD=$lt_cv_path_LDCXX
3126 $as_unset lt_cv_path_LD
3128 test -z "${LDCXX+set}" || LD=$LDCXX
3131 _LT_AC_TAGVAR(compiler, $1)=$CC
3132 _LT_CC_BASENAME([$compiler])
3134 # We don't want -fno-exception wen compiling C++ code, so set the
3135 # no_builtin_flag separately
3136 if test "$GXX" = yes; then
3137 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3139 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3142 if test "$GXX" = yes; then
3143 # Set up default GNU C++ configuration
3147 # Check if GNU C++ uses GNU ld as the underlying linker, since the
3148 # archiving commands below assume that GNU ld is being used.
3149 if test "$with_gnu_ld" = yes; then
3150 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3151 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3153 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3154 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3156 # If archive_cmds runs LD, not CC, wlarc should be empty
3157 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3158 # investigate it a little bit more. (MM)
3161 # ancient GNU ld didn't support --whole-archive et. al.
3162 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3163 grep 'no-whole-archive' > /dev/null; then
3164 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3166 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3172 # A generic and very simple default shared library creation
3173 # command for GNU C++ for the case where it uses the native
3174 # linker, instead of GNU ld. If possible, this setting should
3175 # overridden to take advantage of the native linker features on
3176 # the platform it is being used on.
3177 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3180 # Commands to make compiler produce verbose output that lists
3181 # what "hidden" libraries, object files and flags are used when
3182 # linking a shared library.
3183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3191 # PORTME: fill in a description of your system's C++ link characteristics
3192 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3193 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3196 # FIXME: insert proper C++ library support
3197 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3200 if test "$host_cpu" = ia64; then
3201 # On IA64, the linker does run time linking by default, so we don't
3202 # have to do anything special.
3203 aix_use_runtimelinking=no
3204 exp_sym_flag='-Bexport'
3207 aix_use_runtimelinking=no
3209 # Test if we are trying to use run time linking or normal
3210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3211 # need to do runtime linking.
3212 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3213 for ld_flag in $LDFLAGS; do
3216 aix_use_runtimelinking=yes
3224 exp_sym_flag='-bexport'
3225 no_entry_flag='-bnoentry'
3228 # When large executables or shared objects are built, AIX ld can
3229 # have problems creating the table of contents. If linking a library
3230 # or program results in "error TOC overflow" add -mminimal-toc to
3231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3234 _LT_AC_TAGVAR(archive_cmds, $1)=''
3235 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3236 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3237 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3239 if test "$GXX" = yes; then
3240 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3241 # We only want to do this on AIX 4.2 and lower, the check
3242 # below for broken collect2 doesn't work under 4.3+
3243 collect2name=`${CC} -print-prog-name=collect2`
3244 if test -f "$collect2name" && \
3245 strings "$collect2name" | grep resolve_lib_name >/dev/null
3247 # We have reworked collect2
3248 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3250 # We have old collect2
3251 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3252 # It fails to find uninstalled libraries when the uninstalled
3253 # path is not listed in the libpath. Setting hardcode_minus_L
3254 # to unsupported forces relinking
3255 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3257 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3261 shared_flag='-shared'
3262 if test "$aix_use_runtimelinking" = yes; then
3263 shared_flag="$shared_flag "'${wl}-G'
3267 if test "$host_cpu" = ia64; then
3268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3269 # chokes on -Wl,-G. The following line is correct:
3272 if test "$aix_use_runtimelinking" = yes; then
3273 shared_flag='${wl}-G'
3275 shared_flag='${wl}-bM:SRE'
3280 # It seems that -bexpall does not export symbols beginning with
3281 # underscore (_), so it is better to generate a list of symbols to export.
3282 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3283 if test "$aix_use_runtimelinking" = yes; then
3284 # Warning - without using the other runtime loading flags (-brtl),
3285 # -berok will link without error, but may produce a broken library.
3286 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3287 # Determine the default libpath from the value encoded in an empty executable.
3288 _LT_AC_SYS_LIBPATH_AIX
3289 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3291 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3293 if test "$host_cpu" = ia64; then
3294 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3295 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3296 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3298 # Determine the default libpath from the value encoded in an empty executable.
3299 _LT_AC_SYS_LIBPATH_AIX
3300 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3301 # Warning - without using the other run time loading flags,
3302 # -berok will link without error, but may produce a broken library.
3303 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3304 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3305 # Exported symbols can be pulled into shared objects from archives
3306 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3307 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3308 # This is similar to how AIX traditionally builds its shared libraries.
3309 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3316 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3318 # support --undefined. This deserves some investigation. FIXME
3319 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3321 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3326 case $cc_basename in
3328 # FIXME: insert proper C++ library support
3329 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3334 cygwin* | mingw* | pw32*)
3335 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3336 # as there is no search path for DLLs.
3337 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3338 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3339 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3340 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3342 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3343 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3344 # If the export-symbols file already is a .def file (1st line
3345 # is EXPORTS), use it as is; otherwise, prepend...
3346 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3347 cp $export_symbols $output_objdir/$soname.def;
3349 echo EXPORTS > $output_objdir/$soname.def;
3350 cat $export_symbols >> $output_objdir/$soname.def;
3352 $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'
3354 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3357 darwin* | rhapsody*)
3359 rhapsody* | darwin1.[[012]])
3360 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3363 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3364 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3366 case ${MACOSX_DEPLOYMENT_TARGET} in
3368 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3371 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3377 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3378 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3379 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3380 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3381 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3382 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3384 if test "$GXX" = yes ; then
3385 lt_int_apple_cc_single_mod=no
3386 output_verbose_link_cmd='echo'
3387 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3388 lt_int_apple_cc_single_mod=yes
3390 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3391 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3393 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3395 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3397 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3398 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3400 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3402 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3404 case $cc_basename in
3406 output_verbose_link_cmd='echo'
3407 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3408 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3409 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3410 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3411 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3414 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3421 case $cc_basename in
3423 # FIXME: insert proper C++ library support
3424 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3427 # Green Hills C++ Compiler
3428 # FIXME: insert proper C++ library support
3429 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3432 # FIXME: insert proper C++ library support
3433 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3438 # C++ shared libraries reported to be fairly broken before switch to ELF
3439 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3442 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3444 freebsd* | kfreebsd*-gnu | dragonfly*)
3445 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3447 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3452 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3453 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3454 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3455 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3456 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3457 # but as the default
3458 # location of the library.
3460 case $cc_basename in
3462 # FIXME: insert proper C++ library support
3463 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3466 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3467 # Commands to make compiler produce verbose output that lists
3468 # what "hidden" libraries, object files and flags are used when
3469 # linking a shared library.
3471 # There doesn't appear to be a way to prevent this compiler from
3472 # explicitly linking system object files so we need to strip them
3473 # from the output so that they don't get included in the library
3475 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3478 if test "$GXX" = yes; then
3479 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3481 # FIXME: insert proper C++ library support
3482 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3488 if test $with_gnu_ld = no; then
3489 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3490 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3494 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3497 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3503 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3504 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3507 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3508 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3509 # but as the default
3510 # location of the library.
3514 case $cc_basename in
3516 # FIXME: insert proper C++ library support
3517 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3522 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3525 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3528 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3531 # Commands to make compiler produce verbose output that lists
3532 # what "hidden" libraries, object files and flags are used when
3533 # linking a shared library.
3535 # There doesn't appear to be a way to prevent this compiler from
3536 # explicitly linking system object files so we need to strip them
3537 # from the output so that they don't get included in the library
3539 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3542 if test "$GXX" = yes; then
3543 if test $with_gnu_ld = no; then
3546 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3549 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3552 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3557 # FIXME: insert proper C++ library support
3558 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3564 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3565 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3566 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3567 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3568 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3569 # Instead, shared libraries are loaded at an image base (0x10000000 by
3570 # default) and relocated if they conflict, which is a slow very memory
3571 # consuming and fragmenting process. To avoid this, we pick a random,
3572 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3573 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3574 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3575 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3578 case $cc_basename in
3581 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3583 # Archives containing C++ object files must be created using
3584 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3585 # necessary to make sure instantiated templates are included
3587 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3590 if test "$GXX" = yes; then
3591 if test "$with_gnu_ld" = no; then
3592 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3594 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3597 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3600 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3601 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3604 case $cc_basename in
3606 # Kuck and Associates, Inc. (KAI) C++ Compiler
3608 # KCC will only create a shared library if the output file
3609 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3610 # to its proper name (with version) after linking.
3611 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3612 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3613 # Commands to make compiler produce verbose output that lists
3614 # what "hidden" libraries, object files and flags are used when
3615 # linking a shared library.
3617 # There doesn't appear to be a way to prevent this compiler from
3618 # explicitly linking system object files so we need to strip them
3619 # from the output so that they don't get included in the library
3621 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3623 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3624 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3626 # Archives containing C++ object files must be created using
3627 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3628 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3633 # version 8.0 and above of icpc choke on multiply defined symbols
3634 # if we add $predep_objects and $postdep_objects, however 7.1 and
3635 # earlier do not add the objects themselves.
3636 case `$CC -V 2>&1` in
3638 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3639 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3641 *) # Version 8.0 or newer
3644 ia64*) tmp_idyn=' -i_dynamic';;
3646 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3647 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3650 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3651 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3652 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3653 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3656 # Portland Group C++ compiler
3657 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3658 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3660 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3661 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3662 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3666 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3667 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3669 runpath_var=LD_RUN_PATH
3670 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3671 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3673 # Commands to make compiler produce verbose output that lists
3674 # what "hidden" libraries, object files and flags are used when
3675 # linking a shared library.
3677 # There doesn't appear to be a way to prevent this compiler from
3678 # explicitly linking system object files so we need to strip them
3679 # from the output so that they don't get included in the library
3681 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3686 # FIXME: insert proper C++ library support
3687 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3690 # FIXME: insert proper C++ library support
3691 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3694 case $cc_basename in
3696 # FIXME: insert proper C++ library support
3697 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3700 # FIXME: insert proper C++ library support
3701 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3707 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3709 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3710 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3711 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3713 # Workaround some broken pre-1.5 toolchains
3714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3717 # C++ shared libraries are fairly broken
3718 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3721 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3722 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3723 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3724 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3726 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3727 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3728 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3730 output_verbose_link_cmd='echo'
3733 case $cc_basename in
3735 # Kuck and Associates, Inc. (KAI) C++ Compiler
3737 # KCC will only create a shared library if the output file
3738 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3739 # to its proper name (with version) after linking.
3740 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3742 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3743 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3745 # Archives containing C++ object files must be created using
3746 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3747 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3751 # Rational C++ 2.4.1
3752 # FIXME: insert proper C++ library support
3753 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3756 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3757 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3759 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3760 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3762 # Commands to make compiler produce verbose output that lists
3763 # what "hidden" libraries, object files and flags are used when
3764 # linking a shared library.
3766 # There doesn't appear to be a way to prevent this compiler from
3767 # explicitly linking system object files so we need to strip them
3768 # from the output so that they don't get included in the library
3770 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3773 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3774 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3775 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3777 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3778 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3780 # Commands to make compiler produce verbose output that lists
3781 # what "hidden" libraries, object files and flags are used when
3782 # linking a shared library.
3783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3786 # FIXME: insert proper C++ library support
3787 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3793 case $cc_basename in
3795 # Kuck and Associates, Inc. (KAI) C++ Compiler
3797 # KCC will only create a shared library if the output file
3798 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3799 # to its proper name (with version) after linking.
3800 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3802 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3803 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3805 # Archives containing C++ object files must be created using
3806 # the KAI C++ compiler.
3807 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3810 # Rational C++ 2.4.1
3811 # FIXME: insert proper C++ library support
3812 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3815 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3816 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3817 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3818 echo "-hidden">> $lib.exp~
3819 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3822 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3823 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3825 # Commands to make compiler produce verbose output that lists
3826 # what "hidden" libraries, object files and flags are used when
3827 # linking a shared library.
3829 # There doesn't appear to be a way to prevent this compiler from
3830 # explicitly linking system object files so we need to strip them
3831 # from the output so that they don't get included in the library
3833 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3836 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3837 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3838 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3840 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3841 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3843 # Commands to make compiler produce verbose output that lists
3844 # what "hidden" libraries, object files and flags are used when
3845 # linking a shared library.
3846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3849 # FIXME: insert proper C++ library support
3850 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3856 # FIXME: insert proper C++ library support
3857 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3860 case $cc_basename in
3863 # FIXME: insert proper C++ library support
3864 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3868 # FIXME: insert proper C++ library support
3869 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3872 # FIXME: insert proper C++ library support
3873 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3878 case $cc_basename in
3880 # Sun C++ 4.2, 5.x and Centerline C++
3881 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3882 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3883 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3884 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3885 $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'
3887 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3888 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3890 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3892 # The C++ compiler is used as linker so we must use $wl
3893 # flag to pass the commands to the underlying system
3894 # linker. We must also pass each convience library through
3895 # to the system linker between allextract/defaultextract.
3896 # The C++ compiler will combine linker options so we
3897 # cannot just pass the convience library names through
3899 # Supported since Solaris 2.6 (maybe 2.5.1?)
3900 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3903 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3905 output_verbose_link_cmd='echo'
3907 # Archives containing C++ object files must be created using
3908 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3909 # necessary to make sure instantiated templates are included
3911 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3914 # Green Hills C++ Compiler
3915 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3917 # The C++ compiler must be used to create the archive.
3918 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3921 # GNU C++ compiler with Solaris linker
3922 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3923 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3924 if $CC --version | grep -v '^2\.7' > /dev/null; then
3925 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3926 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3927 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3929 # Commands to make compiler produce verbose output that lists
3930 # what "hidden" libraries, object files and flags are used when
3931 # linking a shared library.
3932 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3934 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3936 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3937 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3938 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3940 # Commands to make compiler produce verbose output that lists
3941 # what "hidden" libraries, object files and flags are used when
3942 # linking a shared library.
3943 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3946 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3951 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3952 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3953 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3954 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3955 runpath_var='LD_RUN_PATH'
3957 case $cc_basename in
3959 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3960 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3963 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3964 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3968 sysv5* | sco3.2v5* | sco5v6*)
3969 # Note: We can NOT use -z defs as we might desire, because we do not
3970 # link with -lc, and that would cause any symbols used from libc to
3971 # always be unresolved, which means just about no library would
3972 # ever link correctly. If we're not using GNU ld we use -z text
3973 # though, which does catch some bad symbols but isn't as heavy-handed
3975 # For security reasons, it is highly recommended that you always
3976 # use absolute paths for naming shared libraries, and exclude the
3977 # DT_RUNPATH tag from executables and libraries. But doing so
3978 # requires that you compile everything twice, which is a pain.
3979 # So that behaviour is only enabled if SCOABSPATH is set to a
3980 # non-empty value in the environment. Most likely only useful for
3981 # creating official distributions of packages.
3982 # This is a hack until libtool officially supports absolute path
3983 # names for shared libraries.
3984 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3985 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3986 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3987 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3988 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3989 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3990 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3991 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3992 runpath_var='LD_RUN_PATH'
3994 case $cc_basename in
3996 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3997 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4000 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4001 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4006 case $cc_basename in
4008 # NonStop-UX NCC 3.20
4009 # FIXME: insert proper C++ library support
4010 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4013 # FIXME: insert proper C++ library support
4014 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4019 # FIXME: insert proper C++ library support
4020 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4023 # FIXME: insert proper C++ library support
4024 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4027 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4028 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4030 _LT_AC_TAGVAR(GCC, $1)="$GXX"
4031 _LT_AC_TAGVAR(LD, $1)="$LD"
4034 ## There is no encapsulation within the following macros, do not change
4035 ## the running order or otherwise move them around unless you know exactly
4036 ## what you are doing...
4037 AC_LIBTOOL_POSTDEP_PREDEP($1)
4038 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4039 AC_LIBTOOL_PROG_CC_C_O($1)
4040 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4041 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4042 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4043 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4045 AC_LIBTOOL_CONFIG($1)
4052 with_gnu_ldcxx=$with_gnu_ld
4053 with_gnu_ld=$lt_save_with_gnu_ld
4054 lt_cv_path_LDCXX=$lt_cv_path_LD
4055 lt_cv_path_LD=$lt_save_path_LD
4056 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4057 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4058 ])# AC_LIBTOOL_LANG_CXX_CONFIG
4060 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4061 # ------------------------------------
4062 # Figure out "hidden" library dependencies from verbose
4063 # compiler output when linking a shared library.
4064 # Parse the compiler output and extract the necessary
4065 # objects, libraries and library flags.
4066 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4067 dnl we can't use the lt_simple_compile_test_code here,
4068 dnl because it contains code intended for an executable,
4069 dnl not a library. It's possible we should let each
4070 dnl tag define a new lt_????_link_test_code variable,
4071 dnl but it's only used here...
4072 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4074 void foo (void) { a = 0; }
4076 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4080 Foo (void) { a = 0; }
4085 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4093 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4096 public void bar (void) {
4102 dnl Parse the compiler output and extract the necessary
4103 dnl objects, libraries and library flags.
4104 if AC_TRY_EVAL(ac_compile); then
4105 # Parse the compiler output and extract the necessary
4106 # objects, libraries and library flags.
4108 # Sentinel used to keep track of whether or not we are before
4109 # the conftest object file.
4110 pre_test_object_deps_done=no
4112 # The `*' in the case matches for architectures that use `case' in
4113 # $output_verbose_cmd can trigger glob expansion during the loop
4114 # eval without this substitution.
4115 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4117 for p in `eval $output_verbose_link_cmd`; do
4121 # Some compilers place space between "-{L,R}" and the path.
4124 || test $p = "-R"; then
4131 if test "$pre_test_object_deps_done" = no; then
4134 # Internal compiler library paths should come after those
4135 # provided the user. The postdeps already come after the
4136 # user supplied libs so there is no need to process them.
4137 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4138 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4140 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4143 # The "-l" case would never come before the object being
4144 # linked, so don't bother handling this case.
4147 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4148 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4150 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4156 # This assumes that the test object file only shows up
4157 # once in the compiler output.
4158 if test "$p" = "conftest.$objext"; then
4159 pre_test_object_deps_done=yes
4163 if test "$pre_test_object_deps_done" = no; then
4164 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4165 _LT_AC_TAGVAR(predep_objects, $1)="$p"
4167 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4170 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4171 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4173 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4178 *) ;; # Ignore the rest.
4186 echo "libtool.m4: error: problem compiling $1 test program"
4189 $rm -f confest.$objext
4191 # PORTME: override above test on systems where it is broken
4195 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4196 # hack all around it, let's just trust "g++" to DTRT.
4197 _LT_AC_TAGVAR(predep_objects,$1)=
4198 _LT_AC_TAGVAR(postdep_objects,$1)=
4199 _LT_AC_TAGVAR(postdeps,$1)=
4203 case $cc_basename in
4205 # Adding this requires a known-good setup of shared libraries for
4206 # Sun compiler versions before 5.6, else PIC objects from an old
4207 # archive will be linked into the output, leading to subtle bugs.
4208 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4215 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4216 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4218 ])# AC_LIBTOOL_POSTDEP_PREDEP
4220 # AC_LIBTOOL_LANG_F77_CONFIG
4221 # --------------------------
4222 # Ensure that the configuration vars for the C compiler are
4223 # suitably defined. Those variables are subsequently used by
4224 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4225 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4226 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4227 [AC_REQUIRE([AC_PROG_F77])
4228 AC_LANG_PUSH(Fortran 77)
4230 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4231 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4232 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4233 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4234 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4235 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4236 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4237 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4238 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4239 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4240 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4241 _LT_AC_TAGVAR(module_cmds, $1)=
4242 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4243 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4244 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4245 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4246 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4247 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4249 # Source file extension for f77 test sources.
4252 # Object file extension for compiled f77 test sources.
4254 _LT_AC_TAGVAR(objext, $1)=$objext
4256 # Code to be used in simple compile tests
4257 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4259 # Code to be used in simple link tests
4260 lt_simple_link_test_code=" program t\n end\n"
4262 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4265 # save warnings/boilerplate of simple test code
4266 _LT_COMPILER_BOILERPLATE
4267 _LT_LINKER_BOILERPLATE
4269 # Allow CC to be a program name with arguments.
4273 _LT_AC_TAGVAR(compiler, $1)=$CC
4274 _LT_CC_BASENAME([$compiler])
4276 AC_MSG_CHECKING([if libtool supports shared libraries])
4277 AC_MSG_RESULT([$can_build_shared])
4279 AC_MSG_CHECKING([whether to build shared libraries])
4280 test "$can_build_shared" = "no" && enable_shared=no
4282 # On AIX, shared libraries and static libraries use the same namespace, and
4283 # are all built from PIC.
4286 test "$enable_shared" = yes && enable_static=no
4287 if test -n "$RANLIB"; then
4288 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4289 postinstall_cmds='$RANLIB $lib'
4293 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4294 test "$enable_shared" = yes && enable_static=no
4298 AC_MSG_RESULT([$enable_shared])
4300 AC_MSG_CHECKING([whether to build static libraries])
4301 # Make sure either enable_shared or enable_static is yes.
4302 test "$enable_shared" = yes || enable_static=yes
4303 AC_MSG_RESULT([$enable_static])
4305 _LT_AC_TAGVAR(GCC, $1)="$G77"
4306 _LT_AC_TAGVAR(LD, $1)="$LD"
4308 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4309 AC_LIBTOOL_PROG_CC_C_O($1)
4310 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4311 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4312 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4313 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4315 AC_LIBTOOL_CONFIG($1)
4319 ])# AC_LIBTOOL_LANG_F77_CONFIG
4322 # AC_LIBTOOL_LANG_GCJ_CONFIG
4323 # --------------------------
4324 # Ensure that the configuration vars for the C compiler are
4325 # suitably defined. Those variables are subsequently used by
4326 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4327 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4328 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4331 # Source file extension for Java test sources.
4334 # Object file extension for compiled Java test sources.
4336 _LT_AC_TAGVAR(objext, $1)=$objext
4338 # Code to be used in simple compile tests
4339 lt_simple_compile_test_code="class foo {}\n"
4341 # Code to be used in simple link tests
4342 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4347 # save warnings/boilerplate of simple test code
4348 _LT_COMPILER_BOILERPLATE
4349 _LT_LINKER_BOILERPLATE
4351 # Allow CC to be a program name with arguments.
4355 _LT_AC_TAGVAR(compiler, $1)=$CC
4356 _LT_CC_BASENAME([$compiler])
4358 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4359 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4361 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4364 ## There is no encapsulation within the following macros, do not change
4365 ## the running order or otherwise move them around unless you know exactly
4366 ## what you are doing...
4367 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4368 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4369 AC_LIBTOOL_PROG_CC_C_O($1)
4370 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4371 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4372 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4373 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4375 AC_LIBTOOL_CONFIG($1)
4379 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4382 # AC_LIBTOOL_LANG_RC_CONFIG
4383 # -------------------------
4384 # Ensure that the configuration vars for the Windows resource compiler are
4385 # suitably defined. Those variables are subsequently used by
4386 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4387 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4388 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4391 # Source file extension for RC test sources.
4394 # Object file extension for compiled RC test sources.
4396 _LT_AC_TAGVAR(objext, $1)=$objext
4398 # Code to be used in simple compile tests
4399 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4401 # Code to be used in simple link tests
4402 lt_simple_link_test_code="$lt_simple_compile_test_code"
4404 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4407 # save warnings/boilerplate of simple test code
4408 _LT_COMPILER_BOILERPLATE
4409 _LT_LINKER_BOILERPLATE
4411 # Allow CC to be a program name with arguments.
4415 _LT_AC_TAGVAR(compiler, $1)=$CC
4416 _LT_CC_BASENAME([$compiler])
4417 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4419 AC_LIBTOOL_CONFIG($1)
4423 ])# AC_LIBTOOL_LANG_RC_CONFIG
4426 # AC_LIBTOOL_CONFIG([TAGNAME])
4427 # ----------------------------
4428 # If TAGNAME is not passed, then create an initial libtool script
4429 # with a default configuration from the untagged config vars. Otherwise
4430 # add code to config.status for appending the configuration named by
4431 # TAGNAME from the matching tagged config vars.
4432 AC_DEFUN([AC_LIBTOOL_CONFIG],
4433 [# The else clause should only fire when bootstrapping the
4434 # libtool distribution, otherwise you forgot to ship ltmain.sh
4435 # with your package, and you will get complaints that there are
4436 # no rules to generate ltmain.sh.
4437 if test -f "$ltmain"; then
4438 # See if we are running on zsh, and set the options which allow our commands through
4439 # without removal of \ escapes.
4440 if test -n "${ZSH_VERSION+set}" ; then
4441 setopt NO_GLOB_SUBST
4443 # Now quote all the things that may contain metacharacters while being
4444 # careful not to overquote the AC_SUBSTed values. We take copies of the
4445 # variables and quote the copies for generation of the libtool script.
4446 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4448 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4449 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4450 deplibs_check_method reload_flag reload_cmds need_locks \
4451 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4452 lt_cv_sys_global_symbol_to_c_name_address \
4453 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4454 old_postinstall_cmds old_postuninstall_cmds \
4455 _LT_AC_TAGVAR(compiler, $1) \
4456 _LT_AC_TAGVAR(CC, $1) \
4457 _LT_AC_TAGVAR(LD, $1) \
4458 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4459 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4460 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4461 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4462 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4463 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4464 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4465 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4466 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4467 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4468 _LT_AC_TAGVAR(predep_objects, $1) \
4469 _LT_AC_TAGVAR(postdep_objects, $1) \
4470 _LT_AC_TAGVAR(predeps, $1) \
4471 _LT_AC_TAGVAR(postdeps, $1) \
4472 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4473 _LT_AC_TAGVAR(archive_cmds, $1) \
4474 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4475 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4476 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4477 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4478 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4479 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4480 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4481 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4482 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4483 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4484 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4485 _LT_AC_TAGVAR(module_cmds, $1) \
4486 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4487 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4488 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4489 _LT_AC_TAGVAR(include_expsyms, $1); do
4492 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4493 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4494 _LT_AC_TAGVAR(archive_cmds, $1) | \
4495 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4496 _LT_AC_TAGVAR(module_cmds, $1) | \
4497 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4498 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4499 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4500 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4501 postinstall_cmds | postuninstall_cmds | \
4502 old_postinstall_cmds | old_postuninstall_cmds | \
4503 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4504 # Double-quote double-evaled strings.
4505 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4514 *'\[$]0 --fallback-echo"')
4515 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4520 [cfgfile="${ofile}T"
4521 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4523 AC_MSG_NOTICE([creating $ofile])],
4526 cat <<__EOF__ >> "$cfgfile"
4530 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4531 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4532 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4534 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4535 # Free Software Foundation, Inc.
4537 # This file is part of GNU Libtool:
4538 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4540 # This program is free software; you can redistribute it and/or modify
4541 # it under the terms of the GNU General Public License as published by
4542 # the Free Software Foundation; either version 2 of the License, or
4543 # (at your option) any later version.
4545 # This program is distributed in the hope that it will be useful, but
4546 # WITHOUT ANY WARRANTY; without even the implied warranty of
4547 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4548 # General Public License for more details.
4550 # You should have received a copy of the GNU General Public License
4551 # along with this program; if not, write to the Free Software
4552 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4554 # As a special exception to the GNU General Public License, if you
4555 # distribute this file as part of a program that contains a
4556 # configuration script generated by Autoconf, you may include it under
4557 # the same distribution terms that you use for the rest of that program.
4559 # A sed program that does not truncate output.
4562 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4563 Xsed="$SED -e 1s/^X//"
4565 # The HP-UX ksh and POSIX shell print the target directory to stdout
4567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4569 # The names of the tagged configurations supported by this script.
4572 # ### BEGIN LIBTOOL CONFIG],
4573 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4577 # Shell to use when invoking shell scripts.
4580 # Whether or not to build shared libraries.
4581 build_libtool_libs=$enable_shared
4583 # Whether or not to build static libraries.
4584 build_old_libs=$enable_static
4586 # Whether or not to add -lc for building shared libraries.
4587 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4589 # Whether or not to disallow shared libs when runtime libs are static
4590 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4592 # Whether or not to optimize for fast installation.
4593 fast_install=$enable_fast_install
4596 host_alias=$host_alias
4601 build_alias=$build_alias
4605 # An echo program that does not interpret backslashes.
4610 AR_FLAGS=$lt_AR_FLAGS
4615 # LTCC compiler flags.
4616 LTCFLAGS=$lt_LTCFLAGS
4618 # A language-specific compiler.
4619 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4621 # Is the compiler the GNU C compiler?
4622 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4627 # The linker used to build libraries.
4628 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4630 # Whether we need hard or soft links.
4633 # A BSD-compatible nm program.
4636 # A symbol stripping program
4639 # Used to examine libraries when file_magic_cmd begins "file"
4640 MAGIC_CMD=$MAGIC_CMD
4642 # Used on cygwin: DLL creation program.
4645 # Used on cygwin: object dumper.
4648 # Used on cygwin: assembler.
4651 # The name of the directory that contains temporary libtool files.
4654 # How to create reloadable object files.
4655 reload_flag=$lt_reload_flag
4656 reload_cmds=$lt_reload_cmds
4658 # How to pass a linker flag through the compiler.
4659 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4661 # Object file suffix (normally "o").
4664 # Old archive suffix (normally "a").
4667 # Shared library suffix (normally ".so").
4668 shrext_cmds='$shrext_cmds'
4670 # Executable file suffix (normally "").
4673 # Additional compiler flags for building library objects.
4674 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4677 # What is the maximum length of a command?
4678 max_cmd_len=$lt_cv_sys_max_cmd_len
4680 # Does compiler simultaneously support -c and -o options?
4681 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4683 # Must we lock files when doing compilation?
4684 need_locks=$lt_need_locks
4686 # Do we need the lib prefix for modules?
4687 need_lib_prefix=$need_lib_prefix
4689 # Do we need a version for libraries?
4690 need_version=$need_version
4692 # Whether dlopen is supported.
4693 dlopen_support=$enable_dlopen
4695 # Whether dlopen of programs is supported.
4696 dlopen_self=$enable_dlopen_self
4698 # Whether dlopen of statically linked programs is supported.
4699 dlopen_self_static=$enable_dlopen_self_static
4701 # Compiler flag to prevent dynamic linking.
4702 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4704 # Compiler flag to turn off builtin functions.
4705 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4707 # Compiler flag to allow reflexive dlopens.
4708 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4710 # Compiler flag to generate shared objects directly from archives.
4711 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4713 # Compiler flag to generate thread-safe objects.
4714 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4716 # Library versioning type.
4717 version_type=$version_type
4719 # Format of library name prefix.
4720 libname_spec=$lt_libname_spec
4722 # List of archive names. First name is the real one, the rest are links.
4723 # The last name is the one that the linker finds with -lNAME.
4724 library_names_spec=$lt_library_names_spec
4726 # The coded name of the library, if different from the real name.
4727 soname_spec=$lt_soname_spec
4729 # Commands used to build and install an old-style archive.
4731 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4732 old_postinstall_cmds=$lt_old_postinstall_cmds
4733 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4735 # Create an old-style archive from a shared archive.
4736 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4738 # Create a temporary old-style archive to link instead of a shared archive.
4739 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4741 # Commands used to build and install a shared archive.
4742 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4743 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4744 postinstall_cmds=$lt_postinstall_cmds
4745 postuninstall_cmds=$lt_postuninstall_cmds
4747 # Commands used to build a loadable module (assumed same as above if empty)
4748 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4749 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4751 # Commands to strip libraries.
4752 old_striplib=$lt_old_striplib
4753 striplib=$lt_striplib
4755 # Dependencies to place before the objects being linked to create a
4757 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4759 # Dependencies to place after the objects being linked to create a
4761 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4763 # Dependencies to place before the objects being linked to create a
4765 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4767 # Dependencies to place after the objects being linked to create a
4769 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4771 # The library search path used internally by the compiler when linking
4773 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4775 # Method to check whether dependent libraries are shared objects.
4776 deplibs_check_method=$lt_deplibs_check_method
4778 # Command to use when deplibs_check_method == file_magic.
4779 file_magic_cmd=$lt_file_magic_cmd
4781 # Flag that allows shared libraries with undefined symbols to be built.
4782 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4784 # Flag that forces no undefined symbols.
4785 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4787 # Commands used to finish a libtool library installation in a directory.
4788 finish_cmds=$lt_finish_cmds
4790 # Same as above, but a single script fragment to be evaled but not shown.
4791 finish_eval=$lt_finish_eval
4793 # Take the output of nm and produce a listing of raw symbols and C names.
4794 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4796 # Transform the output of nm in a proper C declaration
4797 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4799 # Transform the output of nm in a C name address pair
4800 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4802 # This is the shared library runtime path variable.
4803 runpath_var=$runpath_var
4805 # This is the shared library path variable.
4806 shlibpath_var=$shlibpath_var
4808 # Is shlibpath searched before the hard-coded library search path?
4809 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4811 # How to hardcode a shared library path into an executable.
4812 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4814 # Whether we should hardcode library paths into libraries.
4815 hardcode_into_libs=$hardcode_into_libs
4817 # Flag to hardcode \$libdir into a binary during linking.
4818 # This must work even if \$libdir does not exist.
4819 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4821 # If ld is used when linking, flag to hardcode \$libdir into
4822 # a binary during linking. This must work even if \$libdir does
4824 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4826 # Whether we need a single -rpath flag with a separated argument.
4827 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4829 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4831 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4833 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4835 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4837 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4838 # the resulting binary.
4839 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4841 # Set to yes if building a shared library automatically hardcodes DIR into the library
4842 # and all subsequent libraries and executables linked against it.
4843 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4845 # Variables whose values should be saved in libtool wrapper scripts and
4846 # restored at relink time.
4847 variables_saved_for_relink="$variables_saved_for_relink"
4849 # Whether libtool must link a program against all its dependency libraries.
4850 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4852 # Compile-time system search path for libraries
4853 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4855 # Run-time system search path for libraries
4856 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4858 # Fix the shell variable \$srcfile for the compiler.
4859 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4861 # Set to yes if exported symbols are required.
4862 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4864 # The commands to list exported symbols.
4865 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4867 # The commands to extract the exported symbol list from a shared archive.
4868 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4870 # Symbols that should not be listed in the preloaded symbols.
4871 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4873 # Symbols that must always be exported.
4874 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4877 [# ### END LIBTOOL CONFIG],
4878 [# ### END LIBTOOL TAG CONFIG: $tagname])
4885 cat <<\EOF >> "$cfgfile"
4887 # AIX sometimes has problems with the GCC collect2 program. For some
4888 # reason, if we set the COLLECT_NAMES environment variable, the problems
4889 # vanish in a puff of smoke.
4890 if test "X${COLLECT_NAMES+set}" != Xset; then
4892 export COLLECT_NAMES
4898 # We use sed instead of cat because bash on DJGPP gets confused if
4899 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4900 # text mode, it properly converts lines to CR/LF. This bash problem
4901 # is reportedly fixed, but why not run on old versions too?
4902 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4904 mv -f "$cfgfile" "$ofile" || \
4905 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4909 # If there is no Makefile yet, we rely on a make rule to execute
4910 # `config.status --recheck' to rerun these tests and create the
4911 # libtool script then.
4912 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4913 if test -f "$ltmain_in"; then
4914 test -f Makefile && make "$ltmain"
4917 ])# AC_LIBTOOL_CONFIG
4920 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4921 # -------------------------------------------
4922 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4923 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4925 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4927 if test "$GCC" = yes; then
4928 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4930 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4931 lt_cv_prog_compiler_rtti_exceptions,
4932 [-fno-rtti -fno-exceptions], [],
4933 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4935 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4938 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4939 # ---------------------------------
4940 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4941 [AC_REQUIRE([AC_CANONICAL_HOST])
4942 AC_REQUIRE([AC_PROG_NM])
4943 AC_REQUIRE([AC_OBJEXT])
4944 # Check for command to grab the raw symbol name followed by C symbol from nm.
4945 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4946 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4948 # These are sane defaults that work on at least a few old systems.
4949 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4951 # Character class describing NM global symbol codes.
4952 symcode='[[BCDEGRST]]'
4954 # Regexp to match symbols that can be accessed directly from C.
4955 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4957 # Transform an extracted symbol line into a proper C declaration
4958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4960 # Transform an extracted symbol line into symbol name and symbol address
4961 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4963 # Define system-specific variables.
4968 cygwin* | mingw* | pw32*)
4969 symcode='[[ABCDGISTW]]'
4971 hpux*) # Its linker distinguishes data from code symbols
4972 if test "$host_cpu" = ia64; then
4973 symcode='[[ABCDEGRST]]'
4975 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4976 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4979 if test "$host_cpu" = ia64; then
4980 symcode='[[ABCDGIRSTW]]'
4981 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4982 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4986 symcode='[[BCDEGRST]]'
4989 symcode='[[BCDEGQRST]]'
5000 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5004 symcode='[[DFNSTU]]'
5008 # Handle CRLF in mingw tool chain
5012 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5016 # If we're using GNU nm, then use its standard symbol codes.
5017 case `$NM -V 2>&1` in
5018 *GNU* | *'with BFD'*)
5019 symcode='[[ABCDGIRSTW]]' ;;
5022 # Try without a prefix undercore, then with it.
5023 for ac_symprfx in "" "_"; do
5025 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5026 symxfrm="\\1 $ac_symprfx\\2 \\2"
5028 # Write the raw and C identifiers.
5029 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5031 # Check to see that the pipe works correctly.
5035 cat > conftest.$ac_ext <<EOF
5040 void nm_test_func(){}
5044 int main(){nm_test_var='a';nm_test_func();return(0);}
5047 if AC_TRY_EVAL(ac_compile); then
5048 # Now try to grab the symbols.
5050 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5051 # Try sorting and uniquifying the output.
5052 if sort "$nlist" | uniq > "$nlist"T; then
5053 mv -f "$nlist"T "$nlist"
5058 # Make sure that we snagged all the symbols we need.
5059 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5060 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5061 cat <<EOF > conftest.$ac_ext
5067 # Now generate the symbol file.
5068 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5070 cat <<EOF >> conftest.$ac_ext
5071 #if defined (__STDC__) && __STDC__
5072 # define lt_ptr_t void *
5074 # define lt_ptr_t char *
5078 /* The mapping between symbol names and symbols. */
5083 lt_preloaded_symbols[[]] =
5086 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5087 cat <<\EOF >> conftest.$ac_ext
5095 # Now try linking the two files.
5096 mv conftest.$ac_objext conftstm.$ac_objext
5097 lt_save_LIBS="$LIBS"
5098 lt_save_CFLAGS="$CFLAGS"
5099 LIBS="conftstm.$ac_objext"
5100 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5101 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5104 LIBS="$lt_save_LIBS"
5105 CFLAGS="$lt_save_CFLAGS"
5107 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5110 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5113 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5116 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5117 cat conftest.$ac_ext >&5
5119 rm -f conftest* conftst*
5121 # Do not use the global_symbol_pipe unless it works.
5122 if test "$pipe_works" = yes; then
5125 lt_cv_sys_global_symbol_pipe=
5129 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5130 lt_cv_sys_global_symbol_to_cdecl=
5132 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5133 AC_MSG_RESULT(failed)
5137 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5140 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5141 # ---------------------------------------
5142 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5143 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5144 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5145 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5147 AC_MSG_CHECKING([for $compiler option to produce PIC])
5149 # C++ specific cases for pic, static, wl, etc.
5150 if test "$GXX" = yes; then
5151 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5152 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5156 # All AIX code is PIC.
5157 if test "$host_cpu" = ia64; then
5158 # AIX 5 now supports IA64 processor
5159 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5163 # FIXME: we need at least 68020 code to build shared libraries, but
5164 # adding the `-m68020' flag to GCC prevents building anything better,
5166 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5168 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5169 # PIC is the default for these OSes.
5171 mingw* | os2* | pw32*)
5172 # This hack is so that the source file can tell whether it is being
5173 # built for inclusion in a dll (and should export symbols for example).
5174 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5176 darwin* | rhapsody*)
5177 # PIC is the default on this platform
5178 # Common symbols not allowed in MH_DYLIB files
5179 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5182 # DJGPP does not support shared libraries at all
5183 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5187 # Instead, we relocate shared libraries at runtime.
5190 if test -d /usr/nec; then
5191 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5195 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5201 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5206 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5212 # All AIX code is PIC.
5213 if test "$host_cpu" = ia64; then
5214 # AIX 5 now supports IA64 processor
5215 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5217 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5221 case $cc_basename in
5223 # Green Hills C++ Compiler
5224 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5229 # PIC is the default on this platform
5230 # Common symbols not allowed in MH_DYLIB files
5231 case $cc_basename in
5233 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5234 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5239 case $cc_basename in
5241 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5244 # Green Hills C++ Compiler
5245 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5251 freebsd* | kfreebsd*-gnu | dragonfly*)
5252 # FreeBSD uses GNU C++
5254 hpux9* | hpux10* | hpux11*)
5255 case $cc_basename in
5257 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5258 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5259 if test "$host_cpu" != ia64; then
5260 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5264 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5265 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5271 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5280 # This is c89, which is MS Visual C++ (no shared libs)
5281 # Anyone wants to do a port?
5283 irix5* | irix6* | nonstopux*)
5284 case $cc_basename in
5286 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5287 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5288 # CC pic flag -KPIC is the default.
5295 case $cc_basename in
5298 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5299 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5303 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5304 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5305 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5308 # Portland Group C++ compiler.
5309 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5310 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5311 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5315 # Make sure the PIC flag is empty. It appears that all Alpha
5316 # Linux and Compaq Tru64 Unix objects are PIC.
5317 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5318 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5329 case $cc_basename in
5331 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5339 osf3* | osf4* | osf5*)
5340 case $cc_basename in
5342 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5345 # Rational C++ 2.4.1
5346 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5349 # Digital/Compaq C++
5350 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5351 # Make sure the PIC flag is empty. It appears that all Alpha
5352 # Linux and Compaq Tru64 Unix objects are PIC.
5353 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5354 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5363 case $cc_basename in
5365 # Sun C++ 4.2, 5.x and Centerline C++
5366 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5367 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5368 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5371 # Green Hills C++ Compiler
5372 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5379 case $cc_basename in
5382 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5383 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5387 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5394 case $cc_basename in
5396 # NonStop-UX NCC 3.20
5397 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5403 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5404 case $cc_basename in
5406 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5407 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5408 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5415 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5421 if test "$GCC" = yes; then
5422 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5423 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5427 # All AIX code is PIC.
5428 if test "$host_cpu" = ia64; then
5429 # AIX 5 now supports IA64 processor
5430 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5435 # FIXME: we need at least 68020 code to build shared libraries, but
5436 # adding the `-m68020' flag to GCC prevents building anything better,
5438 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5441 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5442 # PIC is the default for these OSes.
5445 mingw* | pw32* | os2*)
5446 # This hack is so that the source file can tell whether it is being
5447 # built for inclusion in a dll (and should export symbols for example).
5448 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5451 darwin* | rhapsody*)
5452 # PIC is the default on this platform
5453 # Common symbols not allowed in MH_DYLIB files
5454 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5458 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5459 # Instead, we relocate shared libraries at runtime.
5463 # Just because we use GCC doesn't mean we suddenly get shared libraries
5464 # on systems that don't support them.
5465 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5470 if test -d /usr/nec; then
5471 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5483 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5489 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5493 # PORTME Check for flag to pass linker flags through the system compiler.
5496 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5497 if test "$host_cpu" = ia64; then
5498 # AIX 5 now supports IA64 processor
5499 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5501 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5505 # PIC is the default on this platform
5506 # Common symbols not allowed in MH_DYLIB files
5507 case $cc_basename in
5509 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5510 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5515 mingw* | pw32* | os2*)
5516 # This hack is so that the source file can tell whether it is being
5517 # built for inclusion in a dll (and should export symbols for example).
5518 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5521 hpux9* | hpux10* | hpux11*)
5522 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5523 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5530 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5533 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5534 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5537 irix5* | irix6* | nonstopux*)
5538 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5539 # PIC (with -KPIC) is the default.
5540 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5544 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5545 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5549 case $cc_basename in
5551 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5552 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5553 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5555 pgcc* | pgf77* | pgf90* | pgf95*)
5556 # Portland Group compilers (*not* the Pentium gcc compiler,
5557 # which looks to be a dead project)
5558 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5559 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5560 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5563 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5564 # All Alpha code is PIC.
5565 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5570 osf3* | osf4* | osf5*)
5571 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5572 # All OSF/1 code is PIC.
5573 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5577 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5578 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5579 case $cc_basename in
5581 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5583 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5588 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5589 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5590 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5593 sysv4 | sysv4.2uw2* | sysv4.3*)
5594 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5595 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5596 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5600 if test -d /usr/nec ;then
5601 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5602 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5606 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5607 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5608 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5609 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5613 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5614 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5618 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5619 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5623 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5628 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5631 # Check to make sure the PIC flag actually works.
5633 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5634 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5635 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5636 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5637 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5639 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5641 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5642 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5645 # For platforms which do not support PIC, -DPIC is meaningless:
5647 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5650 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5655 # Check to make sure the static flag actually works.
5657 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5658 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5659 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5660 $lt_tmp_static_flag,
5662 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5666 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5667 # ------------------------------------
5668 # See if the linker supports building shared libraries.
5669 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5670 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5672 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5675 # If we're using GNU nm, then we don't want the "-C" option.
5676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5677 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5678 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5680 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5684 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5687 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5690 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5695 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5696 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5697 _LT_AC_TAGVAR(archive_cmds, $1)=
5698 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5699 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5700 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5701 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5702 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5703 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5704 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5705 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5706 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5707 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5708 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5709 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5710 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5711 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5712 _LT_AC_TAGVAR(module_cmds, $1)=
5713 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5714 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5715 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5716 # include_expsyms should be a list of space-separated symbols to be *always*
5717 # included in the symbol list
5718 _LT_AC_TAGVAR(include_expsyms, $1)=
5719 # exclude_expsyms can be an extended regexp of symbols to exclude
5720 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5721 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5722 # as well as any symbol that contains `d'.
5723 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5724 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5725 # platforms (ab)use it in PIC code, but their linkers get confused if
5726 # the symbol is explicitly referenced. Since portable code cannot
5727 # rely on this symbol name, it's probably fine to never include it in
5728 # preloaded symbol tables.
5729 extract_expsyms_cmds=
5730 # Just being paranoid about ensuring that cc_basename is set.
5731 _LT_CC_BASENAME([$compiler])
5733 cygwin* | mingw* | pw32*)
5734 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5735 # When not using gcc, we currently assume that we are using
5736 # Microsoft Visual C++.
5737 if test "$GCC" != yes; then
5742 # we just hope/assume this is gcc and not c89 (= MSVC++)
5750 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5751 if test "$with_gnu_ld" = yes; then
5752 # If archive_cmds runs LD, not CC, wlarc should be empty
5755 # Set some defaults for GNU ld with shared library support. These
5756 # are reset later if shared libraries are not supported. Putting them
5757 # here allows them to be overridden if necessary.
5758 runpath_var=LD_RUN_PATH
5759 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5760 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5761 # ancient GNU ld didn't support --whole-archive et. al.
5762 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5763 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5765 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5767 supports_anon_versioning=no
5768 case `$LD -v 2>/dev/null` in
5769 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5772 *\ 2.11.*) ;; # other 2.11 versions
5773 *) supports_anon_versioning=yes ;;
5776 # See if GNU ld supports shared libraries.
5778 aix3* | aix4* | aix5*)
5779 # On AIX/PPC, the GNU linker is very broken
5780 if test "$host_cpu" != ia64; then
5781 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5784 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5785 *** to be unable to reliably create shared libraries on AIX.
5786 *** Therefore, libtool is disabling shared libraries support. If you
5787 *** really care for shared libraries, you may want to modify your PATH
5788 *** so that a non-GNU linker is found, and then restart.
5795 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5796 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5797 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5799 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5800 # that the semantics of dynamic libraries on AmigaOS, at least up
5801 # to version 4, is to share data among multiple programs linked
5802 # with the same dynamic library. Since this doesn't match the
5803 # behavior of shared libraries on other platforms, we can't use
5805 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5809 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5810 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5811 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5812 # support --undefined. This deserves some investigation. FIXME
5813 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5815 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5819 cygwin* | mingw* | pw32*)
5820 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5821 # as there is no search path for DLLs.
5822 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5823 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5824 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5825 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5826 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5828 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5829 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5830 # If the export-symbols file already is a .def file (1st line
5831 # is EXPORTS), use it as is; otherwise, prepend...
5832 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5833 cp $export_symbols $output_objdir/$soname.def;
5835 echo EXPORTS > $output_objdir/$soname.def;
5836 cat $export_symbols >> $output_objdir/$soname.def;
5838 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5840 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5845 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5846 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5847 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5848 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5849 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5850 # Instead, shared libraries are loaded at an image base (0x10000000 by
5851 # default) and relocated if they conflict, which is a slow very memory
5852 # consuming and fragmenting process. To avoid this, we pick a random,
5853 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5854 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5855 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5856 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5862 case $cc_basename,$host_cpu in
5863 pgcc*) # Portland Group C compiler
5864 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5865 tmp_addflag=' $pic_flag'
5867 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5868 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5869 tmp_addflag=' $pic_flag -Mnomain' ;;
5870 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5871 tmp_addflag=' -i_dynamic' ;;
5872 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5873 tmp_addflag=' -i_dynamic -nofor_main' ;;
5874 ifc* | ifort*) # Intel Fortran compiler
5875 tmp_addflag=' -nofor_main' ;;
5877 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5879 if test $supports_anon_versioning = yes; then
5880 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5881 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5882 $echo "local: *; };" >> $output_objdir/$libname.ver~
5883 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5886 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5892 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5895 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5896 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5901 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5902 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5906 *** create shared libraries on Solaris systems. Therefore, libtool
5907 *** is disabling shared libraries support. We urge you to upgrade GNU
5908 *** binutils to release 2.9.1 or newer. Another option is to modify
5909 *** your PATH or compiler configuration so that the native linker is
5910 *** used, and then restart.
5913 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5914 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5915 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5917 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5922 case `$LD -v 2>&1` in
5923 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5924 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5928 *** reliably create shared libraries on SCO systems. Therefore, libtool
5929 *** is disabling shared libraries support. We urge you to upgrade GNU
5930 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5931 *** your PATH or compiler configuration so that the native linker is
5932 *** used, and then restart.
5937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5938 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5939 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5940 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5942 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5949 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5951 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5952 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5957 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5958 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5960 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5965 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5967 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5968 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5969 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5972 # PORTME fill in a description of your system's linker (not GNU ld)
5975 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5976 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5977 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5978 # Note: this linker hardcodes the directories in LIBPATH if there
5979 # are no directories specified by -L.
5980 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5981 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5982 # Neither direct hardcoding nor static linking is supported with a
5984 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5989 if test "$host_cpu" = ia64; then
5990 # On IA64, the linker does run time linking by default, so we don't
5991 # have to do anything special.
5992 aix_use_runtimelinking=no
5993 exp_sym_flag='-Bexport'
5996 # If we're using GNU nm, then we don't want the "-C" option.
5997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5999 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6001 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6003 aix_use_runtimelinking=no
6005 # Test if we are trying to use run time linking or normal
6006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6007 # need to do runtime linking.
6008 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6009 for ld_flag in $LDFLAGS; do
6010 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6011 aix_use_runtimelinking=yes
6018 exp_sym_flag='-bexport'
6019 no_entry_flag='-bnoentry'
6022 # When large executables or shared objects are built, AIX ld can
6023 # have problems creating the table of contents. If linking a library
6024 # or program results in "error TOC overflow" add -mminimal-toc to
6025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6028 _LT_AC_TAGVAR(archive_cmds, $1)=''
6029 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6030 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6031 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6033 if test "$GCC" = yes; then
6034 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6035 # We only want to do this on AIX 4.2 and lower, the check
6036 # below for broken collect2 doesn't work under 4.3+
6037 collect2name=`${CC} -print-prog-name=collect2`
6038 if test -f "$collect2name" && \
6039 strings "$collect2name" | grep resolve_lib_name >/dev/null
6041 # We have reworked collect2
6042 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6044 # We have old collect2
6045 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6046 # It fails to find uninstalled libraries when the uninstalled
6047 # path is not listed in the libpath. Setting hardcode_minus_L
6048 # to unsupported forces relinking
6049 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6050 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6051 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6055 shared_flag='-shared'
6056 if test "$aix_use_runtimelinking" = yes; then
6057 shared_flag="$shared_flag "'${wl}-G'
6061 if test "$host_cpu" = ia64; then
6062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6063 # chokes on -Wl,-G. The following line is correct:
6066 if test "$aix_use_runtimelinking" = yes; then
6067 shared_flag='${wl}-G'
6069 shared_flag='${wl}-bM:SRE'
6074 # It seems that -bexpall does not export symbols beginning with
6075 # underscore (_), so it is better to generate a list of symbols to export.
6076 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6077 if test "$aix_use_runtimelinking" = yes; then
6078 # Warning - without using the other runtime loading flags (-brtl),
6079 # -berok will link without error, but may produce a broken library.
6080 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6081 # Determine the default libpath from the value encoded in an empty executable.
6082 _LT_AC_SYS_LIBPATH_AIX
6083 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6084 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6086 if test "$host_cpu" = ia64; then
6087 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6088 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6089 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6091 # Determine the default libpath from the value encoded in an empty executable.
6092 _LT_AC_SYS_LIBPATH_AIX
6093 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6094 # Warning - without using the other run time loading flags,
6095 # -berok will link without error, but may produce a broken library.
6096 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6097 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6098 # Exported symbols can be pulled into shared objects from archives
6099 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6100 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6101 # This is similar to how AIX traditionally builds its shared libraries.
6102 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6108 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6109 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6110 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6111 # see comment about different semantics on the GNU ld section
6112 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6116 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6119 cygwin* | mingw* | pw32*)
6120 # When not using gcc, we currently assume that we are using
6121 # Microsoft Visual C++.
6122 # hardcode_libdir_flag_spec is actually meaningless, as there is
6123 # no search path for DLLs.
6124 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6125 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6126 # Tell ltmain to make .lib files, not .a files.
6128 # Tell ltmain to make .dll files, not .so files.
6130 # FIXME: Setting linknames here is a bad hack.
6131 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6132 # The linker will automatically build a .lib file if we build a DLL.
6133 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6134 # FIXME: Should let the user specify the lib program.
6135 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6136 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6137 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6140 darwin* | rhapsody*)
6142 rhapsody* | darwin1.[[012]])
6143 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6146 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6147 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6149 case ${MACOSX_DEPLOYMENT_TARGET} in
6151 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6154 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6160 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6161 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6162 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6163 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6164 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6165 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6166 if test "$GCC" = yes ; then
6167 output_verbose_link_cmd='echo'
6168 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6169 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6170 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6171 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6172 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6174 case $cc_basename in
6176 output_verbose_link_cmd='echo'
6177 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6178 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6179 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6180 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6181 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6184 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6191 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6192 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6193 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6197 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6200 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6201 # support. Future versions do this automatically, but an explicit c++rt0.o
6202 # does not break anything, and helps significantly (at the cost of a little
6205 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6206 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6207 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6208 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6211 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6213 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6214 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6215 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6216 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6219 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6220 freebsd* | kfreebsd*-gnu | dragonfly*)
6221 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6222 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6223 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6224 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6228 if test "$GCC" = yes; then
6229 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6231 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6233 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6234 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6235 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6237 # hardcode_minus_L: Not really in the search PATH,
6238 # but as the default location of the library.
6239 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6240 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6244 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6245 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6247 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6249 if test "$with_gnu_ld" = no; then
6250 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6251 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6253 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6254 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6256 # hardcode_minus_L: Not really in the search PATH,
6257 # but as the default location of the library.
6258 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6263 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6266 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6269 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6272 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6278 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6281 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6284 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6288 if test "$with_gnu_ld" = no; then
6289 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6290 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6294 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6295 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6296 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6299 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6300 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6302 # hardcode_minus_L: Not really in the search PATH,
6303 # but as the default location of the library.
6304 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6310 irix5* | irix6* | nonstopux*)
6311 if test "$GCC" = yes; then
6312 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6314 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6315 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6317 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6318 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6319 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6324 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6326 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6328 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6329 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6330 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6334 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6335 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6336 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6337 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6338 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6342 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6343 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6345 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6346 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6347 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6348 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6351 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6352 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6353 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6356 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6357 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6364 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6365 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6366 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6367 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6368 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6372 if test "$GCC" = yes; then
6373 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6374 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6376 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6377 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6379 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6380 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6383 osf4* | osf5*) # as osf3* with the addition of -msym flag
6384 if test "$GCC" = yes; then
6385 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6386 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6387 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6389 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6390 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6391 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6392 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6394 # Both c and cxx compiler support -rpath directly
6395 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6397 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6401 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6402 if test "$GCC" = yes; then
6404 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6405 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6406 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6409 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6410 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6413 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6414 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6416 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6418 # The compiler driver will combine linker options so we
6419 # cannot just pass the convience library names through
6420 # without $wl, iff we do not link with $LD.
6421 # Luckily, gcc supports the same syntax we need for Sun Studio.
6422 # Supported since Solaris 2.6 (maybe 2.5.1?)
6425 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6427 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6430 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6434 if test "x$host_vendor" = xsequent; then
6435 # Use $CC to link under sequent, because it throws in some extra .o
6436 # files that make .init and .fini sections work.
6437 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6439 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6441 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6442 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6443 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6444 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6448 case $host_vendor in
6450 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6451 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6454 ## LD is ld it makes a PLAMLIB
6455 ## CC just makes a GrossModule.
6456 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6457 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6458 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6461 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6462 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6465 runpath_var='LD_RUN_PATH'
6466 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6470 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6471 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6472 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6476 if test -d /usr/nec; then
6477 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6478 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6479 runpath_var=LD_RUN_PATH
6480 hardcode_runpath_var=yes
6481 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6485 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6486 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6487 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6488 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6489 runpath_var='LD_RUN_PATH'
6491 if test "$GCC" = yes; then
6492 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6493 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6495 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6496 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6500 sysv5* | sco3.2v5* | sco5v6*)
6501 # Note: We can NOT use -z defs as we might desire, because we do not
6502 # link with -lc, and that would cause any symbols used from libc to
6503 # always be unresolved, which means just about no library would
6504 # ever link correctly. If we're not using GNU ld we use -z text
6505 # though, which does catch some bad symbols but isn't as heavy-handed
6507 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6508 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6509 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6510 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6511 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6512 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6513 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6514 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6515 runpath_var='LD_RUN_PATH'
6517 if test "$GCC" = yes; then
6518 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6519 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6521 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6522 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6527 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6528 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6529 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6533 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6538 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6539 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6542 # Do we need to explicitly link libc?
6544 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6546 # Assume -lc should be added
6547 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6549 if test "$enable_shared" = yes && test "$GCC" = yes; then
6550 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6552 # FIXME: we may have to deal with multi-command sequences.
6555 # Test whether the compiler implicitly links with -lc since on some
6556 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6557 # to ld, don't add -lc before -lgcc.
6558 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6562 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6565 libobjs=conftest.$ac_objext
6567 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6568 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6574 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6575 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6576 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6578 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6580 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6582 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6584 cat conftest.err 1>&5
6587 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6593 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6596 # _LT_AC_FILE_LTDLL_C
6597 # -------------------
6598 # Be careful that the start marker always follows a newline.
6599 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6600 # /* ltdll.c starts here */
6601 # #define WIN32_LEAN_AND_MEAN
6602 # #include <windows.h>
6603 # #undef WIN32_LEAN_AND_MEAN
6604 # #include <stdio.h>
6606 # #ifndef __CYGWIN__
6607 # # ifdef __CYGWIN32__
6608 # # define __CYGWIN__ __CYGWIN32__
6612 # #ifdef __cplusplus
6615 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6616 # #ifdef __cplusplus
6621 # #include <cygwin/cygwin_dll.h>
6622 # DECLARE_CYGWIN_DLL( DllMain );
6624 # HINSTANCE __hDllInstance_base;
6627 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6629 # __hDllInstance_base = hInst;
6632 # /* ltdll.c ends here */
6633 ])# _LT_AC_FILE_LTDLL_C
6636 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6637 # ---------------------------------
6638 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6642 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6643 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6644 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6645 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6646 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6647 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6648 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6650 # This is just to silence aclocal about the macro not being used
6651 ifelse([AC_DISABLE_FAST_INSTALL])
6653 AC_DEFUN([LT_AC_PROG_GCJ],
6654 [AC_CHECK_TOOL(GCJ, gcj, no)
6655 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6659 AC_DEFUN([LT_AC_PROG_RC],
6660 [AC_CHECK_TOOL(RC, windres, no)
6663 ############################################################
6664 # NOTE: This macro has been submitted for inclusion into #
6665 # GNU Autoconf as AC_PROG_SED. When it is available in #
6666 # a released version of Autoconf we should remove this #
6667 # macro and use it instead. #
6668 ############################################################
6671 # Check for a fully-functional sed program, that truncates
6672 # as few characters as possible. Prefer GNU sed if found.
6673 AC_DEFUN([LT_AC_PROG_SED],
6674 [AC_MSG_CHECKING([for a sed that does not truncate output])
6675 AC_CACHE_VAL(lt_cv_path_SED,
6676 [# Loop through the user's path and test for sed and gsed.
6677 # Then use that list of sed's as ones to test for truncation.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for lt_ac_prog in sed gsed; do
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6686 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6693 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6694 # along with /bin/sed that truncates output.
6695 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6696 test ! -f $lt_ac_sed && continue
6697 cat /dev/null > conftest.in
6699 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6700 # Check for GNU sed and select it if it is found.
6701 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6702 lt_cv_path_SED=$lt_ac_sed
6706 cat conftest.in conftest.in >conftest.tmp
6707 mv conftest.tmp conftest.in
6708 cp conftest.in conftest.nl
6710 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6711 cmp -s conftest.out conftest.nl || break
6712 # 10000 chars as input seems more than enough
6713 test $lt_ac_count -gt 10 && break
6714 lt_ac_count=`expr $lt_ac_count + 1`
6715 if test $lt_ac_count -gt $lt_ac_max; then
6716 lt_ac_max=$lt_ac_count
6717 lt_cv_path_SED=$lt_ac_sed
6723 AC_MSG_RESULT([$SED])