3 @@ -59,6645 +59,6 @@ AC_DEFUN([GTK_DOC_CHECK],
4 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
7 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
9 -# serial 52 AC_PROG_LIBTOOL
12 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
13 -# -----------------------------------------------------------
14 -# If this macro is not defined by Autoconf, define it here.
15 -m4_ifdef([AC_PROVIDE_IFELSE],
17 - [m4_define([AC_PROVIDE_IFELSE],
18 - [m4_ifdef([AC_PROVIDE_$1],
24 -AC_DEFUN([AC_PROG_LIBTOOL],
25 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
26 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
27 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
28 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
30 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
32 -dnl And a similar setup for Fortran 77 support
33 - AC_PROVIDE_IFELSE([AC_PROG_F77],
35 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
38 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
39 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
40 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
41 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
43 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
45 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
47 - [ifdef([AC_PROG_GCJ],
48 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
49 - ifdef([A][M_PROG_GCJ],
50 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
51 - ifdef([LT_AC_PROG_GCJ],
52 - [define([LT_AC_PROG_GCJ],
53 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
54 -])])# AC_PROG_LIBTOOL
59 -AC_DEFUN([_AC_PROG_LIBTOOL],
60 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
61 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
62 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
63 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
65 -# This can be used to rebuild libtool when needed
66 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
68 -# Always use our own libtool.
69 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
72 -# Prevent multiple expansion
73 -define([AC_PROG_LIBTOOL], [])
79 -AC_DEFUN([AC_LIBTOOL_SETUP],
81 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
82 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
83 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
84 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
85 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
86 -AC_REQUIRE([AC_PROG_CC])dnl
87 -AC_REQUIRE([AC_PROG_LD])dnl
88 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
89 -AC_REQUIRE([AC_PROG_NM])dnl
91 -AC_REQUIRE([AC_PROG_LN_S])dnl
92 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
93 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
94 -AC_REQUIRE([AC_OBJEXT])dnl
95 -AC_REQUIRE([AC_EXEEXT])dnl
97 -AC_LIBTOOL_SYS_MAX_CMD_LEN
98 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
101 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
102 -_LT_AC_PROG_ECHO_BACKSLASH
106 - # AIX sometimes has problems with the GCC collect2 program. For some
107 - # reason, if we set the COLLECT_NAMES environment variable, the problems
108 - # vanish in a puff of smoke.
109 - if test "X${COLLECT_NAMES+set}" != Xset; then
111 - export COLLECT_NAMES
116 -# Sed substitution that helps us do robust quoting. It backslashifies
117 -# metacharacters that are still active within double-quoted strings.
118 -Xsed='sed -e 1s/^X//'
119 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
121 -# Same as above, but do not quote variable references.
122 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
124 -# Sed substitution to delay expansion of an escaped shell variable in a
125 -# double_quote_subst'ed string.
126 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
128 -# Sed substitution to avoid accidental globbing in evaled expressions
129 -no_glob_subst='s/\*/\\\*/g'
135 -default_ofile=libtool
136 -can_build_shared=yes
138 -# All known linkers require a `.a' archive for static linking (except MSVC,
139 -# which needs '.lib').
141 -ltmain="$ac_aux_dir/ltmain.sh"
142 -ofile="$default_ofile"
143 -with_gnu_ld="$lt_cv_prog_gnu_ld"
145 -AC_CHECK_TOOL(AR, ar, false)
146 -AC_CHECK_TOOL(RANLIB, ranlib, :)
147 -AC_CHECK_TOOL(STRIP, strip, :)
150 -old_CFLAGS="$CFLAGS"
152 -# Set sane defaults for various variables
153 -test -z "$AR" && AR=ar
154 -test -z "$AR_FLAGS" && AR_FLAGS=cru
155 -test -z "$AS" && AS=as
156 -test -z "$CC" && CC=cc
157 -test -z "$LTCC" && LTCC=$CC
158 -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
159 -test -z "$DLLTOOL" && DLLTOOL=dlltool
160 -test -z "$LD" && LD=ld
161 -test -z "$LN_S" && LN_S="ln -s"
162 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
163 -test -z "$NM" && NM=nm
164 -test -z "$SED" && SED=sed
165 -test -z "$OBJDUMP" && OBJDUMP=objdump
166 -test -z "$RANLIB" && RANLIB=:
167 -test -z "$STRIP" && STRIP=:
168 -test -z "$ac_objext" && ac_objext=o
170 -# Determine commands to create old-style static archives.
171 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
172 -old_postinstall_cmds='chmod 644 $oldlib'
173 -old_postuninstall_cmds=
175 -if test -n "$RANLIB"; then
178 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
181 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
184 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
187 -_LT_CC_BASENAME([$compiler])
189 -# Only perform the check for file, if the check method requires it
190 -case $deplibs_check_method in
192 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
198 -_LT_REQUIRED_DARWIN_CHECKS
200 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
201 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
202 -enable_win32_dll=yes, enable_win32_dll=no)
204 -AC_ARG_ENABLE([libtool-lock],
205 - [AC_HELP_STRING([--disable-libtool-lock],
206 - [avoid locking (might break parallel builds)])])
207 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
210 - [AC_HELP_STRING([--with-pic],
211 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
212 - [pic_mode="$withval"],
213 - [pic_mode=default])
214 -test -z "$pic_mode" && pic_mode=default
216 -# Use C for the default configuration in the libtool script
218 -AC_LIBTOOL_LANG_C_CONFIG
220 -])# AC_LIBTOOL_SETUP
223 -# _LT_AC_SYS_COMPILER
224 -# -------------------
225 -AC_DEFUN([_LT_AC_SYS_COMPILER],
226 -[AC_REQUIRE([AC_PROG_CC])dnl
228 -# If no C compiler was specified, use CC.
231 -# If no C compiler flags were specified, use CFLAGS.
232 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
234 -# Allow CC to be a program name with arguments.
236 -])# _LT_AC_SYS_COMPILER
239 -# _LT_CC_BASENAME(CC)
240 -# -------------------
241 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
242 -AC_DEFUN([_LT_CC_BASENAME],
243 -[for cc_temp in $1""; do
245 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
246 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
251 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
255 -# _LT_COMPILER_BOILERPLATE
256 -# ------------------------
257 -# Check for compiler boilerplate output or warnings with
258 -# the simple compiler test code.
259 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
260 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
261 -ac_outfile=conftest.$ac_objext
262 -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
263 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
264 -_lt_compiler_boilerplate=`cat conftest.err`
266 -])# _LT_COMPILER_BOILERPLATE
269 -# _LT_LINKER_BOILERPLATE
270 -# ----------------------
271 -# Check for linker boilerplate output or warnings with
272 -# the simple link test code.
273 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
274 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
275 -ac_outfile=conftest.$ac_objext
276 -echo "$lt_simple_link_test_code" >conftest.$ac_ext
277 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
278 -_lt_linker_boilerplate=`cat conftest.err`
280 -])# _LT_LINKER_BOILERPLATE
282 -# _LT_REQUIRED_DARWIN_CHECKS
283 -# --------------------------
284 -# Check for some things on darwin
285 -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
287 - rhapsody* | darwin*)
288 - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
289 - AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
291 - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
292 - [lt_cv_apple_cc_single_mod=no
293 - if test -z "${LT_MULTI_MODULE}"; then
294 - # By default we will add the -single_module flag. You can override
295 - # by either setting the environment variable LT_MULTI_MODULE
296 - # non-empty at configure time, or by adding -multi_module to the
298 - echo "int foo(void){return 1;}" > conftest.c
299 - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
300 - -dynamiclib ${wl}-single_module conftest.c
301 - if test -f libconftest.dylib; then
302 - lt_cv_apple_cc_single_mod=yes
303 - rm -rf libconftest.dylib*
307 - AC_CACHE_CHECK([for -exported_symbols_list linker flag],
308 - [lt_cv_ld_exported_symbols_list],
309 - [lt_cv_ld_exported_symbols_list=no
310 - save_LDFLAGS=$LDFLAGS
311 - echo "_main" > conftest.sym
312 - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
313 - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
314 - [lt_cv_ld_exported_symbols_list=yes],
315 - [lt_cv_ld_exported_symbols_list=no])
316 - LDFLAGS="$save_LDFLAGS"
319 - rhapsody* | darwin1.[[0123]])
320 - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
322 - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
324 - # if running on 10.5 or later, the deployment target defaults
325 - # to the OS version, if on x86, and 10.4, the deployment
326 - # target defaults to 10.4. Don't you love it?
327 - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
328 - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
329 - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
331 - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
333 - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
337 - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
338 - _lt_dar_single_mod='$single_module'
340 - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
341 - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
343 - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
345 - if test "$DSYMUTIL" != ":"; then
346 - _lt_dsymutil="~$DSYMUTIL \$lib || :"
354 -# _LT_AC_SYS_LIBPATH_AIX
355 -# ----------------------
356 -# Links a minimal program and checks the executable
357 -# for the system default hardcoded library path. In most cases,
358 -# this is /usr/lib:/lib, but when the MPI compilers are used
359 -# the location of the communication and MPI libs are included too.
360 -# If we don't find anything, use the default library path according
361 -# to the aix ld manual.
362 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
363 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
364 -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
365 -lt_aix_libpath_sed='
366 - /Import File Strings/,/^$/ {
372 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
373 -# Check for a 64-bit object if we didn't find anything.
374 -if test -z "$aix_libpath"; then
375 - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
377 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
378 -])# _LT_AC_SYS_LIBPATH_AIX
381 -# _LT_AC_SHELL_INIT(ARG)
382 -# ----------------------
383 -AC_DEFUN([_LT_AC_SHELL_INIT],
384 -[ifdef([AC_DIVERSION_NOTICE],
385 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
386 - [AC_DIVERT_PUSH(NOTICE)])
389 -])# _LT_AC_SHELL_INIT
392 -# _LT_AC_PROG_ECHO_BACKSLASH
393 -# --------------------------
394 -# Add some code to the start of the generated configure script which
395 -# will find an echo command which doesn't interpret backslashes.
396 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
397 -[_LT_AC_SHELL_INIT([
398 -# Check that we are running under the correct shell.
399 -SHELL=${CONFIG_SHELL-/bin/sh}
403 - # Remove one level of quotation (which was required for Make).
404 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
409 -if test "X[$]1" = X--no-reexec; then
410 - # Discard the --no-reexec flag, and continue.
412 -elif test "X[$]1" = X--fallback-echo; then
413 - # Avoid inline document here, it may be left over
415 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
416 - # Yippee, $echo works!
419 - # Restart under the correct shell.
420 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
423 -if test "X[$]1" = X--fallback-echo; then
424 - # used as fallback echo
432 -# The HP-UX ksh and POSIX shell print the target directory to stdout
434 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
436 -if test -z "$ECHO"; then
437 -if test "X${echo_test_string+set}" != Xset; then
438 -# find a string as large as possible, as long as the shell can cope with it
439 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
440 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
441 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
442 - echo_test_string=`eval $cmd` &&
443 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
450 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
451 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
452 - test "X$echo_testing_string" = "X$echo_test_string"; then
455 - # The Solaris, AIX, and Digital Unix default echo programs unquote
456 - # backslashes. This makes it impossible to quote backslashes using
457 - # echo "$something" | sed 's/\\/\\\\/g'
459 - # So, first we look for a working echo in the user's PATH.
461 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
462 - for dir in $PATH /usr/ucb; do
464 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
465 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
466 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
467 - test "X$echo_testing_string" = "X$echo_test_string"; then
474 - if test "X$echo" = Xecho; then
475 - # We didn't find a better echo, so look for alternatives.
476 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
477 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
478 - test "X$echo_testing_string" = "X$echo_test_string"; then
479 - # This shell has a builtin print -r that does the trick.
481 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
482 - test "X$CONFIG_SHELL" != X/bin/ksh; then
483 - # If we have ksh, try running configure again with it.
484 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
485 - export ORIGINAL_CONFIG_SHELL
486 - CONFIG_SHELL=/bin/ksh
487 - export CONFIG_SHELL
488 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
490 - # Try using printf.
492 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
493 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
494 - test "X$echo_testing_string" = "X$echo_test_string"; then
495 - # Cool, printf works
497 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
498 - test "X$echo_testing_string" = 'X\t' &&
499 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
500 - test "X$echo_testing_string" = "X$echo_test_string"; then
501 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
502 - export CONFIG_SHELL
503 - SHELL="$CONFIG_SHELL"
505 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
506 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
507 - test "X$echo_testing_string" = 'X\t' &&
508 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
509 - test "X$echo_testing_string" = "X$echo_test_string"; then
510 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
512 - # maybe with a smaller string...
515 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
516 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
523 - if test "$prev" != 'sed 50q "[$]0"'; then
524 - echo_test_string=`eval $prev`
525 - export echo_test_string
526 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
528 - # Oops. We lost completely, so just stick with echo.
537 -# Copy echo and quote the copy suitably for passing to libtool from
538 -# the Makefile, instead of quoting the original, which is used later.
540 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
541 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
545 -])])# _LT_AC_PROG_ECHO_BACKSLASH
550 -AC_DEFUN([_LT_AC_LOCK],
551 -[AC_ARG_ENABLE([libtool-lock],
552 - [AC_HELP_STRING([--disable-libtool-lock],
553 - [avoid locking (might break parallel builds)])])
554 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
556 -# Some flags need to be propagated to the compiler or linker for good
560 - # Find out which ABI we are using.
561 - echo 'int i;' > conftest.$ac_ext
562 - if AC_TRY_EVAL(ac_compile); then
563 - case `/usr/bin/file conftest.$ac_objext` in
565 - HPUX_IA64_MODE="32"
568 - HPUX_IA64_MODE="64"
575 - # Find out which ABI we are using.
576 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
577 - if AC_TRY_EVAL(ac_compile); then
578 - if test "$lt_cv_prog_gnu_ld" = yes; then
579 - case `/usr/bin/file conftest.$ac_objext` in
581 - LD="${LD-ld} -melf32bsmip"
584 - LD="${LD-ld} -melf32bmipn32"
587 - LD="${LD-ld} -melf64bmip"
591 - case `/usr/bin/file conftest.$ac_objext` in
607 -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
608 -s390*-*linux*|sparc*-*linux*)
609 - # Find out which ABI we are using.
610 - echo 'int i;' > conftest.$ac_ext
611 - if AC_TRY_EVAL(ac_compile); then
612 - case `/usr/bin/file conftest.o` in
615 - x86_64-*kfreebsd*-gnu)
616 - LD="${LD-ld} -m elf_i386_fbsd"
619 - LD="${LD-ld} -m elf_i386"
621 - ppc64-*linux*|powerpc64-*linux*)
622 - LD="${LD-ld} -m elf32ppclinux"
625 - LD="${LD-ld} -m elf_s390"
628 - LD="${LD-ld} -m elf32_sparc"
635 - x86_64-*kfreebsd*-gnu)
636 - LD="${LD-ld} -m elf_x86_64_fbsd"
639 - LD="${LD-ld} -m elf_x86_64"
641 - ppc*-*linux*|powerpc*-*linux*)
642 - LD="${LD-ld} -m elf64ppc"
645 - LD="${LD-ld} -m elf64_s390"
648 - LD="${LD-ld} -m elf64_sparc"
658 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
659 - SAVE_CFLAGS="$CFLAGS"
660 - CFLAGS="$CFLAGS -belf"
661 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
663 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
665 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
666 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
667 - CFLAGS="$SAVE_CFLAGS"
671 - # Find out which ABI we are using.
672 - echo 'int i;' > conftest.$ac_ext
673 - if AC_TRY_EVAL(ac_compile); then
674 - case `/usr/bin/file conftest.o` in
676 - case $lt_cv_prog_gnu_ld in
677 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
679 - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
690 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
691 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
692 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
693 - AC_CHECK_TOOL(AS, as, false)
694 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
699 -need_locks="$enable_libtool_lock"
704 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
705 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
706 -# ----------------------------------------------------------------
707 -# Check whether the given compiler option works
708 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
709 -[AC_REQUIRE([LT_AC_PROG_SED])
710 -AC_CACHE_CHECK([$1], [$2],
712 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
713 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
714 - lt_compiler_flag="$3"
715 - # Insert the option either (1) after the last *FLAGS variable, or
716 - # (2) before a word containing "conftest.", or (3) at the end.
717 - # Note that $ac_compile itself does not contain backslashes and begins
718 - # with a dollar sign (not a hyphen), so the echo should work correctly.
719 - # The option is referenced via a variable to avoid confusing sed.
720 - lt_compile=`echo "$ac_compile" | $SED \
721 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
722 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
723 - -e 's:$: $lt_compiler_flag:'`
724 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
725 - (eval "$lt_compile" 2>conftest.err)
727 - cat conftest.err >&AS_MESSAGE_LOG_FD
728 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
729 - if (exit $ac_status) && test -s "$ac_outfile"; then
730 - # The compiler can only warn and ignore the option if not recognized
731 - # So say no if there are warnings other than the usual output.
732 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
733 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
734 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
741 -if test x"[$]$2" = xyes; then
742 - ifelse([$5], , :, [$5])
744 - ifelse([$6], , :, [$6])
746 -])# AC_LIBTOOL_COMPILER_OPTION
749 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
750 -# [ACTION-SUCCESS], [ACTION-FAILURE])
751 -# ------------------------------------------------------------
752 -# Check whether the given compiler option works
753 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
754 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
755 -AC_CACHE_CHECK([$1], [$2],
757 - save_LDFLAGS="$LDFLAGS"
758 - LDFLAGS="$LDFLAGS $3"
759 - echo "$lt_simple_link_test_code" > conftest.$ac_ext
760 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
761 - # The linker can only warn and ignore the option if not recognized
762 - # So say no if there are warnings
763 - if test -s conftest.err; then
764 - # Append any errors to the config.log.
765 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
766 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
767 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
768 - if diff conftest.exp conftest.er2 >/dev/null; then
776 - LDFLAGS="$save_LDFLAGS"
779 -if test x"[$]$2" = xyes; then
780 - ifelse([$4], , :, [$4])
782 - ifelse([$5], , :, [$5])
784 -])# AC_LIBTOOL_LINKER_OPTION
787 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
788 -# --------------------------
789 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
790 -[# find the maximum length of command line arguments
791 -AC_MSG_CHECKING([the maximum length of command line arguments])
792 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
798 - # On DJGPP, this test can blow up pretty badly due to problems in libc
799 - # (any single argument exceeding 2000 bytes causes a buffer overrun
800 - # during glob expansion). Even if it were fixed, the result of this
801 - # check would be larger than it should be.
802 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
806 - # Under GNU Hurd, this test is not required because there is
807 - # no limit to the length of command line arguments.
808 - # Libtool will interpret -1 as no limit whatsoever
809 - lt_cv_sys_max_cmd_len=-1;
813 - # On Win9x/ME, this test blows up -- it succeeds, but takes
814 - # about 5 minutes as the teststring grows exponentially.
815 - # Worse, since 9x/ME are not pre-emptively multitasking,
816 - # you end up with a "frozen" computer, even though with patience
817 - # the test eventually succeeds (with a max line length of 256k).
818 - # Instead, let's just punt: use the minimum linelength reported by
819 - # all of the supported platforms: 8192 (on NT/2K/XP).
820 - lt_cv_sys_max_cmd_len=8192;
824 - # On AmigaOS with pdksh, this test takes hours, literally.
825 - # So we just punt and use a minimum line length of 8192.
826 - lt_cv_sys_max_cmd_len=8192;
829 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
830 - # This has been around since 386BSD, at least. Likely further.
831 - if test -x /sbin/sysctl; then
832 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
833 - elif test -x /usr/sbin/sysctl; then
834 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
836 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
838 - # And add a safety zone
839 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
840 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
844 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
845 - lt_cv_sys_max_cmd_len=196608
849 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
850 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
851 - # nice to cause kernel panics so lets avoid the loop below.
852 - # First set a reasonable default.
853 - lt_cv_sys_max_cmd_len=16384
855 - if test -x /sbin/sysconfig; then
856 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
857 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
862 - lt_cv_sys_max_cmd_len=102400
864 - sysv5* | sco5v6* | sysv4.2uw2*)
865 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
866 - if test -n "$kargmax"; then
867 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
869 - lt_cv_sys_max_cmd_len=32768
873 - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
874 - if test -n "$lt_cv_sys_max_cmd_len"; then
875 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
876 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
878 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
879 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
880 - = "XX$teststring") >/dev/null 2>&1 &&
881 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
882 - lt_cv_sys_max_cmd_len=$new_result &&
883 - test $i != 17 # 1/2 MB should be enough
886 - teststring=$teststring$teststring
889 - # Add a significant safety factor because C++ compilers can tack on massive
890 - # amounts of additional arguments before passing them to the linker.
891 - # It appears as though 1/2 is a usable value.
892 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
897 -if test -n $lt_cv_sys_max_cmd_len ; then
898 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
900 - AC_MSG_RESULT(none)
902 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
905 -# _LT_AC_CHECK_DLFCN
906 -# ------------------
907 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
908 -[AC_CHECK_HEADERS(dlfcn.h)dnl
909 -])# _LT_AC_CHECK_DLFCN
912 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
913 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
914 -# ---------------------------------------------------------------------
915 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
916 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
917 -if test "$cross_compiling" = yes; then :
920 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
921 - lt_status=$lt_dlunknown
922 - cat > conftest.$ac_ext <<EOF
923 -[#line __oline__ "configure"
924 -#include "confdefs.h"
933 -# define LT_DLGLOBAL RTLD_GLOBAL
936 -# define LT_DLGLOBAL DL_GLOBAL
938 -# define LT_DLGLOBAL 0
942 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
943 - find out it does not work in some platform. */
944 -#ifndef LT_DLLAZY_OR_NOW
946 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
949 -# define LT_DLLAZY_OR_NOW DL_LAZY
952 -# define LT_DLLAZY_OR_NOW RTLD_NOW
955 -# define LT_DLLAZY_OR_NOW DL_NOW
957 -# define LT_DLLAZY_OR_NOW 0
965 -extern "C" void exit (int);
968 -void fnord() { int i=42;}
971 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
972 - int status = $lt_dlunknown;
976 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
977 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
978 - /* dlclose (self); */
986 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
987 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
989 - case x$lt_status in
990 - x$lt_dlno_uscore) $1 ;;
991 - x$lt_dlneed_uscore) $2 ;;
992 - x$lt_dlunknown|x*) $3 ;;
995 - # compilation failed
1000 -])# _LT_AC_TRY_DLOPEN_SELF
1003 -# AC_LIBTOOL_DLOPEN_SELF
1004 -# ----------------------
1005 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1006 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1007 -if test "x$enable_dlopen" != xyes; then
1008 - enable_dlopen=unknown
1009 - enable_dlopen_self=unknown
1010 - enable_dlopen_self_static=unknown
1013 - lt_cv_dlopen_libs=
1017 - lt_cv_dlopen="load_add_on"
1018 - lt_cv_dlopen_libs=
1019 - lt_cv_dlopen_self=yes
1023 - lt_cv_dlopen="LoadLibrary"
1024 - lt_cv_dlopen_libs=
1028 - lt_cv_dlopen="dlopen"
1029 - lt_cv_dlopen_libs=
1033 - # if libdl is installed we need to link against it
1034 - AC_CHECK_LIB([dl], [dlopen],
1035 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1036 - lt_cv_dlopen="dyld"
1037 - lt_cv_dlopen_libs=
1038 - lt_cv_dlopen_self=yes
1043 - AC_CHECK_FUNC([shl_load],
1044 - [lt_cv_dlopen="shl_load"],
1045 - [AC_CHECK_LIB([dld], [shl_load],
1046 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1047 - [AC_CHECK_FUNC([dlopen],
1048 - [lt_cv_dlopen="dlopen"],
1049 - [AC_CHECK_LIB([dl], [dlopen],
1050 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1051 - [AC_CHECK_LIB([svld], [dlopen],
1052 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1053 - [AC_CHECK_LIB([dld], [dld_link],
1054 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1063 - if test "x$lt_cv_dlopen" != xno; then
1069 - case $lt_cv_dlopen in
1071 - save_CPPFLAGS="$CPPFLAGS"
1072 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1074 - save_LDFLAGS="$LDFLAGS"
1075 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1078 - LIBS="$lt_cv_dlopen_libs $LIBS"
1080 - AC_CACHE_CHECK([whether a program can dlopen itself],
1081 - lt_cv_dlopen_self, [dnl
1082 - _LT_AC_TRY_DLOPEN_SELF(
1083 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1084 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1087 - if test "x$lt_cv_dlopen_self" = xyes; then
1088 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1089 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1090 - lt_cv_dlopen_self_static, [dnl
1091 - _LT_AC_TRY_DLOPEN_SELF(
1092 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1093 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1097 - CPPFLAGS="$save_CPPFLAGS"
1098 - LDFLAGS="$save_LDFLAGS"
1103 - case $lt_cv_dlopen_self in
1104 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1105 - *) enable_dlopen_self=unknown ;;
1108 - case $lt_cv_dlopen_self_static in
1109 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1110 - *) enable_dlopen_self_static=unknown ;;
1113 -])# AC_LIBTOOL_DLOPEN_SELF
1116 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1117 -# ---------------------------------
1118 -# Check to see if options -c and -o are simultaneously supported by compiler
1119 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1120 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
1121 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1122 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1123 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1124 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1125 - $rm -r conftest 2>/dev/null
1129 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1131 - lt_compiler_flag="-o out/conftest2.$ac_objext"
1132 - # Insert the option either (1) after the last *FLAGS variable, or
1133 - # (2) before a word containing "conftest.", or (3) at the end.
1134 - # Note that $ac_compile itself does not contain backslashes and begins
1135 - # with a dollar sign (not a hyphen), so the echo should work correctly.
1136 - lt_compile=`echo "$ac_compile" | $SED \
1137 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1138 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1139 - -e 's:$: $lt_compiler_flag:'`
1140 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1141 - (eval "$lt_compile" 2>out/conftest.err)
1143 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
1144 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1145 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
1147 - # The compiler can only warn and ignore the option if not recognized
1148 - # So say no if there are warnings
1149 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1150 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1151 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1152 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1155 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
1157 - # SGI C++ compiler will create directory out/ii_files/ for
1158 - # template instantiation
1159 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1160 - $rm out/* && rmdir out
1165 -])# AC_LIBTOOL_PROG_CC_C_O
1168 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1169 -# -----------------------------------------
1170 -# Check to see if we can do hard links to lock some files if needed
1171 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1172 -[AC_REQUIRE([_LT_AC_LOCK])dnl
1174 -hard_links="nottested"
1175 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1176 - # do not overwrite the value of need_locks provided by the user
1177 - AC_MSG_CHECKING([if we can lock with hard links])
1180 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
1182 - ln conftest.a conftest.b 2>&5 || hard_links=no
1183 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
1184 - AC_MSG_RESULT([$hard_links])
1185 - if test "$hard_links" = no; then
1186 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1192 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1195 -# AC_LIBTOOL_OBJDIR
1196 -# -----------------
1197 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
1198 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1199 -[rm -f .libs 2>/dev/null
1200 -mkdir .libs 2>/dev/null
1201 -if test -d .libs; then
1202 - lt_cv_objdir=.libs
1204 - # MS-DOS does not allow filenames that begin with a dot.
1205 - lt_cv_objdir=_libs
1207 -rmdir .libs 2>/dev/null])
1208 -objdir=$lt_cv_objdir
1209 -])# AC_LIBTOOL_OBJDIR
1212 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1213 -# ----------------------------------------------
1214 -# Check hardcoding attributes.
1215 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1216 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
1217 -_LT_AC_TAGVAR(hardcode_action, $1)=
1218 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1219 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1220 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1222 - # We can hardcode non-existant directories.
1223 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1224 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
1225 - # have to relink, otherwise we might link with an installed library
1226 - # when we should be linking with a yet-to-be-installed one
1227 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1228 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1229 - # Linking always hardcodes the temporary library directory.
1230 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
1232 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
1233 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1236 - # We cannot hardcode anything, or else we can only hardcode existing
1238 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1240 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1242 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1243 - # Fast installation is not supported
1244 - enable_fast_install=no
1245 -elif test "$shlibpath_overrides_runpath" = yes ||
1246 - test "$enable_shared" = no; then
1247 - # Fast installation is not necessary
1248 - enable_fast_install=needless
1250 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1253 -# AC_LIBTOOL_SYS_LIB_STRIP
1254 -# ------------------------
1255 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1258 -AC_MSG_CHECKING([whether stripping libraries is possible])
1259 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1260 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1261 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1262 - AC_MSG_RESULT([yes])
1264 -# FIXME - insert some real tests, host_os isn't really good enough
1267 - if test -n "$STRIP" ; then
1268 - striplib="$STRIP -x"
1269 - old_striplib="$STRIP -S"
1270 - AC_MSG_RESULT([yes])
1272 - AC_MSG_RESULT([no])
1276 - AC_MSG_RESULT([no])
1280 -])# AC_LIBTOOL_SYS_LIB_STRIP
1283 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1284 -# -----------------------------
1285 -# PORTME Fill in your ld.so characteristics
1286 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1287 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
1288 -AC_MSG_CHECKING([dynamic linker characteristics])
1289 -library_names_spec=
1290 -libname_spec='lib$name'
1294 -postuninstall_cmds=
1298 -shlibpath_overrides_runpath=unknown
1300 -dynamic_linker="$host_os ld.so"
1301 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
1303 -if test "$GCC" = yes; then
1305 - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1306 - *) lt_awk_arg="/^libraries:/" ;;
1308 - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1309 - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1310 - # if the path contains ";" then we assume it to be the separator
1311 - # otherwise default to the standard path separator (i.e. ":") - it is
1312 - # assumed that no part of a normal pathname contains ";" but that should
1313 - # okay in the real world where ";" in dirpaths is itself problematic.
1314 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1316 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1318 - # Ok, now we have the path, separated by spaces, we can step through it
1319 - # and add multilib dir if necessary.
1320 - lt_tmp_lt_search_path_spec=
1321 - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1322 - for lt_sys_path in $lt_search_path_spec; do
1323 - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1324 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1326 - test -d "$lt_sys_path" && \
1327 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1330 - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1331 -BEGIN {RS=" "; FS="/|\n";} {
1334 - for (lt_i = NF; lt_i > 0; lt_i--) {
1335 - if ($lt_i != "" && $lt_i != ".") {
1336 - if ($lt_i == "..") {
1339 - if (lt_count == 0) {
1340 - lt_foo="/" $lt_i lt_foo;
1347 - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1348 - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1350 - sys_lib_search_path_spec=`echo $lt_search_path_spec`
1352 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1354 -need_lib_prefix=unknown
1355 -hardcode_into_libs=no
1357 -# when you set need_version to no, make sure it does not cause -set_version
1358 -# flags to be left without arguments
1359 -need_version=unknown
1363 - version_type=linux
1364 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1365 - shlibpath_var=LIBPATH
1367 - # AIX 3 has no versioning support, so we append a major version to the name.
1368 - soname_spec='${libname}${release}${shared_ext}$major'
1372 - version_type=linux
1373 - need_lib_prefix=no
1375 - hardcode_into_libs=yes
1376 - if test "$host_cpu" = ia64; then
1377 - # AIX 5 supports IA64
1378 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1379 - shlibpath_var=LD_LIBRARY_PATH
1381 - # With GCC up to 2.95.x, collect2 would create an import file
1382 - # for dependence libraries. The import file would start with
1383 - # the line `#! .'. This would cause the generated library to
1384 - # depend on `.', always an invalid library. This was fixed in
1385 - # development snapshots of GCC prior to 3.0.
1387 - aix4 | aix4.[[01]] | aix4.[[01]].*)
1388 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1390 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1393 - can_build_shared=no
1397 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1398 - # soname into executable. Probably we can add versioning support to
1399 - # collect2, so additional links can be useful in future.
1400 - if test "$aix_use_runtimelinking" = yes; then
1401 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1402 - # instead of lib<name>.a to let people know that these are not
1403 - # typical AIX shared libraries.
1404 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1406 - # We preserve .a as extension for shared libraries through AIX4.2
1407 - # and later when we are not doing run time linking.
1408 - library_names_spec='${libname}${release}.a $libname.a'
1409 - soname_spec='${libname}${release}${shared_ext}$major'
1411 - shlibpath_var=LIBPATH
1416 - library_names_spec='$libname.ixlibrary $libname.a'
1417 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
1418 - 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'
1422 - library_names_spec='${libname}${shared_ext}'
1423 - dynamic_linker="$host_os ld.so"
1424 - shlibpath_var=LIBRARY_PATH
1428 - version_type=linux
1430 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1431 - soname_spec='${libname}${release}${shared_ext}$major'
1432 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1433 - shlibpath_var=LD_LIBRARY_PATH
1434 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1435 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1436 - # the default ld.so.conf also contains /usr/contrib/lib and
1437 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1438 - # libtool to hard-code these into programs
1441 -cygwin* | mingw* | pw32*)
1442 - version_type=windows
1443 - shrext_cmds=".dll"
1445 - need_lib_prefix=no
1447 - case $GCC,$host_os in
1448 - yes,cygwin* | yes,mingw* | yes,pw32*)
1449 - library_names_spec='$libname.dll.a'
1450 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
1451 - postinstall_cmds='base_file=`basename \${file}`~
1452 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1453 - dldir=$destdir/`dirname \$dlpath`~
1454 - test -d \$dldir || mkdir -p \$dldir~
1455 - $install_prog $dir/$dlname \$dldir/$dlname~
1456 - chmod a+x \$dldir/$dlname'
1457 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1458 - dlpath=$dir/\$dldll~
1460 - shlibpath_overrides_runpath=yes
1464 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1465 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1466 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1469 - # MinGW DLLs use traditional 'lib' prefix
1470 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1471 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1472 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1473 - # It is most probably a Windows format PATH printed by
1474 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
1475 - # path with ; separators, and with drive letters. We can handle the
1476 - # drive letters (cygwin fileutils understands them), so leave them,
1477 - # especially as we might pass files found there to a mingw objdump,
1478 - # which wouldn't understand a cygwinified path. Ahh.
1479 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1481 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1485 - # pw32 DLLs use 'pw' prefix rather than 'lib'
1486 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1492 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1495 - dynamic_linker='Win32 ld.exe'
1496 - # FIXME: first we should search . and the directory the executable is in
1497 - shlibpath_var=PATH
1500 -darwin* | rhapsody*)
1501 - dynamic_linker="$host_os dyld"
1502 - version_type=darwin
1503 - need_lib_prefix=no
1505 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1506 - soname_spec='${libname}${release}${major}$shared_ext'
1507 - shlibpath_overrides_runpath=yes
1508 - shlibpath_var=DYLD_LIBRARY_PATH
1509 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1511 - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1512 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1516 - version_type=linux
1517 - need_lib_prefix=no
1519 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1520 - soname_spec='${libname}${release}${shared_ext}$major'
1521 - shlibpath_var=LD_LIBRARY_PATH
1528 -freebsd* | dragonfly*)
1529 - # DragonFly does not have aout. When/if they implement a new
1530 - # versioning mechanism, adjust this.
1531 - if test -x /usr/bin/objformat; then
1532 - objformat=`/usr/bin/objformat`
1535 - freebsd[[123]]*) objformat=aout ;;
1536 - *) objformat=elf ;;
1539 - version_type=freebsd-$objformat
1540 - case $version_type in
1542 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1544 - need_lib_prefix=no
1547 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1551 - shlibpath_var=LD_LIBRARY_PATH
1554 - shlibpath_overrides_runpath=yes
1556 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1557 - shlibpath_overrides_runpath=yes
1558 - hardcode_into_libs=yes
1560 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1561 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1562 - shlibpath_overrides_runpath=no
1563 - hardcode_into_libs=yes
1565 - *) # from 4.6 on, and DragonFly
1566 - shlibpath_overrides_runpath=yes
1567 - hardcode_into_libs=yes
1573 - version_type=linux
1574 - need_lib_prefix=no
1576 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1577 - soname_spec='${libname}${release}${shared_ext}$major'
1578 - shlibpath_var=LD_LIBRARY_PATH
1579 - hardcode_into_libs=yes
1582 -hpux9* | hpux10* | hpux11*)
1583 - # Give a soname corresponding to the major version so that dld.sl refuses to
1584 - # link against other versions.
1585 - version_type=sunos
1586 - need_lib_prefix=no
1591 - hardcode_into_libs=yes
1592 - dynamic_linker="$host_os dld.so"
1593 - shlibpath_var=LD_LIBRARY_PATH
1594 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1595 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1596 - soname_spec='${libname}${release}${shared_ext}$major'
1597 - if test "X$HPUX_IA64_MODE" = X32; then
1598 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1600 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1602 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1606 - hardcode_into_libs=yes
1607 - dynamic_linker="$host_os dld.sl"
1608 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1609 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1610 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1611 - soname_spec='${libname}${release}${shared_ext}$major'
1612 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1613 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1617 - dynamic_linker="$host_os dld.sl"
1618 - shlibpath_var=SHLIB_PATH
1619 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1620 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1621 - soname_spec='${libname}${release}${shared_ext}$major'
1624 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
1625 - postinstall_cmds='chmod 555 $lib'
1629 - version_type=linux
1630 - need_lib_prefix=no
1632 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1633 - soname_spec='${libname}${release}${shared_ext}$major'
1634 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1635 - shlibpath_var=LD_LIBRARY_PATH
1636 - shlibpath_overrides_runpath=no
1637 - hardcode_into_libs=yes
1640 -irix5* | irix6* | nonstopux*)
1642 - nonstopux*) version_type=nonstopux ;;
1644 - if test "$lt_cv_prog_gnu_ld" = yes; then
1645 - version_type=linux
1650 - need_lib_prefix=no
1652 - soname_spec='${libname}${release}${shared_ext}$major'
1653 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1655 - irix5* | nonstopux*)
1656 - libsuff= shlibsuff=
1659 - case $LD in # libtool.m4 will add one of these switches to LD
1660 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1661 - libsuff= shlibsuff= libmagic=32-bit;;
1662 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1663 - libsuff=32 shlibsuff=N32 libmagic=N32;;
1664 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1665 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
1666 - *) libsuff= shlibsuff= libmagic=never-match;;
1670 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1671 - shlibpath_overrides_runpath=no
1672 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1673 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1674 - hardcode_into_libs=yes
1677 -# No shared lib support for Linux oldld, aout, or coff.
1678 -linux*oldld* | linux*aout* | linux*coff*)
1682 -# This must be Linux ELF.
1683 -linux* | k*bsd*-gnu)
1684 - version_type=linux
1685 - need_lib_prefix=no
1687 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1688 - soname_spec='${libname}${release}${shared_ext}$major'
1689 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1690 - shlibpath_var=LD_LIBRARY_PATH
1691 - shlibpath_overrides_runpath=no
1692 - # This implies no fast_install, which is unacceptable.
1693 - # Some rework will be needed to allow for fast_install
1694 - # before this can be enabled.
1695 - hardcode_into_libs=yes
1696 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1697 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1699 - # Append ld.so.conf contents to the search path
1700 - if test -f /etc/ld.so.conf; then
1701 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1702 - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1705 - # We used to test for /lib/ld.so.1 and disable shared libraries on
1706 - # powerpc, because MkLinux only supported shared libraries with the
1707 - # GNU dynamic linker. Since this was broken with cross compilers,
1708 - # most powerpc-linux boxes support dynamic linking these days and
1709 - # people can always --disable-shared, the test was removed, and we
1710 - # assume the GNU/Linux dynamic linker is in use.
1711 - dynamic_linker='GNU/Linux ld.so'
1715 - version_type=sunos
1716 - need_lib_prefix=no
1718 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1719 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1720 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1721 - dynamic_linker='NetBSD (a.out) ld.so'
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 - dynamic_linker='NetBSD ld.elf_so'
1727 - shlibpath_var=LD_LIBRARY_PATH
1728 - shlibpath_overrides_runpath=yes
1729 - hardcode_into_libs=yes
1733 - version_type=linux
1734 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1735 - shlibpath_var=LD_LIBRARY_PATH
1736 - shlibpath_overrides_runpath=yes
1740 - version_type=linux
1741 - need_lib_prefix=no
1743 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1744 - soname_spec='${libname}${release}${shared_ext}$major'
1745 - shlibpath_var=LD_LIBRARY_PATH
1746 - shlibpath_overrides_runpath=yes
1750 - version_type=sunos
1751 - sys_lib_dlsearch_path_spec="/usr/lib"
1752 - need_lib_prefix=no
1753 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1755 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1756 - *) need_version=no ;;
1758 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1759 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1760 - shlibpath_var=LD_LIBRARY_PATH
1761 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1763 - openbsd2.[[89]] | openbsd2.[[89]].*)
1764 - shlibpath_overrides_runpath=no
1767 - shlibpath_overrides_runpath=yes
1771 - shlibpath_overrides_runpath=yes
1776 - libname_spec='$name'
1777 - shrext_cmds=".dll"
1778 - need_lib_prefix=no
1779 - library_names_spec='$libname${shared_ext} $libname.a'
1780 - dynamic_linker='OS/2 ld.exe'
1781 - shlibpath_var=LIBPATH
1784 -osf3* | osf4* | osf5*)
1786 - need_lib_prefix=no
1788 - soname_spec='${libname}${release}${shared_ext}$major'
1789 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1790 - shlibpath_var=LD_LIBRARY_PATH
1791 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1792 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1800 - version_type=linux
1801 - need_lib_prefix=no
1803 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1804 - soname_spec='${libname}${release}${shared_ext}$major'
1805 - shlibpath_var=LD_LIBRARY_PATH
1806 - shlibpath_overrides_runpath=yes
1807 - hardcode_into_libs=yes
1808 - # ldd complains unless libraries are executable
1809 - postinstall_cmds='chmod +x $lib'
1813 - version_type=sunos
1814 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1815 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1816 - shlibpath_var=LD_LIBRARY_PATH
1817 - shlibpath_overrides_runpath=yes
1818 - if test "$with_gnu_ld" = yes; then
1819 - need_lib_prefix=no
1825 - version_type=linux
1826 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1827 - soname_spec='${libname}${release}${shared_ext}$major'
1828 - shlibpath_var=LD_LIBRARY_PATH
1829 - case $host_vendor in
1831 - shlibpath_overrides_runpath=no
1832 - need_lib_prefix=no
1833 - export_dynamic_flag_spec='${wl}-Blargedynsym'
1834 - runpath_var=LD_RUN_PATH
1837 - need_lib_prefix=no
1840 - need_lib_prefix=no
1842 - shlibpath_overrides_runpath=no
1843 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1849 - if test -d /usr/nec ;then
1850 - version_type=linux
1851 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1852 - soname_spec='$libname${shared_ext}.$major'
1853 - shlibpath_var=LD_LIBRARY_PATH
1857 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1858 - version_type=freebsd-elf
1859 - need_lib_prefix=no
1861 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1862 - soname_spec='${libname}${release}${shared_ext}$major'
1863 - shlibpath_var=LD_LIBRARY_PATH
1864 - hardcode_into_libs=yes
1865 - if test "$with_gnu_ld" = yes; then
1866 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1867 - shlibpath_overrides_runpath=no
1869 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1870 - shlibpath_overrides_runpath=yes
1873 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1877 - sys_lib_dlsearch_path_spec='/usr/lib'
1881 - version_type=linux
1882 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1883 - soname_spec='${libname}${release}${shared_ext}$major'
1884 - shlibpath_var=LD_LIBRARY_PATH
1891 -AC_MSG_RESULT([$dynamic_linker])
1892 -test "$dynamic_linker" = no && can_build_shared=no
1894 -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1895 -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1896 -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1897 -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1898 -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1899 -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1901 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1902 -if test "$GCC" = yes; then
1903 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1905 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1910 -AC_DEFUN([_LT_AC_TAGCONFIG],
1911 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
1912 -AC_ARG_WITH([tags],
1913 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1914 - [include additional configurations @<:@automatic@:>@])],
1915 - [tagnames="$withval"])
1917 -if test -f "$ltmain" && test -n "$tagnames"; then
1918 - if test ! -f "${ofile}"; then
1919 - AC_MSG_WARN([output file `$ofile' does not exist])
1922 - if test -z "$LTCC"; then
1923 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1924 - if test -z "$LTCC"; then
1925 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1927 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1930 - if test -z "$LTCFLAGS"; then
1931 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1934 - # Extract list of available tagged configurations in $ofile.
1935 - # Note that this assumes the entire list is on one line.
1936 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1938 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1939 - for tagname in $tagnames; do
1940 - IFS="$lt_save_ifs"
1941 - # Check whether tagname contains only valid characters
1942 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1944 - *) AC_MSG_ERROR([invalid tag name: $tagname])
1948 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1950 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
1953 - # Update the list of available tags.
1954 - if test -n "$tagname"; then
1955 - echo appending configuration tag \"$tagname\" to $ofile
1959 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1960 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1961 - (test "X$CXX" != "Xg++"))) ; then
1962 - AC_LIBTOOL_LANG_CXX_CONFIG
1969 - if test -n "$F77" && test "X$F77" != "Xno"; then
1970 - AC_LIBTOOL_LANG_F77_CONFIG
1977 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1978 - AC_LIBTOOL_LANG_GCJ_CONFIG
1985 - AC_LIBTOOL_LANG_RC_CONFIG
1989 - AC_MSG_ERROR([Unsupported tag name: $tagname])
1993 - # Append the new tag name to the list of available tags.
1994 - if test -n "$tagname" ; then
1995 - available_tags="$available_tags $tagname"
1999 - IFS="$lt_save_ifs"
2001 - # Now substitute the updated list of available tags.
2002 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2003 - mv "${ofile}T" "$ofile"
2007 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
2010 -])# _LT_AC_TAGCONFIG
2013 -# AC_LIBTOOL_DLOPEN
2014 -# -----------------
2015 -# enable checks for dlopen support
2016 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
2017 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2018 -])# AC_LIBTOOL_DLOPEN
2021 -# AC_LIBTOOL_WIN32_DLL
2022 -# --------------------
2023 -# declare package support for building win32 DLLs
2024 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2025 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2026 -])# AC_LIBTOOL_WIN32_DLL
2029 -# AC_ENABLE_SHARED([DEFAULT])
2030 -# ---------------------------
2031 -# implement the --enable-shared flag
2032 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2033 -AC_DEFUN([AC_ENABLE_SHARED],
2034 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2035 -AC_ARG_ENABLE([shared],
2036 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2037 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2038 - [p=${PACKAGE-default}
2039 - case $enableval in
2040 - yes) enable_shared=yes ;;
2041 - no) enable_shared=no ;;
2044 - # Look at the argument we got. We use all the common list separators.
2045 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2046 - for pkg in $enableval; do
2047 - IFS="$lt_save_ifs"
2048 - if test "X$pkg" = "X$p"; then
2052 - IFS="$lt_save_ifs"
2055 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2056 -])# AC_ENABLE_SHARED
2059 -# AC_DISABLE_SHARED
2060 -# -----------------
2061 -# set the default shared flag to --disable-shared
2062 -AC_DEFUN([AC_DISABLE_SHARED],
2063 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2064 -AC_ENABLE_SHARED(no)
2065 -])# AC_DISABLE_SHARED
2068 -# AC_ENABLE_STATIC([DEFAULT])
2069 -# ---------------------------
2070 -# implement the --enable-static flag
2071 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2072 -AC_DEFUN([AC_ENABLE_STATIC],
2073 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2074 -AC_ARG_ENABLE([static],
2075 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2076 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2077 - [p=${PACKAGE-default}
2078 - case $enableval in
2079 - yes) enable_static=yes ;;
2080 - no) enable_static=no ;;
2083 - # Look at the argument we got. We use all the common list separators.
2084 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2085 - for pkg in $enableval; do
2086 - IFS="$lt_save_ifs"
2087 - if test "X$pkg" = "X$p"; then
2091 - IFS="$lt_save_ifs"
2094 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2095 -])# AC_ENABLE_STATIC
2098 -# AC_DISABLE_STATIC
2099 -# -----------------
2100 -# set the default static flag to --disable-static
2101 -AC_DEFUN([AC_DISABLE_STATIC],
2102 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2103 -AC_ENABLE_STATIC(no)
2104 -])# AC_DISABLE_STATIC
2107 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
2108 -# ---------------------------------
2109 -# implement the --enable-fast-install flag
2110 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2111 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2112 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2113 -AC_ARG_ENABLE([fast-install],
2114 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2115 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2116 - [p=${PACKAGE-default}
2117 - case $enableval in
2118 - yes) enable_fast_install=yes ;;
2119 - no) enable_fast_install=no ;;
2121 - enable_fast_install=no
2122 - # Look at the argument we got. We use all the common list separators.
2123 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2124 - for pkg in $enableval; do
2125 - IFS="$lt_save_ifs"
2126 - if test "X$pkg" = "X$p"; then
2127 - enable_fast_install=yes
2130 - IFS="$lt_save_ifs"
2133 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2134 -])# AC_ENABLE_FAST_INSTALL
2137 -# AC_DISABLE_FAST_INSTALL
2138 -# -----------------------
2139 -# set the default to --disable-fast-install
2140 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2141 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2142 -AC_ENABLE_FAST_INSTALL(no)
2143 -])# AC_DISABLE_FAST_INSTALL
2146 -# AC_LIBTOOL_PICMODE([MODE])
2147 -# --------------------------
2148 -# implement the --with-pic flag
2149 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2150 -AC_DEFUN([AC_LIBTOOL_PICMODE],
2151 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2152 -pic_mode=ifelse($#,1,$1,default)
2153 -])# AC_LIBTOOL_PICMODE
2158 -# This is predefined starting with Autoconf 2.54, so this conditional
2159 -# definition can be removed once we require Autoconf 2.54 or later.
2160 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2161 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2162 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2163 - then ac_cv_prog_egrep='grep -E'
2164 - else ac_cv_prog_egrep='egrep'
2166 - EGREP=$ac_cv_prog_egrep
2171 -# AC_PATH_TOOL_PREFIX
2172 -# -------------------
2173 -# find a file program which can recognize shared library
2174 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
2175 -[AC_REQUIRE([AC_PROG_EGREP])dnl
2176 -AC_MSG_CHECKING([for $1])
2177 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2178 -[case $MAGIC_CMD in
2179 -[[\\/*] | ?:[\\/]*])
2180 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2183 - lt_save_MAGIC_CMD="$MAGIC_CMD"
2184 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2185 -dnl $ac_dummy forces splitting on constant user-supplied paths.
2186 -dnl POSIX.2 word splitting is done only on the output of word expansions,
2187 -dnl not every word. This closes a longstanding sh security hole.
2188 - ac_dummy="ifelse([$2], , $PATH, [$2])"
2189 - for ac_dir in $ac_dummy; do
2190 - IFS="$lt_save_ifs"
2191 - test -z "$ac_dir" && ac_dir=.
2192 - if test -f $ac_dir/$1; then
2193 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2194 - if test -n "$file_magic_test_file"; then
2195 - case $deplibs_check_method in
2197 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2198 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2199 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2200 - $EGREP "$file_magic_regex" > /dev/null; then
2205 -*** Warning: the command libtool uses to detect shared libraries,
2206 -*** $file_magic_cmd, produces output that libtool cannot recognize.
2207 -*** The result is that libtool may fail to recognize shared libraries
2208 -*** as such. This will affect the creation of libtool libraries that
2209 -*** depend on shared libraries, but programs linked with such libtool
2210 -*** libraries will work regardless of this problem. Nevertheless, you
2211 -*** may want to report the problem to your system manager and/or to
2212 -*** bug-libtool@gnu.org
2221 - IFS="$lt_save_ifs"
2222 - MAGIC_CMD="$lt_save_MAGIC_CMD"
2225 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2226 -if test -n "$MAGIC_CMD"; then
2227 - AC_MSG_RESULT($MAGIC_CMD)
2231 -])# AC_PATH_TOOL_PREFIX
2236 -# find a file program which can recognize a shared library
2237 -AC_DEFUN([AC_PATH_MAGIC],
2238 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2239 -if test -z "$lt_cv_path_MAGIC_CMD"; then
2240 - if test -n "$ac_tool_prefix"; then
2241 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2251 -# find the pathname to the GNU or non-GNU linker
2252 -AC_DEFUN([AC_PROG_LD],
2253 -[AC_ARG_WITH([gnu-ld],
2254 - [AC_HELP_STRING([--with-gnu-ld],
2255 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2256 - [test "$withval" = no || with_gnu_ld=yes],
2258 -AC_REQUIRE([LT_AC_PROG_SED])dnl
2259 -AC_REQUIRE([AC_PROG_CC])dnl
2260 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
2261 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2263 -if test "$GCC" = yes; then
2264 - # Check if gcc -print-prog-name=ld gives a path.
2265 - AC_MSG_CHECKING([for ld used by $CC])
2268 - # gcc leaves a trailing carriage return which upsets mingw
2269 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2271 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2274 - # Accept absolute paths.
2275 - [[\\/]]* | ?:[[\\/]]*)
2276 - re_direlt='/[[^/]][[^/]]*/\.\./'
2277 - # Canonicalize the pathname of ld
2278 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2279 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2280 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2282 - test -z "$LD" && LD="$ac_prog"
2285 - # If it fails, then pretend we aren't using GCC.
2289 - # If it is relative, then search for the first ld in PATH.
2290 - with_gnu_ld=unknown
2293 -elif test "$with_gnu_ld" = yes; then
2294 - AC_MSG_CHECKING([for GNU ld])
2296 - AC_MSG_CHECKING([for non-GNU ld])
2298 -AC_CACHE_VAL(lt_cv_path_LD,
2299 -[if test -z "$LD"; then
2300 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2301 - for ac_dir in $PATH; do
2302 - IFS="$lt_save_ifs"
2303 - test -z "$ac_dir" && ac_dir=.
2304 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2305 - lt_cv_path_LD="$ac_dir/$ac_prog"
2306 - # Check to see if the program is GNU ld. I'd rather use --version,
2307 - # but apparently some variants of GNU ld only accept -v.
2308 - # Break only if it was the GNU/non-GNU ld that we prefer.
2309 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2310 - *GNU* | *'with BFD'*)
2311 - test "$with_gnu_ld" != no && break
2314 - test "$with_gnu_ld" != yes && break
2319 - IFS="$lt_save_ifs"
2321 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
2323 -LD="$lt_cv_path_LD"
2324 -if test -n "$LD"; then
2325 - AC_MSG_RESULT($LD)
2329 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2336 -AC_DEFUN([AC_PROG_LD_GNU],
2337 -[AC_REQUIRE([AC_PROG_EGREP])dnl
2338 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2339 -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2340 -case `$LD -v 2>&1 </dev/null` in
2341 -*GNU* | *'with BFD'*)
2342 - lt_cv_prog_gnu_ld=yes
2345 - lt_cv_prog_gnu_ld=no
2348 -with_gnu_ld=$lt_cv_prog_gnu_ld
2352 -# AC_PROG_LD_RELOAD_FLAG
2353 -# ----------------------
2354 -# find reload flag for linker
2355 -# -- PORTME Some linkers may need a different reload flag.
2356 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2357 -[AC_CACHE_CHECK([for $LD option to reload object files],
2358 - lt_cv_ld_reload_flag,
2359 - [lt_cv_ld_reload_flag='-r'])
2360 -reload_flag=$lt_cv_ld_reload_flag
2361 -case $reload_flag in
2363 -*) reload_flag=" $reload_flag" ;;
2365 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
2368 - if test "$GCC" = yes; then
2369 - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2371 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
2375 -])# AC_PROG_LD_RELOAD_FLAG
2378 -# AC_DEPLIBS_CHECK_METHOD
2379 -# -----------------------
2380 -# how to check for library dependencies
2381 -# -- PORTME fill in with the dynamic library characteristics
2382 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2383 -[AC_CACHE_CHECK([how to recognize dependent libraries],
2384 -lt_cv_deplibs_check_method,
2385 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
2386 -lt_cv_file_magic_test_file=
2387 -lt_cv_deplibs_check_method='unknown'
2388 -# Need to set the preceding variable on all platforms that support
2389 -# interlibrary dependencies.
2390 -# 'none' -- dependencies not supported.
2391 -# `unknown' -- same as none, but documents that we really don't know.
2392 -# 'pass_all' -- all dependencies passed with no checks.
2393 -# 'test_compile' -- check by making test program.
2394 -# 'file_magic [[regex]]' -- check by looking for files in library path
2395 -# which responds to the $file_magic_cmd with a given extended regex.
2396 -# If you have `file' or equivalent on your system and you're not sure
2397 -# whether `pass_all' will *always* work, you probably want this one.
2401 - lt_cv_deplibs_check_method=pass_all
2405 - lt_cv_deplibs_check_method=pass_all
2409 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2410 - lt_cv_file_magic_cmd='/usr/bin/file -L'
2411 - lt_cv_file_magic_test_file=/shlib/libc.so
2415 - # func_win32_libid is a shell function defined in ltmain.sh
2416 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2417 - lt_cv_file_magic_cmd='func_win32_libid'
2421 - # Base MSYS/MinGW do not provide the 'file' command needed by
2422 - # func_win32_libid shell function, so use a weaker test based on 'objdump',
2423 - # unless we find 'file', for example because we are cross-compiling.
2424 - if ( file / ) >/dev/null 2>&1; then
2425 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2426 - lt_cv_file_magic_cmd='func_win32_libid'
2428 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2429 - lt_cv_file_magic_cmd='$OBJDUMP -f'
2433 -darwin* | rhapsody*)
2434 - lt_cv_deplibs_check_method=pass_all
2437 -freebsd* | dragonfly*)
2438 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2441 - # Not sure whether the presence of OpenBSD here was a mistake.
2442 - # Let's accept both of them until this is cleared up.
2443 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2444 - lt_cv_file_magic_cmd=/usr/bin/file
2445 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2449 - lt_cv_deplibs_check_method=pass_all
2454 - lt_cv_deplibs_check_method=pass_all
2457 -hpux10.20* | hpux11*)
2458 - lt_cv_file_magic_cmd=/usr/bin/file
2461 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2462 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2465 - [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]']
2466 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2469 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2470 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
2476 - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2477 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2480 -irix5* | irix6* | nonstopux*)
2482 - *-32|*"-32 ") libmagic=32-bit;;
2483 - *-n32|*"-n32 ") libmagic=N32;;
2484 - *-64|*"-64 ") libmagic=64-bit;;
2485 - *) libmagic=never-match;;
2487 - lt_cv_deplibs_check_method=pass_all
2490 -# This must be Linux ELF.
2491 -linux* | k*bsd*-gnu)
2492 - lt_cv_deplibs_check_method=pass_all
2496 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2497 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2499 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2504 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2505 - lt_cv_file_magic_cmd=/usr/bin/file
2506 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
2510 - lt_cv_deplibs_check_method=unknown
2514 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2515 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2517 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2521 -osf3* | osf4* | osf5*)
2522 - lt_cv_deplibs_check_method=pass_all
2526 - lt_cv_deplibs_check_method=pass_all
2530 - lt_cv_deplibs_check_method=pass_all
2534 - case $host_vendor in
2536 - 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]]'
2537 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2540 - lt_cv_deplibs_check_method=pass_all
2543 - lt_cv_file_magic_cmd='/bin/file'
2544 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2547 - lt_cv_file_magic_cmd='/bin/file'
2548 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2549 - lt_cv_file_magic_test_file=/lib/libc.so
2552 - lt_cv_deplibs_check_method=pass_all
2555 - lt_cv_deplibs_check_method=pass_all
2560 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2561 - lt_cv_deplibs_check_method=pass_all
2565 -file_magic_cmd=$lt_cv_file_magic_cmd
2566 -deplibs_check_method=$lt_cv_deplibs_check_method
2567 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
2568 -])# AC_DEPLIBS_CHECK_METHOD
2573 -# find the pathname to a BSD-compatible name lister
2574 -AC_DEFUN([AC_PROG_NM],
2575 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2576 -[if test -n "$NM"; then
2577 - # Let the user override the test.
2578 - lt_cv_path_NM="$NM"
2580 - lt_nm_to_check="${ac_tool_prefix}nm"
2581 - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2582 - lt_nm_to_check="$lt_nm_to_check nm"
2584 - for lt_tmp_nm in $lt_nm_to_check; do
2585 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2586 - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2587 - IFS="$lt_save_ifs"
2588 - test -z "$ac_dir" && ac_dir=.
2589 - tmp_nm="$ac_dir/$lt_tmp_nm"
2590 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2591 - # Check to see if the nm accepts a BSD-compat flag.
2592 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2593 - # nm: unknown option "B" ignored
2594 - # Tru64's nm complains that /dev/null is an invalid object file
2595 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2596 - */dev/null* | *'Invalid file or object type'*)
2597 - lt_cv_path_NM="$tmp_nm -B"
2601 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2603 - lt_cv_path_NM="$tmp_nm -p"
2607 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2608 - continue # so that we can try to find one that supports BSD flags
2615 - IFS="$lt_save_ifs"
2617 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2619 -NM="$lt_cv_path_NM"
2625 -# check for math library
2626 -AC_DEFUN([AC_CHECK_LIBM],
2627 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2630 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2631 - # These system don't have libm, or don't need it
2634 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2635 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2638 - AC_CHECK_LIB(m, cos, LIBM="-lm")
2644 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2645 -# -----------------------------------
2646 -# sets LIBLTDL to the link flags for the libltdl convenience library and
2647 -# LTDLINCL to the include flags for the libltdl header and adds
2648 -# --enable-ltdl-convenience to the configure arguments. Note that
2649 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2650 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2651 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2652 -# (note the single quotes!). If your package is not flat and you're not
2653 -# using automake, define top_builddir and top_srcdir appropriately in
2655 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2656 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2657 - case $enable_ltdl_convenience in
2658 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2659 - "") enable_ltdl_convenience=yes
2660 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2662 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2663 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2664 - # For backwards non-gettext consistent compatibility...
2665 - INCLTDL="$LTDLINCL"
2666 -])# AC_LIBLTDL_CONVENIENCE
2669 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2670 -# -----------------------------------
2671 -# sets LIBLTDL to the link flags for the libltdl installable library and
2672 -# LTDLINCL to the include flags for the libltdl header and adds
2673 -# --enable-ltdl-install to the configure arguments. Note that
2674 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2675 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
2676 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2677 -# '${top_srcdir}/' (note the single quotes!). If your package is not
2678 -# flat and you're not using automake, define top_builddir and top_srcdir
2679 -# appropriately in the Makefiles.
2680 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2681 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2682 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2683 - AC_CHECK_LIB(ltdl, lt_dlinit,
2684 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2685 - [if test x"$enable_ltdl_install" = xno; then
2686 - AC_MSG_WARN([libltdl not installed, but installation disabled])
2688 - enable_ltdl_install=yes
2691 - if test x"$enable_ltdl_install" = x"yes"; then
2692 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
2693 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2694 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2696 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2700 - # For backwards non-gettext consistent compatibility...
2701 - INCLTDL="$LTDLINCL"
2702 -])# AC_LIBLTDL_INSTALLABLE
2707 -# enable support for C++ libraries
2708 -AC_DEFUN([AC_LIBTOOL_CXX],
2709 -[AC_REQUIRE([_LT_AC_LANG_CXX])
2715 -AC_DEFUN([_LT_AC_LANG_CXX],
2716 -[AC_REQUIRE([AC_PROG_CXX])
2717 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2718 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2719 -])# _LT_AC_LANG_CXX
2721 -# _LT_AC_PROG_CXXCPP
2722 -# ------------------
2723 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
2725 -AC_REQUIRE([AC_PROG_CXX])
2726 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2727 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2728 - (test "X$CXX" != "Xg++"))) ; then
2731 -])# _LT_AC_PROG_CXXCPP
2735 -# enable support for Fortran 77 libraries
2736 -AC_DEFUN([AC_LIBTOOL_F77],
2737 -[AC_REQUIRE([_LT_AC_LANG_F77])
2743 -AC_DEFUN([_LT_AC_LANG_F77],
2744 -[AC_REQUIRE([AC_PROG_F77])
2745 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2746 -])# _LT_AC_LANG_F77
2751 -# enable support for GCJ libraries
2752 -AC_DEFUN([AC_LIBTOOL_GCJ],
2753 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
2759 -AC_DEFUN([_LT_AC_LANG_GCJ],
2760 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2761 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2762 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2763 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2764 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2765 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2766 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2767 -])# _LT_AC_LANG_GCJ
2772 -# enable support for Windows resource files
2773 -AC_DEFUN([AC_LIBTOOL_RC],
2774 -[AC_REQUIRE([LT_AC_PROG_RC])
2775 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2779 -# AC_LIBTOOL_LANG_C_CONFIG
2780 -# ------------------------
2781 -# Ensure that the configuration vars for the C compiler are
2782 -# suitably defined. Those variables are subsequently used by
2783 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2784 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2785 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2789 -# Source file extension for C test sources.
2792 -# Object file extension for compiled C test sources.
2794 -_LT_AC_TAGVAR(objext, $1)=$objext
2796 -# Code to be used in simple compile tests
2797 -lt_simple_compile_test_code="int some_variable = 0;"
2799 -# Code to be used in simple link tests
2800 -lt_simple_link_test_code='int main(){return(0);}'
2802 -_LT_AC_SYS_COMPILER
2804 -# save warnings/boilerplate of simple test code
2805 -_LT_COMPILER_BOILERPLATE
2806 -_LT_LINKER_BOILERPLATE
2808 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2809 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
2810 -AC_LIBTOOL_PROG_CC_C_O($1)
2811 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2812 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
2813 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2814 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2815 -AC_LIBTOOL_SYS_LIB_STRIP
2816 -AC_LIBTOOL_DLOPEN_SELF
2818 -# Report which library types will actually be built
2819 -AC_MSG_CHECKING([if libtool supports shared libraries])
2820 -AC_MSG_RESULT([$can_build_shared])
2822 -AC_MSG_CHECKING([whether to build shared libraries])
2823 -test "$can_build_shared" = "no" && enable_shared=no
2825 -# On AIX, shared libraries and static libraries use the same namespace, and
2826 -# are all built from PIC.
2829 - test "$enable_shared" = yes && enable_static=no
2830 - if test -n "$RANLIB"; then
2831 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
2832 - postinstall_cmds='$RANLIB $lib'
2837 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2838 - test "$enable_shared" = yes && enable_static=no
2842 -AC_MSG_RESULT([$enable_shared])
2844 -AC_MSG_CHECKING([whether to build static libraries])
2845 -# Make sure either enable_shared or enable_static is yes.
2846 -test "$enable_shared" = yes || enable_static=yes
2847 -AC_MSG_RESULT([$enable_static])
2849 -AC_LIBTOOL_CONFIG($1)
2853 -])# AC_LIBTOOL_LANG_C_CONFIG
2856 -# AC_LIBTOOL_LANG_CXX_CONFIG
2857 -# --------------------------
2858 -# Ensure that the configuration vars for the C compiler are
2859 -# suitably defined. Those variables are subsequently used by
2860 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2861 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2862 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2864 -AC_REQUIRE([AC_PROG_CXX])
2865 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2867 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2868 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2869 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
2870 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2871 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2872 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
2873 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2874 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2875 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2876 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2877 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2878 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2879 -_LT_AC_TAGVAR(module_cmds, $1)=
2880 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2881 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2882 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2883 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
2884 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2885 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2887 -# Dependencies to place before and after the object being linked:
2888 -_LT_AC_TAGVAR(predep_objects, $1)=
2889 -_LT_AC_TAGVAR(postdep_objects, $1)=
2890 -_LT_AC_TAGVAR(predeps, $1)=
2891 -_LT_AC_TAGVAR(postdeps, $1)=
2892 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2893 -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2895 -# Source file extension for C++ test sources.
2898 -# Object file extension for compiled C++ test sources.
2900 -_LT_AC_TAGVAR(objext, $1)=$objext
2902 -# Code to be used in simple compile tests
2903 -lt_simple_compile_test_code="int some_variable = 0;"
2905 -# Code to be used in simple link tests
2906 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2908 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2909 -_LT_AC_SYS_COMPILER
2911 -# save warnings/boilerplate of simple test code
2912 -_LT_COMPILER_BOILERPLATE
2913 -_LT_LINKER_BOILERPLATE
2915 -# Allow CC to be a program name with arguments.
2920 -lt_save_with_gnu_ld=$with_gnu_ld
2921 -lt_save_path_LD=$lt_cv_path_LD
2922 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2923 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2925 - $as_unset lt_cv_prog_gnu_ld
2927 -if test -n "${lt_cv_path_LDCXX+set}"; then
2928 - lt_cv_path_LD=$lt_cv_path_LDCXX
2930 - $as_unset lt_cv_path_LD
2932 -test -z "${LDCXX+set}" || LD=$LDCXX
2935 -_LT_AC_TAGVAR(compiler, $1)=$CC
2936 -_LT_CC_BASENAME([$compiler])
2938 -# We don't want -fno-exception wen compiling C++ code, so set the
2939 -# no_builtin_flag separately
2940 -if test "$GXX" = yes; then
2941 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2943 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2946 -if test "$GXX" = yes; then
2947 - # Set up default GNU C++ configuration
2951 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
2952 - # archiving commands below assume that GNU ld is being used.
2953 - if test "$with_gnu_ld" = yes; then
2954 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2955 - _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'
2957 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2958 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2960 - # If archive_cmds runs LD, not CC, wlarc should be empty
2961 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2962 - # investigate it a little bit more. (MM)
2965 - # ancient GNU ld didn't support --whole-archive et. al.
2966 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2967 - grep 'no-whole-archive' > /dev/null; then
2968 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2970 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2976 - # A generic and very simple default shared library creation
2977 - # command for GNU C++ for the case where it uses the native
2978 - # linker, instead of GNU ld. If possible, this setting should
2979 - # overridden to take advantage of the native linker features on
2980 - # the platform it is being used on.
2981 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2984 - # Commands to make compiler produce verbose output that lists
2985 - # what "hidden" libraries, object files and flags are used when
2986 - # linking a shared library.
2987 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2995 -# PORTME: fill in a description of your system's C++ link characteristics
2996 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2997 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3000 - # FIXME: insert proper C++ library support
3001 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3004 - if test "$host_cpu" = ia64; then
3005 - # On IA64, the linker does run time linking by default, so we don't
3006 - # have to do anything special.
3007 - aix_use_runtimelinking=no
3008 - exp_sym_flag='-Bexport'
3011 - aix_use_runtimelinking=no
3013 - # Test if we are trying to use run time linking or normal
3014 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3015 - # need to do runtime linking.
3016 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3017 - for ld_flag in $LDFLAGS; do
3020 - aix_use_runtimelinking=yes
3028 - exp_sym_flag='-bexport'
3029 - no_entry_flag='-bnoentry'
3032 - # When large executables or shared objects are built, AIX ld can
3033 - # have problems creating the table of contents. If linking a library
3034 - # or program results in "error TOC overflow" add -mminimal-toc to
3035 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3036 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3038 - _LT_AC_TAGVAR(archive_cmds, $1)=''
3039 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3040 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3041 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3043 - if test "$GXX" = yes; then
3044 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
3045 - # We only want to do this on AIX 4.2 and lower, the check
3046 - # below for broken collect2 doesn't work under 4.3+
3047 - collect2name=`${CC} -print-prog-name=collect2`
3048 - if test -f "$collect2name" && \
3049 - strings "$collect2name" | grep resolve_lib_name >/dev/null
3051 - # We have reworked collect2
3054 - # We have old collect2
3055 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3056 - # It fails to find uninstalled libraries when the uninstalled
3057 - # path is not listed in the libpath. Setting hardcode_minus_L
3058 - # to unsupported forces relinking
3059 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3060 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3061 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3065 - shared_flag='-shared'
3066 - if test "$aix_use_runtimelinking" = yes; then
3067 - shared_flag="$shared_flag "'${wl}-G'
3071 - if test "$host_cpu" = ia64; then
3072 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3073 - # chokes on -Wl,-G. The following line is correct:
3076 - if test "$aix_use_runtimelinking" = yes; then
3077 - shared_flag='${wl}-G'
3079 - shared_flag='${wl}-bM:SRE'
3084 - # It seems that -bexpall does not export symbols beginning with
3085 - # underscore (_), so it is better to generate a list of symbols to export.
3086 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3087 - if test "$aix_use_runtimelinking" = yes; then
3088 - # Warning - without using the other runtime loading flags (-brtl),
3089 - # -berok will link without error, but may produce a broken library.
3090 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3091 - # Determine the default libpath from the value encoded in an empty executable.
3092 - _LT_AC_SYS_LIBPATH_AIX
3093 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3095 - _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"
3097 - if test "$host_cpu" = ia64; then
3098 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3099 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3100 - _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"
3102 - # Determine the default libpath from the value encoded in an empty executable.
3103 - _LT_AC_SYS_LIBPATH_AIX
3104 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3105 - # Warning - without using the other run time loading flags,
3106 - # -berok will link without error, but may produce a broken library.
3107 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3108 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3109 - # Exported symbols can be pulled into shared objects from archives
3110 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3111 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3112 - # This is similar to how AIX traditionally builds its shared libraries.
3113 - _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'
3119 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3120 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3121 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3122 - # support --undefined. This deserves some investigation. FIXME
3123 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3125 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3130 - case $cc_basename in
3132 - # FIXME: insert proper C++ library support
3133 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3138 - cygwin* | mingw* | pw32*)
3139 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3140 - # as there is no search path for DLLs.
3141 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3142 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3143 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
3144 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3146 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3147 - _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'
3148 - # If the export-symbols file already is a .def file (1st line
3149 - # is EXPORTS), use it as is; otherwise, prepend...
3150 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3151 - cp $export_symbols $output_objdir/$soname.def;
3153 - echo EXPORTS > $output_objdir/$soname.def;
3154 - cat $export_symbols >> $output_objdir/$soname.def;
3156 - $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'
3158 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3161 - darwin* | rhapsody*)
3162 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3163 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
3164 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3165 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3166 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3167 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3168 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3169 - if test "$GXX" = yes ; then
3170 - output_verbose_link_cmd='echo'
3171 - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3172 - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3173 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3174 - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3175 - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3176 - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3177 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3180 - case $cc_basename in
3182 - output_verbose_link_cmd='echo'
3183 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3184 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3185 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3186 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3187 - _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}'
3190 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3197 - case $cc_basename in
3199 - # FIXME: insert proper C++ library support
3200 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3203 - # Green Hills C++ Compiler
3204 - # FIXME: insert proper C++ library support
3205 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3208 - # FIXME: insert proper C++ library support
3209 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3214 - # C++ shared libraries reported to be fairly broken before switch to ELF
3215 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3218 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3220 - freebsd* | dragonfly*)
3221 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3223 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3228 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3229 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3230 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3231 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3232 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3233 - # but as the default
3234 - # location of the library.
3236 - case $cc_basename in
3238 - # FIXME: insert proper C++ library support
3239 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3242 - _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'
3243 - # Commands to make compiler produce verbose output that lists
3244 - # what "hidden" libraries, object files and flags are used when
3245 - # linking a shared library.
3247 - # There doesn't appear to be a way to prevent this compiler from
3248 - # explicitly linking system object files so we need to strip them
3249 - # from the output so that they don't get included in the library
3251 - 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'
3254 - if test "$GXX" = yes; then
3255 - _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'
3257 - # FIXME: insert proper C++ library support
3258 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3264 - if test $with_gnu_ld = no; then
3265 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3266 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3269 - hppa*64*|ia64*) ;;
3271 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3277 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
3278 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3281 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3282 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3283 - # but as the default
3284 - # location of the library.
3288 - case $cc_basename in
3290 - # FIXME: insert proper C++ library support
3291 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3296 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3299 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3302 - _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'
3305 - # Commands to make compiler produce verbose output that lists
3306 - # what "hidden" libraries, object files and flags are used when
3307 - # linking a shared library.
3309 - # There doesn't appear to be a way to prevent this compiler from
3310 - # explicitly linking system object files so we need to strip them
3311 - # from the output so that they don't get included in the library
3313 - 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'
3316 - if test "$GXX" = yes; then
3317 - if test $with_gnu_ld = no; then
3320 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3323 - _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'
3326 - _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'
3331 - # FIXME: insert proper C++ library support
3332 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3338 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
3339 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3340 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3341 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3342 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3343 - # Instead, shared libraries are loaded at an image base (0x10000000 by
3344 - # default) and relocated if they conflict, which is a slow very memory
3345 - # consuming and fragmenting process. To avoid this, we pick a random,
3346 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3347 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3348 - _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'
3349 - _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'
3352 - case $cc_basename in
3355 - _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'
3357 - # Archives containing C++ object files must be created using
3358 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3359 - # necessary to make sure instantiated templates are included
3361 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3364 - if test "$GXX" = yes; then
3365 - if test "$with_gnu_ld" = no; then
3366 - _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'
3368 - _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'
3371 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3374 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3375 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3377 - linux* | k*bsd*-gnu)
3378 - case $cc_basename in
3380 - # Kuck and Associates, Inc. (KAI) C++ Compiler
3382 - # KCC will only create a shared library if the output file
3383 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
3384 - # to its proper name (with version) after linking.
3385 - _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'
3386 - _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'
3387 - # Commands to make compiler produce verbose output that lists
3388 - # what "hidden" libraries, object files and flags are used when
3389 - # linking a shared library.
3391 - # There doesn't appear to be a way to prevent this compiler from
3392 - # explicitly linking system object files so we need to strip them
3393 - # from the output so that they don't get included in the library
3395 - 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'
3397 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3398 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3400 - # Archives containing C++ object files must be created using
3401 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3402 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3407 - # version 8.0 and above of icpc choke on multiply defined symbols
3408 - # if we add $predep_objects and $postdep_objects, however 7.1 and
3409 - # earlier do not add the objects themselves.
3410 - case `$CC -V 2>&1` in
3412 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3413 - _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'
3415 - *) # Version 8.0 or newer
3418 - ia64*) tmp_idyn=' -i_dynamic';;
3420 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3421 - _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'
3424 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3425 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3426 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3427 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3430 - # Portland Group C++ compiler
3431 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3432 - _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'
3434 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3435 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3436 - _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'
3440 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3441 - _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'
3443 - runpath_var=LD_RUN_PATH
3444 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3445 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3447 - # Commands to make compiler produce verbose output that lists
3448 - # what "hidden" libraries, object files and flags are used when
3449 - # linking a shared library.
3451 - # There doesn't appear to be a way to prevent this compiler from
3452 - # explicitly linking system object files so we need to strip them
3453 - # from the output so that they don't get included in the library
3455 - 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'
3458 - case `$CC -V 2>&1 | sed 5q` in
3461 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3462 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3463 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3464 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3465 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3467 - # Not sure whether something based on
3468 - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3469 - # would be better.
3470 - output_verbose_link_cmd='echo'
3472 - # Archives containing C++ object files must be created using
3473 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
3474 - # necessary to make sure instantiated templates are included
3476 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3483 - # FIXME: insert proper C++ library support
3484 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3487 - # FIXME: insert proper C++ library support
3488 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3491 - case $cc_basename in
3493 - # FIXME: insert proper C++ library support
3494 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3497 - # FIXME: insert proper C++ library support
3498 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3503 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3504 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3506 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3507 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3508 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3510 - # Workaround some broken pre-1.5 toolchains
3511 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3514 - # C++ shared libraries are fairly broken
3515 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3518 - if test -f /usr/libexec/ld.so; then
3519 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3520 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3521 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3522 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3523 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3524 - _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'
3525 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3526 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3528 - output_verbose_link_cmd='echo'
3530 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3534 - case $cc_basename in
3536 - # Kuck and Associates, Inc. (KAI) C++ Compiler
3538 - # KCC will only create a shared library if the output file
3539 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
3540 - # to its proper name (with version) after linking.
3541 - _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'
3543 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3544 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3546 - # Archives containing C++ object files must be created using
3547 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3548 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3552 - # Rational C++ 2.4.1
3553 - # FIXME: insert proper C++ library support
3554 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3557 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3558 - _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'
3560 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3561 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3563 - # Commands to make compiler produce verbose output that lists
3564 - # what "hidden" libraries, object files and flags are used when
3565 - # linking a shared library.
3567 - # There doesn't appear to be a way to prevent this compiler from
3568 - # explicitly linking system object files so we need to strip them
3569 - # from the output so that they don't get included in the library
3571 - 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'
3574 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3575 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3576 - _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'
3578 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3579 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3581 - # Commands to make compiler produce verbose output that lists
3582 - # what "hidden" libraries, object files and flags are used when
3583 - # linking a shared library.
3584 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3587 - # FIXME: insert proper C++ library support
3588 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3594 - case $cc_basename in
3596 - # Kuck and Associates, Inc. (KAI) C++ Compiler
3598 - # KCC will only create a shared library if the output file
3599 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
3600 - # to its proper name (with version) after linking.
3601 - _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'
3603 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3604 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3606 - # Archives containing C++ object files must be created using
3607 - # the KAI C++ compiler.
3608 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3611 - # Rational C++ 2.4.1
3612 - # FIXME: insert proper C++ library support
3613 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3616 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3617 - _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'
3618 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3619 - echo "-hidden">> $lib.exp~
3620 - $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~
3623 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3624 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3626 - # Commands to make compiler produce verbose output that lists
3627 - # what "hidden" libraries, object files and flags are used when
3628 - # linking a shared library.
3630 - # There doesn't appear to be a way to prevent this compiler from
3631 - # explicitly linking system object files so we need to strip them
3632 - # from the output so that they don't get included in the library
3634 - 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'
3637 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3638 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3639 - _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'
3641 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3642 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3644 - # Commands to make compiler produce verbose output that lists
3645 - # what "hidden" libraries, object files and flags are used when
3646 - # linking a shared library.
3647 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3650 - # FIXME: insert proper C++ library support
3651 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3657 - # FIXME: insert proper C++ library support
3658 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3661 - case $cc_basename in
3664 - # FIXME: insert proper C++ library support
3665 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3669 - # FIXME: insert proper C++ library support
3670 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3673 - # FIXME: insert proper C++ library support
3674 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3679 - case $cc_basename in
3681 - # Sun C++ 4.2, 5.x and Centerline C++
3682 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3683 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3684 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3685 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3686 - $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'
3688 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3689 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3691 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3693 - # The compiler driver will combine and reorder linker options,
3694 - # but understands `-z linker_flag'.
3695 - # Supported since Solaris 2.6 (maybe 2.5.1?)
3696 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3699 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3701 - output_verbose_link_cmd='echo'
3703 - # Archives containing C++ object files must be created using
3704 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
3705 - # necessary to make sure instantiated templates are included
3707 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3710 - # Green Hills C++ Compiler
3711 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3713 - # The C++ compiler must be used to create the archive.
3714 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3717 - # GNU C++ compiler with Solaris linker
3718 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3719 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3720 - if $CC --version | grep -v '^2\.7' > /dev/null; then
3721 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3722 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3723 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3725 - # Commands to make compiler produce verbose output that lists
3726 - # what "hidden" libraries, object files and flags are used when
3727 - # linking a shared library.
3728 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3730 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
3732 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3733 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3734 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3736 - # Commands to make compiler produce verbose output that lists
3737 - # what "hidden" libraries, object files and flags are used when
3738 - # linking a shared library.
3739 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3742 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3744 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3746 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3753 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3754 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3755 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3756 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3757 - runpath_var='LD_RUN_PATH'
3759 - case $cc_basename in
3761 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3762 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3765 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3766 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3770 - sysv5* | sco3.2v5* | sco5v6*)
3771 - # Note: We can NOT use -z defs as we might desire, because we do not
3772 - # link with -lc, and that would cause any symbols used from libc to
3773 - # always be unresolved, which means just about no library would
3774 - # ever link correctly. If we're not using GNU ld we use -z text
3775 - # though, which does catch some bad symbols but isn't as heavy-handed
3777 - # For security reasons, it is highly recommended that you always
3778 - # use absolute paths for naming shared libraries, and exclude the
3779 - # DT_RUNPATH tag from executables and libraries. But doing so
3780 - # requires that you compile everything twice, which is a pain.
3781 - # So that behaviour is only enabled if SCOABSPATH is set to a
3782 - # non-empty value in the environment. Most likely only useful for
3783 - # creating official distributions of packages.
3784 - # This is a hack until libtool officially supports absolute path
3785 - # names for shared libraries.
3786 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3787 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3788 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3789 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3790 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3791 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3792 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3793 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3794 - runpath_var='LD_RUN_PATH'
3796 - case $cc_basename in
3798 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3799 - _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'
3802 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3803 - _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'
3808 - case $cc_basename in
3810 - # NonStop-UX NCC 3.20
3811 - # FIXME: insert proper C++ library support
3812 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3815 - # FIXME: insert proper C++ library support
3816 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3821 - # FIXME: insert proper C++ library support
3822 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3825 - # FIXME: insert proper C++ library support
3826 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3829 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3830 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3832 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
3833 -_LT_AC_TAGVAR(LD, $1)="$LD"
3835 -AC_LIBTOOL_POSTDEP_PREDEP($1)
3836 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
3837 -AC_LIBTOOL_PROG_CC_C_O($1)
3838 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3839 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
3840 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3841 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3843 -AC_LIBTOOL_CONFIG($1)
3850 -with_gnu_ldcxx=$with_gnu_ld
3851 -with_gnu_ld=$lt_save_with_gnu_ld
3852 -lt_cv_path_LDCXX=$lt_cv_path_LD
3853 -lt_cv_path_LD=$lt_save_path_LD
3854 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3855 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3856 -])# AC_LIBTOOL_LANG_CXX_CONFIG
3858 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3859 -# ------------------------------------
3860 -# Figure out "hidden" library dependencies from verbose
3861 -# compiler output when linking a shared library.
3862 -# Parse the compiler output and extract the necessary
3863 -# objects, libraries and library flags.
3864 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3865 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
3866 -dnl we can't use the lt_simple_compile_test_code here,
3867 -dnl because it contains code intended for an executable,
3868 -dnl not a library. It's possible we should let each
3869 -dnl tag define a new lt_????_link_test_code variable,
3870 -dnl but it's only used here...
3871 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3873 -void foo (void) { a = 0; }
3875 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3879 - Foo (void) { a = 0; }
3884 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3892 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3895 - public void bar (void) {
3901 -dnl Parse the compiler output and extract the necessary
3902 -dnl objects, libraries and library flags.
3903 -if AC_TRY_EVAL(ac_compile); then
3904 - # Parse the compiler output and extract the necessary
3905 - # objects, libraries and library flags.
3907 - # Sentinel used to keep track of whether or not we are before
3908 - # the conftest object file.
3909 - pre_test_object_deps_done=no
3911 - # The `*' in the case matches for architectures that use `case' in
3912 - # $output_verbose_cmd can trigger glob expansion during the loop
3913 - # eval without this substitution.
3914 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3916 - for p in `eval $output_verbose_link_cmd`; do
3920 - # Some compilers place space between "-{L,R}" and the path.
3921 - # Remove the space.
3922 - if test $p = "-L" \
3923 - || test $p = "-R"; then
3930 - if test "$pre_test_object_deps_done" = no; then
3933 - # Internal compiler library paths should come after those
3934 - # provided the user. The postdeps already come after the
3935 - # user supplied libs so there is no need to process them.
3936 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3937 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3939 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3942 - # The "-l" case would never come before the object being
3943 - # linked, so don't bother handling this case.
3946 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3947 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3949 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3955 - # This assumes that the test object file only shows up
3956 - # once in the compiler output.
3957 - if test "$p" = "conftest.$objext"; then
3958 - pre_test_object_deps_done=yes
3962 - if test "$pre_test_object_deps_done" = no; then
3963 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3964 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
3966 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3969 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3970 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3972 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3977 - *) ;; # Ignore the rest.
3985 - echo "libtool.m4: error: problem compiling $1 test program"
3988 -$rm -f confest.$objext
3990 -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3991 -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3992 - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
3995 -# PORTME: override above test on systems where it is broken
3999 - # Interix 3.5 installs completely hosed .la files for C++, so rather than
4000 - # hack all around it, let's just trust "g++" to DTRT.
4001 - _LT_AC_TAGVAR(predep_objects,$1)=
4002 - _LT_AC_TAGVAR(postdep_objects,$1)=
4003 - _LT_AC_TAGVAR(postdeps,$1)=
4007 - case `$CC -V 2>&1 | sed 5q` in
4011 - # The more standards-conforming stlport4 library is
4012 - # incompatible with the Cstd library. Avoid specifying
4013 - # it if it's in CXXFLAGS. Ignore libCrun as
4014 - # -library=stlport4 depends on it.
4015 - case " $CXX $CXXFLAGS " in
4016 - *" -library=stlport4 "*)
4017 - solaris_use_stlport4=yes
4020 - if test "$solaris_use_stlport4" != yes; then
4021 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4028 - case $cc_basename in
4030 - # The more standards-conforming stlport4 library is
4031 - # incompatible with the Cstd library. Avoid specifying
4032 - # it if it's in CXXFLAGS. Ignore libCrun as
4033 - # -library=stlport4 depends on it.
4034 - case " $CXX $CXXFLAGS " in
4035 - *" -library=stlport4 "*)
4036 - solaris_use_stlport4=yes
4040 - # Adding this requires a known-good setup of shared libraries for
4041 - # Sun compiler versions before 5.6, else PIC objects from an old
4042 - # archive will be linked into the output, leading to subtle bugs.
4043 - if test "$solaris_use_stlport4" != yes; then
4044 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4051 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
4052 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4054 -])# AC_LIBTOOL_POSTDEP_PREDEP
4056 -# AC_LIBTOOL_LANG_F77_CONFIG
4057 -# --------------------------
4058 -# Ensure that the configuration vars for the C compiler are
4059 -# suitably defined. Those variables are subsequently used by
4060 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4061 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4062 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4063 -[AC_REQUIRE([AC_PROG_F77])
4064 -AC_LANG_PUSH(Fortran 77)
4066 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4067 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4068 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
4069 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4070 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4071 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
4072 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4073 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4074 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4075 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4076 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4077 -_LT_AC_TAGVAR(module_cmds, $1)=
4078 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4079 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4080 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4081 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
4082 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4083 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4085 -# Source file extension for f77 test sources.
4088 -# Object file extension for compiled f77 test sources.
4090 -_LT_AC_TAGVAR(objext, $1)=$objext
4092 -# Code to be used in simple compile tests
4093 -lt_simple_compile_test_code="\
4099 -# Code to be used in simple link tests
4100 -lt_simple_link_test_code="\
4105 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4106 -_LT_AC_SYS_COMPILER
4108 -# save warnings/boilerplate of simple test code
4109 -_LT_COMPILER_BOILERPLATE
4110 -_LT_LINKER_BOILERPLATE
4112 -# Allow CC to be a program name with arguments.
4116 -_LT_AC_TAGVAR(compiler, $1)=$CC
4117 -_LT_CC_BASENAME([$compiler])
4119 -AC_MSG_CHECKING([if libtool supports shared libraries])
4120 -AC_MSG_RESULT([$can_build_shared])
4122 -AC_MSG_CHECKING([whether to build shared libraries])
4123 -test "$can_build_shared" = "no" && enable_shared=no
4125 -# On AIX, shared libraries and static libraries use the same namespace, and
4126 -# are all built from PIC.
4129 - test "$enable_shared" = yes && enable_static=no
4130 - if test -n "$RANLIB"; then
4131 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
4132 - postinstall_cmds='$RANLIB $lib'
4136 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4137 - test "$enable_shared" = yes && enable_static=no
4141 -AC_MSG_RESULT([$enable_shared])
4143 -AC_MSG_CHECKING([whether to build static libraries])
4144 -# Make sure either enable_shared or enable_static is yes.
4145 -test "$enable_shared" = yes || enable_static=yes
4146 -AC_MSG_RESULT([$enable_static])
4148 -_LT_AC_TAGVAR(GCC, $1)="$G77"
4149 -_LT_AC_TAGVAR(LD, $1)="$LD"
4151 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
4152 -AC_LIBTOOL_PROG_CC_C_O($1)
4153 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4154 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
4155 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4156 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4158 -AC_LIBTOOL_CONFIG($1)
4162 -])# AC_LIBTOOL_LANG_F77_CONFIG
4165 -# AC_LIBTOOL_LANG_GCJ_CONFIG
4166 -# --------------------------
4167 -# Ensure that the configuration vars for the C compiler are
4168 -# suitably defined. Those variables are subsequently used by
4169 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4170 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4171 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4174 -# Source file extension for Java test sources.
4177 -# Object file extension for compiled Java test sources.
4179 -_LT_AC_TAGVAR(objext, $1)=$objext
4181 -# Code to be used in simple compile tests
4182 -lt_simple_compile_test_code="class foo {}"
4184 -# Code to be used in simple link tests
4185 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4187 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4188 -_LT_AC_SYS_COMPILER
4190 -# save warnings/boilerplate of simple test code
4191 -_LT_COMPILER_BOILERPLATE
4192 -_LT_LINKER_BOILERPLATE
4194 -# Allow CC to be a program name with arguments.
4198 -_LT_AC_TAGVAR(compiler, $1)=$CC
4199 -_LT_CC_BASENAME([$compiler])
4201 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
4202 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4204 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4206 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4207 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
4208 -AC_LIBTOOL_PROG_CC_C_O($1)
4209 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4210 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
4211 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4212 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4214 -AC_LIBTOOL_CONFIG($1)
4218 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
4221 -# AC_LIBTOOL_LANG_RC_CONFIG
4222 -# -------------------------
4223 -# Ensure that the configuration vars for the Windows resource compiler are
4224 -# suitably defined. Those variables are subsequently used by
4225 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4226 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4227 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4230 -# Source file extension for RC test sources.
4233 -# Object file extension for compiled RC test sources.
4235 -_LT_AC_TAGVAR(objext, $1)=$objext
4237 -# Code to be used in simple compile tests
4238 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4240 -# Code to be used in simple link tests
4241 -lt_simple_link_test_code="$lt_simple_compile_test_code"
4243 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4244 -_LT_AC_SYS_COMPILER
4246 -# save warnings/boilerplate of simple test code
4247 -_LT_COMPILER_BOILERPLATE
4248 -_LT_LINKER_BOILERPLATE
4250 -# Allow CC to be a program name with arguments.
4254 -_LT_AC_TAGVAR(compiler, $1)=$CC
4255 -_LT_CC_BASENAME([$compiler])
4256 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4258 -AC_LIBTOOL_CONFIG($1)
4262 -])# AC_LIBTOOL_LANG_RC_CONFIG
4265 -# AC_LIBTOOL_CONFIG([TAGNAME])
4266 -# ----------------------------
4267 -# If TAGNAME is not passed, then create an initial libtool script
4268 -# with a default configuration from the untagged config vars. Otherwise
4269 -# add code to config.status for appending the configuration named by
4270 -# TAGNAME from the matching tagged config vars.
4271 -AC_DEFUN([AC_LIBTOOL_CONFIG],
4272 -[# The else clause should only fire when bootstrapping the
4273 -# libtool distribution, otherwise you forgot to ship ltmain.sh
4274 -# with your package, and you will get complaints that there are
4275 -# no rules to generate ltmain.sh.
4276 -if test -f "$ltmain"; then
4277 - # See if we are running on zsh, and set the options which allow our commands through
4278 - # without removal of \ escapes.
4279 - if test -n "${ZSH_VERSION+set}" ; then
4280 - setopt NO_GLOB_SUBST
4282 - # Now quote all the things that may contain metacharacters while being
4283 - # careful not to overquote the AC_SUBSTed values. We take copies of the
4284 - # variables and quote the copies for generation of the libtool script.
4285 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4287 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4288 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4289 - deplibs_check_method reload_flag reload_cmds need_locks \
4290 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4291 - lt_cv_sys_global_symbol_to_c_name_address \
4292 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4293 - old_postinstall_cmds old_postuninstall_cmds \
4294 - _LT_AC_TAGVAR(compiler, $1) \
4295 - _LT_AC_TAGVAR(CC, $1) \
4296 - _LT_AC_TAGVAR(LD, $1) \
4297 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4298 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4299 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4300 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4301 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4302 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4303 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4304 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4305 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
4306 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4307 - _LT_AC_TAGVAR(predep_objects, $1) \
4308 - _LT_AC_TAGVAR(postdep_objects, $1) \
4309 - _LT_AC_TAGVAR(predeps, $1) \
4310 - _LT_AC_TAGVAR(postdeps, $1) \
4311 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4312 - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4313 - _LT_AC_TAGVAR(archive_cmds, $1) \
4314 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4315 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
4316 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4317 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4318 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4319 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
4320 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4321 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4322 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4323 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4324 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
4325 - _LT_AC_TAGVAR(module_cmds, $1) \
4326 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4327 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4328 - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4329 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
4330 - _LT_AC_TAGVAR(include_expsyms, $1); do
4333 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4334 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4335 - _LT_AC_TAGVAR(archive_cmds, $1) | \
4336 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4337 - _LT_AC_TAGVAR(module_cmds, $1) | \
4338 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4339 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4340 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4341 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
4342 - postinstall_cmds | postuninstall_cmds | \
4343 - old_postinstall_cmds | old_postuninstall_cmds | \
4344 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4345 - # Double-quote double-evaled strings.
4346 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4349 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4355 - *'\[$]0 --fallback-echo"')
4356 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4361 - [cfgfile="${ofile}T"
4362 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4364 - AC_MSG_NOTICE([creating $ofile])],
4365 - [cfgfile="$ofile"])
4367 - cat <<__EOF__ >> "$cfgfile"
4371 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4372 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4373 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4375 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4376 -# Free Software Foundation, Inc.
4378 -# This file is part of GNU Libtool:
4379 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4381 -# This program is free software; you can redistribute it and/or modify
4382 -# it under the terms of the GNU General Public License as published by
4383 -# the Free Software Foundation; either version 2 of the License, or
4384 -# (at your option) any later version.
4386 -# This program is distributed in the hope that it will be useful, but
4387 -# WITHOUT ANY WARRANTY; without even the implied warranty of
4388 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4389 -# General Public License for more details.
4391 -# You should have received a copy of the GNU General Public License
4392 -# along with this program; if not, write to the Free Software
4393 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4395 -# As a special exception to the GNU General Public License, if you
4396 -# distribute this file as part of a program that contains a
4397 -# configuration script generated by Autoconf, you may include it under
4398 -# the same distribution terms that you use for the rest of that program.
4400 -# A sed program that does not truncate output.
4403 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4404 -Xsed="$SED -e 1s/^X//"
4406 -# The HP-UX ksh and POSIX shell print the target directory to stdout
4407 -# if CDPATH is set.
4408 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4410 -# The names of the tagged configurations supported by this script.
4413 -# ### BEGIN LIBTOOL CONFIG],
4414 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4416 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4418 -# Shell to use when invoking shell scripts.
4421 -# Whether or not to build shared libraries.
4422 -build_libtool_libs=$enable_shared
4424 -# Whether or not to build static libraries.
4425 -build_old_libs=$enable_static
4427 -# Whether or not to add -lc for building shared libraries.
4428 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4430 -# Whether or not to disallow shared libs when runtime libs are static
4431 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4433 -# Whether or not to optimize for fast installation.
4434 -fast_install=$enable_fast_install
4437 -host_alias=$host_alias
4441 -# The build system.
4442 -build_alias=$build_alias
4446 -# An echo program that does not interpret backslashes.
4451 -AR_FLAGS=$lt_AR_FLAGS
4456 -# LTCC compiler flags.
4457 -LTCFLAGS=$lt_LTCFLAGS
4459 -# A language-specific compiler.
4460 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4462 -# Is the compiler the GNU C compiler?
4463 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4468 -# The linker used to build libraries.
4469 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4471 -# Whether we need hard or soft links.
4474 -# A BSD-compatible nm program.
4477 -# A symbol stripping program
4480 -# Used to examine libraries when file_magic_cmd begins "file"
4481 -MAGIC_CMD=$MAGIC_CMD
4483 -# Used on cygwin: DLL creation program.
4486 -# Used on cygwin: object dumper.
4489 -# Used on cygwin: assembler.
4492 -# The name of the directory that contains temporary libtool files.
4495 -# How to create reloadable object files.
4496 -reload_flag=$lt_reload_flag
4497 -reload_cmds=$lt_reload_cmds
4499 -# How to pass a linker flag through the compiler.
4500 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4502 -# Object file suffix (normally "o").
4503 -objext="$ac_objext"
4505 -# Old archive suffix (normally "a").
4508 -# Shared library suffix (normally ".so").
4509 -shrext_cmds='$shrext_cmds'
4511 -# Executable file suffix (normally "").
4514 -# Additional compiler flags for building library objects.
4515 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4518 -# What is the maximum length of a command?
4519 -max_cmd_len=$lt_cv_sys_max_cmd_len
4521 -# Does compiler simultaneously support -c and -o options?
4522 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4524 -# Must we lock files when doing compilation?
4525 -need_locks=$lt_need_locks
4527 -# Do we need the lib prefix for modules?
4528 -need_lib_prefix=$need_lib_prefix
4530 -# Do we need a version for libraries?
4531 -need_version=$need_version
4533 -# Whether dlopen is supported.
4534 -dlopen_support=$enable_dlopen
4536 -# Whether dlopen of programs is supported.
4537 -dlopen_self=$enable_dlopen_self
4539 -# Whether dlopen of statically linked programs is supported.
4540 -dlopen_self_static=$enable_dlopen_self_static
4542 -# Compiler flag to prevent dynamic linking.
4543 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4545 -# Compiler flag to turn off builtin functions.
4546 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4548 -# Compiler flag to allow reflexive dlopens.
4549 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4551 -# Compiler flag to generate shared objects directly from archives.
4552 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4554 -# Compiler flag to generate thread-safe objects.
4555 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4557 -# Library versioning type.
4558 -version_type=$version_type
4560 -# Format of library name prefix.
4561 -libname_spec=$lt_libname_spec
4563 -# List of archive names. First name is the real one, the rest are links.
4564 -# The last name is the one that the linker finds with -lNAME.
4565 -library_names_spec=$lt_library_names_spec
4567 -# The coded name of the library, if different from the real name.
4568 -soname_spec=$lt_soname_spec
4570 -# Commands used to build and install an old-style archive.
4572 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4573 -old_postinstall_cmds=$lt_old_postinstall_cmds
4574 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
4576 -# Create an old-style archive from a shared archive.
4577 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4579 -# Create a temporary old-style archive to link instead of a shared archive.
4580 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4582 -# Commands used to build and install a shared archive.
4583 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4584 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4585 -postinstall_cmds=$lt_postinstall_cmds
4586 -postuninstall_cmds=$lt_postuninstall_cmds
4588 -# Commands used to build a loadable module (assumed same as above if empty)
4589 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4590 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4592 -# Commands to strip libraries.
4593 -old_striplib=$lt_old_striplib
4594 -striplib=$lt_striplib
4596 -# Dependencies to place before the objects being linked to create a
4598 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4600 -# Dependencies to place after the objects being linked to create a
4602 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4604 -# Dependencies to place before the objects being linked to create a
4606 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4608 -# Dependencies to place after the objects being linked to create a
4610 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4612 -# The directories searched by this compiler when creating a shared
4614 -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4616 -# The library search path used internally by the compiler when linking
4617 -# a shared library.
4618 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4620 -# Method to check whether dependent libraries are shared objects.
4621 -deplibs_check_method=$lt_deplibs_check_method
4623 -# Command to use when deplibs_check_method == file_magic.
4624 -file_magic_cmd=$lt_file_magic_cmd
4626 -# Flag that allows shared libraries with undefined symbols to be built.
4627 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4629 -# Flag that forces no undefined symbols.
4630 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4632 -# Commands used to finish a libtool library installation in a directory.
4633 -finish_cmds=$lt_finish_cmds
4635 -# Same as above, but a single script fragment to be evaled but not shown.
4636 -finish_eval=$lt_finish_eval
4638 -# Take the output of nm and produce a listing of raw symbols and C names.
4639 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4641 -# Transform the output of nm in a proper C declaration
4642 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4644 -# Transform the output of nm in a C name address pair
4645 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4647 -# This is the shared library runtime path variable.
4648 -runpath_var=$runpath_var
4650 -# This is the shared library path variable.
4651 -shlibpath_var=$shlibpath_var
4653 -# Is shlibpath searched before the hard-coded library search path?
4654 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4656 -# How to hardcode a shared library path into an executable.
4657 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4659 -# Whether we should hardcode library paths into libraries.
4660 -hardcode_into_libs=$hardcode_into_libs
4662 -# Flag to hardcode \$libdir into a binary during linking.
4663 -# This must work even if \$libdir does not exist.
4664 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4666 -# If ld is used when linking, flag to hardcode \$libdir into
4667 -# a binary during linking. This must work even if \$libdir does
4669 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4671 -# Whether we need a single -rpath flag with a separated argument.
4672 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4674 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4675 -# resulting binary.
4676 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4678 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4679 -# resulting binary.
4680 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4682 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4683 -# the resulting binary.
4684 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4686 -# Set to yes if building a shared library automatically hardcodes DIR into the library
4687 -# and all subsequent libraries and executables linked against it.
4688 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4690 -# Variables whose values should be saved in libtool wrapper scripts and
4691 -# restored at relink time.
4692 -variables_saved_for_relink="$variables_saved_for_relink"
4694 -# Whether libtool must link a program against all its dependency libraries.
4695 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4697 -# Compile-time system search path for libraries
4698 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4700 -# Run-time system search path for libraries
4701 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4703 -# Fix the shell variable \$srcfile for the compiler.
4704 -fix_srcfile_path=$lt_fix_srcfile_path
4706 -# Set to yes if exported symbols are required.
4707 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4709 -# The commands to list exported symbols.
4710 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4712 -# The commands to extract the exported symbol list from a shared archive.
4713 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
4715 -# Symbols that should not be listed in the preloaded symbols.
4716 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4718 -# Symbols that must always be exported.
4719 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4722 -[# ### END LIBTOOL CONFIG],
4723 -[# ### END LIBTOOL TAG CONFIG: $tagname])
4730 - cat <<\EOF >> "$cfgfile"
4732 -# AIX sometimes has problems with the GCC collect2 program. For some
4733 -# reason, if we set the COLLECT_NAMES environment variable, the problems
4734 -# vanish in a puff of smoke.
4735 -if test "X${COLLECT_NAMES+set}" != Xset; then
4737 - export COLLECT_NAMES
4743 - # We use sed instead of cat because bash on DJGPP gets confused if
4744 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
4745 - # text mode, it properly converts lines to CR/LF. This bash problem
4746 - # is reportedly fixed, but why not run on old versions too?
4747 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4749 - mv -f "$cfgfile" "$ofile" || \
4750 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4754 - # If there is no Makefile yet, we rely on a make rule to execute
4755 - # `config.status --recheck' to rerun these tests and create the
4756 - # libtool script then.
4757 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4758 - if test -f "$ltmain_in"; then
4759 - test -f Makefile && make "$ltmain"
4762 -])# AC_LIBTOOL_CONFIG
4765 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4766 -# -------------------------------------------
4767 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4768 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4770 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4772 -if test "$GCC" = yes; then
4773 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4775 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4776 - lt_cv_prog_compiler_rtti_exceptions,
4777 - [-fno-rtti -fno-exceptions], [],
4778 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4780 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4783 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4784 -# ---------------------------------
4785 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4786 -[AC_REQUIRE([AC_CANONICAL_HOST])
4787 -AC_REQUIRE([LT_AC_PROG_SED])
4788 -AC_REQUIRE([AC_PROG_NM])
4789 -AC_REQUIRE([AC_OBJEXT])
4790 -# Check for command to grab the raw symbol name followed by C symbol from nm.
4791 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4792 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4794 -# These are sane defaults that work on at least a few old systems.
4795 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4797 -# Character class describing NM global symbol codes.
4798 -symcode='[[BCDEGRST]]'
4800 -# Regexp to match symbols that can be accessed directly from C.
4801 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4803 -# Transform an extracted symbol line into a proper C declaration
4804 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4806 -# Transform an extracted symbol line into symbol name and symbol address
4807 -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'"
4809 -# Define system-specific variables.
4812 - symcode='[[BCDT]]'
4814 -cygwin* | mingw* | pw32*)
4815 - symcode='[[ABCDGISTW]]'
4817 -hpux*) # Its linker distinguishes data from code symbols
4818 - if test "$host_cpu" = ia64; then
4819 - symcode='[[ABCDEGRST]]'
4821 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4822 - 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'"
4824 -linux* | k*bsd*-gnu)
4825 - if test "$host_cpu" = ia64; then
4826 - symcode='[[ABCDGIRSTW]]'
4827 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4828 - 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'"
4831 -irix* | nonstopux*)
4832 - symcode='[[BCDEGRST]]'
4835 - symcode='[[BCDEGQRST]]'
4838 - symcode='[[BDRT]]'
4846 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
4847 - symcode='[[ABDT]]'
4850 - symcode='[[DFNSTU]]'
4854 -# Handle CRLF in mingw tool chain
4858 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4862 -# If we're using GNU nm, then use its standard symbol codes.
4863 -case `$NM -V 2>&1` in
4864 -*GNU* | *'with BFD'*)
4865 - symcode='[[ABCDGIRSTW]]' ;;
4868 -# Try without a prefix undercore, then with it.
4869 -for ac_symprfx in "" "_"; do
4871 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4872 - symxfrm="\\1 $ac_symprfx\\2 \\2"
4874 - # Write the raw and C identifiers.
4875 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4877 - # Check to see that the pipe works correctly.
4881 - cat > conftest.$ac_ext <<EOF
4886 -void nm_test_func(){}
4890 -int main(){nm_test_var='a';nm_test_func();return(0);}
4893 - if AC_TRY_EVAL(ac_compile); then
4894 - # Now try to grab the symbols.
4896 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4897 - # Try sorting and uniquifying the output.
4898 - if sort "$nlist" | uniq > "$nlist"T; then
4899 - mv -f "$nlist"T "$nlist"
4904 - # Make sure that we snagged all the symbols we need.
4905 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
4906 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
4907 - cat <<EOF > conftest.$ac_ext
4913 - # Now generate the symbol file.
4914 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4916 - cat <<EOF >> conftest.$ac_ext
4917 -#if defined (__STDC__) && __STDC__
4918 -# define lt_ptr_t void *
4920 -# define lt_ptr_t char *
4924 -/* The mapping between symbol names and symbols. */
4929 -lt_preloaded_symbols[[]] =
4932 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4933 - cat <<\EOF >> conftest.$ac_ext
4941 - # Now try linking the two files.
4942 - mv conftest.$ac_objext conftstm.$ac_objext
4943 - lt_save_LIBS="$LIBS"
4944 - lt_save_CFLAGS="$CFLAGS"
4945 - LIBS="conftstm.$ac_objext"
4946 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4947 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4950 - LIBS="$lt_save_LIBS"
4951 - CFLAGS="$lt_save_CFLAGS"
4953 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4956 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4959 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4962 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4963 - cat conftest.$ac_ext >&5
4965 - rm -rf conftest* conftst*
4967 - # Do not use the global_symbol_pipe unless it works.
4968 - if test "$pipe_works" = yes; then
4971 - lt_cv_sys_global_symbol_pipe=
4975 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
4976 - lt_cv_sys_global_symbol_to_cdecl=
4978 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4979 - AC_MSG_RESULT(failed)
4983 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4986 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4987 -# ---------------------------------------
4988 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4989 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4990 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4991 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4993 -AC_MSG_CHECKING([for $compiler option to produce PIC])
4994 - ifelse([$1],[CXX],[
4995 - # C++ specific cases for pic, static, wl, etc.
4996 - if test "$GXX" = yes; then
4997 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4998 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5002 - # All AIX code is PIC.
5003 - if test "$host_cpu" = ia64; then
5004 - # AIX 5 now supports IA64 processor
5005 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5009 - # FIXME: we need at least 68020 code to build shared libraries, but
5010 - # adding the `-m68020' flag to GCC prevents building anything better,
5012 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5014 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5015 - # PIC is the default for these OSes.
5017 - mingw* | cygwin* | os2* | pw32*)
5018 - # This hack is so that the source file can tell whether it is being
5019 - # built for inclusion in a dll (and should export symbols for example).
5020 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
5021 - # (--disable-auto-import) libraries
5022 - m4_if([$1], [GCJ], [],
5023 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5025 - darwin* | rhapsody*)
5026 - # PIC is the default on this platform
5027 - # Common symbols not allowed in MH_DYLIB files
5028 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5031 - # DJGPP does not support shared libraries at all
5032 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5035 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5036 - # Instead, we relocate shared libraries at runtime.
5039 - if test -d /usr/nec; then
5040 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5044 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5045 - # not for PA HP-UX.
5050 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5055 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5061 - # All AIX code is PIC.
5062 - if test "$host_cpu" = ia64; then
5063 - # AIX 5 now supports IA64 processor
5064 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5066 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5070 - case $cc_basename in
5072 - # Green Hills C++ Compiler
5073 - # _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"
5078 - # PIC is the default on this platform
5079 - # Common symbols not allowed in MH_DYLIB files
5080 - case $cc_basename in
5082 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5083 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5088 - case $cc_basename in
5090 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5093 - # Green Hills C++ Compiler
5094 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5100 - freebsd* | dragonfly*)
5101 - # FreeBSD uses GNU C++
5103 - hpux9* | hpux10* | hpux11*)
5104 - case $cc_basename in
5106 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5107 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5108 - if test "$host_cpu" != ia64; then
5109 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5113 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5114 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5120 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5129 - # This is c89, which is MS Visual C++ (no shared libs)
5130 - # Anyone wants to do a port?
5132 - irix5* | irix6* | nonstopux*)
5133 - case $cc_basename in
5135 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5136 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5137 - # CC pic flag -KPIC is the default.
5143 - linux* | k*bsd*-gnu)
5144 - case $cc_basename in
5146 - # KAI C++ Compiler
5147 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5148 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5152 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5153 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5154 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5157 - # Portland Group C++ compiler.
5158 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5159 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5160 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5164 - # Make sure the PIC flag is empty. It appears that all Alpha
5165 - # Linux and Compaq Tru64 Unix objects are PIC.
5166 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5167 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5170 - case `$CC -V 2>&1 | sed 5q` in
5173 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5174 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5175 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5186 - case $cc_basename in
5188 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5196 - osf3* | osf4* | osf5*)
5197 - case $cc_basename in
5199 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5202 - # Rational C++ 2.4.1
5203 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5206 - # Digital/Compaq C++
5207 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5208 - # Make sure the PIC flag is empty. It appears that all Alpha
5209 - # Linux and Compaq Tru64 Unix objects are PIC.
5210 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5211 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5220 - case $cc_basename in
5222 - # Sun C++ 4.2, 5.x and Centerline C++
5223 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5224 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5225 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5228 - # Green Hills C++ Compiler
5229 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5236 - case $cc_basename in
5239 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5240 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5244 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5251 - case $cc_basename in
5253 - # NonStop-UX NCC 3.20
5254 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5260 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5261 - case $cc_basename in
5263 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5264 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5265 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5272 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5278 - if test "$GCC" = yes; then
5279 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5280 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5284 - # All AIX code is PIC.
5285 - if test "$host_cpu" = ia64; then
5286 - # AIX 5 now supports IA64 processor
5287 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5292 - # FIXME: we need at least 68020 code to build shared libraries, but
5293 - # adding the `-m68020' flag to GCC prevents building anything better,
5295 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5298 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5299 - # PIC is the default for these OSes.
5302 - mingw* | cygwin* | pw32* | os2*)
5303 - # This hack is so that the source file can tell whether it is being
5304 - # built for inclusion in a dll (and should export symbols for example).
5305 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
5306 - # (--disable-auto-import) libraries
5307 - m4_if([$1], [GCJ], [],
5308 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5311 - darwin* | rhapsody*)
5312 - # PIC is the default on this platform
5313 - # Common symbols not allowed in MH_DYLIB files
5314 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5318 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5319 - # Instead, we relocate shared libraries at runtime.
5323 - # Just because we use GCC doesn't mean we suddenly get shared libraries
5324 - # on systems that don't support them.
5325 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5330 - if test -d /usr/nec; then
5331 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5336 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5337 - # not for PA HP-UX.
5343 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5349 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5353 - # PORTME Check for flag to pass linker flags through the system compiler.
5356 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5357 - if test "$host_cpu" = ia64; then
5358 - # AIX 5 now supports IA64 processor
5359 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5361 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5365 - # PIC is the default on this platform
5366 - # Common symbols not allowed in MH_DYLIB files
5367 - case $cc_basename in
5369 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5370 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5375 - mingw* | cygwin* | pw32* | os2*)
5376 - # This hack is so that the source file can tell whether it is being
5377 - # built for inclusion in a dll (and should export symbols for example).
5378 - m4_if([$1], [GCJ], [],
5379 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5382 - hpux9* | hpux10* | hpux11*)
5383 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5384 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5385 - # not for PA HP-UX.
5391 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5394 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
5395 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5398 - irix5* | irix6* | nonstopux*)
5399 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5400 - # PIC (with -KPIC) is the default.
5401 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5405 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5406 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5409 - linux* | k*bsd*-gnu)
5410 - case $cc_basename in
5412 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5413 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5414 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5416 - pgcc* | pgf77* | pgf90* | pgf95*)
5417 - # Portland Group compilers (*not* the Pentium gcc compiler,
5418 - # which looks to be a dead project)
5419 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5420 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5421 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5424 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5425 - # All Alpha code is PIC.
5426 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5429 - case `$CC -V 2>&1 | sed 5q` in
5432 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5433 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5434 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5437 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
5438 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5439 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5440 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5447 - osf3* | osf4* | osf5*)
5448 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5449 - # All OSF/1 code is PIC.
5450 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5454 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5458 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5459 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5460 - case $cc_basename in
5461 - f77* | f90* | f95*)
5462 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5464 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5469 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5470 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5471 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5474 - sysv4 | sysv4.2uw2* | sysv4.3*)
5475 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5476 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5477 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5481 - if test -d /usr/nec ;then
5482 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5483 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5487 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5488 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5489 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5490 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5494 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5495 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5499 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5500 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5504 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5509 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5512 -# Check to make sure the PIC flag actually works.
5514 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5515 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5516 - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5517 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5518 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5520 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5522 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5523 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5526 - # For platforms which do not support PIC, -DPIC is meaningless:
5528 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5531 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5536 -# Check to make sure the static flag actually works.
5538 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5539 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5540 - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5541 - $lt_tmp_static_flag,
5543 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5547 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5548 -# ------------------------------------
5549 -# See if the linker supports building shared libraries.
5550 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5551 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
5552 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5553 -ifelse([$1],[CXX],[
5554 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5557 - # If we're using GNU nm, then we don't want the "-C" option.
5558 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
5559 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5560 - _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'
5562 - _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'
5566 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5569 - _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'
5572 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5575 - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5578 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5579 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5580 - _LT_AC_TAGVAR(archive_cmds, $1)=
5581 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5582 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5583 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5584 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5585 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5586 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5587 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5588 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5589 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5590 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5591 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5592 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5593 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5594 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5595 - _LT_AC_TAGVAR(module_cmds, $1)=
5596 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5597 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
5598 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5599 - # include_expsyms should be a list of space-separated symbols to be *always*
5600 - # included in the symbol list
5601 - _LT_AC_TAGVAR(include_expsyms, $1)=
5602 - # exclude_expsyms can be an extended regexp of symbols to exclude
5603 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
5604 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5605 - # as well as any symbol that contains `d'.
5606 - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5607 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5608 - # platforms (ab)use it in PIC code, but their linkers get confused if
5609 - # the symbol is explicitly referenced. Since portable code cannot
5610 - # rely on this symbol name, it's probably fine to never include it in
5611 - # preloaded symbol tables.
5612 - # Exclude shared library initialization/finalization symbols.
5613 -dnl Note also adjust exclude_expsyms for C++ above.
5614 - extract_expsyms_cmds=
5615 - # Just being paranoid about ensuring that cc_basename is set.
5616 - _LT_CC_BASENAME([$compiler])
5618 - cygwin* | mingw* | pw32*)
5619 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
5620 - # When not using gcc, we currently assume that we are using
5621 - # Microsoft Visual C++.
5622 - if test "$GCC" != yes; then
5627 - # we just hope/assume this is gcc and not c89 (= MSVC++)
5635 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5636 - if test "$with_gnu_ld" = yes; then
5637 - # If archive_cmds runs LD, not CC, wlarc should be empty
5640 - # Set some defaults for GNU ld with shared library support. These
5641 - # are reset later if shared libraries are not supported. Putting them
5642 - # here allows them to be overridden if necessary.
5643 - runpath_var=LD_RUN_PATH
5644 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5645 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5646 - # ancient GNU ld didn't support --whole-archive et. al.
5647 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5648 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5650 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5652 - supports_anon_versioning=no
5653 - case `$LD -v 2>/dev/null` in
5654 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5655 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5656 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5657 - *\ 2.11.*) ;; # other 2.11 versions
5658 - *) supports_anon_versioning=yes ;;
5661 - # See if GNU ld supports shared libraries.
5664 - # On AIX/PPC, the GNU linker is very broken
5665 - if test "$host_cpu" != ia64; then
5666 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5669 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5670 -*** to be unable to reliably create shared libraries on AIX.
5671 -*** Therefore, libtool is disabling shared libraries support. If you
5672 -*** really care for shared libraries, you may want to modify your PATH
5673 -*** so that a non-GNU linker is found, and then restart.
5680 - _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)'
5681 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5682 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5684 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5685 - # that the semantics of dynamic libraries on AmigaOS, at least up
5686 - # to version 4, is to share data among multiple programs linked
5687 - # with the same dynamic library. Since this doesn't match the
5688 - # behavior of shared libraries on other platforms, we can't use
5690 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5694 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5695 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5696 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5697 - # support --undefined. This deserves some investigation. FIXME
5698 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5700 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5704 - cygwin* | mingw* | pw32*)
5705 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5706 - # as there is no search path for DLLs.
5707 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5708 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5709 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
5710 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5711 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5713 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5714 - _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'
5715 - # If the export-symbols file already is a .def file (1st line
5716 - # is EXPORTS), use it as is; otherwise, prepend...
5717 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5718 - cp $export_symbols $output_objdir/$soname.def;
5720 - echo EXPORTS > $output_objdir/$soname.def;
5721 - cat $export_symbols >> $output_objdir/$soname.def;
5723 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5725 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5730 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5731 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5732 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5733 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5734 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5735 - # Instead, shared libraries are loaded at an image base (0x10000000 by
5736 - # default) and relocated if they conflict, which is a slow very memory
5737 - # consuming and fragmenting process. To avoid this, we pick a random,
5738 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5739 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5740 - _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'
5741 - _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'
5744 - gnu* | linux* | k*bsd*-gnu)
5745 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5747 - case $cc_basename,$host_cpu in
5748 - pgcc*) # Portland Group C compiler
5749 - _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'
5750 - tmp_addflag=' $pic_flag'
5752 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5753 - _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'
5754 - tmp_addflag=' $pic_flag -Mnomain' ;;
5755 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5756 - tmp_addflag=' -i_dynamic' ;;
5757 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5758 - tmp_addflag=' -i_dynamic -nofor_main' ;;
5759 - ifc* | ifort*) # Intel Fortran compiler
5760 - tmp_addflag=' -nofor_main' ;;
5762 - case `$CC -V 2>&1 | sed 5q` in
5763 - *Sun\ C*) # Sun C 5.9
5764 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5765 - tmp_sharedflag='-G' ;;
5766 - *Sun\ F*) # Sun Fortran 8.3
5767 - tmp_sharedflag='-G' ;;
5769 - tmp_sharedflag='-shared' ;;
5771 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5773 - if test $supports_anon_versioning = yes; then
5774 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5775 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5776 - $echo "local: *; };" >> $output_objdir/$libname.ver~
5777 - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5780 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5785 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5786 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5789 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5790 - _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'
5795 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5796 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5799 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5800 -*** create shared libraries on Solaris systems. Therefore, libtool
5801 -*** is disabling shared libraries support. We urge you to upgrade GNU
5802 -*** binutils to release 2.9.1 or newer. Another option is to modify
5803 -*** your PATH or compiler configuration so that the native linker is
5804 -*** used, and then restart.
5807 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5808 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5809 - _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'
5811 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5815 - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5816 - case `$LD -v 2>&1` in
5817 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5818 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5819 - cat <<_LT_EOF 1>&2
5821 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5822 -*** reliably create shared libraries on SCO systems. Therefore, libtool
5823 -*** is disabling shared libraries support. We urge you to upgrade GNU
5824 -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5825 -*** your PATH or compiler configuration so that the native linker is
5826 -*** used, and then restart.
5831 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5832 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5833 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5834 - _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'
5836 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5843 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5845 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5846 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5850 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5851 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5852 - _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'
5854 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5859 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5861 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5862 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5863 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5866 - # PORTME fill in a description of your system's linker (not GNU ld)
5869 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5870 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5871 - _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'
5872 - # Note: this linker hardcodes the directories in LIBPATH if there
5873 - # are no directories specified by -L.
5874 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5875 - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5876 - # Neither direct hardcoding nor static linking is supported with a
5877 - # broken collect2.
5878 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5883 - if test "$host_cpu" = ia64; then
5884 - # On IA64, the linker does run time linking by default, so we don't
5885 - # have to do anything special.
5886 - aix_use_runtimelinking=no
5887 - exp_sym_flag='-Bexport'
5890 - # If we're using GNU nm, then we don't want the "-C" option.
5891 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
5892 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5893 - _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'
5895 - _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'
5897 - aix_use_runtimelinking=no
5899 - # Test if we are trying to use run time linking or normal
5900 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5901 - # need to do runtime linking.
5902 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5903 - for ld_flag in $LDFLAGS; do
5904 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5905 - aix_use_runtimelinking=yes
5912 - exp_sym_flag='-bexport'
5913 - no_entry_flag='-bnoentry'
5916 - # When large executables or shared objects are built, AIX ld can
5917 - # have problems creating the table of contents. If linking a library
5918 - # or program results in "error TOC overflow" add -mminimal-toc to
5919 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5920 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5922 - _LT_AC_TAGVAR(archive_cmds, $1)=''
5923 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5924 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5925 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5927 - if test "$GCC" = yes; then
5928 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
5929 - # We only want to do this on AIX 4.2 and lower, the check
5930 - # below for broken collect2 doesn't work under 4.3+
5931 - collect2name=`${CC} -print-prog-name=collect2`
5932 - if test -f "$collect2name" && \
5933 - strings "$collect2name" | grep resolve_lib_name >/dev/null
5935 - # We have reworked collect2
5938 - # We have old collect2
5939 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5940 - # It fails to find uninstalled libraries when the uninstalled
5941 - # path is not listed in the libpath. Setting hardcode_minus_L
5942 - # to unsupported forces relinking
5943 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5944 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5945 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5949 - shared_flag='-shared'
5950 - if test "$aix_use_runtimelinking" = yes; then
5951 - shared_flag="$shared_flag "'${wl}-G'
5955 - if test "$host_cpu" = ia64; then
5956 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5957 - # chokes on -Wl,-G. The following line is correct:
5960 - if test "$aix_use_runtimelinking" = yes; then
5961 - shared_flag='${wl}-G'
5963 - shared_flag='${wl}-bM:SRE'
5968 - # It seems that -bexpall does not export symbols beginning with
5969 - # underscore (_), so it is better to generate a list of symbols to export.
5970 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5971 - if test "$aix_use_runtimelinking" = yes; then
5972 - # Warning - without using the other runtime loading flags (-brtl),
5973 - # -berok will link without error, but may produce a broken library.
5974 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5975 - # Determine the default libpath from the value encoded in an empty executable.
5976 - _LT_AC_SYS_LIBPATH_AIX
5977 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5978 - _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"
5980 - if test "$host_cpu" = ia64; then
5981 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5982 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5983 - _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"
5985 - # Determine the default libpath from the value encoded in an empty executable.
5986 - _LT_AC_SYS_LIBPATH_AIX
5987 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5988 - # Warning - without using the other run time loading flags,
5989 - # -berok will link without error, but may produce a broken library.
5990 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5991 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5992 - # Exported symbols can be pulled into shared objects from archives
5993 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5994 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5995 - # This is similar to how AIX traditionally builds its shared libraries.
5996 - _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'
6002 - _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)'
6003 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6004 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6005 - # see comment about different semantics on the GNU ld section
6006 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6010 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6013 - cygwin* | mingw* | pw32*)
6014 - # When not using gcc, we currently assume that we are using
6015 - # Microsoft Visual C++.
6016 - # hardcode_libdir_flag_spec is actually meaningless, as there is
6017 - # no search path for DLLs.
6018 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6019 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6020 - # Tell ltmain to make .lib files, not .a files.
6022 - # Tell ltmain to make .dll files, not .so files.
6023 - shrext_cmds=".dll"
6024 - # FIXME: Setting linknames here is a bad hack.
6025 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6026 - # The linker will automatically build a .lib file if we build a DLL.
6027 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6028 - # FIXME: Should let the user specify the lib program.
6029 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6030 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6031 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6034 - darwin* | rhapsody*)
6036 - rhapsody* | darwin1.[[012]])
6037 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6039 - *) # Darwin 1.3 on
6040 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6041 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6043 - case ${MACOSX_DEPLOYMENT_TARGET} in
6045 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6048 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6054 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6055 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
6056 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6057 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6058 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6059 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6060 - if test "$GCC" = yes ; then
6061 - output_verbose_link_cmd='echo'
6062 - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6063 - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6064 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6065 - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6067 - case $cc_basename in
6069 - output_verbose_link_cmd='echo'
6070 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6071 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6072 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6073 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6074 - _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}'
6077 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6084 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6085 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6086 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6090 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6093 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6094 - # support. Future versions do this automatically, but an explicit c++rt0.o
6095 - # does not break anything, and helps significantly (at the cost of a little
6098 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6099 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6100 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6101 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6104 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6106 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6107 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6108 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6109 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6112 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6113 - freebsd* | dragonfly*)
6114 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6115 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6116 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6117 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6121 - if test "$GCC" = yes; then
6122 - _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'
6124 - _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'
6126 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6127 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6128 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6130 - # hardcode_minus_L: Not really in the search PATH,
6131 - # but as the default location of the library.
6132 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6133 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6137 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6138 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6140 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6142 - if test "$with_gnu_ld" = no; then
6143 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6144 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6146 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6147 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6149 - # hardcode_minus_L: Not really in the search PATH,
6150 - # but as the default location of the library.
6151 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6156 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6159 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6162 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6165 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6171 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6174 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6177 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6181 - if test "$with_gnu_ld" = no; then
6182 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6183 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6187 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6188 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
6189 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6192 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6193 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6195 - # hardcode_minus_L: Not really in the search PATH,
6196 - # but as the default location of the library.
6197 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6203 - irix5* | irix6* | nonstopux*)
6204 - if test "$GCC" = yes; then
6205 - _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'
6207 - _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'
6208 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6210 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6211 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6212 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6216 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6217 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6219 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6221 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6222 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6223 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6227 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6229 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6230 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6231 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6235 - if test -f /usr/libexec/ld.so; then
6236 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6237 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6238 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6239 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6240 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6241 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6242 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6245 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6246 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6247 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6250 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6251 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6256 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6261 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6262 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6263 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6264 - _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'
6265 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6269 - if test "$GCC" = yes; then
6270 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6271 - _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'
6273 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6274 - _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'
6276 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6277 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6280 - osf4* | osf5*) # as osf3* with the addition of -msym flag
6281 - if test "$GCC" = yes; then
6282 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6283 - _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'
6284 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6286 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6287 - _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'
6288 - _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~
6289 - $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'
6291 - # Both c and cxx compiler support -rpath directly
6292 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6294 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6298 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6299 - if test "$GCC" = yes; then
6301 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6302 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6303 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6306 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6307 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6308 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6310 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6311 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6313 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6315 - # The compiler driver will combine and reorder linker options,
6316 - # but understands `-z linker_flag'. GCC discards it without `$wl',
6317 - # but is careful enough not to reorder.
6318 - # Supported since Solaris 2.6 (maybe 2.5.1?)
6319 - if test "$GCC" = yes; then
6320 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6322 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6326 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6330 - if test "x$host_vendor" = xsequent; then
6331 - # Use $CC to link under sequent, because it throws in some extra .o
6332 - # files that make .init and .fini sections work.
6333 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6335 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6337 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6338 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6339 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6340 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6344 - case $host_vendor in
6346 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6347 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6350 - ## LD is ld it makes a PLAMLIB
6351 - ## CC just makes a GrossModule.
6352 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6353 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6354 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
6357 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6358 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6361 - runpath_var='LD_RUN_PATH'
6362 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6366 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6367 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6368 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6372 - if test -d /usr/nec; then
6373 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6374 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6375 - runpath_var=LD_RUN_PATH
6376 - hardcode_runpath_var=yes
6377 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6381 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6382 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6383 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6384 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6385 - runpath_var='LD_RUN_PATH'
6387 - if test "$GCC" = yes; then
6388 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6389 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6391 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6392 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6396 - sysv5* | sco3.2v5* | sco5v6*)
6397 - # Note: We can NOT use -z defs as we might desire, because we do not
6398 - # link with -lc, and that would cause any symbols used from libc to
6399 - # always be unresolved, which means just about no library would
6400 - # ever link correctly. If we're not using GNU ld we use -z text
6401 - # though, which does catch some bad symbols but isn't as heavy-handed
6403 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6404 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6405 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6406 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6407 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6408 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6409 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6410 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6411 - runpath_var='LD_RUN_PATH'
6413 - if test "$GCC" = yes; then
6414 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6415 - _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'
6417 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6418 - _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'
6423 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6424 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6425 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6429 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6434 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6435 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6438 -# Do we need to explicitly link libc?
6440 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6442 - # Assume -lc should be added
6443 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6445 - if test "$enable_shared" = yes && test "$GCC" = yes; then
6446 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
6448 - # FIXME: we may have to deal with multi-command sequences.
6451 - # Test whether the compiler implicitly links with -lc since on some
6452 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
6453 - # to ld, don't add -lc before -lgcc.
6454 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6456 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6458 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6461 - libobjs=conftest.$ac_objext
6463 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6464 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6470 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6471 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6472 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6474 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6476 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6478 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6480 - cat conftest.err 1>&5
6483 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6489 -])# AC_LIBTOOL_PROG_LD_SHLIBS
6492 -# _LT_AC_FILE_LTDLL_C
6493 -# -------------------
6494 -# Be careful that the start marker always follows a newline.
6495 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6496 -# /* ltdll.c starts here */
6497 -# #define WIN32_LEAN_AND_MEAN
6498 -# #include <windows.h>
6499 -# #undef WIN32_LEAN_AND_MEAN
6500 -# #include <stdio.h>
6502 -# #ifndef __CYGWIN__
6503 -# # ifdef __CYGWIN32__
6504 -# # define __CYGWIN__ __CYGWIN32__
6508 -# #ifdef __cplusplus
6511 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6512 -# #ifdef __cplusplus
6516 -# #ifdef __CYGWIN__
6517 -# #include <cygwin/cygwin_dll.h>
6518 -# DECLARE_CYGWIN_DLL( DllMain );
6520 -# HINSTANCE __hDllInstance_base;
6523 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6525 -# __hDllInstance_base = hInst;
6528 -# /* ltdll.c ends here */
6529 -])# _LT_AC_FILE_LTDLL_C
6532 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6533 -# ---------------------------------
6534 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6538 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6539 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6540 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6541 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6542 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6543 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6544 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6546 -# This is just to silence aclocal about the macro not being used
6547 -ifelse([AC_DISABLE_FAST_INSTALL])
6549 -AC_DEFUN([LT_AC_PROG_GCJ],
6550 -[AC_CHECK_TOOL(GCJ, gcj, no)
6551 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6552 - AC_SUBST(GCJFLAGS)
6555 -AC_DEFUN([LT_AC_PROG_RC],
6556 -[AC_CHECK_TOOL(RC, windres, no)
6560 -# Cheap backport of AS_EXECUTABLE_P and required macros
6561 -# from Autoconf 2.59; we should not use $as_executable_p directly.
6565 -m4_ifndef([_AS_TEST_PREPARE],
6566 -[m4_defun([_AS_TEST_PREPARE],
6567 -[if test -x / >/dev/null 2>&1; then
6568 - as_executable_p='test -x'
6570 - as_executable_p='test -f'
6572 -])])# _AS_TEST_PREPARE
6576 -# Check whether a file is executable.
6577 -m4_ifndef([AS_EXECUTABLE_P],
6578 -[m4_defun([AS_EXECUTABLE_P],
6579 -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6580 -$as_executable_p $1[]dnl
6581 -])])# AS_EXECUTABLE_P
6583 -# NOTE: This macro has been submitted for inclusion into #
6584 -# GNU Autoconf as AC_PROG_SED. When it is available in #
6585 -# a released version of Autoconf we should remove this #
6586 -# macro and use it instead. #
6589 -# Check for a fully-functional sed program, that truncates
6590 -# as few characters as possible. Prefer GNU sed if found.
6591 -AC_DEFUN([LT_AC_PROG_SED],
6592 -[AC_MSG_CHECKING([for a sed that does not truncate output])
6593 -AC_CACHE_VAL(lt_cv_path_SED,
6594 -[# Loop through the user's path and test for sed and gsed.
6595 -# Then use that list of sed's as ones to test for truncation.
6596 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 -for as_dir in $PATH
6600 - test -z "$as_dir" && as_dir=.
6601 - for lt_ac_prog in sed gsed; do
6602 - for ac_exec_ext in '' $ac_executable_extensions; do
6603 - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6604 - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6612 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6613 -# along with /bin/sed that truncates output.
6614 -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6615 - test ! -f $lt_ac_sed && continue
6616 - cat /dev/null > conftest.in
6618 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6619 - # Check for GNU sed and select it if it is found.
6620 - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6621 - lt_cv_path_SED=$lt_ac_sed
6625 - cat conftest.in conftest.in >conftest.tmp
6626 - mv conftest.tmp conftest.in
6627 - cp conftest.in conftest.nl
6628 - echo >>conftest.nl
6629 - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6630 - cmp -s conftest.out conftest.nl || break
6631 - # 10000 chars as input seems more than enough
6632 - test $lt_ac_count -gt 10 && break
6633 - lt_ac_count=`expr $lt_ac_count + 1`
6634 - if test $lt_ac_count -gt $lt_ac_max; then
6635 - lt_ac_max=$lt_ac_count
6636 - lt_cv_path_SED=$lt_ac_sed
6641 -SED=$lt_cv_path_SED
6643 -AC_MSG_RESULT([$SED])
6646 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
6648 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.