231
231
rm -f conf.glibtest
234
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
236
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
237
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
239
# Written by Gordon Matzigkeit, 1996
241
# This file is free software; the Free Software Foundation gives
242
# unlimited permission to copy and/or distribute it, with or without
243
# modifications, as long as this notice is preserved.
245
m4_define([_LT_COPYING], [dnl
246
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
247
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
249
# Written by Gordon Matzigkeit, 1996
251
# This file is part of GNU Libtool.
253
# GNU Libtool is free software; you can redistribute it and/or
254
# modify it under the terms of the GNU General Public License as
255
# published by the Free Software Foundation; either version 2 of
256
# the License, or (at your option) any later version.
258
# As a special exception to the GNU General Public License,
259
# if you distribute this file as part of a program or library that
260
# is built using GNU Libtool, you may include this file under the
261
# same distribution terms that you use for the rest of that program.
263
# GNU Libtool is distributed in the hope that it will be useful,
264
# but WITHOUT ANY WARRANTY; without even the implied warranty of
265
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
266
# GNU General Public License for more details.
268
# You should have received a copy of the GNU General Public License
269
# along with GNU Libtool; see the file COPYING. If not, a copy
270
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
271
# obtained by writing to the Free Software Foundation, Inc.,
272
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
280
# Complain and exit if this libtool version is less that VERSION.
281
m4_defun([LT_PREREQ],
282
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
284
[m4_fatal([Libtool version $1 or higher is required],
291
# Complain if the absolute build directory name contains unusual characters
292
m4_defun([_LT_CHECK_BUILDDIR],
295
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
303
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
304
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
305
AC_BEFORE([$0], [LT_LANG])dnl
306
AC_BEFORE([$0], [LT_OUTPUT])dnl
307
AC_BEFORE([$0], [LTDL_INIT])dnl
308
m4_require([_LT_CHECK_BUILDDIR])dnl
310
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
311
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
312
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
313
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
314
dnl unless we require an AC_DEFUNed macro:
315
AC_REQUIRE([LTOPTIONS_VERSION])dnl
316
AC_REQUIRE([LTSUGAR_VERSION])dnl
317
AC_REQUIRE([LTVERSION_VERSION])dnl
318
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
319
m4_require([_LT_PROG_LTMAIN])dnl
321
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
324
_LT_SET_OPTIONS([$0], [$1])
326
# This can be used to rebuild libtool when needed
327
LIBTOOL_DEPS="$ltmain"
329
# Always use our own libtool.
330
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
340
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
341
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
342
dnl aclocal-1.4 backwards compatibility:
343
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
344
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
347
# _LT_CC_BASENAME(CC)
348
# -------------------
349
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
350
m4_defun([_LT_CC_BASENAME],
351
[for cc_temp in $1""; do
353
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
354
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
359
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
363
# _LT_FILEUTILS_DEFAULTS
364
# ----------------------
365
# It is okay to use these file commands and assume they have been set
366
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
367
m4_defun([_LT_FILEUTILS_DEFAULTS],
371
])# _LT_FILEUTILS_DEFAULTS
376
m4_defun([_LT_SETUP],
377
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
378
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
379
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
380
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
382
_LT_DECL([], [host_alias], [0], [The host system])dnl
383
_LT_DECL([], [host], [0])dnl
384
_LT_DECL([], [host_os], [0])dnl
386
_LT_DECL([], [build_alias], [0], [The build system])dnl
387
_LT_DECL([], [build], [0])dnl
388
_LT_DECL([], [build_os], [0])dnl
390
AC_REQUIRE([AC_PROG_CC])dnl
391
AC_REQUIRE([LT_PATH_LD])dnl
392
AC_REQUIRE([LT_PATH_NM])dnl
394
AC_REQUIRE([AC_PROG_LN_S])dnl
395
test -z "$LN_S" && LN_S="ln -s"
396
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
398
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
399
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
400
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
402
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
403
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
404
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
405
m4_require([_LT_CMD_RELOAD])dnl
406
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
407
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
408
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
409
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
410
m4_require([_LT_WITH_SYSROOT])dnl
412
_LT_CONFIG_LIBTOOL_INIT([
413
# See if we are running on zsh, and set the options which allow our
414
# commands through without removal of \ escapes INIT.
415
if test -n "\${ZSH_VERSION+set}" ; then
419
if test -n "${ZSH_VERSION+set}" ; then
425
m4_require([_LT_TAG_COMPILER])dnl
429
# AIX sometimes has problems with the GCC collect2 program. For some
430
# reason, if we set the COLLECT_NAMES environment variable, the problems
431
# vanish in a puff of smoke.
432
if test "X${COLLECT_NAMES+set}" != Xset; then
443
# All known linkers require a `.a' archive for static linking (except MSVC,
444
# which needs '.lib').
447
with_gnu_ld="$lt_cv_prog_gnu_ld"
452
# Set sane defaults for various variables
453
test -z "$CC" && CC=cc
454
test -z "$LTCC" && LTCC=$CC
455
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
456
test -z "$LD" && LD=ld
457
test -z "$ac_objext" && ac_objext=o
459
_LT_CC_BASENAME([$compiler])
461
# Only perform the check for file, if the check method requires it
462
test -z "$MAGIC_CMD" && MAGIC_CMD=file
463
case $deplibs_check_method in
465
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
471
# Use C for the default configuration in the libtool script
472
LT_SUPPORTED_TAG([CC])
474
_LT_LANG_DEFAULT_CONFIG
479
# _LT_PREPARE_SED_QUOTE_VARS
480
# --------------------------
481
# Define a few sed substitution that help us do robust quoting.
482
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
483
[# Backslashify metacharacters that are still active within
484
# double-quoted strings.
485
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
487
# Same as above, but do not quote variable references.
488
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
490
# Sed substitution to delay expansion of an escaped shell variable in a
491
# double_quote_subst'ed string.
492
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
494
# Sed substitution to delay expansion of an escaped single quote.
495
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
497
# Sed substitution to avoid accidental globbing in evaled expressions
498
no_glob_subst='s/\*/\\\*/g'
503
# Note that this code is called both from `configure', and `config.status'
504
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
505
# `config.status' has no value for ac_aux_dir unless we are using Automake,
506
# so we pass a copy along to make sure it has a sensible value anyway.
507
m4_defun([_LT_PROG_LTMAIN],
508
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
509
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
510
ltmain="$ac_aux_dir/ltmain.sh"
515
# So that we can recreate a full libtool script including additional
516
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
517
# in macros and then make a single call at the end using the `libtool'
521
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
522
# ----------------------------------------
523
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
524
m4_define([_LT_CONFIG_LIBTOOL_INIT],
526
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
531
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
534
# _LT_CONFIG_LIBTOOL([COMMANDS])
535
# ------------------------------
536
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
537
m4_define([_LT_CONFIG_LIBTOOL],
539
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
544
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
547
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
548
# -----------------------------------------------------
549
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
550
[_LT_CONFIG_LIBTOOL([$1])
551
_LT_CONFIG_LIBTOOL_INIT([$2])
555
# _LT_FORMAT_COMMENT([COMMENT])
556
# -----------------------------
557
# Add leading comment marks to the start of each line, and a trailing
558
# full-stop to the whole comment if one is not present already.
559
m4_define([_LT_FORMAT_COMMENT],
561
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
562
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
569
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
570
# -------------------------------------------------------------------
571
# CONFIGNAME is the name given to the value in the libtool script.
572
# VARNAME is the (base) name used in the configure script.
573
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
574
# VARNAME. Any other value will be used directly.
575
m4_define([_LT_DECL],
576
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
577
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
578
[m4_ifval([$1], [$1], [$2])])
579
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
581
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
582
lt_dict_add_subkey([lt_decl_dict], [$2],
583
[tagged?], [m4_ifval([$5], [yes], [no])])])
587
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
588
# --------------------------------------------------------
589
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
592
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
593
# ------------------------------------------------
594
m4_define([lt_decl_tag_varnames],
595
[_lt_decl_filter([tagged?], [yes], $@)])
598
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
599
# ---------------------------------------------------------
600
m4_define([_lt_decl_filter],
602
[0], [m4_fatal([$0: too few arguments: $#])],
603
[1], [m4_fatal([$0: too few arguments: $#: $1])],
604
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
605
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
606
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
610
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
611
# --------------------------------------------------
612
m4_define([lt_decl_quote_varnames],
613
[_lt_decl_filter([value], [1], $@)])
616
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
617
# ---------------------------------------------------
618
m4_define([lt_decl_dquote_varnames],
619
[_lt_decl_filter([value], [2], $@)])
622
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
623
# ---------------------------------------------------
624
m4_define([lt_decl_varnames_tagged],
625
[m4_assert([$# <= 2])dnl
626
_$0(m4_quote(m4_default([$1], [[, ]])),
627
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
628
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
629
m4_define([_lt_decl_varnames_tagged],
630
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
633
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
634
# ------------------------------------------------
635
m4_define([lt_decl_all_varnames],
636
[_$0(m4_quote(m4_default([$1], [[, ]])),
638
m4_quote(lt_decl_varnames),
639
m4_quote(m4_shift($@))))[]dnl
641
m4_define([_lt_decl_all_varnames],
642
[lt_join($@, lt_decl_varnames_tagged([$1],
643
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
647
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
648
# ------------------------------------
649
# Quote a variable value, and forward it to `config.status' so that its
650
# declaration there will have the same value as in `configure'. VARNAME
651
# must have a single quote delimited value for this to work.
652
m4_define([_LT_CONFIG_STATUS_DECLARE],
653
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
656
# _LT_CONFIG_STATUS_DECLARATIONS
657
# ------------------------------
658
# We delimit libtool config variables with single quotes, so when
659
# we write them to config.status, we have to be sure to quote all
660
# embedded single quotes properly. In configure, this macro expands
661
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
663
# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
664
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
665
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
666
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
671
# Output comment and list of tags supported by the script
672
m4_defun([_LT_LIBTOOL_TAGS],
673
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
674
available_tags="_LT_TAGS"dnl
678
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
679
# -----------------------------------
680
# Extract the dictionary values for VARNAME (optionally with TAG) and
681
# expand to a commented shell variable setting:
683
# # Some comment about what VAR is for.
684
# visible_name=$lt_internal_name
685
m4_define([_LT_LIBTOOL_DECLARE],
686
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
687
[description])))[]dnl
688
m4_pushdef([_libtool_name],
689
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
690
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
691
[0], [_libtool_name=[$]$1],
692
[1], [_libtool_name=$lt_[]$1],
693
[2], [_libtool_name=$lt_[]$1],
694
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
695
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
699
# _LT_LIBTOOL_CONFIG_VARS
700
# -----------------------
701
# Produce commented declarations of non-tagged libtool config variables
702
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
703
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
704
# section) are produced by _LT_LIBTOOL_TAG_VARS.
705
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
706
[m4_foreach([_lt_var],
707
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
708
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
711
# _LT_LIBTOOL_TAG_VARS(TAG)
712
# -------------------------
713
m4_define([_LT_LIBTOOL_TAG_VARS],
714
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
715
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
718
# _LT_TAGVAR(VARNAME, [TAGNAME])
719
# ------------------------------
720
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
723
# _LT_CONFIG_COMMANDS
724
# -------------------
725
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
726
# variables for single and double quote escaping we saved from calls
727
# to _LT_DECL, we can put quote escaped variables declarations
728
# into `config.status', and then the shell code to quote escape them in
729
# for loops in `config.status'. Finally, any additional code accumulated
730
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
731
m4_defun([_LT_CONFIG_COMMANDS],
732
[AC_PROVIDE_IFELSE([LT_OUTPUT],
733
dnl If the libtool generation code has been placed in $CONFIG_LT,
734
dnl instead of duplicating it all over again into config.status,
735
dnl then we will have config.status run $CONFIG_LT later, so it
736
dnl needs to know what name is stored there:
737
[AC_CONFIG_COMMANDS([libtool],
738
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
739
dnl If the libtool generation code is destined for config.status,
740
dnl expand the accumulated commands and init code now:
741
[AC_CONFIG_COMMANDS([libtool],
742
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
743
])#_LT_CONFIG_COMMANDS
747
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
750
# The HP-UX ksh and POSIX shell print the target directory to stdout
752
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
754
sed_quote_subst='$sed_quote_subst'
755
double_quote_subst='$double_quote_subst'
756
delay_variable_subst='$delay_variable_subst'
757
_LT_CONFIG_STATUS_DECLARATIONS
760
compiler='$compiler_DEFAULT'
762
# A function that is used when there is no print builtin or printf.
763
func_fallback_echo ()
765
eval 'cat <<_LTECHO_EOF
770
# Quote evaled strings.
771
for var in lt_decl_all_varnames([[ \
772
]], lt_decl_quote_varnames); do
773
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
774
*[[\\\\\\\`\\"\\\$]]*)
775
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
778
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
783
# Double-quote double-evaled strings.
784
for var in lt_decl_all_varnames([[ \
785
]], lt_decl_dquote_varnames); do
786
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
787
*[[\\\\\\\`\\"\\\$]]*)
788
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
791
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
796
_LT_OUTPUT_LIBTOOL_INIT
799
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
800
# ------------------------------------
801
# Generate a child script FILE with all initialization necessary to
802
# reuse the environment learned by the parent script, and make the
803
# file executable. If COMMENT is supplied, it is inserted after the
804
# `#!' sequence but before initialization text begins. After this
805
# macro, additional text can be appended to FILE to form the body of
806
# the child script. The macro ends with non-zero status if the
807
# file could not be fully written (such as if the disk is full).
808
m4_ifdef([AS_INIT_GENERATED],
809
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
810
[m4_defun([_LT_GENERATED_FILE_INIT],
811
[m4_require([AS_PREPARE])]dnl
812
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
814
cat >$1 <<_ASEOF || lt_write_fail=1
816
# Generated by $as_me.
818
SHELL=\${CONFIG_SHELL-$SHELL}
821
cat >>$1 <<\_ASEOF || lt_write_fail=1
824
exec AS_MESSAGE_FD>&1
826
test $lt_write_fail = 0 && chmod +x $1[]dnl
827
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
831
# This macro allows early generation of the libtool script (before
832
# AC_OUTPUT is called), incase it is used in configure for compilation
834
AC_DEFUN([LT_OUTPUT],
835
[: ${CONFIG_LT=./config.lt}
836
AC_MSG_NOTICE([creating $CONFIG_LT])
837
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
838
[# Run this file to recreate a libtool stub with the current configuration.])
840
cat >>"$CONFIG_LT" <<\_LTEOF
842
exec AS_MESSAGE_LOG_FD>>config.log
845
AS_BOX([Running $as_me.])
846
} >&AS_MESSAGE_LOG_FD
849
\`$as_me' creates a local libtool stub from the current configuration,
850
for use in further configure time tests before the real libtool is
853
Usage: $[0] [[OPTIONS]]
855
-h, --help print this help, then exit
856
-V, --version print version number, then exit
857
-q, --quiet do not print progress messages
858
-d, --debug don't remove temporary files
860
Report bugs to <bug-libtool@gnu.org>."
863
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
864
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
865
configured by $[0], generated by m4_PACKAGE_STRING.
867
Copyright (C) 2010 Free Software Foundation, Inc.
868
This config.lt script is free software; the Free Software Foundation
869
gives unlimited permision to copy, distribute and modify it."
874
--version | --v* | -V )
875
echo "$lt_cl_version"; exit 0 ;;
877
echo "$lt_cl_help"; exit 0 ;;
878
--debug | --d* | -d )
880
--quiet | --q* | --silent | --s* | -q )
883
-*) AC_MSG_ERROR([unrecognized option: $[1]
884
Try \`$[0] --help' for more information.]) ;;
886
*) AC_MSG_ERROR([unrecognized argument: $[1]
887
Try \`$[0] --help' for more information.]) ;;
892
if $lt_cl_silent; then
893
exec AS_MESSAGE_FD>/dev/null
897
cat >>"$CONFIG_LT" <<_LTEOF
898
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
901
cat >>"$CONFIG_LT" <<\_LTEOF
902
AC_MSG_NOTICE([creating $ofile])
903
_LT_OUTPUT_LIBTOOL_COMMANDS
906
chmod +x "$CONFIG_LT"
908
# configure is writing to config.log, but config.lt does its own redirection,
909
# appending to config.log, which fails on DOS, as config.log is still kept
910
# open by configure. Here we exec the FD to /dev/null, effectively closing
911
# config.log, so it can be properly (re)opened and appended to by config.lt.
913
test "$silent" = yes &&
914
lt_config_lt_args="$lt_config_lt_args --quiet"
915
exec AS_MESSAGE_LOG_FD>/dev/null
916
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
917
exec AS_MESSAGE_LOG_FD>>config.log
918
$lt_cl_success || AS_EXIT(1)
924
# If TAG is the built-in tag, create an initial libtool script with a
925
# default configuration from the untagged config vars. Otherwise add code
926
# to config.status for appending the configuration named by TAG from the
927
# matching tagged config vars.
928
m4_defun([_LT_CONFIG],
929
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
930
_LT_CONFIG_SAVE_COMMANDS([
931
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
932
m4_if(_LT_TAG, [C], [
933
# See if we are running on zsh, and set the options which allow our
934
# commands through without removal of \ escapes.
935
if test -n "${ZSH_VERSION+set}" ; then
940
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
943
cat <<_LT_EOF >> "$cfgfile"
946
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
947
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
948
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
949
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
954
# ### BEGIN LIBTOOL CONFIG
955
_LT_LIBTOOL_CONFIG_VARS
957
# ### END LIBTOOL CONFIG
963
cat <<\_LT_EOF >> "$cfgfile"
964
# AIX sometimes has problems with the GCC collect2 program. For some
965
# reason, if we set the COLLECT_NAMES environment variable, the problems
966
# vanish in a puff of smoke.
967
if test "X${COLLECT_NAMES+set}" != Xset; then
977
# We use sed instead of cat because bash on DJGPP gets confused if
978
# if finds mixed CR/LF and LF-only lines. Since sed operates in
979
# text mode, it properly converts lines to CR/LF. This bash problem
980
# is reportedly fixed, but why not run on old versions too?
981
sed '$q' "$ltmain" >> "$cfgfile" \
982
|| (rm -f "$cfgfile"; exit 1)
984
_LT_PROG_REPLACE_SHELLFNS
986
mv -f "$cfgfile" "$ofile" ||
987
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
990
[cat <<_LT_EOF >> "$ofile"
992
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
993
dnl in a comment (ie after a #).
994
# ### BEGIN LIBTOOL TAG CONFIG: $1
995
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
996
# ### END LIBTOOL TAG CONFIG: $1
1003
TIMESTAMP='$TIMESTAMP'
1005
ofile='$ofile'], [])
1006
])dnl /_LT_CONFIG_SAVE_COMMANDS
1010
# LT_SUPPORTED_TAG(TAG)
1011
# ---------------------
1012
# Trace this macro to discover what tags are supported by the libtool
1013
# --tag option, using:
1014
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1015
AC_DEFUN([LT_SUPPORTED_TAG], [])
1018
# C support is built-in for now
1019
m4_define([_LT_LANG_C_enabled], [])
1020
m4_define([_LT_TAGS], [])
1025
# Enable libtool support for the given language if not already enabled.
1027
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1030
[C++], [_LT_LANG(CXX)],
1031
[Java], [_LT_LANG(GCJ)],
1032
[Fortran 77], [_LT_LANG(F77)],
1033
[Fortran], [_LT_LANG(FC)],
1034
[Windows Resource], [_LT_LANG(RC)],
1035
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1037
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1041
# _LT_LANG(LANGNAME)
1042
# ------------------
1043
m4_defun([_LT_LANG],
1044
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1045
[LT_SUPPORTED_TAG([$1])dnl
1046
m4_append([_LT_TAGS], [$1 ])dnl
1047
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1048
_LT_LANG_$1_CONFIG($1)])dnl
1052
# _LT_LANG_DEFAULT_CONFIG
1053
# -----------------------
1054
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1055
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1057
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1059
AC_PROVIDE_IFELSE([AC_PROG_F77],
1061
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1063
AC_PROVIDE_IFELSE([AC_PROG_FC],
1065
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1067
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1068
dnl pulling things in needlessly.
1069
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1071
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1073
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1075
[m4_ifdef([AC_PROG_GCJ],
1076
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1077
m4_ifdef([A][M_PROG_GCJ],
1078
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1079
m4_ifdef([LT_PROG_GCJ],
1080
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1082
AC_PROVIDE_IFELSE([LT_PROG_RC],
1084
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1085
])# _LT_LANG_DEFAULT_CONFIG
1088
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1089
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1090
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1091
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1092
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1093
dnl aclocal-1.4 backwards compatibility:
1094
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1095
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1096
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1097
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1098
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1103
m4_defun([_LT_TAG_COMPILER],
1104
[AC_REQUIRE([AC_PROG_CC])dnl
1106
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1107
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1108
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1109
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1111
# If no C compiler was specified, use CC.
1114
# If no C compiler flags were specified, use CFLAGS.
1115
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1117
# Allow CC to be a program name with arguments.
1119
])# _LT_TAG_COMPILER
1122
# _LT_COMPILER_BOILERPLATE
1123
# ------------------------
1124
# Check for compiler boilerplate output or warnings with
1125
# the simple compiler test code.
1126
m4_defun([_LT_COMPILER_BOILERPLATE],
1127
[m4_require([_LT_DECL_SED])dnl
1128
ac_outfile=conftest.$ac_objext
1129
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1130
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1131
_lt_compiler_boilerplate=`cat conftest.err`
1133
])# _LT_COMPILER_BOILERPLATE
1136
# _LT_LINKER_BOILERPLATE
1137
# ----------------------
1138
# Check for linker boilerplate output or warnings with
1139
# the simple link test code.
1140
m4_defun([_LT_LINKER_BOILERPLATE],
1141
[m4_require([_LT_DECL_SED])dnl
1142
ac_outfile=conftest.$ac_objext
1143
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1144
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1145
_lt_linker_boilerplate=`cat conftest.err`
1147
])# _LT_LINKER_BOILERPLATE
1149
# _LT_REQUIRED_DARWIN_CHECKS
1150
# -------------------------
1151
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1153
rhapsody* | darwin*)
1154
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1155
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1156
AC_CHECK_TOOL([LIPO], [lipo], [:])
1157
AC_CHECK_TOOL([OTOOL], [otool], [:])
1158
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1159
_LT_DECL([], [DSYMUTIL], [1],
1160
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1161
_LT_DECL([], [NMEDIT], [1],
1162
[Tool to change global to local symbols on Mac OS X])
1163
_LT_DECL([], [LIPO], [1],
1164
[Tool to manipulate fat objects and archives on Mac OS X])
1165
_LT_DECL([], [OTOOL], [1],
1166
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
1167
_LT_DECL([], [OTOOL64], [1],
1168
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1170
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1171
[lt_cv_apple_cc_single_mod=no
1172
if test -z "${LT_MULTI_MODULE}"; then
1173
# By default we will add the -single_module flag. You can override
1174
# by either setting the environment variable LT_MULTI_MODULE
1175
# non-empty at configure time, or by adding -multi_module to the
1177
rm -rf libconftest.dylib*
1178
echo "int foo(void){return 1;}" > conftest.c
1179
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1180
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1181
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1182
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1184
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1185
lt_cv_apple_cc_single_mod=yes
1187
cat conftest.err >&AS_MESSAGE_LOG_FD
1189
rm -rf libconftest.dylib*
1192
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1193
[lt_cv_ld_exported_symbols_list],
1194
[lt_cv_ld_exported_symbols_list=no
1195
save_LDFLAGS=$LDFLAGS
1196
echo "_main" > conftest.sym
1197
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1198
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1199
[lt_cv_ld_exported_symbols_list=yes],
1200
[lt_cv_ld_exported_symbols_list=no])
1201
LDFLAGS="$save_LDFLAGS"
1203
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1204
[lt_cv_ld_force_load=no
1205
cat > conftest.c << _LT_EOF
1206
int forced_loaded() { return 2;}
1208
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1209
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1210
echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1211
$AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1212
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1213
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1214
cat > conftest.c << _LT_EOF
1215
int main() { return 0;}
1217
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1218
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1220
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1221
lt_cv_ld_force_load=yes
1223
cat conftest.err >&AS_MESSAGE_LOG_FD
1225
rm -f conftest.err libconftest.a conftest conftest.c
1226
rm -rf conftest.dSYM
1229
rhapsody* | darwin1.[[012]])
1230
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1232
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1233
darwin*) # darwin 5.x on
1234
# if running on 10.5 or later, the deployment target defaults
1235
# to the OS version, if on x86, and 10.4, the deployment
1236
# target defaults to 10.4. Don't you love it?
1237
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1238
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1239
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1241
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1243
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1247
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1248
_lt_dar_single_mod='$single_module'
1250
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1251
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1253
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1255
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1256
_lt_dsymutil='~$DSYMUTIL $lib || :'
1265
# _LT_DARWIN_LINKER_FEATURES
1266
# --------------------------
1267
# Checks for linker and compiler features on darwin
1268
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1270
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1271
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
1272
_LT_TAGVAR(hardcode_direct, $1)=no
1273
_LT_TAGVAR(hardcode_automatic, $1)=yes
1274
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1275
if test "$lt_cv_ld_force_load" = "yes"; then
1276
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1278
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1280
_LT_TAGVAR(link_all_deplibs, $1)=yes
1281
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1282
case $cc_basename in
1283
ifort*) _lt_dar_can_shared=yes ;;
1284
*) _lt_dar_can_shared=$GCC ;;
1286
if test "$_lt_dar_can_shared" = "yes"; then
1287
output_verbose_link_cmd=func_echo_all
1288
_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1289
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1290
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1291
_LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1293
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1294
_LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1295
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1299
_LT_TAGVAR(ld_shlibs, $1)=no
1303
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1304
# ----------------------------------
1305
# Links a minimal program and checks the executable
1306
# for the system default hardcoded library path. In most cases,
1307
# this is /usr/lib:/lib, but when the MPI compilers are used
1308
# the location of the communication and MPI libs are included too.
1309
# If we don't find anything, use the default library path according
1310
# to the aix ld manual.
1311
# Store the results from the different compilers for each TAGNAME.
1312
# Allow to override them for all tags through lt_cv_aix_libpath.
1313
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1314
[m4_require([_LT_DECL_SED])dnl
1315
if test "${lt_cv_aix_libpath+set}" = set; then
1316
aix_libpath=$lt_cv_aix_libpath
1318
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1319
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1320
lt_aix_libpath_sed='[
1321
/Import File Strings/,/^$/ {
1323
s/^0 *\([^ ]*\) *$/\1/
1327
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1328
# Check for a 64-bit object if we didn't find anything.
1329
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1330
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1332
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1333
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1336
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1338
])# _LT_SYS_MODULE_PATH_AIX
1341
# _LT_SHELL_INIT(ARG)
1342
# -------------------
1343
m4_define([_LT_SHELL_INIT],
1344
[m4_divert_text([M4SH-INIT], [$1
1345
])])# _LT_SHELL_INIT
1349
# _LT_PROG_ECHO_BACKSLASH
1350
# -----------------------
1351
# Find how we can fake an echo command that does not interpret backslash.
1352
# In particular, with Autoconf 2.60 or later we add some code to the start
1353
# of the generated configure script which will find a shell with a builtin
1354
# printf (which we can use as an echo command).
1355
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1356
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1357
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1358
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1360
AC_MSG_CHECKING([how to print strings])
1361
# Test print first, because it will be a builtin if present.
1362
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1363
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1365
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1368
# Use this function as a fallback that always works.
1369
func_fallback_echo ()
1371
eval 'cat <<_LTECHO_EOF
1375
ECHO='func_fallback_echo'
1378
# func_echo_all arg...
1379
# Invoke $ECHO with all args, space-separated.
1386
printf*) AC_MSG_RESULT([printf]) ;;
1387
print*) AC_MSG_RESULT([print -r]) ;;
1388
*) AC_MSG_RESULT([cat]) ;;
1391
m4_ifdef([_AS_DETECT_SUGGESTED],
1392
[_AS_DETECT_SUGGESTED([
1393
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1394
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1395
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1396
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1397
PATH=/empty FPATH=/empty; export PATH FPATH
1398
test "X`printf %s $ECHO`" = "X$ECHO" \
1399
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1401
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1402
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1403
])# _LT_PROG_ECHO_BACKSLASH
1408
AC_DEFUN([_LT_WITH_SYSROOT],
1409
[AC_MSG_CHECKING([for sysroot])
1410
AC_ARG_WITH([sysroot],
1411
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1412
(or the compiler's sysroot if not specified).],
1413
[], [with_sysroot=no])
1415
dnl lt_sysroot will always be passed unquoted. We quote it here
1416
dnl in case the user passed a directory name.
1418
case ${with_sysroot} in #(
1420
if test "$GCC" = yes; then
1421
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1425
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1430
AC_MSG_RESULT([${with_sysroot}])
1431
AC_MSG_ERROR([The sysroot must be an absolute path.])
1435
AC_MSG_RESULT([${lt_sysroot:-no}])
1436
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1437
[dependent libraries, and in which our libraries should be installed.])])
1441
m4_defun([_LT_ENABLE_LOCK],
1442
[AC_ARG_ENABLE([libtool-lock],
1443
[AS_HELP_STRING([--disable-libtool-lock],
1444
[avoid locking (might break parallel builds)])])
1445
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1447
# Some flags need to be propagated to the compiler or linker for good
1451
# Find out which ABI we are using.
1452
echo 'int i;' > conftest.$ac_ext
1453
if AC_TRY_EVAL(ac_compile); then
1454
case `/usr/bin/file conftest.$ac_objext` in
1466
# Find out which ABI we are using.
1467
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1468
if AC_TRY_EVAL(ac_compile); then
1469
if test "$lt_cv_prog_gnu_ld" = yes; then
1470
case `/usr/bin/file conftest.$ac_objext` in
1472
LD="${LD-ld} -melf32bsmip"
1475
LD="${LD-ld} -melf32bmipn32"
1478
LD="${LD-ld} -melf64bmip"
1482
case `/usr/bin/file conftest.$ac_objext` in
1498
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1499
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1500
# Find out which ABI we are using.
1501
echo 'int i;' > conftest.$ac_ext
1502
if AC_TRY_EVAL(ac_compile); then
1503
case `/usr/bin/file conftest.o` in
1506
x86_64-*kfreebsd*-gnu)
1507
LD="${LD-ld} -m elf_i386_fbsd"
1510
LD="${LD-ld} -m elf_i386"
1512
ppc64-*linux*|powerpc64-*linux*)
1513
LD="${LD-ld} -m elf32ppclinux"
1516
LD="${LD-ld} -m elf_s390"
1519
LD="${LD-ld} -m elf32_sparc"
1525
x86_64-*kfreebsd*-gnu)
1526
LD="${LD-ld} -m elf_x86_64_fbsd"
1529
LD="${LD-ld} -m elf_x86_64"
1531
ppc*-*linux*|powerpc*-*linux*)
1532
LD="${LD-ld} -m elf64ppc"
1534
s390*-*linux*|s390*-*tpf*)
1535
LD="${LD-ld} -m elf64_s390"
1538
LD="${LD-ld} -m elf64_sparc"
1548
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1549
SAVE_CFLAGS="$CFLAGS"
1550
CFLAGS="$CFLAGS -belf"
1551
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1553
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1555
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1556
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1557
CFLAGS="$SAVE_CFLAGS"
1561
# Find out which ABI we are using.
1562
echo 'int i;' > conftest.$ac_ext
1563
if AC_TRY_EVAL(ac_compile); then
1564
case `/usr/bin/file conftest.o` in
1566
case $lt_cv_prog_gnu_ld in
1567
yes*) LD="${LD-ld} -m elf64_sparc" ;;
1569
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1581
need_locks="$enable_libtool_lock"
1587
m4_defun([_LT_PROG_AR],
1588
[AC_CHECK_TOOLS(AR, [ar], false)
1591
_LT_DECL([], [AR], [1], [The archiver])
1592
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1594
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1595
[lt_cv_ar_at_file=no
1596
AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1597
[echo conftest.$ac_objext > conftest.lst
1598
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1599
AC_TRY_EVAL([lt_ar_try])
1600
if test "$ac_status" -eq 0; then
1601
# Ensure the archiver fails upon bogus file names.
1602
rm -f conftest.$ac_objext libconftest.a
1603
AC_TRY_EVAL([lt_ar_try])
1604
if test "$ac_status" -ne 0; then
1608
rm -f conftest.* libconftest.a
1612
if test "x$lt_cv_ar_at_file" = xno; then
1615
archiver_list_spec=$lt_cv_ar_at_file
1617
_LT_DECL([], [archiver_list_spec], [1],
1618
[How to feed a file listing to the archiver])
1622
# _LT_CMD_OLD_ARCHIVE
1623
# -------------------
1624
m4_defun([_LT_CMD_OLD_ARCHIVE],
1627
AC_CHECK_TOOL(STRIP, strip, :)
1628
test -z "$STRIP" && STRIP=:
1629
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1631
AC_CHECK_TOOL(RANLIB, ranlib, :)
1632
test -z "$RANLIB" && RANLIB=:
1633
_LT_DECL([], [RANLIB], [1],
1634
[Commands used to install an old-style archive])
1636
# Determine commands to create old-style static archives.
1637
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1638
old_postinstall_cmds='chmod 644 $oldlib'
1639
old_postuninstall_cmds=
1641
if test -n "$RANLIB"; then
1644
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1647
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1650
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1655
lock_old_archive_extraction=yes ;;
1657
lock_old_archive_extraction=no ;;
1659
_LT_DECL([], [old_postinstall_cmds], [2])
1660
_LT_DECL([], [old_postuninstall_cmds], [2])
1661
_LT_TAGDECL([], [old_archive_cmds], [2],
1662
[Commands used to build an old-style archive])
1663
_LT_DECL([], [lock_old_archive_extraction], [0],
1664
[Whether to use a lock for old archive extraction])
1665
])# _LT_CMD_OLD_ARCHIVE
1668
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1669
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1670
# ----------------------------------------------------------------
1671
# Check whether the given compiler option works
1672
AC_DEFUN([_LT_COMPILER_OPTION],
1673
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1674
m4_require([_LT_DECL_SED])dnl
1675
AC_CACHE_CHECK([$1], [$2],
1677
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1678
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1679
lt_compiler_flag="$3"
1680
# Insert the option either (1) after the last *FLAGS variable, or
1681
# (2) before a word containing "conftest.", or (3) at the end.
1682
# Note that $ac_compile itself does not contain backslashes and begins
1683
# with a dollar sign (not a hyphen), so the echo should work correctly.
1684
# The option is referenced via a variable to avoid confusing sed.
1685
lt_compile=`echo "$ac_compile" | $SED \
1686
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1687
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1688
-e 's:$: $lt_compiler_flag:'`
1689
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1690
(eval "$lt_compile" 2>conftest.err)
1692
cat conftest.err >&AS_MESSAGE_LOG_FD
1693
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1694
if (exit $ac_status) && test -s "$ac_outfile"; then
1695
# The compiler can only warn and ignore the option if not recognized
1696
# So say no if there are warnings other than the usual output.
1697
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1698
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1699
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1706
if test x"[$]$2" = xyes; then
1707
m4_if([$5], , :, [$5])
1709
m4_if([$6], , :, [$6])
1711
])# _LT_COMPILER_OPTION
1714
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1715
dnl aclocal-1.4 backwards compatibility:
1716
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1719
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1720
# [ACTION-SUCCESS], [ACTION-FAILURE])
1721
# ----------------------------------------------------
1722
# Check whether the given linker option works
1723
AC_DEFUN([_LT_LINKER_OPTION],
1724
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1725
m4_require([_LT_DECL_SED])dnl
1726
AC_CACHE_CHECK([$1], [$2],
1728
save_LDFLAGS="$LDFLAGS"
1729
LDFLAGS="$LDFLAGS $3"
1730
echo "$lt_simple_link_test_code" > conftest.$ac_ext
1731
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1732
# The linker can only warn and ignore the option if not recognized
1733
# So say no if there are warnings
1734
if test -s conftest.err; then
1735
# Append any errors to the config.log.
1736
cat conftest.err 1>&AS_MESSAGE_LOG_FD
1737
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1738
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1739
if diff conftest.exp conftest.er2 >/dev/null; then
1747
LDFLAGS="$save_LDFLAGS"
1750
if test x"[$]$2" = xyes; then
1751
m4_if([$4], , :, [$4])
1753
m4_if([$5], , :, [$5])
1755
])# _LT_LINKER_OPTION
1758
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1759
dnl aclocal-1.4 backwards compatibility:
1760
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1765
AC_DEFUN([LT_CMD_MAX_LEN],
1766
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1767
# find the maximum length of command line arguments
1768
AC_MSG_CHECKING([the maximum length of command line arguments])
1769
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1775
# On DJGPP, this test can blow up pretty badly due to problems in libc
1776
# (any single argument exceeding 2000 bytes causes a buffer overrun
1777
# during glob expansion). Even if it were fixed, the result of this
1778
# check would be larger than it should be.
1779
lt_cv_sys_max_cmd_len=12288; # 12K is about right
1783
# Under GNU Hurd, this test is not required because there is
1784
# no limit to the length of command line arguments.
1785
# Libtool will interpret -1 as no limit whatsoever
1786
lt_cv_sys_max_cmd_len=-1;
1789
cygwin* | mingw* | cegcc*)
1790
# On Win9x/ME, this test blows up -- it succeeds, but takes
1791
# about 5 minutes as the teststring grows exponentially.
1792
# Worse, since 9x/ME are not pre-emptively multitasking,
1793
# you end up with a "frozen" computer, even though with patience
1794
# the test eventually succeeds (with a max line length of 256k).
1795
# Instead, let's just punt: use the minimum linelength reported by
1796
# all of the supported platforms: 8192 (on NT/2K/XP).
1797
lt_cv_sys_max_cmd_len=8192;
1801
# On MiNT this can take a long time and run out of memory.
1802
lt_cv_sys_max_cmd_len=8192;
1806
# On AmigaOS with pdksh, this test takes hours, literally.
1807
# So we just punt and use a minimum line length of 8192.
1808
lt_cv_sys_max_cmd_len=8192;
1811
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1812
# This has been around since 386BSD, at least. Likely further.
1813
if test -x /sbin/sysctl; then
1814
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1815
elif test -x /usr/sbin/sysctl; then
1816
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1818
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1820
# And add a safety zone
1821
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1822
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1826
# We know the value 262144 and hardcode it with a safety zone (like BSD)
1827
lt_cv_sys_max_cmd_len=196608
1831
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1832
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1833
# nice to cause kernel panics so lets avoid the loop below.
1834
# First set a reasonable default.
1835
lt_cv_sys_max_cmd_len=16384
1837
if test -x /sbin/sysconfig; then
1838
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1839
*1*) lt_cv_sys_max_cmd_len=-1 ;;
1844
lt_cv_sys_max_cmd_len=102400
1846
sysv5* | sco5v6* | sysv4.2uw2*)
1847
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1848
if test -n "$kargmax"; then
1849
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1851
lt_cv_sys_max_cmd_len=32768
1855
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1856
if test -n "$lt_cv_sys_max_cmd_len"; then
1857
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1858
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1860
# Make teststring a little bigger before we do anything with it.
1861
# a 1K string should be a reasonable start.
1862
for i in 1 2 3 4 5 6 7 8 ; do
1863
teststring=$teststring$teststring
1865
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1866
# If test is not a shell built-in, we'll probably end up computing a
1867
# maximum length that is only half of the actual maximum length, but
1869
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1870
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
1871
test $i != 17 # 1/2 MB should be enough
1874
teststring=$teststring$teststring
1876
# Only check the string length outside the loop.
1877
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1879
# Add a significant safety factor because C++ compilers can tack on
1880
# massive amounts of additional arguments before passing them to the
1881
# linker. It appears as though 1/2 is a usable value.
1882
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1887
if test -n $lt_cv_sys_max_cmd_len ; then
1888
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1892
max_cmd_len=$lt_cv_sys_max_cmd_len
1893
_LT_DECL([], [max_cmd_len], [0],
1894
[What is the maximum length of a command?])
1898
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1899
dnl aclocal-1.4 backwards compatibility:
1900
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1905
m4_defun([_LT_HEADER_DLFCN],
1906
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1907
])# _LT_HEADER_DLFCN
1910
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1911
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1912
# ----------------------------------------------------------------
1913
m4_defun([_LT_TRY_DLOPEN_SELF],
1914
[m4_require([_LT_HEADER_DLFCN])dnl
1915
if test "$cross_compiling" = yes; then :
1918
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1919
lt_status=$lt_dlunknown
1920
cat > conftest.$ac_ext <<_LT_EOF
1921
[#line $LINENO "configure"
1922
#include "confdefs.h"
1931
# define LT_DLGLOBAL RTLD_GLOBAL
1934
# define LT_DLGLOBAL DL_GLOBAL
1936
# define LT_DLGLOBAL 0
1940
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1941
find out it does not work in some platform. */
1942
#ifndef LT_DLLAZY_OR_NOW
1944
# define LT_DLLAZY_OR_NOW RTLD_LAZY
1947
# define LT_DLLAZY_OR_NOW DL_LAZY
1950
# define LT_DLLAZY_OR_NOW RTLD_NOW
1953
# define LT_DLLAZY_OR_NOW DL_NOW
1955
# define LT_DLLAZY_OR_NOW 0
1962
/* When -fvisbility=hidden is used, assume the code has been annotated
1963
correspondingly for the symbols needed. */
1964
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1965
int fnord () __attribute__((visibility("default")));
1968
int fnord () { return 42; }
1971
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1972
int status = $lt_dlunknown;
1976
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1979
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1980
else puts (dlerror ());
1982
/* dlclose (self); */
1990
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1991
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1994
x$lt_dlno_uscore) $1 ;;
1995
x$lt_dlneed_uscore) $2 ;;
1996
x$lt_dlunknown|x*) $3 ;;
1999
# compilation failed
2004
])# _LT_TRY_DLOPEN_SELF
2007
# LT_SYS_DLOPEN_SELF
2008
# ------------------
2009
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2010
[m4_require([_LT_HEADER_DLFCN])dnl
2011
if test "x$enable_dlopen" != xyes; then
2012
enable_dlopen=unknown
2013
enable_dlopen_self=unknown
2014
enable_dlopen_self_static=unknown
2021
lt_cv_dlopen="load_add_on"
2023
lt_cv_dlopen_self=yes
2026
mingw* | pw32* | cegcc*)
2027
lt_cv_dlopen="LoadLibrary"
2032
lt_cv_dlopen="dlopen"
2037
# if libdl is installed we need to link against it
2038
AC_CHECK_LIB([dl], [dlopen],
2039
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2042
lt_cv_dlopen_self=yes
2047
AC_CHECK_FUNC([shl_load],
2048
[lt_cv_dlopen="shl_load"],
2049
[AC_CHECK_LIB([dld], [shl_load],
2050
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2051
[AC_CHECK_FUNC([dlopen],
2052
[lt_cv_dlopen="dlopen"],
2053
[AC_CHECK_LIB([dl], [dlopen],
2054
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2055
[AC_CHECK_LIB([svld], [dlopen],
2056
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2057
[AC_CHECK_LIB([dld], [dld_link],
2058
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2067
if test "x$lt_cv_dlopen" != xno; then
2073
case $lt_cv_dlopen in
2075
save_CPPFLAGS="$CPPFLAGS"
2076
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2078
save_LDFLAGS="$LDFLAGS"
2079
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2082
LIBS="$lt_cv_dlopen_libs $LIBS"
2084
AC_CACHE_CHECK([whether a program can dlopen itself],
2085
lt_cv_dlopen_self, [dnl
2086
_LT_TRY_DLOPEN_SELF(
2087
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2088
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2091
if test "x$lt_cv_dlopen_self" = xyes; then
2092
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2093
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2094
lt_cv_dlopen_self_static, [dnl
2095
_LT_TRY_DLOPEN_SELF(
2096
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2097
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2101
CPPFLAGS="$save_CPPFLAGS"
2102
LDFLAGS="$save_LDFLAGS"
2107
case $lt_cv_dlopen_self in
2108
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2109
*) enable_dlopen_self=unknown ;;
2112
case $lt_cv_dlopen_self_static in
2113
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2114
*) enable_dlopen_self_static=unknown ;;
2117
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2118
[Whether dlopen is supported])
2119
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2120
[Whether dlopen of programs is supported])
2121
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2122
[Whether dlopen of statically linked programs is supported])
2123
])# LT_SYS_DLOPEN_SELF
2126
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2127
dnl aclocal-1.4 backwards compatibility:
2128
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2131
# _LT_COMPILER_C_O([TAGNAME])
2132
# ---------------------------
2133
# Check to see if options -c and -o are simultaneously supported by compiler.
2134
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2135
m4_defun([_LT_COMPILER_C_O],
2136
[m4_require([_LT_DECL_SED])dnl
2137
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2138
m4_require([_LT_TAG_COMPILER])dnl
2139
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2140
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2141
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2142
$RM -r conftest 2>/dev/null
2146
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2148
lt_compiler_flag="-o out/conftest2.$ac_objext"
2149
# Insert the option either (1) after the last *FLAGS variable, or
2150
# (2) before a word containing "conftest.", or (3) at the end.
2151
# Note that $ac_compile itself does not contain backslashes and begins
2152
# with a dollar sign (not a hyphen), so the echo should work correctly.
2153
lt_compile=`echo "$ac_compile" | $SED \
2154
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2155
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2156
-e 's:$: $lt_compiler_flag:'`
2157
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2158
(eval "$lt_compile" 2>out/conftest.err)
2160
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2161
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2162
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2164
# The compiler can only warn and ignore the option if not recognized
2165
# So say no if there are warnings
2166
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2167
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2168
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2169
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2172
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2174
# SGI C++ compiler will create directory out/ii_files/ for
2175
# template instantiation
2176
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2177
$RM out/* && rmdir out
2182
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2183
[Does compiler simultaneously support -c and -o options?])
2184
])# _LT_COMPILER_C_O
2187
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2188
# ----------------------------------
2189
# Check to see if we can do hard links to lock some files if needed
2190
m4_defun([_LT_COMPILER_FILE_LOCKS],
2191
[m4_require([_LT_ENABLE_LOCK])dnl
2192
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2193
_LT_COMPILER_C_O([$1])
2195
hard_links="nottested"
2196
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2197
# do not overwrite the value of need_locks provided by the user
2198
AC_MSG_CHECKING([if we can lock with hard links])
2201
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2203
ln conftest.a conftest.b 2>&5 || hard_links=no
2204
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2205
AC_MSG_RESULT([$hard_links])
2206
if test "$hard_links" = no; then
2207
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2213
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2214
])# _LT_COMPILER_FILE_LOCKS
2219
m4_defun([_LT_CHECK_OBJDIR],
2220
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2221
[rm -f .libs 2>/dev/null
2222
mkdir .libs 2>/dev/null
2223
if test -d .libs; then
2226
# MS-DOS does not allow filenames that begin with a dot.
2229
rmdir .libs 2>/dev/null])
2230
objdir=$lt_cv_objdir
2231
_LT_DECL([], [objdir], [0],
2232
[The name of the directory that contains temporary libtool files])dnl
2233
m4_pattern_allow([LT_OBJDIR])dnl
2234
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2235
[Define to the sub-directory in which libtool stores uninstalled libraries.])
2236
])# _LT_CHECK_OBJDIR
2239
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2240
# --------------------------------------
2241
# Check hardcoding attributes.
2242
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2243
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2244
_LT_TAGVAR(hardcode_action, $1)=
2245
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2246
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2247
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2249
# We can hardcode non-existent directories.
2250
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2251
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2252
# have to relink, otherwise we might link with an installed library
2253
# when we should be linking with a yet-to-be-installed one
2254
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2255
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2256
# Linking always hardcodes the temporary library directory.
2257
_LT_TAGVAR(hardcode_action, $1)=relink
2259
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2260
_LT_TAGVAR(hardcode_action, $1)=immediate
2263
# We cannot hardcode anything, or else we can only hardcode existing
2265
_LT_TAGVAR(hardcode_action, $1)=unsupported
2267
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2269
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2270
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2271
# Fast installation is not supported
2272
enable_fast_install=no
2273
elif test "$shlibpath_overrides_runpath" = yes ||
2274
test "$enable_shared" = no; then
2275
# Fast installation is not necessary
2276
enable_fast_install=needless
2278
_LT_TAGDECL([], [hardcode_action], [0],
2279
[How to hardcode a shared library path into an executable])
2280
])# _LT_LINKER_HARDCODE_LIBPATH
2285
m4_defun([_LT_CMD_STRIPLIB],
2286
[m4_require([_LT_DECL_EGREP])
2289
AC_MSG_CHECKING([whether stripping libraries is possible])
2290
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2291
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2292
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2293
AC_MSG_RESULT([yes])
2295
# FIXME - insert some real tests, host_os isn't really good enough
2298
if test -n "$STRIP" ; then
2299
striplib="$STRIP -x"
2300
old_striplib="$STRIP -S"
2301
AC_MSG_RESULT([yes])
2311
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2312
_LT_DECL([], [striplib], [1])
2313
])# _LT_CMD_STRIPLIB
2316
# _LT_SYS_DYNAMIC_LINKER([TAG])
2317
# -----------------------------
2318
# PORTME Fill in your ld.so characteristics
2319
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2320
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2321
m4_require([_LT_DECL_EGREP])dnl
2322
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2323
m4_require([_LT_DECL_OBJDUMP])dnl
2324
m4_require([_LT_DECL_SED])dnl
2325
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2326
AC_MSG_CHECKING([dynamic linker characteristics])
2329
if test "$GCC" = yes; then
2331
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2332
*) lt_awk_arg="/^libraries:/" ;;
2335
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2336
*) lt_sed_strip_eq="s,=/,/,g" ;;
2338
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2339
case $lt_search_path_spec in
2341
# if the path contains ";" then we assume it to be the separator
2342
# otherwise default to the standard path separator (i.e. ":") - it is
2343
# assumed that no part of a normal pathname contains ";" but that should
2344
# okay in the real world where ";" in dirpaths is itself problematic.
2345
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2348
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2351
# Ok, now we have the path, separated by spaces, we can step through it
2352
# and add multilib dir if necessary.
2353
lt_tmp_lt_search_path_spec=
2354
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2355
for lt_sys_path in $lt_search_path_spec; do
2356
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2357
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2359
test -d "$lt_sys_path" && \
2360
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2363
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2364
BEGIN {RS=" "; FS="/|\n";} {
2367
for (lt_i = NF; lt_i > 0; lt_i--) {
2368
if ($lt_i != "" && $lt_i != ".") {
2369
if ($lt_i == "..") {
2372
if (lt_count == 0) {
2373
lt_foo="/" $lt_i lt_foo;
2380
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2381
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2383
# AWK program above erroneously prepends '/' to C:/dos/paths
2386
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2387
$SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2389
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2391
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2394
libname_spec='lib$name'
2402
shlibpath_overrides_runpath=unknown
2404
dynamic_linker="$host_os ld.so"
2405
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2406
need_lib_prefix=unknown
2407
hardcode_into_libs=no
2409
# when you set need_version to no, make sure it does not cause -set_version
2410
# flags to be left without arguments
2411
need_version=unknown
2416
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2417
shlibpath_var=LIBPATH
2419
# AIX 3 has no versioning support, so we append a major version to the name.
2420
soname_spec='${libname}${release}${shared_ext}$major'
2427
hardcode_into_libs=yes
2428
if test "$host_cpu" = ia64; then
2429
# AIX 5 supports IA64
2430
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2431
shlibpath_var=LD_LIBRARY_PATH
2433
# With GCC up to 2.95.x, collect2 would create an import file
2434
# for dependence libraries. The import file would start with
2435
# the line `#! .'. This would cause the generated library to
2436
# depend on `.', always an invalid library. This was fixed in
2437
# development snapshots of GCC prior to 3.0.
2439
aix4 | aix4.[[01]] | aix4.[[01]].*)
2440
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2442
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2449
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2450
# soname into executable. Probably we can add versioning support to
2451
# collect2, so additional links can be useful in future.
2452
if test "$aix_use_runtimelinking" = yes; then
2453
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2454
# instead of lib<name>.a to let people know that these are not
2455
# typical AIX shared libraries.
2456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2458
# We preserve .a as extension for shared libraries through AIX4.2
2459
# and later when we are not doing run time linking.
2460
library_names_spec='${libname}${release}.a $libname.a'
2461
soname_spec='${libname}${release}${shared_ext}$major'
2463
shlibpath_var=LIBPATH
2470
# Since July 2007 AmigaOS4 officially supports .so libraries.
2471
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2475
library_names_spec='$libname.ixlibrary $libname.a'
2476
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2477
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
2483
library_names_spec='${libname}${shared_ext}'
2484
dynamic_linker="$host_os ld.so"
2485
shlibpath_var=LIBRARY_PATH
2491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2492
soname_spec='${libname}${release}${shared_ext}$major'
2493
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2494
shlibpath_var=LD_LIBRARY_PATH
2495
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2496
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2497
# the default ld.so.conf also contains /usr/contrib/lib and
2498
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2499
# libtool to hard-code these into programs
2502
cygwin* | mingw* | pw32* | cegcc*)
2503
version_type=windows
2508
case $GCC,$cc_basename in
2511
library_names_spec='$libname.dll.a'
2512
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2513
postinstall_cmds='base_file=`basename \${file}`~
2514
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2515
dldir=$destdir/`dirname \$dlpath`~
2516
test -d \$dldir || mkdir -p \$dldir~
2517
$install_prog $dir/$dlname \$dldir/$dlname~
2518
chmod a+x \$dldir/$dlname~
2519
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2520
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2522
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2523
dlpath=$dir/\$dldll~
2525
shlibpath_overrides_runpath=yes
2529
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2530
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2532
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2535
# MinGW DLLs use traditional 'lib' prefix
2536
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2539
# pw32 DLLs use 'pw' prefix rather than 'lib'
2540
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2543
dynamic_linker='Win32 ld.exe'
2548
libname_spec='$name'
2549
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2550
library_names_spec='${libname}.dll.lib'
2554
sys_lib_search_path_spec=
2560
# Let DOS variable expansion print the short 8.3 style file name.
2561
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2562
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2565
# Convert to MSYS style.
2566
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2569
# Convert to unix form, then to dos form, then back to unix form
2570
# but this time dos style (no spaces!) so that the unix form looks
2571
# like /cygdrive/c/PROGRA~1:/cygdr...
2572
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2573
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2574
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2577
sys_lib_search_path_spec="$LIB"
2578
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2579
# It is most probably a Windows format PATH.
2580
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2582
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2584
# FIXME: find the short name or the path components, as spaces are
2585
# common. (e.g. "Program Files" -> "PROGRA~1")
2589
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2590
postinstall_cmds='base_file=`basename \${file}`~
2591
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2592
dldir=$destdir/`dirname \$dlpath`~
2593
test -d \$dldir || mkdir -p \$dldir~
2594
$install_prog $dir/$dlname \$dldir/$dlname'
2595
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2596
dlpath=$dir/\$dldll~
2598
shlibpath_overrides_runpath=yes
2599
dynamic_linker='Win32 link.exe'
2603
# Assume MSVC wrapper
2604
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2605
dynamic_linker='Win32 ld.exe'
2608
# FIXME: first we should search . and the directory the executable is in
2612
darwin* | rhapsody*)
2613
dynamic_linker="$host_os dyld"
2617
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2618
soname_spec='${libname}${release}${major}$shared_ext'
2619
shlibpath_overrides_runpath=yes
2620
shlibpath_var=DYLD_LIBRARY_PATH
2621
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2623
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2624
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2632
soname_spec='${libname}${release}${shared_ext}$major'
2633
shlibpath_var=LD_LIBRARY_PATH
2640
freebsd* | dragonfly*)
2641
# DragonFly does not have aout. When/if they implement a new
2642
# versioning mechanism, adjust this.
2643
if test -x /usr/bin/objformat; then
2644
objformat=`/usr/bin/objformat`
2647
freebsd[[123]]*) objformat=aout ;;
2651
version_type=freebsd-$objformat
2652
case $version_type in
2654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2659
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2663
shlibpath_var=LD_LIBRARY_PATH
2666
shlibpath_overrides_runpath=yes
2668
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2669
shlibpath_overrides_runpath=yes
2670
hardcode_into_libs=yes
2672
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2673
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2674
shlibpath_overrides_runpath=no
2675
hardcode_into_libs=yes
2677
*) # from 4.6 on, and DragonFly
2678
shlibpath_overrides_runpath=yes
2679
hardcode_into_libs=yes
2688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2689
soname_spec='${libname}${release}${shared_ext}$major'
2690
shlibpath_var=LD_LIBRARY_PATH
2691
hardcode_into_libs=yes
2698
dynamic_linker="$host_os runtime_loader"
2699
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2700
soname_spec='${libname}${release}${shared_ext}$major'
2701
shlibpath_var=LIBRARY_PATH
2702
shlibpath_overrides_runpath=yes
2703
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2704
hardcode_into_libs=yes
2707
hpux9* | hpux10* | hpux11*)
2708
# Give a soname corresponding to the major version so that dld.sl refuses to
2709
# link against other versions.
2716
hardcode_into_libs=yes
2717
dynamic_linker="$host_os dld.so"
2718
shlibpath_var=LD_LIBRARY_PATH
2719
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2720
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2721
soname_spec='${libname}${release}${shared_ext}$major'
2722
if test "X$HPUX_IA64_MODE" = X32; then
2723
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2725
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2727
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2731
hardcode_into_libs=yes
2732
dynamic_linker="$host_os dld.sl"
2733
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2734
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2736
soname_spec='${libname}${release}${shared_ext}$major'
2737
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2738
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2742
dynamic_linker="$host_os dld.sl"
2743
shlibpath_var=SHLIB_PATH
2744
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2746
soname_spec='${libname}${release}${shared_ext}$major'
2749
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2750
postinstall_cmds='chmod 555 $lib'
2751
# or fails outright, so override atomically:
2752
install_override_mode=555
2759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2760
soname_spec='${libname}${release}${shared_ext}$major'
2761
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2762
shlibpath_var=LD_LIBRARY_PATH
2763
shlibpath_overrides_runpath=no
2764
hardcode_into_libs=yes
2767
irix5* | irix6* | nonstopux*)
2769
nonstopux*) version_type=nonstopux ;;
2771
if test "$lt_cv_prog_gnu_ld" = yes; then
2779
soname_spec='${libname}${release}${shared_ext}$major'
2780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2782
irix5* | nonstopux*)
2786
case $LD in # libtool.m4 will add one of these switches to LD
2787
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2788
libsuff= shlibsuff= libmagic=32-bit;;
2789
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2790
libsuff=32 shlibsuff=N32 libmagic=N32;;
2791
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2792
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2793
*) libsuff= shlibsuff= libmagic=never-match;;
2797
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2798
shlibpath_overrides_runpath=no
2799
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2800
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2801
hardcode_into_libs=yes
2804
# No shared lib support for Linux oldld, aout, or coff.
2805
linux*oldld* | linux*aout* | linux*coff*)
2809
# This must be Linux ELF.
2810
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2815
soname_spec='${libname}${release}${shared_ext}$major'
2816
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2817
shlibpath_var=LD_LIBRARY_PATH
2818
shlibpath_overrides_runpath=no
2820
# Some binutils ld are patched to set DT_RUNPATH
2821
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2822
[lt_cv_shlibpath_overrides_runpath=no
2823
save_LDFLAGS=$LDFLAGS
2825
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2826
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2827
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2828
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2829
[lt_cv_shlibpath_overrides_runpath=yes])])
2830
LDFLAGS=$save_LDFLAGS
2833
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2835
# This implies no fast_install, which is unacceptable.
2836
# Some rework will be needed to allow for fast_install
2837
# before this can be enabled.
2838
hardcode_into_libs=yes
2840
# Add ABI-specific directories to the system library path.
2841
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2843
# Append ld.so.conf contents to the search path
2844
if test -f /etc/ld.so.conf; then
2845
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;s/"//g;/^$/d' | tr '\n' ' '`
2846
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2850
# We used to test for /lib/ld.so.1 and disable shared libraries on
2851
# powerpc, because MkLinux only supported shared libraries with the
2852
# GNU dynamic linker. Since this was broken with cross compilers,
2853
# most powerpc-linux boxes support dynamic linking these days and
2854
# people can always --disable-shared, the test was removed, and we
2855
# assume the GNU/Linux dynamic linker is in use.
2856
dynamic_linker='GNU/Linux ld.so'
2863
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2865
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2866
dynamic_linker='NetBSD (a.out) ld.so'
2868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2869
soname_spec='${libname}${release}${shared_ext}$major'
2870
dynamic_linker='NetBSD ld.elf_so'
2872
shlibpath_var=LD_LIBRARY_PATH
2873
shlibpath_overrides_runpath=yes
2874
hardcode_into_libs=yes
2879
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2880
shlibpath_var=LD_LIBRARY_PATH
2881
shlibpath_overrides_runpath=yes
2888
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2889
soname_spec='${libname}${release}${shared_ext}$major'
2890
shlibpath_var=LD_LIBRARY_PATH
2891
shlibpath_overrides_runpath=no
2892
hardcode_into_libs=yes
2893
dynamic_linker='ldqnx.so'
2898
sys_lib_dlsearch_path_spec="/usr/lib"
2900
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2902
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2903
*) need_version=no ;;
2905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2906
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2907
shlibpath_var=LD_LIBRARY_PATH
2908
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2910
openbsd2.[[89]] | openbsd2.[[89]].*)
2911
shlibpath_overrides_runpath=no
2914
shlibpath_overrides_runpath=yes
2918
shlibpath_overrides_runpath=yes
2923
libname_spec='$name'
2926
library_names_spec='$libname${shared_ext} $libname.a'
2927
dynamic_linker='OS/2 ld.exe'
2928
shlibpath_var=LIBPATH
2931
osf3* | osf4* | osf5*)
2935
soname_spec='${libname}${release}${shared_ext}$major'
2936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2937
shlibpath_var=LD_LIBRARY_PATH
2938
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2939
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2950
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2951
soname_spec='${libname}${release}${shared_ext}$major'
2952
shlibpath_var=LD_LIBRARY_PATH
2953
shlibpath_overrides_runpath=yes
2954
hardcode_into_libs=yes
2955
# ldd complains unless libraries are executable
2956
postinstall_cmds='chmod +x $lib'
2961
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2962
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2963
shlibpath_var=LD_LIBRARY_PATH
2964
shlibpath_overrides_runpath=yes
2965
if test "$with_gnu_ld" = yes; then
2973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2974
soname_spec='${libname}${release}${shared_ext}$major'
2975
shlibpath_var=LD_LIBRARY_PATH
2976
case $host_vendor in
2978
shlibpath_overrides_runpath=no
2980
runpath_var=LD_RUN_PATH
2988
shlibpath_overrides_runpath=no
2989
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2995
if test -d /usr/nec ;then
2997
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2998
soname_spec='$libname${shared_ext}.$major'
2999
shlibpath_var=LD_LIBRARY_PATH
3003
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3004
version_type=freebsd-elf
3007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3008
soname_spec='${libname}${release}${shared_ext}$major'
3009
shlibpath_var=LD_LIBRARY_PATH
3010
shlibpath_overrides_runpath=yes
3011
hardcode_into_libs=yes
3012
if test "$with_gnu_ld" = yes; then
3013
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3015
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3018
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3022
sys_lib_dlsearch_path_spec='/usr/lib'
3026
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3031
shlibpath_var=LD_LIBRARY_PATH
3032
shlibpath_overrides_runpath=no
3033
hardcode_into_libs=yes
3038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3039
soname_spec='${libname}${release}${shared_ext}$major'
3040
shlibpath_var=LD_LIBRARY_PATH
3047
AC_MSG_RESULT([$dynamic_linker])
3048
test "$dynamic_linker" = no && can_build_shared=no
3050
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3051
if test "$GCC" = yes; then
3052
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3055
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3056
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3058
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3059
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3062
_LT_DECL([], [variables_saved_for_relink], [1],
3063
[Variables whose values should be saved in libtool wrapper scripts and
3064
restored at link time])
3065
_LT_DECL([], [need_lib_prefix], [0],
3066
[Do we need the "lib" prefix for modules?])
3067
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3068
_LT_DECL([], [version_type], [0], [Library versioning type])
3069
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3070
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3071
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3072
[Is shlibpath searched before the hard-coded library search path?])
3073
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3074
_LT_DECL([], [library_names_spec], [1],
3075
[[List of archive names. First name is the real one, the rest are links.
3076
The last name is the one that the linker finds with -lNAME]])
3077
_LT_DECL([], [soname_spec], [1],
3078
[[The coded name of the library, if different from the real name]])
3079
_LT_DECL([], [install_override_mode], [1],
3080
[Permission mode override for installation of shared libraries])
3081
_LT_DECL([], [postinstall_cmds], [2],
3082
[Command to use after installation of a shared archive])
3083
_LT_DECL([], [postuninstall_cmds], [2],
3084
[Command to use after uninstallation of a shared archive])
3085
_LT_DECL([], [finish_cmds], [2],
3086
[Commands used to finish a libtool library installation in a directory])
3087
_LT_DECL([], [finish_eval], [1],
3088
[[As "finish_cmds", except a single script fragment to be evaled but
3090
_LT_DECL([], [hardcode_into_libs], [0],
3091
[Whether we should hardcode library paths into libraries])
3092
_LT_DECL([], [sys_lib_search_path_spec], [2],
3093
[Compile-time system search path for libraries])
3094
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3095
[Run-time system search path for libraries])
3096
])# _LT_SYS_DYNAMIC_LINKER
3099
# _LT_PATH_TOOL_PREFIX(TOOL)
3100
# --------------------------
3101
# find a file program which can recognize shared library
3102
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3103
[m4_require([_LT_DECL_EGREP])dnl
3104
AC_MSG_CHECKING([for $1])
3105
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3107
[[\\/*] | ?:[\\/]*])
3108
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3111
lt_save_MAGIC_CMD="$MAGIC_CMD"
3112
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3113
dnl $ac_dummy forces splitting on constant user-supplied paths.
3114
dnl POSIX.2 word splitting is done only on the output of word expansions,
3115
dnl not every word. This closes a longstanding sh security hole.
3116
ac_dummy="m4_if([$2], , $PATH, [$2])"
3117
for ac_dir in $ac_dummy; do
3119
test -z "$ac_dir" && ac_dir=.
3120
if test -f $ac_dir/$1; then
3121
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3122
if test -n "$file_magic_test_file"; then
3123
case $deplibs_check_method in
3125
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3126
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3127
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3128
$EGREP "$file_magic_regex" > /dev/null; then
3133
*** Warning: the command libtool uses to detect shared libraries,
3134
*** $file_magic_cmd, produces output that libtool cannot recognize.
3135
*** The result is that libtool may fail to recognize shared libraries
3136
*** as such. This will affect the creation of libtool libraries that
3137
*** depend on shared libraries, but programs linked with such libtool
3138
*** libraries will work regardless of this problem. Nevertheless, you
3139
*** may want to report the problem to your system manager and/or to
3140
*** bug-libtool@gnu.org
3150
MAGIC_CMD="$lt_save_MAGIC_CMD"
3153
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3154
if test -n "$MAGIC_CMD"; then
3155
AC_MSG_RESULT($MAGIC_CMD)
3159
_LT_DECL([], [MAGIC_CMD], [0],
3160
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
3161
])# _LT_PATH_TOOL_PREFIX
3164
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3165
dnl aclocal-1.4 backwards compatibility:
3166
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3171
# find a file program which can recognize a shared library
3172
m4_defun([_LT_PATH_MAGIC],
3173
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3174
if test -z "$lt_cv_path_MAGIC_CMD"; then
3175
if test -n "$ac_tool_prefix"; then
3176
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3186
# find the pathname to the GNU or non-GNU linker
3187
AC_DEFUN([LT_PATH_LD],
3188
[AC_REQUIRE([AC_PROG_CC])dnl
3189
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3190
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3191
m4_require([_LT_DECL_SED])dnl
3192
m4_require([_LT_DECL_EGREP])dnl
3193
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3195
AC_ARG_WITH([gnu-ld],
3196
[AS_HELP_STRING([--with-gnu-ld],
3197
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3198
[test "$withval" = no || with_gnu_ld=yes],
3199
[with_gnu_ld=no])dnl
3202
if test "$GCC" = yes; then
3203
# Check if gcc -print-prog-name=ld gives a path.
3204
AC_MSG_CHECKING([for ld used by $CC])
3207
# gcc leaves a trailing carriage return which upsets mingw
3208
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3210
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3213
# Accept absolute paths.
3214
[[\\/]]* | ?:[[\\/]]*)
3215
re_direlt='/[[^/]][[^/]]*/\.\./'
3216
# Canonicalize the pathname of ld
3217
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3218
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3219
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3221
test -z "$LD" && LD="$ac_prog"
3224
# If it fails, then pretend we aren't using GCC.
3228
# If it is relative, then search for the first ld in PATH.
3232
elif test "$with_gnu_ld" = yes; then
3233
AC_MSG_CHECKING([for GNU ld])
3235
AC_MSG_CHECKING([for non-GNU ld])
3237
AC_CACHE_VAL(lt_cv_path_LD,
3238
[if test -z "$LD"; then
3239
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3240
for ac_dir in $PATH; do
3242
test -z "$ac_dir" && ac_dir=.
3243
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3244
lt_cv_path_LD="$ac_dir/$ac_prog"
3245
# Check to see if the program is GNU ld. I'd rather use --version,
3246
# but apparently some variants of GNU ld only accept -v.
3247
# Break only if it was the GNU/non-GNU ld that we prefer.
3248
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3249
*GNU* | *'with BFD'*)
3250
test "$with_gnu_ld" != no && break
3253
test "$with_gnu_ld" != yes && break
3260
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3263
if test -n "$LD"; then
3268
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3272
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3276
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3277
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3278
dnl aclocal-1.4 backwards compatibility:
3279
dnl AC_DEFUN([AM_PROG_LD], [])
3280
dnl AC_DEFUN([AC_PROG_LD], [])
3285
m4_defun([_LT_PATH_LD_GNU],
3286
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3287
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3288
case `$LD -v 2>&1 </dev/null` in
3289
*GNU* | *'with BFD'*)
3290
lt_cv_prog_gnu_ld=yes
3293
lt_cv_prog_gnu_ld=no
3296
with_gnu_ld=$lt_cv_prog_gnu_ld
3302
# find reload flag for linker
3303
# -- PORTME Some linkers may need a different reload flag.
3304
m4_defun([_LT_CMD_RELOAD],
3305
[AC_CACHE_CHECK([for $LD option to reload object files],
3306
lt_cv_ld_reload_flag,
3307
[lt_cv_ld_reload_flag='-r'])
3308
reload_flag=$lt_cv_ld_reload_flag
3309
case $reload_flag in
3311
*) reload_flag=" $reload_flag" ;;
3313
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3315
cygwin* | mingw* | pw32* | cegcc*)
3316
if test "$GCC" != yes; then
3321
if test "$GCC" = yes; then
3322
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3324
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3328
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3329
_LT_TAGDECL([], [reload_cmds], [2])dnl
3333
# _LT_CHECK_MAGIC_METHOD
3334
# ----------------------
3335
# how to check for library dependencies
3336
# -- PORTME fill in with the dynamic library characteristics
3337
m4_defun([_LT_CHECK_MAGIC_METHOD],
3338
[m4_require([_LT_DECL_EGREP])
3339
m4_require([_LT_DECL_OBJDUMP])
3340
AC_CACHE_CHECK([how to recognize dependent libraries],
3341
lt_cv_deplibs_check_method,
3342
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3343
lt_cv_file_magic_test_file=
3344
lt_cv_deplibs_check_method='unknown'
3345
# Need to set the preceding variable on all platforms that support
3346
# interlibrary dependencies.
3347
# 'none' -- dependencies not supported.
3348
# `unknown' -- same as none, but documents that we really don't know.
3349
# 'pass_all' -- all dependencies passed with no checks.
3350
# 'test_compile' -- check by making test program.
3351
# 'file_magic [[regex]]' -- check by looking for files in library path
3352
# which responds to the $file_magic_cmd with a given extended regex.
3353
# If you have `file' or equivalent on your system and you're not sure
3354
# whether `pass_all' will *always* work, you probably want this one.
3358
lt_cv_deplibs_check_method=pass_all
3362
lt_cv_deplibs_check_method=pass_all
3366
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3367
lt_cv_file_magic_cmd='/usr/bin/file -L'
3368
lt_cv_file_magic_test_file=/shlib/libc.so
3372
# func_win32_libid is a shell function defined in ltmain.sh
3373
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3374
lt_cv_file_magic_cmd='func_win32_libid'
3378
# Base MSYS/MinGW do not provide the 'file' command needed by
3379
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3380
# unless we find 'file', for example because we are cross-compiling.
3381
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3382
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3383
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3384
lt_cv_file_magic_cmd='func_win32_libid'
3386
# Keep this pattern in sync with the one in func_win32_libid.
3387
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3388
lt_cv_file_magic_cmd='$OBJDUMP -f'
3393
# use the weaker test based on 'objdump'. See mingw*.
3394
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3395
lt_cv_file_magic_cmd='$OBJDUMP -f'
3398
darwin* | rhapsody*)
3399
lt_cv_deplibs_check_method=pass_all
3402
freebsd* | dragonfly*)
3403
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3406
# Not sure whether the presence of OpenBSD here was a mistake.
3407
# Let's accept both of them until this is cleared up.
3408
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3409
lt_cv_file_magic_cmd=/usr/bin/file
3410
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3414
lt_cv_deplibs_check_method=pass_all
3419
lt_cv_deplibs_check_method=pass_all
3423
lt_cv_deplibs_check_method=pass_all
3426
hpux10.20* | hpux11*)
3427
lt_cv_file_magic_cmd=/usr/bin/file
3430
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3431
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3434
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3435
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3438
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3439
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3445
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3446
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3449
irix5* | irix6* | nonstopux*)
3451
*-32|*"-32 ") libmagic=32-bit;;
3452
*-n32|*"-n32 ") libmagic=N32;;
3453
*-64|*"-64 ") libmagic=64-bit;;
3454
*) libmagic=never-match;;
3456
lt_cv_deplibs_check_method=pass_all
3459
# This must be Linux ELF.
3460
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3461
lt_cv_deplibs_check_method=pass_all
3465
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3466
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3468
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3473
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3474
lt_cv_file_magic_cmd=/usr/bin/file
3475
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3479
lt_cv_deplibs_check_method=pass_all
3483
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3484
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3486
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3490
osf3* | osf4* | osf5*)
3491
lt_cv_deplibs_check_method=pass_all
3495
lt_cv_deplibs_check_method=pass_all
3499
lt_cv_deplibs_check_method=pass_all
3502
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3503
lt_cv_deplibs_check_method=pass_all
3507
case $host_vendor in
3509
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]]'
3510
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3513
lt_cv_deplibs_check_method=pass_all
3516
lt_cv_file_magic_cmd='/bin/file'
3517
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3520
lt_cv_file_magic_cmd='/bin/file'
3521
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3522
lt_cv_file_magic_test_file=/lib/libc.so
3525
lt_cv_deplibs_check_method=pass_all
3528
lt_cv_deplibs_check_method=pass_all
3534
lt_cv_deplibs_check_method=pass_all
3541
if test "$build" = "$host"; then
3544
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3547
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3553
file_magic_cmd=$lt_cv_file_magic_cmd
3554
deplibs_check_method=$lt_cv_deplibs_check_method
3555
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3557
_LT_DECL([], [deplibs_check_method], [1],
3558
[Method to check whether dependent libraries are shared objects])
3559
_LT_DECL([], [file_magic_cmd], [1],
3560
[Command to use when deplibs_check_method = "file_magic"])
3561
_LT_DECL([], [file_magic_glob], [1],
3562
[How to find potential files when deplibs_check_method = "file_magic"])
3563
_LT_DECL([], [want_nocaseglob], [1],
3564
[Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3565
])# _LT_CHECK_MAGIC_METHOD
3570
# find the pathname to a BSD- or MS-compatible name lister
3571
AC_DEFUN([LT_PATH_NM],
3572
[AC_REQUIRE([AC_PROG_CC])dnl
3573
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3574
[if test -n "$NM"; then
3575
# Let the user override the test.
3578
lt_nm_to_check="${ac_tool_prefix}nm"
3579
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3580
lt_nm_to_check="$lt_nm_to_check nm"
3582
for lt_tmp_nm in $lt_nm_to_check; do
3583
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3584
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3586
test -z "$ac_dir" && ac_dir=.
3587
tmp_nm="$ac_dir/$lt_tmp_nm"
3588
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3589
# Check to see if the nm accepts a BSD-compat flag.
3590
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3591
# nm: unknown option "B" ignored
3592
# Tru64's nm complains that /dev/null is an invalid object file
3593
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3594
*/dev/null* | *'Invalid file or object type'*)
3595
lt_cv_path_NM="$tmp_nm -B"
3599
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3601
lt_cv_path_NM="$tmp_nm -p"
3605
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3606
continue # so that we can try to find one that supports BSD flags
3615
: ${lt_cv_path_NM=no}
3617
if test "$lt_cv_path_NM" != "no"; then
3620
# Didn't find any BSD compatible name lister, look for dumpbin.
3621
if test -n "$DUMPBIN"; then :
3622
# Let the user override the test.
3624
AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3625
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3627
DUMPBIN="$DUMPBIN -symbols"
3635
if test "$DUMPBIN" != ":"; then
3639
test -z "$NM" && NM=nm
3641
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3643
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3644
[lt_cv_nm_interface="BSD nm"
3645
echo "int some_variable = 0;" > conftest.$ac_ext
3646
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3647
(eval "$ac_compile" 2>conftest.err)
3648
cat conftest.err >&AS_MESSAGE_LOG_FD
3649
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3650
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3651
cat conftest.err >&AS_MESSAGE_LOG_FD
3652
(eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3653
cat conftest.out >&AS_MESSAGE_LOG_FD
3654
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3655
lt_cv_nm_interface="MS dumpbin"
3661
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3662
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3663
dnl aclocal-1.4 backwards compatibility:
3664
dnl AC_DEFUN([AM_PROG_NM], [])
3665
dnl AC_DEFUN([AC_PROG_NM], [])
3667
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3668
# --------------------------------
3669
# how to determine the name of the shared library
3670
# associated with a specific link library.
3671
# -- PORTME fill in with the dynamic library characteristics
3672
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3673
[m4_require([_LT_DECL_EGREP])
3674
m4_require([_LT_DECL_OBJDUMP])
3675
m4_require([_LT_DECL_DLLTOOL])
3676
AC_CACHE_CHECK([how to associate runtime and link libraries],
3677
lt_cv_sharedlib_from_linklib_cmd,
3678
[lt_cv_sharedlib_from_linklib_cmd='unknown'
3681
cygwin* | mingw* | pw32* | cegcc*)
3682
# two different shell functions defined in ltmain.sh
3683
# decide which to use based on capabilities of $DLLTOOL
3684
case `$DLLTOOL --help 2>&1` in
3685
*--identify-strict*)
3686
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3689
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3694
# fallback: assume linklib IS sharedlib
3695
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3699
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3700
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3702
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3703
[Command to associate shared and link libraries])
3704
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3707
# _LT_PATH_MANIFEST_TOOL
3708
# ----------------------
3709
# locate the manifest tool
3710
m4_defun([_LT_PATH_MANIFEST_TOOL],
3711
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3712
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3713
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3714
[lt_cv_path_mainfest_tool=no
3715
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3716
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3717
cat conftest.err >&AS_MESSAGE_LOG_FD
3718
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3719
lt_cv_path_mainfest_tool=yes
3722
if test "x$lt_cv_path_mainfest_tool" != xyes; then
3725
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3726
])# _LT_PATH_MANIFEST_TOOL
3731
# check for math library
3732
AC_DEFUN([LT_LIB_M],
3733
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3736
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3737
# These system don't have libm, or don't need it
3740
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3741
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3744
AC_CHECK_LIB(m, cos, LIBM="-lm")
3751
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3752
dnl aclocal-1.4 backwards compatibility:
3753
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3756
# _LT_COMPILER_NO_RTTI([TAGNAME])
3757
# -------------------------------
3758
m4_defun([_LT_COMPILER_NO_RTTI],
3759
[m4_require([_LT_TAG_COMPILER])dnl
3761
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3763
if test "$GCC" = yes; then
3764
case $cc_basename in
3766
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3768
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3771
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3772
lt_cv_prog_compiler_rtti_exceptions,
3773
[-fno-rtti -fno-exceptions], [],
3774
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3776
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3777
[Compiler flag to turn off builtin functions])
3778
])# _LT_COMPILER_NO_RTTI
3781
# _LT_CMD_GLOBAL_SYMBOLS
3782
# ----------------------
3783
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3784
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3785
AC_REQUIRE([AC_PROG_CC])dnl
3786
AC_REQUIRE([AC_PROG_AWK])dnl
3787
AC_REQUIRE([LT_PATH_NM])dnl
3788
AC_REQUIRE([LT_PATH_LD])dnl
3789
m4_require([_LT_DECL_SED])dnl
3790
m4_require([_LT_DECL_EGREP])dnl
3791
m4_require([_LT_TAG_COMPILER])dnl
3793
# Check for command to grab the raw symbol name followed by C symbol from nm.
3794
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3795
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3797
# These are sane defaults that work on at least a few old systems.
3798
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3800
# Character class describing NM global symbol codes.
3801
symcode='[[BCDEGRST]]'
3803
# Regexp to match symbols that can be accessed directly from C.
3804
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3806
# Define system-specific variables.
3811
cygwin* | mingw* | pw32* | cegcc*)
3812
symcode='[[ABCDGISTW]]'
3815
if test "$host_cpu" = ia64; then
3816
symcode='[[ABCDEGRST]]'
3820
symcode='[[BCDEGRST]]'
3823
symcode='[[BCDEGQRST]]'
3834
sysv5* | sco5v6* | unixware* | OpenUNIX*)
3838
symcode='[[DFNSTU]]'
3842
# If we're using GNU nm, then use its standard symbol codes.
3843
case `$NM -V 2>&1` in
3844
*GNU* | *'with BFD'*)
3845
symcode='[[ABCDGIRSTW]]' ;;
3848
# Transform an extracted symbol line into a proper C declaration.
3849
# Some systems (esp. on ia64) link data and code symbols differently,
3850
# so use this general approach.
3851
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3853
# Transform an extracted symbol line into symbol name and symbol address
3854
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3855
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3857
# Handle CRLF in mingw tool chain
3861
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3865
# Try without a prefix underscore, then with it.
3866
for ac_symprfx in "" "_"; do
3868
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3869
symxfrm="\\1 $ac_symprfx\\2 \\2"
3871
# Write the raw and C identifiers.
3872
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3873
# Fake it for dumpbin and say T for any non-static function
3874
# and D for any global variable.
3875
# Also find C++ and __fastcall symbols from MSVC++,
3876
# which start with @ or ?.
3877
lt_cv_sys_global_symbol_pipe="$AWK ['"\
3878
" {last_section=section; section=\$ 3};"\
3879
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3880
" \$ 0!~/External *\|/{next};"\
3881
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3882
" {if(hide[section]) next};"\
3883
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3884
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3885
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
3886
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3887
" ' prfx=^$ac_symprfx]"
3889
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3891
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3893
# Check to see that the pipe works correctly.
3897
cat > conftest.$ac_ext <<_LT_EOF
3902
void nm_test_func(void);
3903
void nm_test_func(void){}
3907
int main(){nm_test_var='a';nm_test_func();return(0);}
3910
if AC_TRY_EVAL(ac_compile); then
3911
# Now try to grab the symbols.
3913
if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3914
# Try sorting and uniquifying the output.
3915
if sort "$nlist" | uniq > "$nlist"T; then
3916
mv -f "$nlist"T "$nlist"
3921
# Make sure that we snagged all the symbols we need.
3922
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3923
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3924
cat <<_LT_EOF > conftest.$ac_ext
3925
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3926
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3927
/* DATA imports from DLLs on WIN32 con't be const, because runtime
3928
relocations are performed -- see ld's documentation on pseudo-relocs. */
3929
# define LT@&t@_DLSYM_CONST
3930
#elif defined(__osf__)
3931
/* This system does not cope well with relocations in const data. */
3932
# define LT@&t@_DLSYM_CONST
3934
# define LT@&t@_DLSYM_CONST const
3942
# Now generate the symbol file.
3943
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3945
cat <<_LT_EOF >> conftest.$ac_ext
3947
/* The mapping between symbol names and symbols. */
3948
LT@&t@_DLSYM_CONST struct {
3952
lt__PROGRAM__LTX_preloaded_symbols[[]] =
3954
{ "@PROGRAM@", (void *) 0 },
3956
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3957
cat <<\_LT_EOF >> conftest.$ac_ext
3961
/* This works around a problem in FreeBSD linker */
3962
#ifdef FREEBSD_WORKAROUND
3963
static const void *lt_preloaded_setup() {
3964
return lt__PROGRAM__LTX_preloaded_symbols;
3972
# Now try linking the two files.
3973
mv conftest.$ac_objext conftstm.$ac_objext
3974
lt_globsym_save_LIBS=$LIBS
3975
lt_globsym_save_CFLAGS=$CFLAGS
3976
LIBS="conftstm.$ac_objext"
3977
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3978
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3981
LIBS=$lt_globsym_save_LIBS
3982
CFLAGS=$lt_globsym_save_CFLAGS
3984
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3987
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3990
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3993
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3994
cat conftest.$ac_ext >&5
3996
rm -rf conftest* conftst*
3998
# Do not use the global_symbol_pipe unless it works.
3999
if test "$pipe_works" = yes; then
4002
lt_cv_sys_global_symbol_pipe=
4006
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4007
lt_cv_sys_global_symbol_to_cdecl=
4009
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4010
AC_MSG_RESULT(failed)
4015
# Response file support.
4016
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4017
nm_file_list_spec='@'
4018
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4019
nm_file_list_spec='@'
4022
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4023
[Take the output of nm and produce a listing of raw symbols and C names])
4024
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4025
[Transform the output of nm in a proper C declaration])
4026
_LT_DECL([global_symbol_to_c_name_address],
4027
[lt_cv_sys_global_symbol_to_c_name_address], [1],
4028
[Transform the output of nm in a C name address pair])
4029
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4030
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4031
[Transform the output of nm in a C name address pair when lib prefix is needed])
4032
_LT_DECL([], [nm_file_list_spec], [1],
4033
[Specify filename containing input files for $NM])
4034
]) # _LT_CMD_GLOBAL_SYMBOLS
4037
# _LT_COMPILER_PIC([TAGNAME])
4038
# ---------------------------
4039
m4_defun([_LT_COMPILER_PIC],
4040
[m4_require([_LT_TAG_COMPILER])dnl
4041
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4042
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4043
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4045
m4_if([$1], [CXX], [
4046
# C++ specific cases for pic, static, wl, etc.
4047
if test "$GXX" = yes; then
4048
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4049
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4053
# All AIX code is PIC.
4054
if test "$host_cpu" = ia64; then
4055
# AIX 5 now supports IA64 processor
4056
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4063
# see comment about AmigaOS4 .so support
4064
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4067
# FIXME: we need at least 68020 code to build shared libraries, but
4068
# adding the `-m68020' flag to GCC prevents building anything better,
4070
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4075
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4076
# PIC is the default for these OSes.
4078
mingw* | cygwin* | os2* | pw32* | cegcc*)
4079
# This hack is so that the source file can tell whether it is being
4080
# built for inclusion in a dll (and should export symbols for example).
4081
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4082
# (--disable-auto-import) libraries
4083
m4_if([$1], [GCJ], [],
4084
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4086
darwin* | rhapsody*)
4087
# PIC is the default on this platform
4088
# Common symbols not allowed in MH_DYLIB files
4089
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4092
# DJGPP does not support shared libraries at all
4093
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4096
# PIC is the default for Haiku.
4097
# The "-static" flag exists, but is broken.
4098
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4101
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4102
# Instead, we relocate shared libraries at runtime.
4105
if test -d /usr/nec; then
4106
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4110
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4111
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4112
# sets the default TLS model and affects inlining.
4117
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4122
# QNX uses GNU C++, but need to define -shared option too, otherwise
4124
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4127
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4133
# All AIX code is PIC.
4134
if test "$host_cpu" = ia64; then
4135
# AIX 5 now supports IA64 processor
4136
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4138
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4142
case $cc_basename in
4144
# Green Hills C++ Compiler
4145
# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4149
mingw* | cygwin* | os2* | pw32* | cegcc*)
4150
# This hack is so that the source file can tell whether it is being
4151
# built for inclusion in a dll (and should export symbols for example).
4152
m4_if([$1], [GCJ], [],
4153
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4156
case $cc_basename in
4158
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4161
# Green Hills C++ Compiler
4162
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4168
freebsd* | dragonfly*)
4169
# FreeBSD uses GNU C++
4171
hpux9* | hpux10* | hpux11*)
4172
case $cc_basename in
4174
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4175
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4176
if test "$host_cpu" != ia64; then
4177
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4181
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4182
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4188
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4197
# This is c89, which is MS Visual C++ (no shared libs)
4198
# Anyone wants to do a port?
4200
irix5* | irix6* | nonstopux*)
4201
case $cc_basename in
4203
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4204
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4205
# CC pic flag -KPIC is the default.
4211
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4212
case $cc_basename in
4215
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4216
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4219
# old Intel C++ for x86_64 which still supported -KPIC.
4220
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4221
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4222
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4225
# Intel C++, used to be incompatible with GCC.
4226
# ICC 10 doesn't accept -KPIC any more.
4227
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4228
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4229
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4232
# Portland Group C++ compiler
4233
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4234
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4235
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4239
# Make sure the PIC flag is empty. It appears that all Alpha
4240
# Linux and Compaq Tru64 Unix objects are PIC.
4241
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4242
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4244
xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4245
# IBM XL 8.0, 9.0 on PPC and BlueGene
4246
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4247
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4248
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4251
case `$CC -V 2>&1 | sed 5q` in
4254
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4255
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4256
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4267
case $cc_basename in
4269
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4278
# QNX uses GNU C++, but need to define -shared option too, otherwise
4280
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4282
osf3* | osf4* | osf5*)
4283
case $cc_basename in
4285
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4288
# Rational C++ 2.4.1
4289
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4292
# Digital/Compaq C++
4293
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4294
# Make sure the PIC flag is empty. It appears that all Alpha
4295
# Linux and Compaq Tru64 Unix objects are PIC.
4296
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4297
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4306
case $cc_basename in
4308
# Sun C++ 4.2, 5.x and Centerline C++
4309
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4310
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4311
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4314
# Green Hills C++ Compiler
4315
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4322
case $cc_basename in
4325
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4326
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4330
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4336
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4337
case $cc_basename in
4339
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4340
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4341
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4346
case $cc_basename in
4348
# NonStop-UX NCC 3.20
4349
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4358
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4364
if test "$GCC" = yes; then
4365
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4366
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4370
# All AIX code is PIC.
4371
if test "$host_cpu" = ia64; then
4372
# AIX 5 now supports IA64 processor
4373
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4380
# see comment about AmigaOS4 .so support
4381
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4384
# FIXME: we need at least 68020 code to build shared libraries, but
4385
# adding the `-m68020' flag to GCC prevents building anything better,
4387
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4392
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4393
# PIC is the default for these OSes.
4396
mingw* | cygwin* | pw32* | os2* | cegcc*)
4397
# This hack is so that the source file can tell whether it is being
4398
# built for inclusion in a dll (and should export symbols for example).
4399
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4400
# (--disable-auto-import) libraries
4401
m4_if([$1], [GCJ], [],
4402
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4405
darwin* | rhapsody*)
4406
# PIC is the default on this platform
4407
# Common symbols not allowed in MH_DYLIB files
4408
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4412
# PIC is the default for Haiku.
4413
# The "-static" flag exists, but is broken.
4414
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4418
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4419
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4420
# sets the default TLS model and affects inlining.
4426
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4432
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4433
# Instead, we relocate shared libraries at runtime.
4437
# Just because we use GCC doesn't mean we suddenly get shared libraries
4438
# on systems that don't support them.
4439
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4444
# QNX uses GNU C++, but need to define -shared option too, otherwise
4446
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4450
if test -d /usr/nec; then
4451
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4456
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4460
case $cc_basename in
4461
nvcc*) # Cuda Compiler Driver 2.2
4462
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4463
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4467
# PORTME Check for flag to pass linker flags through the system compiler.
4470
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4471
if test "$host_cpu" = ia64; then
4472
# AIX 5 now supports IA64 processor
4473
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4475
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4479
mingw* | cygwin* | pw32* | os2* | cegcc*)
4480
# This hack is so that the source file can tell whether it is being
4481
# built for inclusion in a dll (and should export symbols for example).
4482
m4_if([$1], [GCJ], [],
4483
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4486
hpux9* | hpux10* | hpux11*)
4487
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4488
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4495
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4498
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4499
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4502
irix5* | irix6* | nonstopux*)
4503
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4504
# PIC (with -KPIC) is the default.
4505
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4508
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4509
case $cc_basename in
4510
# old Intel for x86_64 which still supported -KPIC.
4512
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4513
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4514
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4516
# icc used to be incompatible with GCC.
4517
# ICC 10 doesn't accept -KPIC any more.
4519
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4520
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4521
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4523
# Lahey Fortran 8.1.
4525
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4526
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4527
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4530
# NAG Fortran compiler
4531
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4532
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4533
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4535
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4536
# Portland Group compilers (*not* the Pentium gcc compiler,
4537
# which looks to be a dead project)
4538
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4539
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4540
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4543
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4544
# All Alpha code is PIC.
4545
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4547
xl* | bgxl* | bgf* | mpixl*)
4548
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4549
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4550
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4551
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4554
case `$CC -V 2>&1 | sed 5q` in
4555
*Sun\ F* | *Sun*Fortran*)
4556
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4557
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4558
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4559
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4563
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4564
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4565
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4573
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4574
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4578
# QNX uses GNU C++, but need to define -shared option too, otherwise
4580
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4583
osf3* | osf4* | osf5*)
4584
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4585
# All OSF/1 code is PIC.
4586
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4590
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4594
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4595
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4596
case $cc_basename in
4597
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4598
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4600
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4605
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4606
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4607
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4610
sysv4 | sysv4.2uw2* | sysv4.3*)
4611
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4612
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4613
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4617
if test -d /usr/nec ;then
4618
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4619
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4623
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4624
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4625
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4626
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4630
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4631
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4635
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4636
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4640
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4646
# For platforms which do not support PIC, -DPIC is meaningless:
4648
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4651
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4655
AC_CACHE_CHECK([for $compiler option to produce PIC],
4656
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4657
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4658
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4661
# Check to make sure the PIC flag actually works.
4663
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4664
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4665
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4666
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4667
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4669
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4671
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4672
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4674
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4675
[Additional compiler flags for building library objects])
4677
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4678
[How to pass a linker flag through the compiler])
4680
# Check to make sure the static flag actually works.
4682
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4683
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4684
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4685
$lt_tmp_static_flag,
4687
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4688
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4689
[Compiler flag to prevent dynamic linking])
4690
])# _LT_COMPILER_PIC
4693
# _LT_LINKER_SHLIBS([TAGNAME])
4694
# ----------------------------
4695
# See if the linker supports building shared libraries.
4696
m4_defun([_LT_LINKER_SHLIBS],
4697
[AC_REQUIRE([LT_PATH_LD])dnl
4698
AC_REQUIRE([LT_PATH_NM])dnl
4699
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4700
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4701
m4_require([_LT_DECL_EGREP])dnl
4702
m4_require([_LT_DECL_SED])dnl
4703
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4704
m4_require([_LT_TAG_COMPILER])dnl
4705
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4706
m4_if([$1], [CXX], [
4707
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4708
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4711
# If we're using GNU nm, then we don't want the "-C" option.
4712
# -C means demangle to AIX nm, but means don't demangle with GNU nm
4713
# Also, AIX nm treats weak defined symbols like other global defined
4714
# symbols, whereas GNU nm marks them as "W".
4715
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4716
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4718
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4722
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4724
cygwin* | mingw* | cegcc*)
4725
case $cc_basename in
4728
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4729
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4734
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4739
_LT_TAGVAR(allow_undefined_flag, $1)=
4740
_LT_TAGVAR(always_export_symbols, $1)=no
4741
_LT_TAGVAR(archive_cmds, $1)=
4742
_LT_TAGVAR(archive_expsym_cmds, $1)=
4743
_LT_TAGVAR(compiler_needs_object, $1)=no
4744
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4745
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4746
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4747
_LT_TAGVAR(hardcode_automatic, $1)=no
4748
_LT_TAGVAR(hardcode_direct, $1)=no
4749
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4750
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4751
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4752
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4753
_LT_TAGVAR(hardcode_minus_L, $1)=no
4754
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4755
_LT_TAGVAR(inherit_rpath, $1)=no
4756
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4757
_LT_TAGVAR(module_cmds, $1)=
4758
_LT_TAGVAR(module_expsym_cmds, $1)=
4759
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4760
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4761
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4762
_LT_TAGVAR(whole_archive_flag_spec, $1)=
4763
# include_expsyms should be a list of space-separated symbols to be *always*
4764
# included in the symbol list
4765
_LT_TAGVAR(include_expsyms, $1)=
4766
# exclude_expsyms can be an extended regexp of symbols to exclude
4767
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4768
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4769
# as well as any symbol that contains `d'.
4770
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4771
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4772
# platforms (ab)use it in PIC code, but their linkers get confused if
4773
# the symbol is explicitly referenced. Since portable code cannot
4774
# rely on this symbol name, it's probably fine to never include it in
4775
# preloaded symbol tables.
4776
# Exclude shared library initialization/finalization symbols.
4777
dnl Note also adjust exclude_expsyms for C++ above.
4778
extract_expsyms_cmds=
4781
cygwin* | mingw* | pw32* | cegcc*)
4782
# FIXME: the MSVC++ port hasn't been tested in a loooong time
4783
# When not using gcc, we currently assume that we are using
4784
# Microsoft Visual C++.
4785
if test "$GCC" != yes; then
4790
# we just hope/assume this is gcc and not c89 (= MSVC++)
4798
_LT_TAGVAR(ld_shlibs, $1)=yes
4800
# On some targets, GNU ld is compatible enough with the native linker
4801
# that we're better off using the native interface for both.
4802
lt_use_gnu_ld_interface=no
4803
if test "$with_gnu_ld" = yes; then
4806
# The AIX port of GNU ld has always aspired to compatibility
4807
# with the native linker. However, as the warning in the GNU ld
4808
# block says, versions before 2.19.5* couldn't really create working
4809
# shared libraries, regardless of the interface used.
4810
case `$LD -v 2>&1` in
4811
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4812
*\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4813
*\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4815
lt_use_gnu_ld_interface=yes
4820
lt_use_gnu_ld_interface=yes
4825
if test "$lt_use_gnu_ld_interface" = yes; then
4826
# If archive_cmds runs LD, not CC, wlarc should be empty
4829
# Set some defaults for GNU ld with shared library support. These
4830
# are reset later if shared libraries are not supported. Putting them
4831
# here allows them to be overridden if necessary.
4832
runpath_var=LD_RUN_PATH
4833
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4834
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4835
# ancient GNU ld didn't support --whole-archive et. al.
4836
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4837
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4839
_LT_TAGVAR(whole_archive_flag_spec, $1)=
4841
supports_anon_versioning=no
4842
case `$LD -v 2>&1` in
4843
*GNU\ gold*) supports_anon_versioning=yes ;;
4844
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4845
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4846
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4847
*\ 2.11.*) ;; # other 2.11 versions
4848
*) supports_anon_versioning=yes ;;
4851
# See if GNU ld supports shared libraries.
4854
# On AIX/PPC, the GNU linker is very broken
4855
if test "$host_cpu" != ia64; then
4856
_LT_TAGVAR(ld_shlibs, $1)=no
4859
*** Warning: the GNU linker, at least up to release 2.19, is reported
4860
*** to be unable to reliably create shared libraries on AIX.
4861
*** Therefore, libtool is disabling shared libraries support. If you
4862
*** really care for shared libraries, you may want to install binutils
4863
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4864
*** You will then need to restart the configuration process.
4873
# see comment about AmigaOS4 .so support
4874
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4875
_LT_TAGVAR(archive_expsym_cmds, $1)=''
4878
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4879
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4880
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4886
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4887
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4888
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4889
# support --undefined. This deserves some investigation. FIXME
4890
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4892
_LT_TAGVAR(ld_shlibs, $1)=no
4896
cygwin* | mingw* | pw32* | cegcc*)
4897
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4898
# as there is no search path for DLLs.
4899
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4900
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4901
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4902
_LT_TAGVAR(always_export_symbols, $1)=no
4903
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4904
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4905
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4907
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4908
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4909
# If the export-symbols file already is a .def file (1st line
4910
# is EXPORTS), use it as is; otherwise, prepend...
4911
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4912
cp $export_symbols $output_objdir/$soname.def;
4914
echo EXPORTS > $output_objdir/$soname.def;
4915
cat $export_symbols >> $output_objdir/$soname.def;
4917
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4919
_LT_TAGVAR(ld_shlibs, $1)=no
4924
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4925
_LT_TAGVAR(link_all_deplibs, $1)=yes
4929
_LT_TAGVAR(hardcode_direct, $1)=no
4930
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4931
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4932
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4933
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4934
# Instead, shared libraries are loaded at an image base (0x10000000 by
4935
# default) and relocated if they conflict, which is a slow very memory
4936
# consuming and fragmenting process. To avoid this, we pick a random,
4937
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4938
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4939
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4940
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4943
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4945
if test "$host_os" = linux-dietlibc; then
4946
case $cc_basename in
4947
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4950
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4951
&& test "$tmp_diet" = no
4953
tmp_addflag=' $pic_flag'
4954
tmp_sharedflag='-shared'
4955
case $cc_basename,$host_cpu in
4956
pgcc*) # Portland Group C compiler
4957
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4958
tmp_addflag=' $pic_flag'
4960
pgf77* | pgf90* | pgf95* | pgfortran*)
4961
# Portland Group f77 and f90 compilers
4962
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4963
tmp_addflag=' $pic_flag -Mnomain' ;;
4964
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4965
tmp_addflag=' -i_dynamic' ;;
4966
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4967
tmp_addflag=' -i_dynamic -nofor_main' ;;
4968
ifc* | ifort*) # Intel Fortran compiler
4969
tmp_addflag=' -nofor_main' ;;
4970
lf95*) # Lahey Fortran 8.1
4971
_LT_TAGVAR(whole_archive_flag_spec, $1)=
4972
tmp_sharedflag='--shared' ;;
4973
xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4974
tmp_sharedflag='-qmkshrobj'
4976
nvcc*) # Cuda Compiler Driver 2.2
4977
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4978
_LT_TAGVAR(compiler_needs_object, $1)=yes
4981
case `$CC -V 2>&1 | sed 5q` in
4982
*Sun\ C*) # Sun C 5.9
4983
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4984
_LT_TAGVAR(compiler_needs_object, $1)=yes
4985
tmp_sharedflag='-G' ;;
4986
*Sun\ F*) # Sun Fortran 8.3
4987
tmp_sharedflag='-G' ;;
4989
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4991
if test "x$supports_anon_versioning" = xyes; then
4992
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4993
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4994
echo "local: *; };" >> $output_objdir/$libname.ver~
4995
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4998
case $cc_basename in
4999
xlf* | bgf* | bgxlf* | mpixlf*)
5000
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5001
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5002
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5003
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5004
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5005
if test "x$supports_anon_versioning" = xyes; then
5006
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5007
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5008
echo "local: *; };" >> $output_objdir/$libname.ver~
5009
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5014
_LT_TAGVAR(ld_shlibs, $1)=no
5019
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5020
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5023
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5024
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5029
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5030
_LT_TAGVAR(ld_shlibs, $1)=no
5033
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5034
*** create shared libraries on Solaris systems. Therefore, libtool
5035
*** is disabling shared libraries support. We urge you to upgrade GNU
5036
*** binutils to release 2.9.1 or newer. Another option is to modify
5037
*** your PATH or compiler configuration so that the native linker is
5038
*** used, and then restart.
5041
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5042
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5043
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5045
_LT_TAGVAR(ld_shlibs, $1)=no
5049
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5050
case `$LD -v 2>&1` in
5051
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5052
_LT_TAGVAR(ld_shlibs, $1)=no
5055
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5056
*** reliably create shared libraries on SCO systems. Therefore, libtool
5057
*** is disabling shared libraries support. We urge you to upgrade GNU
5058
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5059
*** your PATH or compiler configuration so that the native linker is
5060
*** used, and then restart.
5065
# For security reasons, it is highly recommended that you always
5066
# use absolute paths for naming shared libraries, and exclude the
5067
# DT_RUNPATH tag from executables and libraries. But doing so
5068
# requires that you compile everything twice, which is a pain.
5069
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5070
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5071
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5072
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5074
_LT_TAGVAR(ld_shlibs, $1)=no
5081
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5083
_LT_TAGVAR(hardcode_direct, $1)=yes
5084
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5088
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5089
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5090
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5092
_LT_TAGVAR(ld_shlibs, $1)=no
5097
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5099
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5100
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5101
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5104
# PORTME fill in a description of your system's linker (not GNU ld)
5107
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5108
_LT_TAGVAR(always_export_symbols, $1)=yes
5109
_LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5110
# Note: this linker hardcodes the directories in LIBPATH if there
5111
# are no directories specified by -L.
5112
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5113
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5114
# Neither direct hardcoding nor static linking is supported with a
5116
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5121
if test "$host_cpu" = ia64; then
5122
# On IA64, the linker does run time linking by default, so we don't
5123
# have to do anything special.
5124
aix_use_runtimelinking=no
5125
exp_sym_flag='-Bexport'
5128
# If we're using GNU nm, then we don't want the "-C" option.
5129
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5130
# Also, AIX nm treats weak defined symbols like other global
5131
# defined symbols, whereas GNU nm marks them as "W".
5132
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5133
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5135
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5137
aix_use_runtimelinking=no
5139
# Test if we are trying to use run time linking or normal
5140
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5141
# need to do runtime linking.
5142
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5143
for ld_flag in $LDFLAGS; do
5144
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5145
aix_use_runtimelinking=yes
5152
exp_sym_flag='-bexport'
5153
no_entry_flag='-bnoentry'
5156
# When large executables or shared objects are built, AIX ld can
5157
# have problems creating the table of contents. If linking a library
5158
# or program results in "error TOC overflow" add -mminimal-toc to
5159
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5160
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5162
_LT_TAGVAR(archive_cmds, $1)=''
5163
_LT_TAGVAR(hardcode_direct, $1)=yes
5164
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5165
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5166
_LT_TAGVAR(link_all_deplibs, $1)=yes
5167
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5169
if test "$GCC" = yes; then
5170
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5171
# We only want to do this on AIX 4.2 and lower, the check
5172
# below for broken collect2 doesn't work under 4.3+
5173
collect2name=`${CC} -print-prog-name=collect2`
5174
if test -f "$collect2name" &&
5175
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5177
# We have reworked collect2
5180
# We have old collect2
5181
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5182
# It fails to find uninstalled libraries when the uninstalled
5183
# path is not listed in the libpath. Setting hardcode_minus_L
5184
# to unsupported forces relinking
5185
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5186
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5187
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5191
shared_flag='-shared'
5192
if test "$aix_use_runtimelinking" = yes; then
5193
shared_flag="$shared_flag "'${wl}-G'
5197
if test "$host_cpu" = ia64; then
5198
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5199
# chokes on -Wl,-G. The following line is correct:
5202
if test "$aix_use_runtimelinking" = yes; then
5203
shared_flag='${wl}-G'
5205
shared_flag='${wl}-bM:SRE'
5210
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5211
# It seems that -bexpall does not export symbols beginning with
5212
# underscore (_), so it is better to generate a list of symbols to export.
5213
_LT_TAGVAR(always_export_symbols, $1)=yes
5214
if test "$aix_use_runtimelinking" = yes; then
5215
# Warning - without using the other runtime loading flags (-brtl),
5216
# -berok will link without error, but may produce a broken library.
5217
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5218
# Determine the default libpath from the value encoded in an
5220
_LT_SYS_MODULE_PATH_AIX([$1])
5221
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5222
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5224
if test "$host_cpu" = ia64; then
5225
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5226
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5227
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5229
# Determine the default libpath from the value encoded in an
5231
_LT_SYS_MODULE_PATH_AIX([$1])
5232
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5233
# Warning - without using the other run time loading flags,
5234
# -berok will link without error, but may produce a broken library.
5235
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5236
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5237
if test "$with_gnu_ld" = yes; then
5238
# We only use this code for GNU lds that support --whole-archive.
5239
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5241
# Exported symbols can be pulled into shared objects from archives
5242
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5244
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5245
# This is similar to how AIX traditionally builds its shared libraries.
5246
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5254
# see comment about AmigaOS4 .so support
5255
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5256
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5259
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5260
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5261
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5267
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5270
cygwin* | mingw* | pw32* | cegcc*)
5271
# When not using gcc, we currently assume that we are using
5272
# Microsoft Visual C++.
5273
# hardcode_libdir_flag_spec is actually meaningless, as there is
5274
# no search path for DLLs.
5275
case $cc_basename in
5278
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5279
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5280
_LT_TAGVAR(always_export_symbols, $1)=yes
5281
_LT_TAGVAR(file_list_spec, $1)='@'
5282
# Tell ltmain to make .lib files, not .a files.
5284
# Tell ltmain to make .dll files, not .so files.
5286
# FIXME: Setting linknames here is a bad hack.
5287
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5288
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5289
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5291
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5293
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5295
# The linker will not automatically build a static lib if we build a DLL.
5296
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5297
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5298
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5300
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5301
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5302
lt_tool_outputfile="@TOOL_OUTPUT@"~
5303
case $lt_outputfile in
5306
lt_outputfile="$lt_outputfile.exe"
5307
lt_tool_outputfile="$lt_tool_outputfile.exe"
5310
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5311
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5312
$RM "$lt_outputfile.manifest";
5316
# Assume MSVC wrapper
5317
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5318
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5319
# Tell ltmain to make .lib files, not .a files.
5321
# Tell ltmain to make .dll files, not .so files.
5323
# FIXME: Setting linknames here is a bad hack.
5324
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5325
# The linker will automatically build a .lib file if we build a DLL.
5326
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5327
# FIXME: Should let the user specify the lib program.
5328
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5329
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5334
darwin* | rhapsody*)
5335
_LT_DARWIN_LINKER_FEATURES($1)
5339
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5340
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5341
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5345
_LT_TAGVAR(ld_shlibs, $1)=no
5348
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5349
# support. Future versions do this automatically, but an explicit c++rt0.o
5350
# does not break anything, and helps significantly (at the cost of a little
5353
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5354
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5355
_LT_TAGVAR(hardcode_direct, $1)=yes
5356
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5359
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5361
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5362
_LT_TAGVAR(hardcode_direct, $1)=yes
5363
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5364
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5367
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5368
freebsd* | dragonfly*)
5369
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5370
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5371
_LT_TAGVAR(hardcode_direct, $1)=yes
5372
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5376
if test "$GCC" = yes; then
5377
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5379
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5381
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5382
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5383
_LT_TAGVAR(hardcode_direct, $1)=yes
5385
# hardcode_minus_L: Not really in the search PATH,
5386
# but as the default location of the library.
5387
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5388
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5392
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5393
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5395
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5397
if test "$with_gnu_ld" = no; then
5398
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5399
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5400
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5401
_LT_TAGVAR(hardcode_direct, $1)=yes
5402
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5403
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5404
# hardcode_minus_L: Not really in the search PATH,
5405
# but as the default location of the library.
5406
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5411
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5414
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5417
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5420
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5426
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5429
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5433
# Older versions of the 11.00 compiler do not understand -b yet
5434
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5435
_LT_LINKER_OPTION([if $CC understands -b],
5436
_LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5437
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5438
[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5439
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5443
if test "$with_gnu_ld" = no; then
5444
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5445
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5449
_LT_TAGVAR(hardcode_direct, $1)=no
5450
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5453
_LT_TAGVAR(hardcode_direct, $1)=yes
5454
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5455
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5457
# hardcode_minus_L: Not really in the search PATH,
5458
# but as the default location of the library.
5459
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5465
irix5* | irix6* | nonstopux*)
5466
if test "$GCC" = yes; then
5467
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5468
# Try to use the -exported_symbol ld option, if it does not
5469
# work, assume that -exports_file does not work either and
5470
# implicitly export all symbols.
5471
# This should be the same for all languages, so no per-tag cache variable.
5472
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5473
[lt_cv_irix_exported_symbol],
5474
[save_LDFLAGS="$LDFLAGS"
5475
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5478
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5479
[C++], [[int foo (void) { return 0; }]],
5486
[lt_cv_irix_exported_symbol=yes],
5487
[lt_cv_irix_exported_symbol=no])
5488
LDFLAGS="$save_LDFLAGS"])
5489
if test "$lt_cv_irix_exported_symbol" = yes; then
5490
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5493
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5494
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5496
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5497
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5498
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5499
_LT_TAGVAR(inherit_rpath, $1)=yes
5500
_LT_TAGVAR(link_all_deplibs, $1)=yes
5504
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5505
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5507
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5509
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5510
_LT_TAGVAR(hardcode_direct, $1)=yes
5511
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5515
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5516
_LT_TAGVAR(hardcode_direct, $1)=yes
5517
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5518
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5519
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5526
if test -f /usr/libexec/ld.so; then
5527
_LT_TAGVAR(hardcode_direct, $1)=yes
5528
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5529
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5530
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5531
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5532
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5533
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5534
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5537
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5538
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5539
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5542
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5543
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5548
_LT_TAGVAR(ld_shlibs, $1)=no
5553
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5554
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5555
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5556
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5557
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5561
if test "$GCC" = yes; then
5562
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5563
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5565
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5566
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5568
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5569
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5570
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5573
osf4* | osf5*) # as osf3* with the addition of -msym flag
5574
if test "$GCC" = yes; then
5575
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5576
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5577
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5579
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5580
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5581
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5582
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5584
# Both c and cxx compiler support -rpath directly
5585
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5587
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5588
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5592
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5593
if test "$GCC" = yes; then
5595
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5596
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5597
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5599
case `$CC -V 2>&1` in
5602
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5603
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5604
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5608
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5609
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5610
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5614
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5615
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5617
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5619
# The compiler driver will combine and reorder linker options,
5620
# but understands `-z linker_flag'. GCC discards it without `$wl',
5621
# but is careful enough not to reorder.
5622
# Supported since Solaris 2.6 (maybe 2.5.1?)
5623
if test "$GCC" = yes; then
5624
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5626
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5630
_LT_TAGVAR(link_all_deplibs, $1)=yes
5634
if test "x$host_vendor" = xsequent; then
5635
# Use $CC to link under sequent, because it throws in some extra .o
5636
# files that make .init and .fini sections work.
5637
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5639
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5641
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5642
_LT_TAGVAR(hardcode_direct, $1)=yes
5643
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5644
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5648
case $host_vendor in
5650
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5651
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5654
## LD is ld it makes a PLAMLIB
5655
## CC just makes a GrossModule.
5656
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5657
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5658
_LT_TAGVAR(hardcode_direct, $1)=no
5661
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5662
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5665
runpath_var='LD_RUN_PATH'
5666
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5670
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5671
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5672
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5676
if test -d /usr/nec; then
5677
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5678
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5679
runpath_var=LD_RUN_PATH
5680
hardcode_runpath_var=yes
5681
_LT_TAGVAR(ld_shlibs, $1)=yes
5685
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5686
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5687
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5688
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5689
runpath_var='LD_RUN_PATH'
5691
if test "$GCC" = yes; then
5692
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5693
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5695
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5696
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5700
sysv5* | sco3.2v5* | sco5v6*)
5701
# Note: We can NOT use -z defs as we might desire, because we do not
5702
# link with -lc, and that would cause any symbols used from libc to
5703
# always be unresolved, which means just about no library would
5704
# ever link correctly. If we're not using GNU ld we use -z text
5705
# though, which does catch some bad symbols but isn't as heavy-handed
5707
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5708
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5709
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5710
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5711
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5712
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5713
_LT_TAGVAR(link_all_deplibs, $1)=yes
5714
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5715
runpath_var='LD_RUN_PATH'
5717
if test "$GCC" = yes; then
5718
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5719
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5721
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5722
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5727
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5728
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5729
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5733
_LT_TAGVAR(ld_shlibs, $1)=no
5737
if test x$host_vendor = xsni; then
5739
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5740
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5746
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5747
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5749
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5751
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5752
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5753
_LT_DECL([], [extract_expsyms_cmds], [2],
5754
[The commands to extract the exported symbol list from a shared archive])
5757
# Do we need to explicitly link libc?
5759
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5761
# Assume -lc should be added
5762
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5764
if test "$enable_shared" = yes && test "$GCC" = yes; then
5765
case $_LT_TAGVAR(archive_cmds, $1) in
5767
# FIXME: we may have to deal with multi-command sequences.
5770
# Test whether the compiler implicitly links with -lc since on some
5771
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5772
# to ld, don't add -lc before -lgcc.
5773
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5774
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5776
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5778
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5781
libobjs=conftest.$ac_objext
5783
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5784
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5790
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5791
_LT_TAGVAR(allow_undefined_flag, $1)=
5792
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5794
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5796
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5798
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5800
cat conftest.err 1>&5
5804
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5811
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5812
[Whether or not to add -lc for building shared libraries])
5813
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5814
[enable_shared_with_static_runtimes], [0],
5815
[Whether or not to disallow shared libs when runtime libs are static])
5816
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5817
[Compiler flag to allow reflexive dlopens])
5818
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5819
[Compiler flag to generate shared objects directly from archives])
5820
_LT_TAGDECL([], [compiler_needs_object], [1],
5821
[Whether the compiler copes with passing no objects directly])
5822
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5823
[Create an old-style archive from a shared archive])
5824
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5825
[Create a temporary old-style archive to link instead of a shared archive])
5826
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5827
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5828
_LT_TAGDECL([], [module_cmds], [2],
5829
[Commands used to build a loadable module if different from building
5831
_LT_TAGDECL([], [module_expsym_cmds], [2])
5832
_LT_TAGDECL([], [with_gnu_ld], [1],
5833
[Whether we are building with GNU ld or not])
5834
_LT_TAGDECL([], [allow_undefined_flag], [1],
5835
[Flag that allows shared libraries with undefined symbols to be built])
5836
_LT_TAGDECL([], [no_undefined_flag], [1],
5837
[Flag that enforces no undefined symbols])
5838
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5839
[Flag to hardcode $libdir into a binary during linking.
5840
This must work even if $libdir does not exist])
5841
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5842
[[If ld is used when linking, flag to hardcode $libdir into a binary
5843
during linking. This must work even if $libdir does not exist]])
5844
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5845
[Whether we need a single "-rpath" flag with a separated argument])
5846
_LT_TAGDECL([], [hardcode_direct], [0],
5847
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5848
DIR into the resulting binary])
5849
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5850
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5851
DIR into the resulting binary and the resulting library dependency is
5852
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5853
library is relocated])
5854
_LT_TAGDECL([], [hardcode_minus_L], [0],
5855
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5856
into the resulting binary])
5857
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5858
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5859
into the resulting binary])
5860
_LT_TAGDECL([], [hardcode_automatic], [0],
5861
[Set to "yes" if building a shared library automatically hardcodes DIR
5862
into the library and all subsequent libraries and executables linked
5864
_LT_TAGDECL([], [inherit_rpath], [0],
5865
[Set to yes if linker adds runtime paths of dependent libraries
5866
to runtime path list])
5867
_LT_TAGDECL([], [link_all_deplibs], [0],
5868
[Whether libtool must link a program against all its dependency libraries])
5869
_LT_TAGDECL([], [always_export_symbols], [0],
5870
[Set to "yes" if exported symbols are required])
5871
_LT_TAGDECL([], [export_symbols_cmds], [2],
5872
[The commands to list exported symbols])
5873
_LT_TAGDECL([], [exclude_expsyms], [1],
5874
[Symbols that should not be listed in the preloaded symbols])
5875
_LT_TAGDECL([], [include_expsyms], [1],
5876
[Symbols that must always be exported])
5877
_LT_TAGDECL([], [prelink_cmds], [2],
5878
[Commands necessary for linking programs (against libraries) with templates])
5879
_LT_TAGDECL([], [postlink_cmds], [2],
5880
[Commands necessary for finishing linking programs])
5881
_LT_TAGDECL([], [file_list_spec], [1],
5882
[Specify filename containing input files])
5883
dnl FIXME: Not yet implemented
5884
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5885
dnl [Compiler flag to generate thread safe objects])
5886
])# _LT_LINKER_SHLIBS
5889
# _LT_LANG_C_CONFIG([TAG])
5890
# ------------------------
5891
# Ensure that the configuration variables for a C compiler are suitably
5892
# defined. These variables are subsequently used by _LT_CONFIG to write
5893
# the compiler configuration to `libtool'.
5894
m4_defun([_LT_LANG_C_CONFIG],
5895
[m4_require([_LT_DECL_EGREP])dnl
5899
# Source file extension for C test sources.
5902
# Object file extension for compiled C test sources.
5904
_LT_TAGVAR(objext, $1)=$objext
5906
# Code to be used in simple compile tests
5907
lt_simple_compile_test_code="int some_variable = 0;"
5909
# Code to be used in simple link tests
5910
lt_simple_link_test_code='int main(){return(0);}'
5913
# Save the default compiler, since it gets overwritten when the other
5914
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5915
compiler_DEFAULT=$CC
5917
# save warnings/boilerplate of simple test code
5918
_LT_COMPILER_BOILERPLATE
5919
_LT_LINKER_BOILERPLATE
5921
if test -n "$compiler"; then
5922
_LT_COMPILER_NO_RTTI($1)
5923
_LT_COMPILER_PIC($1)
5924
_LT_COMPILER_C_O($1)
5925
_LT_COMPILER_FILE_LOCKS($1)
5926
_LT_LINKER_SHLIBS($1)
5927
_LT_SYS_DYNAMIC_LINKER($1)
5928
_LT_LINKER_HARDCODE_LIBPATH($1)
5932
# Report which library types will actually be built
5933
AC_MSG_CHECKING([if libtool supports shared libraries])
5934
AC_MSG_RESULT([$can_build_shared])
5936
AC_MSG_CHECKING([whether to build shared libraries])
5937
test "$can_build_shared" = "no" && enable_shared=no
5939
# On AIX, shared libraries and static libraries use the same namespace, and
5940
# are all built from PIC.
5943
test "$enable_shared" = yes && enable_static=no
5944
if test -n "$RANLIB"; then
5945
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5946
postinstall_cmds='$RANLIB $lib'
5951
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5952
test "$enable_shared" = yes && enable_static=no
5956
AC_MSG_RESULT([$enable_shared])
5958
AC_MSG_CHECKING([whether to build static libraries])
5959
# Make sure either enable_shared or enable_static is yes.
5960
test "$enable_shared" = yes || enable_static=yes
5961
AC_MSG_RESULT([$enable_static])
5967
])# _LT_LANG_C_CONFIG
5970
# _LT_LANG_CXX_CONFIG([TAG])
5971
# --------------------------
5972
# Ensure that the configuration variables for a C++ compiler are suitably
5973
# defined. These variables are subsequently used by _LT_CONFIG to write
5974
# the compiler configuration to `libtool'.
5975
m4_defun([_LT_LANG_CXX_CONFIG],
5976
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5977
m4_require([_LT_DECL_EGREP])dnl
5978
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5979
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5980
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5981
(test "X$CXX" != "Xg++"))) ; then
5984
_lt_caught_CXX_error=yes
5988
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5989
_LT_TAGVAR(allow_undefined_flag, $1)=
5990
_LT_TAGVAR(always_export_symbols, $1)=no
5991
_LT_TAGVAR(archive_expsym_cmds, $1)=
5992
_LT_TAGVAR(compiler_needs_object, $1)=no
5993
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5994
_LT_TAGVAR(hardcode_direct, $1)=no
5995
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5996
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5997
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5998
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5999
_LT_TAGVAR(hardcode_minus_L, $1)=no
6000
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6001
_LT_TAGVAR(hardcode_automatic, $1)=no
6002
_LT_TAGVAR(inherit_rpath, $1)=no
6003
_LT_TAGVAR(module_cmds, $1)=
6004
_LT_TAGVAR(module_expsym_cmds, $1)=
6005
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6006
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6007
_LT_TAGVAR(reload_flag, $1)=$reload_flag
6008
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6009
_LT_TAGVAR(no_undefined_flag, $1)=
6010
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6011
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6013
# Source file extension for C++ test sources.
6016
# Object file extension for compiled C++ test sources.
6018
_LT_TAGVAR(objext, $1)=$objext
6020
# No sense in running all these tests if we already determined that
6021
# the CXX compiler isn't working. Some variables (like enable_shared)
6022
# are currently assumed to apply to all compilers on this platform,
6023
# and will be corrupted by setting them based on a non-working compiler.
6024
if test "$_lt_caught_CXX_error" != yes; then
6025
# Code to be used in simple compile tests
6026
lt_simple_compile_test_code="int some_variable = 0;"
6028
# Code to be used in simple link tests
6029
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6031
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6034
# save warnings/boilerplate of simple test code
6035
_LT_COMPILER_BOILERPLATE
6036
_LT_LINKER_BOILERPLATE
6038
# Allow CC to be a program name with arguments.
6040
lt_save_CFLAGS=$CFLAGS
6044
lt_save_with_gnu_ld=$with_gnu_ld
6045
lt_save_path_LD=$lt_cv_path_LD
6046
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6047
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6049
$as_unset lt_cv_prog_gnu_ld
6051
if test -n "${lt_cv_path_LDCXX+set}"; then
6052
lt_cv_path_LD=$lt_cv_path_LDCXX
6054
$as_unset lt_cv_path_LD
6056
test -z "${LDCXX+set}" || LD=$LDCXX
6060
_LT_TAGVAR(compiler, $1)=$CC
6061
_LT_CC_BASENAME([$compiler])
6063
if test -n "$compiler"; then
6064
# We don't want -fno-exception when compiling C++ code, so set the
6065
# no_builtin_flag separately
6066
if test "$GXX" = yes; then
6067
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6069
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6072
if test "$GXX" = yes; then
6073
# Set up default GNU C++ configuration
6077
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6078
# archiving commands below assume that GNU ld is being used.
6079
if test "$with_gnu_ld" = yes; then
6080
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6081
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6083
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6084
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6086
# If archive_cmds runs LD, not CC, wlarc should be empty
6087
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6088
# investigate it a little bit more. (MM)
6091
# ancient GNU ld didn't support --whole-archive et. al.
6092
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6093
$GREP 'no-whole-archive' > /dev/null; then
6094
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6096
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6102
# A generic and very simple default shared library creation
6103
# command for GNU C++ for the case where it uses the native
6104
# linker, instead of GNU ld. If possible, this setting should
6105
# overridden to take advantage of the native linker features on
6106
# the platform it is being used on.
6107
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6110
# Commands to make compiler produce verbose output that lists
6111
# what "hidden" libraries, object files and flags are used when
6112
# linking a shared library.
6113
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6121
# PORTME: fill in a description of your system's C++ link characteristics
6122
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6123
_LT_TAGVAR(ld_shlibs, $1)=yes
6126
# FIXME: insert proper C++ library support
6127
_LT_TAGVAR(ld_shlibs, $1)=no
6130
if test "$host_cpu" = ia64; then
6131
# On IA64, the linker does run time linking by default, so we don't
6132
# have to do anything special.
6133
aix_use_runtimelinking=no
6134
exp_sym_flag='-Bexport'
6137
aix_use_runtimelinking=no
6139
# Test if we are trying to use run time linking or normal
6140
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6141
# need to do runtime linking.
6142
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6143
for ld_flag in $LDFLAGS; do
6146
aix_use_runtimelinking=yes
6154
exp_sym_flag='-bexport'
6155
no_entry_flag='-bnoentry'
6158
# When large executables or shared objects are built, AIX ld can
6159
# have problems creating the table of contents. If linking a library
6160
# or program results in "error TOC overflow" add -mminimal-toc to
6161
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6162
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6164
_LT_TAGVAR(archive_cmds, $1)=''
6165
_LT_TAGVAR(hardcode_direct, $1)=yes
6166
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6167
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6168
_LT_TAGVAR(link_all_deplibs, $1)=yes
6169
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6171
if test "$GXX" = yes; then
6172
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6173
# We only want to do this on AIX 4.2 and lower, the check
6174
# below for broken collect2 doesn't work under 4.3+
6175
collect2name=`${CC} -print-prog-name=collect2`
6176
if test -f "$collect2name" &&
6177
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6179
# We have reworked collect2
6182
# We have old collect2
6183
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6184
# It fails to find uninstalled libraries when the uninstalled
6185
# path is not listed in the libpath. Setting hardcode_minus_L
6186
# to unsupported forces relinking
6187
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6188
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6189
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6192
shared_flag='-shared'
6193
if test "$aix_use_runtimelinking" = yes; then
6194
shared_flag="$shared_flag "'${wl}-G'
6198
if test "$host_cpu" = ia64; then
6199
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6200
# chokes on -Wl,-G. The following line is correct:
6203
if test "$aix_use_runtimelinking" = yes; then
6204
shared_flag='${wl}-G'
6206
shared_flag='${wl}-bM:SRE'
6211
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6212
# It seems that -bexpall does not export symbols beginning with
6213
# underscore (_), so it is better to generate a list of symbols to
6215
_LT_TAGVAR(always_export_symbols, $1)=yes
6216
if test "$aix_use_runtimelinking" = yes; then
6217
# Warning - without using the other runtime loading flags (-brtl),
6218
# -berok will link without error, but may produce a broken library.
6219
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6220
# Determine the default libpath from the value encoded in an empty
6222
_LT_SYS_MODULE_PATH_AIX([$1])
6223
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6225
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6227
if test "$host_cpu" = ia64; then
6228
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6229
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6230
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6232
# Determine the default libpath from the value encoded in an
6234
_LT_SYS_MODULE_PATH_AIX([$1])
6235
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6236
# Warning - without using the other run time loading flags,
6237
# -berok will link without error, but may produce a broken library.
6238
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6239
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6240
if test "$with_gnu_ld" = yes; then
6241
# We only use this code for GNU lds that support --whole-archive.
6242
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6244
# Exported symbols can be pulled into shared objects from archives
6245
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6247
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6248
# This is similar to how AIX traditionally builds its shared
6250
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6256
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6257
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6258
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6259
# support --undefined. This deserves some investigation. FIXME
6260
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6262
_LT_TAGVAR(ld_shlibs, $1)=no
6267
case $cc_basename in
6269
# FIXME: insert proper C++ library support
6270
_LT_TAGVAR(ld_shlibs, $1)=no
6275
cygwin* | mingw* | pw32* | cegcc*)
6276
case $GXX,$cc_basename in
6279
# hardcode_libdir_flag_spec is actually meaningless, as there is
6280
# no search path for DLLs.
6281
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6282
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6283
_LT_TAGVAR(always_export_symbols, $1)=yes
6284
_LT_TAGVAR(file_list_spec, $1)='@'
6285
# Tell ltmain to make .lib files, not .a files.
6287
# Tell ltmain to make .dll files, not .so files.
6289
# FIXME: Setting linknames here is a bad hack.
6290
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6291
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6292
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6294
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6296
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6298
# The linker will not automatically build a static lib if we build a DLL.
6299
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6300
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6302
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6303
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6304
lt_tool_outputfile="@TOOL_OUTPUT@"~
6305
case $lt_outputfile in
6308
lt_outputfile="$lt_outputfile.exe"
6309
lt_tool_outputfile="$lt_tool_outputfile.exe"
6312
func_to_tool_file "$lt_outputfile"~
6313
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6314
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6315
$RM "$lt_outputfile.manifest";
6320
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6321
# as there is no search path for DLLs.
6322
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6323
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6324
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6325
_LT_TAGVAR(always_export_symbols, $1)=no
6326
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6328
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6329
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6330
# If the export-symbols file already is a .def file (1st line
6331
# is EXPORTS), use it as is; otherwise, prepend...
6332
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6333
cp $export_symbols $output_objdir/$soname.def;
6335
echo EXPORTS > $output_objdir/$soname.def;
6336
cat $export_symbols >> $output_objdir/$soname.def;
6338
$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'
6340
_LT_TAGVAR(ld_shlibs, $1)=no
6345
darwin* | rhapsody*)
6346
_LT_DARWIN_LINKER_FEATURES($1)
6350
case $cc_basename in
6352
# FIXME: insert proper C++ library support
6353
_LT_TAGVAR(ld_shlibs, $1)=no
6356
# Green Hills C++ Compiler
6357
# FIXME: insert proper C++ library support
6358
_LT_TAGVAR(ld_shlibs, $1)=no
6361
# FIXME: insert proper C++ library support
6362
_LT_TAGVAR(ld_shlibs, $1)=no
6368
# C++ shared libraries reported to be fairly broken before
6370
_LT_TAGVAR(ld_shlibs, $1)=no
6374
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6377
freebsd* | dragonfly*)
6378
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6380
_LT_TAGVAR(ld_shlibs, $1)=yes
6387
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6388
_LT_TAGVAR(link_all_deplibs, $1)=yes
6392
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6393
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6394
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6395
_LT_TAGVAR(hardcode_direct, $1)=yes
6396
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6397
# but as the default
6398
# location of the library.
6400
case $cc_basename in
6402
# FIXME: insert proper C++ library support
6403
_LT_TAGVAR(ld_shlibs, $1)=no
6406
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6407
# Commands to make compiler produce verbose output that lists
6408
# what "hidden" libraries, object files and flags are used when
6409
# linking a shared library.
6411
# There doesn't appear to be a way to prevent this compiler from
6412
# explicitly linking system object files so we need to strip them
6413
# from the output so that they don't get included in the library
6415
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6418
if test "$GXX" = yes; then
6419
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6421
# FIXME: insert proper C++ library support
6422
_LT_TAGVAR(ld_shlibs, $1)=no
6429
if test $with_gnu_ld = no; then
6430
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6431
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6437
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6443
_LT_TAGVAR(hardcode_direct, $1)=no
6444
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6447
_LT_TAGVAR(hardcode_direct, $1)=yes
6448
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6449
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6450
# but as the default
6451
# location of the library.
6455
case $cc_basename in
6457
# FIXME: insert proper C++ library support
6458
_LT_TAGVAR(ld_shlibs, $1)=no
6463
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6466
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6469
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6472
# Commands to make compiler produce verbose output that lists
6473
# what "hidden" libraries, object files and flags are used when
6474
# linking a shared library.
6476
# There doesn't appear to be a way to prevent this compiler from
6477
# explicitly linking system object files so we need to strip them
6478
# from the output so that they don't get included in the library
6480
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6483
if test "$GXX" = yes; then
6484
if test $with_gnu_ld = no; then
6487
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6490
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6493
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6498
# FIXME: insert proper C++ library support
6499
_LT_TAGVAR(ld_shlibs, $1)=no
6506
_LT_TAGVAR(hardcode_direct, $1)=no
6507
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6508
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6509
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6510
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6511
# Instead, shared libraries are loaded at an image base (0x10000000 by
6512
# default) and relocated if they conflict, which is a slow very memory
6513
# consuming and fragmenting process. To avoid this, we pick a random,
6514
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6515
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6516
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6517
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6520
case $cc_basename in
6523
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6525
# Archives containing C++ object files must be created using
6526
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6527
# necessary to make sure instantiated templates are included
6529
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6532
if test "$GXX" = yes; then
6533
if test "$with_gnu_ld" = no; then
6534
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6536
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6539
_LT_TAGVAR(link_all_deplibs, $1)=yes
6542
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6543
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6544
_LT_TAGVAR(inherit_rpath, $1)=yes
6547
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6548
case $cc_basename in
6550
# Kuck and Associates, Inc. (KAI) C++ Compiler
6552
# KCC will only create a shared library if the output file
6553
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6554
# to its proper name (with version) after linking.
6555
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6556
_LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6557
# Commands to make compiler produce verbose output that lists
6558
# what "hidden" libraries, object files and flags are used when
6559
# linking a shared library.
6561
# There doesn't appear to be a way to prevent this compiler from
6562
# explicitly linking system object files so we need to strip them
6563
# from the output so that they don't get included in the library
6565
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6567
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6568
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6570
# Archives containing C++ object files must be created using
6571
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6572
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6577
# version 8.0 and above of icpc choke on multiply defined symbols
6578
# if we add $predep_objects and $postdep_objects, however 7.1 and
6579
# earlier do not add the objects themselves.
6580
case `$CC -V 2>&1` in
6582
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6583
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6585
*) # Version 8.0 or newer
6588
ia64*) tmp_idyn=' -i_dynamic';;
6590
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6591
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6594
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6595
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6596
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6597
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6600
# Portland Group C++ compiler
6602
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6603
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6605
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6606
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6607
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6609
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6610
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6612
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6614
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6615
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6616
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6618
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6619
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6621
*) # Version 6 and above use weak symbols
6622
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6623
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6627
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6628
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6629
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6633
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6634
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6636
runpath_var=LD_RUN_PATH
6637
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6638
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6640
# Commands to make compiler produce verbose output that lists
6641
# what "hidden" libraries, object files and flags are used when
6642
# linking a shared library.
6644
# There doesn't appear to be a way to prevent this compiler from
6645
# explicitly linking system object files so we need to strip them
6646
# from the output so that they don't get included in the library
6648
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6650
xl* | mpixl* | bgxl*)
6651
# IBM XL 8.0 on PPC, with GNU ld
6652
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6653
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6654
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6655
if test "x$supports_anon_versioning" = xyes; then
6656
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6657
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6658
echo "local: *; };" >> $output_objdir/$libname.ver~
6659
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6663
case `$CC -V 2>&1 | sed 5q` in
6666
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6667
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6668
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6669
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6670
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6671
_LT_TAGVAR(compiler_needs_object, $1)=yes
6673
# Not sure whether something based on
6674
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6676
output_verbose_link_cmd='func_echo_all'
6678
# Archives containing C++ object files must be created using
6679
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6680
# necessary to make sure instantiated templates are included
6682
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6690
# FIXME: insert proper C++ library support
6691
_LT_TAGVAR(ld_shlibs, $1)=no
6695
# FIXME: insert proper C++ library support
6696
_LT_TAGVAR(ld_shlibs, $1)=no
6700
case $cc_basename in
6702
# FIXME: insert proper C++ library support
6703
_LT_TAGVAR(ld_shlibs, $1)=no
6706
# FIXME: insert proper C++ library support
6707
_LT_TAGVAR(ld_shlibs, $1)=no
6713
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6714
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6716
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6717
_LT_TAGVAR(hardcode_direct, $1)=yes
6718
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6720
# Workaround some broken pre-1.5 toolchains
6721
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6725
_LT_TAGVAR(ld_shlibs, $1)=yes
6729
# C++ shared libraries are fairly broken
6730
_LT_TAGVAR(ld_shlibs, $1)=no
6734
if test -f /usr/libexec/ld.so; then
6735
_LT_TAGVAR(hardcode_direct, $1)=yes
6736
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6737
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6738
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6739
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6740
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6741
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6742
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6743
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6745
output_verbose_link_cmd=func_echo_all
6747
_LT_TAGVAR(ld_shlibs, $1)=no
6751
osf3* | osf4* | osf5*)
6752
case $cc_basename in
6754
# Kuck and Associates, Inc. (KAI) C++ Compiler
6756
# KCC will only create a shared library if the output file
6757
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6758
# to its proper name (with version) after linking.
6759
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6761
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6762
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6764
# Archives containing C++ object files must be created using
6765
# the KAI C++ compiler.
6767
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6768
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6772
# Rational C++ 2.4.1
6773
# FIXME: insert proper C++ library support
6774
_LT_TAGVAR(ld_shlibs, $1)=no
6779
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6780
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6781
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6784
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6785
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6786
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6787
echo "-hidden">> $lib.exp~
6788
$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~
6790
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6794
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6796
# Commands to make compiler produce verbose output that lists
6797
# what "hidden" libraries, object files and flags are used when
6798
# linking a shared library.
6800
# There doesn't appear to be a way to prevent this compiler from
6801
# explicitly linking system object files so we need to strip them
6802
# from the output so that they don't get included in the library
6804
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6807
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6808
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6811
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6814
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6818
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6819
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6821
# Commands to make compiler produce verbose output that lists
6822
# what "hidden" libraries, object files and flags are used when
6823
# linking a shared library.
6824
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6827
# FIXME: insert proper C++ library support
6828
_LT_TAGVAR(ld_shlibs, $1)=no
6835
# FIXME: insert proper C++ library support
6836
_LT_TAGVAR(ld_shlibs, $1)=no
6840
case $cc_basename in
6843
# FIXME: insert proper C++ library support
6844
_LT_TAGVAR(ld_shlibs, $1)=no
6848
# FIXME: insert proper C++ library support
6849
_LT_TAGVAR(ld_shlibs, $1)=no
6852
# FIXME: insert proper C++ library support
6853
_LT_TAGVAR(ld_shlibs, $1)=no
6859
case $cc_basename in
6861
# Sun C++ 4.2, 5.x and Centerline C++
6862
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6863
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6864
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6865
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6866
$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'
6868
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6869
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6871
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6873
# The compiler driver will combine and reorder linker options,
6874
# but understands `-z linker_flag'.
6875
# Supported since Solaris 2.6 (maybe 2.5.1?)
6876
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6879
_LT_TAGVAR(link_all_deplibs, $1)=yes
6881
output_verbose_link_cmd='func_echo_all'
6883
# Archives containing C++ object files must be created using
6884
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6885
# necessary to make sure instantiated templates are included
6887
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6890
# Green Hills C++ Compiler
6891
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6893
# The C++ compiler must be used to create the archive.
6894
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6897
# GNU C++ compiler with Solaris linker
6898
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6899
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6900
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6901
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6902
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6903
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6905
# Commands to make compiler produce verbose output that lists
6906
# what "hidden" libraries, object files and flags are used when
6907
# linking a shared library.
6908
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6910
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6912
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6913
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6914
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6916
# Commands to make compiler produce verbose output that lists
6917
# what "hidden" libraries, object files and flags are used when
6918
# linking a shared library.
6919
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6922
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6924
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6926
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6934
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6935
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6936
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6937
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6938
runpath_var='LD_RUN_PATH'
6940
case $cc_basename in
6942
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6943
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6946
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6947
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6952
sysv5* | sco3.2v5* | sco5v6*)
6953
# Note: We can NOT use -z defs as we might desire, because we do not
6954
# link with -lc, and that would cause any symbols used from libc to
6955
# always be unresolved, which means just about no library would
6956
# ever link correctly. If we're not using GNU ld we use -z text
6957
# though, which does catch some bad symbols but isn't as heavy-handed
6959
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6960
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6961
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6962
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6963
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6964
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6965
_LT_TAGVAR(link_all_deplibs, $1)=yes
6966
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6967
runpath_var='LD_RUN_PATH'
6969
case $cc_basename in
6971
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6972
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6973
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6974
'"$_LT_TAGVAR(old_archive_cmds, $1)"
6975
_LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6976
'"$_LT_TAGVAR(reload_cmds, $1)"
6979
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6980
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6986
case $cc_basename in
6988
# NonStop-UX NCC 3.20
6989
# FIXME: insert proper C++ library support
6990
_LT_TAGVAR(ld_shlibs, $1)=no
6993
# FIXME: insert proper C++ library support
6994
_LT_TAGVAR(ld_shlibs, $1)=no
7000
# FIXME: insert proper C++ library support
7001
_LT_TAGVAR(ld_shlibs, $1)=no
7005
# FIXME: insert proper C++ library support
7006
_LT_TAGVAR(ld_shlibs, $1)=no
7010
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7011
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7013
_LT_TAGVAR(GCC, $1)="$GXX"
7014
_LT_TAGVAR(LD, $1)="$LD"
7017
## There is no encapsulation within the following macros, do not change
7018
## the running order or otherwise move them around unless you know exactly
7019
## what you are doing...
7020
_LT_SYS_HIDDEN_LIBDEPS($1)
7021
_LT_COMPILER_PIC($1)
7022
_LT_COMPILER_C_O($1)
7023
_LT_COMPILER_FILE_LOCKS($1)
7024
_LT_LINKER_SHLIBS($1)
7025
_LT_SYS_DYNAMIC_LINKER($1)
7026
_LT_LINKER_HARDCODE_LIBPATH($1)
7029
fi # test -n "$compiler"
7032
CFLAGS=$lt_save_CFLAGS
7036
with_gnu_ld=$lt_save_with_gnu_ld
7037
lt_cv_path_LDCXX=$lt_cv_path_LD
7038
lt_cv_path_LD=$lt_save_path_LD
7039
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7040
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7041
fi # test "$_lt_caught_CXX_error" != yes
7044
])# _LT_LANG_CXX_CONFIG
7047
# _LT_FUNC_STRIPNAME_CNF
7048
# ----------------------
7049
# func_stripname_cnf prefix suffix name
7050
# strip PREFIX and SUFFIX off of NAME.
7051
# PREFIX and SUFFIX must not contain globbing or regex special
7052
# characters, hashes, percent signs, but SUFFIX may contain a leading
7053
# dot (in which case that matches only a dot).
7055
# This function is identical to the (non-XSI) version of func_stripname,
7056
# except this one can be used by m4 code that may be executed by configure,
7057
# rather than the libtool script.
7058
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7059
AC_REQUIRE([_LT_DECL_SED])
7060
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7061
func_stripname_cnf ()
7064
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7065
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7067
} # func_stripname_cnf
7068
])# _LT_FUNC_STRIPNAME_CNF
7070
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7071
# ---------------------------------
7072
# Figure out "hidden" library dependencies from verbose
7073
# compiler output when linking a shared library.
7074
# Parse the compiler output and extract the necessary
7075
# objects, libraries and library flags.
7076
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7077
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7078
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7079
# Dependencies to place before and after the object being linked:
7080
_LT_TAGVAR(predep_objects, $1)=
7081
_LT_TAGVAR(postdep_objects, $1)=
7082
_LT_TAGVAR(predeps, $1)=
7083
_LT_TAGVAR(postdeps, $1)=
7084
_LT_TAGVAR(compiler_lib_search_path, $1)=
7086
dnl we can't use the lt_simple_compile_test_code here,
7087
dnl because it contains code intended for an executable,
7088
dnl not a library. It's possible we should let each
7089
dnl tag define a new lt_????_link_test_code variable,
7090
dnl but it's only used here...
7091
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7093
void foo (void) { a = 0; }
7095
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7099
Foo (void) { a = 0; }
7104
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7112
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7120
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7123
public void bar (void) {
7130
_lt_libdeps_save_CFLAGS=$CFLAGS
7131
case "$CC $CFLAGS " in #(
7132
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7133
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7136
dnl Parse the compiler output and extract the necessary
7137
dnl objects, libraries and library flags.
7138
if AC_TRY_EVAL(ac_compile); then
7139
# Parse the compiler output and extract the necessary
7140
# objects, libraries and library flags.
7142
# Sentinel used to keep track of whether or not we are before
7143
# the conftest object file.
7144
pre_test_object_deps_done=no
7146
for p in `eval "$output_verbose_link_cmd"`; do
7150
# Some compilers place space between "-{L,R}" and the path.
7152
if test $p = "-L" ||
7153
test $p = "-R"; then
7158
# Expand the sysroot to ease extracting the directories later.
7159
if test -z "$prev"; then
7161
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7162
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7163
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7167
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7169
if test "$pre_test_object_deps_done" = no; then
7172
# Internal compiler library paths should come after those
7173
# provided the user. The postdeps already come after the
7174
# user supplied libs so there is no need to process them.
7175
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7176
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7178
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7181
# The "-l" case would never come before the object being
7182
# linked, so don't bother handling this case.
7185
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7186
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7188
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7194
*.lto.$objext) ;; # Ignore GCC LTO objects
7196
# This assumes that the test object file only shows up
7197
# once in the compiler output.
7198
if test "$p" = "conftest.$objext"; then
7199
pre_test_object_deps_done=yes
7203
if test "$pre_test_object_deps_done" = no; then
7204
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7205
_LT_TAGVAR(predep_objects, $1)="$p"
7207
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7210
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7211
_LT_TAGVAR(postdep_objects, $1)="$p"
7213
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7218
*) ;; # Ignore the rest.
7226
echo "libtool.m4: error: problem compiling $1 test program"
7229
$RM -f confest.$objext
7230
CFLAGS=$_lt_libdeps_save_CFLAGS
7232
# PORTME: override above test on systems where it is broken
7236
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7237
# hack all around it, let's just trust "g++" to DTRT.
7238
_LT_TAGVAR(predep_objects,$1)=
7239
_LT_TAGVAR(postdep_objects,$1)=
7240
_LT_TAGVAR(postdeps,$1)=
7244
case `$CC -V 2>&1 | sed 5q` in
7248
# The more standards-conforming stlport4 library is
7249
# incompatible with the Cstd library. Avoid specifying
7250
# it if it's in CXXFLAGS. Ignore libCrun as
7251
# -library=stlport4 depends on it.
7252
case " $CXX $CXXFLAGS " in
7253
*" -library=stlport4 "*)
7254
solaris_use_stlport4=yes
7258
if test "$solaris_use_stlport4" != yes; then
7259
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7266
case $cc_basename in
7268
# The more standards-conforming stlport4 library is
7269
# incompatible with the Cstd library. Avoid specifying
7270
# it if it's in CXXFLAGS. Ignore libCrun as
7271
# -library=stlport4 depends on it.
7272
case " $CXX $CXXFLAGS " in
7273
*" -library=stlport4 "*)
7274
solaris_use_stlport4=yes
7278
# Adding this requires a known-good setup of shared libraries for
7279
# Sun compiler versions before 5.6, else PIC objects from an old
7280
# archive will be linked into the output, leading to subtle bugs.
7281
if test "$solaris_use_stlport4" != yes; then
7282
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7290
case " $_LT_TAGVAR(postdeps, $1) " in
7291
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7293
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7294
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7295
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7297
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7298
[The directories searched by this compiler when creating a shared library])
7299
_LT_TAGDECL([], [predep_objects], [1],
7300
[Dependencies to place before and after the objects being linked to
7301
create a shared library])
7302
_LT_TAGDECL([], [postdep_objects], [1])
7303
_LT_TAGDECL([], [predeps], [1])
7304
_LT_TAGDECL([], [postdeps], [1])
7305
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7306
[The library search path used internally by the compiler when linking
7308
])# _LT_SYS_HIDDEN_LIBDEPS
7311
# _LT_LANG_F77_CONFIG([TAG])
7312
# --------------------------
7313
# Ensure that the configuration variables for a Fortran 77 compiler are
7314
# suitably defined. These variables are subsequently used by _LT_CONFIG
7315
# to write the compiler configuration to `libtool'.
7316
m4_defun([_LT_LANG_F77_CONFIG],
7317
[AC_LANG_PUSH(Fortran 77)
7318
if test -z "$F77" || test "X$F77" = "Xno"; then
7322
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7323
_LT_TAGVAR(allow_undefined_flag, $1)=
7324
_LT_TAGVAR(always_export_symbols, $1)=no
7325
_LT_TAGVAR(archive_expsym_cmds, $1)=
7326
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7327
_LT_TAGVAR(hardcode_direct, $1)=no
7328
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7329
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7330
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7331
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7332
_LT_TAGVAR(hardcode_minus_L, $1)=no
7333
_LT_TAGVAR(hardcode_automatic, $1)=no
7334
_LT_TAGVAR(inherit_rpath, $1)=no
7335
_LT_TAGVAR(module_cmds, $1)=
7336
_LT_TAGVAR(module_expsym_cmds, $1)=
7337
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7338
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7339
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7340
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7341
_LT_TAGVAR(no_undefined_flag, $1)=
7342
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7343
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7345
# Source file extension for f77 test sources.
7348
# Object file extension for compiled f77 test sources.
7350
_LT_TAGVAR(objext, $1)=$objext
7352
# No sense in running all these tests if we already determined that
7353
# the F77 compiler isn't working. Some variables (like enable_shared)
7354
# are currently assumed to apply to all compilers on this platform,
7355
# and will be corrupted by setting them based on a non-working compiler.
7356
if test "$_lt_disable_F77" != yes; then
7357
# Code to be used in simple compile tests
7358
lt_simple_compile_test_code="\
7364
# Code to be used in simple link tests
7365
lt_simple_link_test_code="\
7370
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7373
# save warnings/boilerplate of simple test code
7374
_LT_COMPILER_BOILERPLATE
7375
_LT_LINKER_BOILERPLATE
7377
# Allow CC to be a program name with arguments.
7380
lt_save_CFLAGS=$CFLAGS
7384
_LT_TAGVAR(compiler, $1)=$CC
7385
_LT_CC_BASENAME([$compiler])
7387
if test -n "$compiler"; then
7388
AC_MSG_CHECKING([if libtool supports shared libraries])
7389
AC_MSG_RESULT([$can_build_shared])
7391
AC_MSG_CHECKING([whether to build shared libraries])
7392
test "$can_build_shared" = "no" && enable_shared=no
7394
# On AIX, shared libraries and static libraries use the same namespace, and
7395
# are all built from PIC.
7398
test "$enable_shared" = yes && enable_static=no
7399
if test -n "$RANLIB"; then
7400
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7401
postinstall_cmds='$RANLIB $lib'
7405
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7406
test "$enable_shared" = yes && enable_static=no
7410
AC_MSG_RESULT([$enable_shared])
7412
AC_MSG_CHECKING([whether to build static libraries])
7413
# Make sure either enable_shared or enable_static is yes.
7414
test "$enable_shared" = yes || enable_static=yes
7415
AC_MSG_RESULT([$enable_static])
7417
_LT_TAGVAR(GCC, $1)="$G77"
7418
_LT_TAGVAR(LD, $1)="$LD"
7421
## There is no encapsulation within the following macros, do not change
7422
## the running order or otherwise move them around unless you know exactly
7423
## what you are doing...
7424
_LT_COMPILER_PIC($1)
7425
_LT_COMPILER_C_O($1)
7426
_LT_COMPILER_FILE_LOCKS($1)
7427
_LT_LINKER_SHLIBS($1)
7428
_LT_SYS_DYNAMIC_LINKER($1)
7429
_LT_LINKER_HARDCODE_LIBPATH($1)
7432
fi # test -n "$compiler"
7436
CFLAGS="$lt_save_CFLAGS"
7437
fi # test "$_lt_disable_F77" != yes
7440
])# _LT_LANG_F77_CONFIG
7443
# _LT_LANG_FC_CONFIG([TAG])
7444
# -------------------------
7445
# Ensure that the configuration variables for a Fortran compiler are
7446
# suitably defined. These variables are subsequently used by _LT_CONFIG
7447
# to write the compiler configuration to `libtool'.
7448
m4_defun([_LT_LANG_FC_CONFIG],
7449
[AC_LANG_PUSH(Fortran)
7451
if test -z "$FC" || test "X$FC" = "Xno"; then
7455
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7456
_LT_TAGVAR(allow_undefined_flag, $1)=
7457
_LT_TAGVAR(always_export_symbols, $1)=no
7458
_LT_TAGVAR(archive_expsym_cmds, $1)=
7459
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7460
_LT_TAGVAR(hardcode_direct, $1)=no
7461
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7462
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7463
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7464
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7465
_LT_TAGVAR(hardcode_minus_L, $1)=no
7466
_LT_TAGVAR(hardcode_automatic, $1)=no
7467
_LT_TAGVAR(inherit_rpath, $1)=no
7468
_LT_TAGVAR(module_cmds, $1)=
7469
_LT_TAGVAR(module_expsym_cmds, $1)=
7470
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7471
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7472
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7473
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7474
_LT_TAGVAR(no_undefined_flag, $1)=
7475
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7476
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7478
# Source file extension for fc test sources.
7479
ac_ext=${ac_fc_srcext-f}
7481
# Object file extension for compiled fc test sources.
7483
_LT_TAGVAR(objext, $1)=$objext
7485
# No sense in running all these tests if we already determined that
7486
# the FC compiler isn't working. Some variables (like enable_shared)
7487
# are currently assumed to apply to all compilers on this platform,
7488
# and will be corrupted by setting them based on a non-working compiler.
7489
if test "$_lt_disable_FC" != yes; then
7490
# Code to be used in simple compile tests
7491
lt_simple_compile_test_code="\
7497
# Code to be used in simple link tests
7498
lt_simple_link_test_code="\
7503
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7506
# save warnings/boilerplate of simple test code
7507
_LT_COMPILER_BOILERPLATE
7508
_LT_LINKER_BOILERPLATE
7510
# Allow CC to be a program name with arguments.
7513
lt_save_CFLAGS=$CFLAGS
7517
GCC=$ac_cv_fc_compiler_gnu
7519
_LT_TAGVAR(compiler, $1)=$CC
7520
_LT_CC_BASENAME([$compiler])
7522
if test -n "$compiler"; then
7523
AC_MSG_CHECKING([if libtool supports shared libraries])
7524
AC_MSG_RESULT([$can_build_shared])
7526
AC_MSG_CHECKING([whether to build shared libraries])
7527
test "$can_build_shared" = "no" && enable_shared=no
7529
# On AIX, shared libraries and static libraries use the same namespace, and
7530
# are all built from PIC.
7533
test "$enable_shared" = yes && enable_static=no
7534
if test -n "$RANLIB"; then
7535
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7536
postinstall_cmds='$RANLIB $lib'
7540
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7541
test "$enable_shared" = yes && enable_static=no
7545
AC_MSG_RESULT([$enable_shared])
7547
AC_MSG_CHECKING([whether to build static libraries])
7548
# Make sure either enable_shared or enable_static is yes.
7549
test "$enable_shared" = yes || enable_static=yes
7550
AC_MSG_RESULT([$enable_static])
7552
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7553
_LT_TAGVAR(LD, $1)="$LD"
7556
## There is no encapsulation within the following macros, do not change
7557
## the running order or otherwise move them around unless you know exactly
7558
## what you are doing...
7559
_LT_SYS_HIDDEN_LIBDEPS($1)
7560
_LT_COMPILER_PIC($1)
7561
_LT_COMPILER_C_O($1)
7562
_LT_COMPILER_FILE_LOCKS($1)
7563
_LT_LINKER_SHLIBS($1)
7564
_LT_SYS_DYNAMIC_LINKER($1)
7565
_LT_LINKER_HARDCODE_LIBPATH($1)
7568
fi # test -n "$compiler"
7572
CFLAGS=$lt_save_CFLAGS
7573
fi # test "$_lt_disable_FC" != yes
7576
])# _LT_LANG_FC_CONFIG
7579
# _LT_LANG_GCJ_CONFIG([TAG])
7580
# --------------------------
7581
# Ensure that the configuration variables for the GNU Java Compiler compiler
7582
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7583
# to write the compiler configuration to `libtool'.
7584
m4_defun([_LT_LANG_GCJ_CONFIG],
7585
[AC_REQUIRE([LT_PROG_GCJ])dnl
7588
# Source file extension for Java test sources.
7591
# Object file extension for compiled Java test sources.
7593
_LT_TAGVAR(objext, $1)=$objext
7595
# Code to be used in simple compile tests
7596
lt_simple_compile_test_code="class foo {}"
7598
# Code to be used in simple link tests
7599
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7601
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7604
# save warnings/boilerplate of simple test code
7605
_LT_COMPILER_BOILERPLATE
7606
_LT_LINKER_BOILERPLATE
7608
# Allow CC to be a program name with arguments.
7610
lt_save_CFLAGS=$CFLAGS
7616
_LT_TAGVAR(compiler, $1)=$CC
7617
_LT_TAGVAR(LD, $1)="$LD"
7618
_LT_CC_BASENAME([$compiler])
7620
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7621
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7623
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7624
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7625
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7627
if test -n "$compiler"; then
7628
_LT_COMPILER_NO_RTTI($1)
7629
_LT_COMPILER_PIC($1)
7630
_LT_COMPILER_C_O($1)
7631
_LT_COMPILER_FILE_LOCKS($1)
7632
_LT_LINKER_SHLIBS($1)
7633
_LT_LINKER_HARDCODE_LIBPATH($1)
7642
CFLAGS=$lt_save_CFLAGS
7643
])# _LT_LANG_GCJ_CONFIG
7646
# _LT_LANG_RC_CONFIG([TAG])
7647
# -------------------------
7648
# Ensure that the configuration variables for the Windows resource compiler
7649
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7650
# to write the compiler configuration to `libtool'.
7651
m4_defun([_LT_LANG_RC_CONFIG],
7652
[AC_REQUIRE([LT_PROG_RC])dnl
7655
# Source file extension for RC test sources.
7658
# Object file extension for compiled RC test sources.
7660
_LT_TAGVAR(objext, $1)=$objext
7662
# Code to be used in simple compile tests
7663
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7665
# Code to be used in simple link tests
7666
lt_simple_link_test_code="$lt_simple_compile_test_code"
7668
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7671
# save warnings/boilerplate of simple test code
7672
_LT_COMPILER_BOILERPLATE
7673
_LT_LINKER_BOILERPLATE
7675
# Allow CC to be a program name with arguments.
7677
lt_save_CFLAGS=$CFLAGS
7683
_LT_TAGVAR(compiler, $1)=$CC
7684
_LT_CC_BASENAME([$compiler])
7685
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7687
if test -n "$compiler"; then
7695
CFLAGS=$lt_save_CFLAGS
7696
])# _LT_LANG_RC_CONFIG
7701
AC_DEFUN([LT_PROG_GCJ],
7702
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7703
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7704
[AC_CHECK_TOOL(GCJ, gcj,)
7705
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7706
AC_SUBST(GCJFLAGS)])])[]dnl
7710
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7711
dnl aclocal-1.4 backwards compatibility:
7712
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7717
AC_DEFUN([LT_PROG_RC],
7718
[AC_CHECK_TOOL(RC, windres,)
7722
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7723
dnl aclocal-1.4 backwards compatibility:
7724
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7729
# If we don't have a new enough Autoconf to choose the best grep
7730
# available, choose the one first in the user's PATH.
7731
m4_defun([_LT_DECL_EGREP],
7732
[AC_REQUIRE([AC_PROG_EGREP])dnl
7733
AC_REQUIRE([AC_PROG_FGREP])dnl
7734
test -z "$GREP" && GREP=grep
7735
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7736
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7737
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7738
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7745
# If we don't have a new enough Autoconf to choose the best objdump
7746
# available, choose the one first in the user's PATH.
7747
m4_defun([_LT_DECL_OBJDUMP],
7748
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7749
test -z "$OBJDUMP" && OBJDUMP=objdump
7750
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7756
# Ensure DLLTOOL variable is set.
7757
m4_defun([_LT_DECL_DLLTOOL],
7758
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7759
test -z "$DLLTOOL" && DLLTOOL=dlltool
7760
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7766
# Check for a fully-functional sed program, that truncates
7767
# as few characters as possible. Prefer GNU sed if found.
7768
m4_defun([_LT_DECL_SED],
7770
test -z "$SED" && SED=sed
7771
Xsed="$SED -e 1s/^X//"
7772
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7773
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7774
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7777
m4_ifndef([AC_PROG_SED], [
7778
# NOTE: This macro has been submitted for inclusion into #
7779
# GNU Autoconf as AC_PROG_SED. When it is available in #
7780
# a released version of Autoconf we should remove this #
7781
# macro and use it instead. #
7783
m4_defun([AC_PROG_SED],
7784
[AC_MSG_CHECKING([for a sed that does not truncate output])
7785
AC_CACHE_VAL(lt_cv_path_SED,
7786
[# Loop through the user's path and test for sed and gsed.
7787
# Then use that list of sed's as ones to test for truncation.
7788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792
test -z "$as_dir" && as_dir=.
7793
for lt_ac_prog in sed gsed; do
7794
for ac_exec_ext in '' $ac_executable_extensions; do
7795
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7796
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7804
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7805
# along with /bin/sed that truncates output.
7806
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7807
test ! -f $lt_ac_sed && continue
7808
cat /dev/null > conftest.in
7810
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7811
# Check for GNU sed and select it if it is found.
7812
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7813
lt_cv_path_SED=$lt_ac_sed
7817
cat conftest.in conftest.in >conftest.tmp
7818
mv conftest.tmp conftest.in
7819
cp conftest.in conftest.nl
7821
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7822
cmp -s conftest.out conftest.nl || break
7823
# 10000 chars as input seems more than enough
7824
test $lt_ac_count -gt 10 && break
7825
lt_ac_count=`expr $lt_ac_count + 1`
7826
if test $lt_ac_count -gt $lt_ac_max; then
7827
lt_ac_max=$lt_ac_count
7828
lt_cv_path_SED=$lt_ac_sed
7835
AC_MSG_RESULT([$SED])
7840
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7841
dnl aclocal-1.4 backwards compatibility:
7842
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7845
# _LT_CHECK_SHELL_FEATURES
7846
# ------------------------
7847
# Find out whether the shell is Bourne or XSI compatible,
7848
# or has some other useful features.
7849
m4_defun([_LT_CHECK_SHELL_FEATURES],
7850
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7851
# Try some XSI features
7854
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7856
&& eval 'test $(( 1 + 1 )) -eq 2 \
7857
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7859
AC_MSG_RESULT([$xsi_shell])
7860
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7862
AC_MSG_CHECKING([whether the shell understands "+="])
7864
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7866
&& lt_shell_append=yes
7867
AC_MSG_RESULT([$lt_shell_append])
7868
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7870
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7875
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7877
# test EBCDIC or ASCII
7878
case `echo X|tr X '\101'` in
7879
A) # ASCII based system
7880
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7881
lt_SP2NL='tr \040 \012'
7882
lt_NL2SP='tr \015\012 \040\040'
7884
*) # EBCDIC based system
7885
lt_SP2NL='tr \100 \n'
7886
lt_NL2SP='tr \r\n \100\100'
7889
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7890
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7891
])# _LT_CHECK_SHELL_FEATURES
7894
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7895
# ------------------------------------------------------
7896
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7897
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7898
m4_defun([_LT_PROG_FUNCTION_REPLACE],
7900
sed -e '/^$1 ()$/,/^} # $1 /c\
7903
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7904
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7905
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7906
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7907
test 0 -eq $? || _lt_function_replace_fail=:
7911
# _LT_PROG_REPLACE_SHELLFNS
7912
# -------------------------
7913
# Replace existing portable implementations of several shell functions with
7914
# equivalent extended shell implementations where those features are available..
7915
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7916
[if test x"$xsi_shell" = xyes; then
7917
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7919
*/*) func_dirname_result="${1%/*}${2}" ;;
7920
* ) func_dirname_result="${3}" ;;
7923
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7924
func_basename_result="${1##*/}"])
7926
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7928
*/*) func_dirname_result="${1%/*}${2}" ;;
7929
* ) func_dirname_result="${3}" ;;
7931
func_basename_result="${1##*/}"])
7933
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7934
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7935
# positional parameters, so assign one to ordinary parameter first.
7936
func_stripname_result=${3}
7937
func_stripname_result=${func_stripname_result#"${1}"}
7938
func_stripname_result=${func_stripname_result%"${2}"}])
7940
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7941
func_split_long_opt_name=${1%%=*}
7942
func_split_long_opt_arg=${1#*=}])
7944
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7945
func_split_short_opt_arg=${1#??}
7946
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7948
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7950
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7951
*) func_lo2o_result=${1} ;;
7954
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7956
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7958
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7961
if test x"$lt_shell_append" = xyes; then
7962
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7964
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7965
func_quote_for_eval "${2}"
7966
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7967
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7969
# Save a `func_append' function call where possible by direct use of '+='
7970
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7971
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7972
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7973
test 0 -eq $? || _lt_function_replace_fail=:
7975
# Save a `func_append' function call even when '+=' is not available
7976
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7977
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7978
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7979
test 0 -eq $? || _lt_function_replace_fail=:
7982
if test x"$_lt_function_replace_fail" = x":"; then
7983
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7987
# _LT_PATH_CONVERSION_FUNCTIONS
7988
# -----------------------------
7989
# Determine which file name conversion functions should be used by
7990
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7991
# for certain cross-compile configurations and native mingw.
7992
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7993
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7994
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7995
AC_MSG_CHECKING([how to convert $build file names to $host format])
7996
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8000
*-*-mingw* ) # actually msys
8001
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8004
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8006
* ) # otherwise, assume *nix
8007
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8013
*-*-mingw* ) # actually msys
8014
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8017
lt_cv_to_host_file_cmd=func_convert_file_noop
8019
* ) # otherwise, assume *nix
8020
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8024
* ) # unhandled hosts (and "normal" native builds)
8025
lt_cv_to_host_file_cmd=func_convert_file_noop
8029
to_host_file_cmd=$lt_cv_to_host_file_cmd
8030
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8031
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8032
[0], [convert $build file names to $host format])dnl
8034
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8035
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8036
[#assume ordinary cross tools, or native build.
8037
lt_cv_to_tool_file_cmd=func_convert_file_noop
8041
*-*-mingw* ) # actually msys
8042
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8048
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8049
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8050
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8051
[0], [convert $build files to toolchain format])dnl
8052
])# _LT_PATH_CONVERSION_FUNCTIONS
8054
# Helper functions for option handling. -*- Autoconf -*-
8056
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8058
# Written by Gary V. Vaughan, 2004
8060
# This file is free software; the Free Software Foundation gives
8061
# unlimited permission to copy and/or distribute it, with or without
8062
# modifications, as long as this notice is preserved.
8064
# serial 7 ltoptions.m4
8066
# This is to help aclocal find these macros, as it can't see m4_define.
8067
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8070
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8071
# ------------------------------------------
8072
m4_define([_LT_MANGLE_OPTION],
8073
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8076
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8077
# ---------------------------------------
8078
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8079
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8081
m4_define([_LT_SET_OPTION],
8082
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8083
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8084
_LT_MANGLE_DEFUN([$1], [$2]),
8085
[m4_warning([Unknown $1 option `$2'])])[]dnl
8089
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8090
# ------------------------------------------------------------
8091
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8092
m4_define([_LT_IF_OPTION],
8093
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8096
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8097
# -------------------------------------------------------
8098
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8100
m4_define([_LT_UNLESS_OPTIONS],
8101
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8102
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8103
[m4_define([$0_found])])])[]dnl
8104
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8109
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8110
# ----------------------------------------
8111
# OPTION-LIST is a space-separated list of Libtool options associated
8112
# with MACRO-NAME. If any OPTION has a matching handler declared with
8113
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8114
# the unknown option and exit.
8115
m4_defun([_LT_SET_OPTIONS],
8117
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8118
[_LT_SET_OPTION([$1], _LT_Option)])
8120
m4_if([$1],[LT_INIT],[
8122
dnl Simply set some default values (i.e off) if boolean options were not
8124
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8126
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8129
dnl If no reference was made to various pairs of opposing options, then
8130
dnl we run the default mode handler for the pair. For example, if neither
8131
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8132
dnl archives by default:
8133
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8134
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8135
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8136
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8137
[_LT_ENABLE_FAST_INSTALL])
8143
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8144
# -----------------------------------------
8145
m4_define([_LT_MANGLE_DEFUN],
8146
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8149
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8150
# -----------------------------------------------
8151
m4_define([LT_OPTION_DEFINE],
8152
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8153
])# LT_OPTION_DEFINE
8158
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8161
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8162
[_LT_SET_OPTION([LT_INIT], [dlopen])
8163
AC_DIAGNOSE([obsolete],
8164
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8165
put the `dlopen' option into LT_INIT's first parameter.])
8168
dnl aclocal-1.4 backwards compatibility:
8169
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8174
# Declare package support for building win32 dll's.
8175
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8176
[enable_win32_dll=yes
8179
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8180
AC_CHECK_TOOL(AS, as, false)
8181
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8182
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8186
test -z "$AS" && AS=as
8187
_LT_DECL([], [AS], [1], [Assembler program])dnl
8189
test -z "$DLLTOOL" && DLLTOOL=dlltool
8190
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8192
test -z "$OBJDUMP" && OBJDUMP=objdump
8193
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8196
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8197
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8198
_LT_SET_OPTION([LT_INIT], [win32-dll])
8199
AC_DIAGNOSE([obsolete],
8200
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8201
put the `win32-dll' option into LT_INIT's first parameter.])
8204
dnl aclocal-1.4 backwards compatibility:
8205
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8208
# _LT_ENABLE_SHARED([DEFAULT])
8209
# ----------------------------
8210
# implement the --enable-shared flag, and supports the `shared' and
8211
# `disable-shared' LT_INIT options.
8212
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8213
m4_define([_LT_ENABLE_SHARED],
8214
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8215
AC_ARG_ENABLE([shared],
8216
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8217
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8218
[p=${PACKAGE-default}
8220
yes) enable_shared=yes ;;
8221
no) enable_shared=no ;;
8224
# Look at the argument we got. We use all the common list separators.
8225
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8226
for pkg in $enableval; do
8228
if test "X$pkg" = "X$p"; then
8235
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8237
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8238
[Whether or not to build shared libraries])
8239
])# _LT_ENABLE_SHARED
8241
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8242
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8245
AC_DEFUN([AC_ENABLE_SHARED],
8246
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8249
AC_DEFUN([AC_DISABLE_SHARED],
8250
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8253
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8254
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8256
dnl aclocal-1.4 backwards compatibility:
8257
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8258
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8262
# _LT_ENABLE_STATIC([DEFAULT])
8263
# ----------------------------
8264
# implement the --enable-static flag, and support the `static' and
8265
# `disable-static' LT_INIT options.
8266
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8267
m4_define([_LT_ENABLE_STATIC],
8268
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8269
AC_ARG_ENABLE([static],
8270
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8271
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8272
[p=${PACKAGE-default}
8274
yes) enable_static=yes ;;
8275
no) enable_static=no ;;
8278
# Look at the argument we got. We use all the common list separators.
8279
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8280
for pkg in $enableval; do
8282
if test "X$pkg" = "X$p"; then
8289
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8291
_LT_DECL([build_old_libs], [enable_static], [0],
8292
[Whether or not to build static libraries])
8293
])# _LT_ENABLE_STATIC
8295
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8296
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8299
AC_DEFUN([AC_ENABLE_STATIC],
8300
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8303
AC_DEFUN([AC_DISABLE_STATIC],
8304
[_LT_SET_OPTION([LT_INIT], [disable-static])
8307
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8308
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8310
dnl aclocal-1.4 backwards compatibility:
8311
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8312
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8316
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8317
# ----------------------------------
8318
# implement the --enable-fast-install flag, and support the `fast-install'
8319
# and `disable-fast-install' LT_INIT options.
8320
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8321
m4_define([_LT_ENABLE_FAST_INSTALL],
8322
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8323
AC_ARG_ENABLE([fast-install],
8324
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8325
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8326
[p=${PACKAGE-default}
8328
yes) enable_fast_install=yes ;;
8329
no) enable_fast_install=no ;;
8331
enable_fast_install=no
8332
# Look at the argument we got. We use all the common list separators.
8333
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8334
for pkg in $enableval; do
8336
if test "X$pkg" = "X$p"; then
8337
enable_fast_install=yes
8343
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8345
_LT_DECL([fast_install], [enable_fast_install], [0],
8346
[Whether or not to optimize for fast installation])dnl
8347
])# _LT_ENABLE_FAST_INSTALL
8349
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8350
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8353
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8354
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8355
AC_DIAGNOSE([obsolete],
8356
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8357
the `fast-install' option into LT_INIT's first parameter.])
8360
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8361
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8362
AC_DIAGNOSE([obsolete],
8363
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8364
the `disable-fast-install' option into LT_INIT's first parameter.])
8367
dnl aclocal-1.4 backwards compatibility:
8368
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8369
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8372
# _LT_WITH_PIC([MODE])
8373
# --------------------
8374
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8376
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8377
m4_define([_LT_WITH_PIC],
8379
[AS_HELP_STRING([--with-pic],
8380
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8381
[pic_mode="$withval"],
8384
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8386
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8389
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8390
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8393
AU_DEFUN([AC_LIBTOOL_PICMODE],
8394
[_LT_SET_OPTION([LT_INIT], [pic-only])
8395
AC_DIAGNOSE([obsolete],
8396
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8397
put the `pic-only' option into LT_INIT's first parameter.])
8400
dnl aclocal-1.4 backwards compatibility:
8401
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8404
m4_define([_LTDL_MODE], [])
8405
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8406
[m4_define([_LTDL_MODE], [nonrecursive])])
8407
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8408
[m4_define([_LTDL_MODE], [recursive])])
8409
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8410
[m4_define([_LTDL_MODE], [subproject])])
8412
m4_define([_LTDL_TYPE], [])
8413
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8414
[m4_define([_LTDL_TYPE], [installable])])
8415
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8416
[m4_define([_LTDL_TYPE], [convenience])])
8418
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8420
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8421
# Written by Gary V. Vaughan, 2004
8423
# This file is free software; the Free Software Foundation gives
8424
# unlimited permission to copy and/or distribute it, with or without
8425
# modifications, as long as this notice is preserved.
8427
# serial 6 ltsugar.m4
8429
# This is to help aclocal find these macros, as it can't see m4_define.
8430
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8433
# lt_join(SEP, ARG1, [ARG2...])
8434
# -----------------------------
8435
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8436
# associated separator.
8437
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8438
# versions in m4sugar had bugs.
8439
m4_define([lt_join],
8440
[m4_if([$#], [1], [],
8442
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8443
m4_define([_lt_join],
8444
[m4_if([$#$2], [2], [],
8445
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8451
# Manipulate m4 lists.
8452
# These macros are necessary as long as will still need to support
8453
# Autoconf-2.59 which quotes differently.
8454
m4_define([lt_car], [[$1]])
8456
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8458
[m4_dquote(m4_shift($@))])])
8459
m4_define([lt_unquote], $1)
8462
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8463
# ------------------------------------------
8464
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8465
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8466
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8467
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8468
# than defined and empty).
8470
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8471
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8472
m4_define([lt_append],
8474
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8478
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8479
# ----------------------------------------------------------
8480
# Produce a SEP delimited list of all paired combinations of elements of
8481
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8482
# has the form PREFIXmINFIXSUFFIXn.
8483
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8484
m4_define([lt_combine],
8485
[m4_if(m4_eval([$# > 3]), [1],
8486
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8487
[[m4_foreach([_Lt_prefix], [$2],
8488
[m4_foreach([_Lt_suffix],
8489
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8490
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8493
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8494
# -----------------------------------------------------------------------
8495
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8496
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8497
m4_define([lt_if_append_uniq],
8499
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8500
[lt_append([$1], [$2], [$3])$4],
8502
[lt_append([$1], [$2], [$3])$4])])
8505
# lt_dict_add(DICT, KEY, VALUE)
8506
# -----------------------------
8507
m4_define([lt_dict_add],
8508
[m4_define([$1($2)], [$3])])
8511
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8512
# --------------------------------------------
8513
m4_define([lt_dict_add_subkey],
8514
[m4_define([$1($2:$3)], [$4])])
8517
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8518
# ----------------------------------
8519
m4_define([lt_dict_fetch],
8521
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8522
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8525
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8526
# -----------------------------------------------------------------
8527
m4_define([lt_if_dict_fetch],
8528
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8533
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8534
# --------------------------------------------------------------
8535
m4_define([lt_dict_filter],
8536
[m4_if([$5], [], [],
8537
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8538
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8539
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8542
# ltversion.m4 -- version numbers -*- Autoconf -*-
8544
# Copyright (C) 2004 Free Software Foundation, Inc.
8545
# Written by Scott James Remnant, 2004
8547
# This file is free software; the Free Software Foundation gives
8548
# unlimited permission to copy and/or distribute it, with or without
8549
# modifications, as long as this notice is preserved.
8553
# serial 3293 ltversion.m4
8554
# This file is part of GNU Libtool
8556
m4_define([LT_PACKAGE_VERSION], [2.4])
8557
m4_define([LT_PACKAGE_REVISION], [1.3293])
8559
AC_DEFUN([LTVERSION_VERSION],
8560
[macro_version='2.4'
8561
macro_revision='1.3293'
8562
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8563
_LT_DECL(, macro_revision, 0)
8566
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8568
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8569
# Written by Scott James Remnant, 2004.
8571
# This file is free software; the Free Software Foundation gives
8572
# unlimited permission to copy and/or distribute it, with or without
8573
# modifications, as long as this notice is preserved.
8575
# serial 5 lt~obsolete.m4
8577
# These exist entirely to fool aclocal when bootstrapping libtool.
8579
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8580
# which have later been changed to m4_define as they aren't part of the
8581
# exported API, or moved to Autoconf or Automake where they belong.
8583
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8584
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8585
# using a macro with the same name in our local m4/libtool.m4 it'll
8586
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8587
# and doesn't know about Autoconf macros at all.)
8589
# So we provide this file, which has a silly filename so it's always
8590
# included after everything else. This provides aclocal with the
8591
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8592
# because those macros already exist, or will be overwritten later.
8593
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8595
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8596
# Yes, that means every name once taken will need to remain here until
8597
# we give up compatibility with versions before 1.7, at which point
8598
# we need to keep only those names which we still refer to.
8600
# This is to help aclocal find these macros, as it can't see m4_define.
8601
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8603
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8604
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8605
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8606
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8607
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8608
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8609
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8610
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8611
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8612
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8613
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8614
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8615
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8616
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8617
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8618
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8619
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8620
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8621
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8622
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8623
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8624
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8625
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8626
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8627
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8628
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8629
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8630
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8631
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8632
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8633
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8634
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8635
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8636
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8637
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8638
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8639
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8640
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8641
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8642
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8643
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8644
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8645
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8646
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8647
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8648
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8649
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8650
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8651
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8652
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8653
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8654
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8655
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8656
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8657
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8658
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8659
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8660
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8661
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8662
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8663
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8665
234
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8666
235
# serial 1 (pkg-config-0.24)