501
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
502
# serial 40 IT_PROG_INTLTOOL
503
AC_DEFUN([IT_PROG_INTLTOOL], [
505
AC_REQUIRE([AM_NLS])dnl
507
case "$am__api_version" in
509
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
515
if test -n "$1"; then
516
AC_MSG_CHECKING([for intltool >= $1])
518
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
519
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
520
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
522
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
523
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
524
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
527
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
528
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
529
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
530
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
531
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
534
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
535
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
536
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
537
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
538
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
539
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
540
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
541
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
542
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
543
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
544
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
545
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
546
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
547
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
548
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
549
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
550
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
551
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
552
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
554
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
555
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
556
_IT_SUBST(INTLTOOL_KEYS_RULE)
557
_IT_SUBST(INTLTOOL_PROP_RULE)
558
_IT_SUBST(INTLTOOL_OAF_RULE)
559
_IT_SUBST(INTLTOOL_PONG_RULE)
560
_IT_SUBST(INTLTOOL_SERVER_RULE)
561
_IT_SUBST(INTLTOOL_SHEET_RULE)
562
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
563
_IT_SUBST(INTLTOOL_UI_RULE)
564
_IT_SUBST(INTLTOOL_XAM_RULE)
565
_IT_SUBST(INTLTOOL_KBD_RULE)
566
_IT_SUBST(INTLTOOL_XML_RULE)
567
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
568
_IT_SUBST(INTLTOOL_CAVES_RULE)
569
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
570
_IT_SUBST(INTLTOOL_THEME_RULE)
571
_IT_SUBST(INTLTOOL_SERVICE_RULE)
572
_IT_SUBST(INTLTOOL_POLICY_RULE)
574
# Check the gettext tools to make sure they are GNU
575
AC_PATH_PROG(XGETTEXT, xgettext)
576
AC_PATH_PROG(MSGMERGE, msgmerge)
577
AC_PATH_PROG(MSGFMT, msgfmt)
578
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
579
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
580
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
582
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
583
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
584
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
585
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
586
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
589
AC_PATH_PROG(INTLTOOL_PERL, perl)
590
if test -z "$INTLTOOL_PERL"; then
591
AC_MSG_ERROR([perl not found])
593
AC_MSG_CHECKING([for perl >= 5.8.1])
594
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
595
if test $? -ne 0; then
596
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
598
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
599
AC_MSG_RESULT([$IT_PERL_VERSION])
601
if test "x$2" != "xno-xml"; then
602
AC_MSG_CHECKING([for XML::Parser])
603
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
606
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
610
# Substitute ALL_LINGUAS so we can use it in po/Makefile
611
AC_SUBST(ALL_LINGUAS)
613
# Set DATADIRNAME correctly if it is not set yet
614
# (copied from glib-gettext.m4)
615
if test -z "$DATADIRNAME"; then
617
[AC_LANG_PROGRAM([[]],
618
[[extern int _nl_msg_cat_cntr;
619
return _nl_msg_cat_cntr]])],
623
dnl On Solaris, if bind_textdomain_codeset is in libc,
624
dnl GNU format message catalog is always supported,
625
dnl since both are added to the libc all together.
626
dnl Hence, we'd like to go with DATADIRNAME=share
628
AC_CHECK_FUNC(bind_textdomain_codeset,
629
[DATADIRNAME=share], [DATADIRNAME=lib])
636
AC_SUBST(DATADIRNAME)
643
# IT_PO_SUBDIR(DIRNAME)
644
# ---------------------
645
# All po subdirs have to be declared with this macro; the subdir "po" is
646
# declared by IT_PROG_INTLTOOL.
648
AC_DEFUN([IT_PO_SUBDIR],
649
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
456
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
457
dnl the schema should be compiled
651
dnl The following CONFIG_COMMANDS should be executed at the very end
652
dnl of config.status.
653
AC_CONFIG_COMMANDS_PRE([
654
AC_CONFIG_COMMANDS([$1/stamp-it], [
655
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
656
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
658
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
663
'"s|^| $ac_top_srcdir/|" \
664
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
666
[sed '/^POTFILES =/,/[^\\]$/ {
670
' "$1/Makefile.in" >"$1/Makefile"]
671
rm -f "$1/Makefile.tmp"
672
mv "$1/stamp-it.tmp" "$1/stamp-it"
460
AC_DEFUN([GLIB_GSETTINGS],
462
m4_pattern_allow([AM_V_GEN])
463
AC_ARG_ENABLE(schemas-compile,
464
AS_HELP_STRING([--disable-schemas-compile],
465
[Disable regeneration of gschemas.compiled on install]),
466
[case ${enableval} in
467
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
468
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
469
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
471
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
472
PKG_PROG_PKG_CONFIG([0.16])
473
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
474
if test x$cross_compiling != xyes; then
475
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
477
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
479
AC_SUBST(GLIB_COMPILE_SCHEMAS)
480
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
481
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
483
ifelse([$1],,[:],[$1])
487
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
489
mostlyclean-am: clean-gsettings-schemas
491
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
493
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
494
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
496
all-am: $(gsettings_SCHEMAS:.xml=.valid)
497
uninstall-am: uninstall-gsettings-schemas
498
install-data-am: install-gsettings-schemas
500
.SECONDARY: $(gsettings_SCHEMAS)
502
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
504
if test -n "$^"; then \
505
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
506
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
507
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
510
uninstall-gsettings-schemas:
512
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
513
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
514
test -n "$$files" || exit 0; \
515
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
516
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
517
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
519
clean-gsettings-schemas:
520
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
522
ifdef gsettings_ENUM_NAMESPACE
523
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
524
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
527
_GSETTINGS_SUBST(GSETTINGS_RULES)
677
# _IT_SUBST(VARIABLE)
678
# -------------------
679
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
681
AC_DEFUN([_IT_SUBST],
530
dnl _GSETTINGS_SUBST(VARIABLE)
531
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
532
AC_DEFUN([_GSETTINGS_SUBST],
684
535
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
689
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
690
# A hint is needed for aclocal from Automake <= 1.9.4:
691
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
694
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
696
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
697
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
699
# Written by Gordon Matzigkeit, 1996
701
# This file is free software; the Free Software Foundation gives
702
# unlimited permission to copy and/or distribute it, with or without
703
# modifications, as long as this notice is preserved.
705
m4_define([_LT_COPYING], [dnl
706
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
707
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
709
# Written by Gordon Matzigkeit, 1996
711
# This file is part of GNU Libtool.
713
# GNU Libtool is free software; you can redistribute it and/or
714
# modify it under the terms of the GNU General Public License as
715
# published by the Free Software Foundation; either version 2 of
716
# the License, or (at your option) any later version.
718
# As a special exception to the GNU General Public License,
719
# if you distribute this file as part of a program or library that
720
# is built using GNU Libtool, you may include this file under the
721
# same distribution terms that you use for the rest of that program.
723
# GNU Libtool is distributed in the hope that it will be useful,
724
# but WITHOUT ANY WARRANTY; without even the implied warranty of
725
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
726
# GNU General Public License for more details.
728
# You should have received a copy of the GNU General Public License
729
# along with GNU Libtool; see the file COPYING. If not, a copy
730
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
731
# obtained by writing to the Free Software Foundation, Inc.,
732
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
740
# Complain and exit if this libtool version is less that VERSION.
741
m4_defun([LT_PREREQ],
742
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
744
[m4_fatal([Libtool version $1 or higher is required],
751
# Complain if the absolute build directory name contains unusual characters
752
m4_defun([_LT_CHECK_BUILDDIR],
755
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
763
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
764
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
765
AC_BEFORE([$0], [LT_LANG])dnl
766
AC_BEFORE([$0], [LT_OUTPUT])dnl
767
AC_BEFORE([$0], [LTDL_INIT])dnl
768
m4_require([_LT_CHECK_BUILDDIR])dnl
770
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
771
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
772
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
773
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
774
dnl unless we require an AC_DEFUNed macro:
775
AC_REQUIRE([LTOPTIONS_VERSION])dnl
776
AC_REQUIRE([LTSUGAR_VERSION])dnl
777
AC_REQUIRE([LTVERSION_VERSION])dnl
778
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
779
m4_require([_LT_PROG_LTMAIN])dnl
781
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
784
_LT_SET_OPTIONS([$0], [$1])
786
# This can be used to rebuild libtool when needed
787
LIBTOOL_DEPS="$ltmain"
789
# Always use our own libtool.
790
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
800
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
801
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
802
dnl aclocal-1.4 backwards compatibility:
803
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
804
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
807
# _LT_CC_BASENAME(CC)
808
# -------------------
809
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
810
m4_defun([_LT_CC_BASENAME],
811
[for cc_temp in $1""; do
813
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
814
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
819
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
823
# _LT_FILEUTILS_DEFAULTS
824
# ----------------------
825
# It is okay to use these file commands and assume they have been set
826
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
827
m4_defun([_LT_FILEUTILS_DEFAULTS],
831
])# _LT_FILEUTILS_DEFAULTS
836
m4_defun([_LT_SETUP],
837
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
838
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
839
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
840
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
842
_LT_DECL([], [host_alias], [0], [The host system])dnl
843
_LT_DECL([], [host], [0])dnl
844
_LT_DECL([], [host_os], [0])dnl
846
_LT_DECL([], [build_alias], [0], [The build system])dnl
847
_LT_DECL([], [build], [0])dnl
848
_LT_DECL([], [build_os], [0])dnl
850
AC_REQUIRE([AC_PROG_CC])dnl
851
AC_REQUIRE([LT_PATH_LD])dnl
852
AC_REQUIRE([LT_PATH_NM])dnl
854
AC_REQUIRE([AC_PROG_LN_S])dnl
855
test -z "$LN_S" && LN_S="ln -s"
856
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
858
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
859
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
860
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
862
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
863
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
864
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
865
m4_require([_LT_CMD_RELOAD])dnl
866
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
867
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
868
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
869
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
870
m4_require([_LT_WITH_SYSROOT])dnl
872
_LT_CONFIG_LIBTOOL_INIT([
873
# See if we are running on zsh, and set the options which allow our
874
# commands through without removal of \ escapes INIT.
875
if test -n "\${ZSH_VERSION+set}" ; then
879
if test -n "${ZSH_VERSION+set}" ; then
885
m4_require([_LT_TAG_COMPILER])dnl
889
# AIX sometimes has problems with the GCC collect2 program. For some
890
# reason, if we set the COLLECT_NAMES environment variable, the problems
891
# vanish in a puff of smoke.
892
if test "X${COLLECT_NAMES+set}" != Xset; then
903
# All known linkers require a `.a' archive for static linking (except MSVC,
904
# which needs '.lib').
907
with_gnu_ld="$lt_cv_prog_gnu_ld"
912
# Set sane defaults for various variables
913
test -z "$CC" && CC=cc
914
test -z "$LTCC" && LTCC=$CC
915
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
916
test -z "$LD" && LD=ld
917
test -z "$ac_objext" && ac_objext=o
919
_LT_CC_BASENAME([$compiler])
921
# Only perform the check for file, if the check method requires it
922
test -z "$MAGIC_CMD" && MAGIC_CMD=file
923
case $deplibs_check_method in
925
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
931
# Use C for the default configuration in the libtool script
932
LT_SUPPORTED_TAG([CC])
934
_LT_LANG_DEFAULT_CONFIG
939
# _LT_PREPARE_SED_QUOTE_VARS
940
# --------------------------
941
# Define a few sed substitution that help us do robust quoting.
942
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
943
[# Backslashify metacharacters that are still active within
944
# double-quoted strings.
945
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
947
# Same as above, but do not quote variable references.
948
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
950
# Sed substitution to delay expansion of an escaped shell variable in a
951
# double_quote_subst'ed string.
952
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
954
# Sed substitution to delay expansion of an escaped single quote.
955
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
957
# Sed substitution to avoid accidental globbing in evaled expressions
958
no_glob_subst='s/\*/\\\*/g'
963
# Note that this code is called both from `configure', and `config.status'
964
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
965
# `config.status' has no value for ac_aux_dir unless we are using Automake,
966
# so we pass a copy along to make sure it has a sensible value anyway.
967
m4_defun([_LT_PROG_LTMAIN],
968
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
969
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
970
ltmain="$ac_aux_dir/ltmain.sh"
975
# So that we can recreate a full libtool script including additional
976
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
977
# in macros and then make a single call at the end using the `libtool'
981
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
982
# ----------------------------------------
983
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
984
m4_define([_LT_CONFIG_LIBTOOL_INIT],
986
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
991
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
994
# _LT_CONFIG_LIBTOOL([COMMANDS])
995
# ------------------------------
996
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
997
m4_define([_LT_CONFIG_LIBTOOL],
999
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1004
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1007
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1008
# -----------------------------------------------------
1009
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1010
[_LT_CONFIG_LIBTOOL([$1])
1011
_LT_CONFIG_LIBTOOL_INIT([$2])
1015
# _LT_FORMAT_COMMENT([COMMENT])
1016
# -----------------------------
1017
# Add leading comment marks to the start of each line, and a trailing
1018
# full-stop to the whole comment if one is not present already.
1019
m4_define([_LT_FORMAT_COMMENT],
1021
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1022
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1029
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1030
# -------------------------------------------------------------------
1031
# CONFIGNAME is the name given to the value in the libtool script.
1032
# VARNAME is the (base) name used in the configure script.
1033
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1034
# VARNAME. Any other value will be used directly.
1035
m4_define([_LT_DECL],
1036
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1037
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1038
[m4_ifval([$1], [$1], [$2])])
1039
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1041
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1042
lt_dict_add_subkey([lt_decl_dict], [$2],
1043
[tagged?], [m4_ifval([$5], [yes], [no])])])
1047
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1048
# --------------------------------------------------------
1049
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1052
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1053
# ------------------------------------------------
1054
m4_define([lt_decl_tag_varnames],
1055
[_lt_decl_filter([tagged?], [yes], $@)])
1058
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1059
# ---------------------------------------------------------
1060
m4_define([_lt_decl_filter],
1062
[0], [m4_fatal([$0: too few arguments: $#])],
1063
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1064
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1065
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1066
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1070
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1071
# --------------------------------------------------
1072
m4_define([lt_decl_quote_varnames],
1073
[_lt_decl_filter([value], [1], $@)])
1076
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1077
# ---------------------------------------------------
1078
m4_define([lt_decl_dquote_varnames],
1079
[_lt_decl_filter([value], [2], $@)])
1082
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1083
# ---------------------------------------------------
1084
m4_define([lt_decl_varnames_tagged],
1085
[m4_assert([$# <= 2])dnl
1086
_$0(m4_quote(m4_default([$1], [[, ]])),
1087
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1088
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1089
m4_define([_lt_decl_varnames_tagged],
1090
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1093
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1094
# ------------------------------------------------
1095
m4_define([lt_decl_all_varnames],
1096
[_$0(m4_quote(m4_default([$1], [[, ]])),
1098
m4_quote(lt_decl_varnames),
1099
m4_quote(m4_shift($@))))[]dnl
1101
m4_define([_lt_decl_all_varnames],
1102
[lt_join($@, lt_decl_varnames_tagged([$1],
1103
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1107
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1108
# ------------------------------------
1109
# Quote a variable value, and forward it to `config.status' so that its
1110
# declaration there will have the same value as in `configure'. VARNAME
1111
# must have a single quote delimited value for this to work.
1112
m4_define([_LT_CONFIG_STATUS_DECLARE],
1113
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1116
# _LT_CONFIG_STATUS_DECLARATIONS
1117
# ------------------------------
1118
# We delimit libtool config variables with single quotes, so when
1119
# we write them to config.status, we have to be sure to quote all
1120
# embedded single quotes properly. In configure, this macro expands
1121
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1123
# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1124
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1125
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1126
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1131
# Output comment and list of tags supported by the script
1132
m4_defun([_LT_LIBTOOL_TAGS],
1133
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1134
available_tags="_LT_TAGS"dnl
1138
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1139
# -----------------------------------
1140
# Extract the dictionary values for VARNAME (optionally with TAG) and
1141
# expand to a commented shell variable setting:
1143
# # Some comment about what VAR is for.
1144
# visible_name=$lt_internal_name
1145
m4_define([_LT_LIBTOOL_DECLARE],
1146
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1147
[description])))[]dnl
1148
m4_pushdef([_libtool_name],
1149
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1150
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1151
[0], [_libtool_name=[$]$1],
1152
[1], [_libtool_name=$lt_[]$1],
1153
[2], [_libtool_name=$lt_[]$1],
1154
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1155
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1159
# _LT_LIBTOOL_CONFIG_VARS
1160
# -----------------------
1161
# Produce commented declarations of non-tagged libtool config variables
1162
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1163
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1164
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1165
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1166
[m4_foreach([_lt_var],
1167
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1168
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1171
# _LT_LIBTOOL_TAG_VARS(TAG)
1172
# -------------------------
1173
m4_define([_LT_LIBTOOL_TAG_VARS],
1174
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1175
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1178
# _LT_TAGVAR(VARNAME, [TAGNAME])
1179
# ------------------------------
1180
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1183
# _LT_CONFIG_COMMANDS
1184
# -------------------
1185
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1186
# variables for single and double quote escaping we saved from calls
1187
# to _LT_DECL, we can put quote escaped variables declarations
1188
# into `config.status', and then the shell code to quote escape them in
1189
# for loops in `config.status'. Finally, any additional code accumulated
1190
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1191
m4_defun([_LT_CONFIG_COMMANDS],
1192
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1193
dnl If the libtool generation code has been placed in $CONFIG_LT,
1194
dnl instead of duplicating it all over again into config.status,
1195
dnl then we will have config.status run $CONFIG_LT later, so it
1196
dnl needs to know what name is stored there:
1197
[AC_CONFIG_COMMANDS([libtool],
1198
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1199
dnl If the libtool generation code is destined for config.status,
1200
dnl expand the accumulated commands and init code now:
1201
[AC_CONFIG_COMMANDS([libtool],
1202
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1203
])#_LT_CONFIG_COMMANDS
1207
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1210
# The HP-UX ksh and POSIX shell print the target directory to stdout
1212
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1214
sed_quote_subst='$sed_quote_subst'
1215
double_quote_subst='$double_quote_subst'
1216
delay_variable_subst='$delay_variable_subst'
1217
_LT_CONFIG_STATUS_DECLARATIONS
1219
LTCFLAGS='$LTCFLAGS'
1220
compiler='$compiler_DEFAULT'
1222
# A function that is used when there is no print builtin or printf.
1223
func_fallback_echo ()
1225
eval 'cat <<_LTECHO_EOF
1230
# Quote evaled strings.
1231
for var in lt_decl_all_varnames([[ \
1232
]], lt_decl_quote_varnames); do
1233
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1234
*[[\\\\\\\`\\"\\\$]]*)
1235
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1238
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1243
# Double-quote double-evaled strings.
1244
for var in lt_decl_all_varnames([[ \
1245
]], lt_decl_dquote_varnames); do
1246
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1247
*[[\\\\\\\`\\"\\\$]]*)
1248
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1251
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1256
_LT_OUTPUT_LIBTOOL_INIT
1259
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1260
# ------------------------------------
1261
# Generate a child script FILE with all initialization necessary to
1262
# reuse the environment learned by the parent script, and make the
1263
# file executable. If COMMENT is supplied, it is inserted after the
1264
# `#!' sequence but before initialization text begins. After this
1265
# macro, additional text can be appended to FILE to form the body of
1266
# the child script. The macro ends with non-zero status if the
1267
# file could not be fully written (such as if the disk is full).
1268
m4_ifdef([AS_INIT_GENERATED],
1269
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1270
[m4_defun([_LT_GENERATED_FILE_INIT],
1271
[m4_require([AS_PREPARE])]dnl
1272
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1274
cat >$1 <<_ASEOF || lt_write_fail=1
1276
# Generated by $as_me.
1278
SHELL=\${CONFIG_SHELL-$SHELL}
1281
cat >>$1 <<\_ASEOF || lt_write_fail=1
1284
exec AS_MESSAGE_FD>&1
1286
test $lt_write_fail = 0 && chmod +x $1[]dnl
1287
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1291
# This macro allows early generation of the libtool script (before
1292
# AC_OUTPUT is called), incase it is used in configure for compilation
1294
AC_DEFUN([LT_OUTPUT],
1295
[: ${CONFIG_LT=./config.lt}
1296
AC_MSG_NOTICE([creating $CONFIG_LT])
1297
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1298
[# Run this file to recreate a libtool stub with the current configuration.])
1300
cat >>"$CONFIG_LT" <<\_LTEOF
1302
exec AS_MESSAGE_LOG_FD>>config.log
1305
AS_BOX([Running $as_me.])
1306
} >&AS_MESSAGE_LOG_FD
1309
\`$as_me' creates a local libtool stub from the current configuration,
1310
for use in further configure time tests before the real libtool is
1313
Usage: $[0] [[OPTIONS]]
1315
-h, --help print this help, then exit
1316
-V, --version print version number, then exit
1317
-q, --quiet do not print progress messages
1318
-d, --debug don't remove temporary files
1320
Report bugs to <bug-libtool@gnu.org>."
1323
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1324
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1325
configured by $[0], generated by m4_PACKAGE_STRING.
1327
Copyright (C) 2010 Free Software Foundation, Inc.
1328
This config.lt script is free software; the Free Software Foundation
1329
gives unlimited permision to copy, distribute and modify it."
1331
while test $[#] != 0
1334
--version | --v* | -V )
1335
echo "$lt_cl_version"; exit 0 ;;
1336
--help | --h* | -h )
1337
echo "$lt_cl_help"; exit 0 ;;
1338
--debug | --d* | -d )
1340
--quiet | --q* | --silent | --s* | -q )
1343
-*) AC_MSG_ERROR([unrecognized option: $[1]
1344
Try \`$[0] --help' for more information.]) ;;
1346
*) AC_MSG_ERROR([unrecognized argument: $[1]
1347
Try \`$[0] --help' for more information.]) ;;
1352
if $lt_cl_silent; then
1353
exec AS_MESSAGE_FD>/dev/null
1357
cat >>"$CONFIG_LT" <<_LTEOF
1358
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1361
cat >>"$CONFIG_LT" <<\_LTEOF
1362
AC_MSG_NOTICE([creating $ofile])
1363
_LT_OUTPUT_LIBTOOL_COMMANDS
1366
chmod +x "$CONFIG_LT"
1368
# configure is writing to config.log, but config.lt does its own redirection,
1369
# appending to config.log, which fails on DOS, as config.log is still kept
1370
# open by configure. Here we exec the FD to /dev/null, effectively closing
1371
# config.log, so it can be properly (re)opened and appended to by config.lt.
1373
test "$silent" = yes &&
1374
lt_config_lt_args="$lt_config_lt_args --quiet"
1375
exec AS_MESSAGE_LOG_FD>/dev/null
1376
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1377
exec AS_MESSAGE_LOG_FD>>config.log
1378
$lt_cl_success || AS_EXIT(1)
1384
# If TAG is the built-in tag, create an initial libtool script with a
1385
# default configuration from the untagged config vars. Otherwise add code
1386
# to config.status for appending the configuration named by TAG from the
1387
# matching tagged config vars.
1388
m4_defun([_LT_CONFIG],
1389
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1390
_LT_CONFIG_SAVE_COMMANDS([
1391
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1392
m4_if(_LT_TAG, [C], [
1393
# See if we are running on zsh, and set the options which allow our
1394
# commands through without removal of \ escapes.
1395
if test -n "${ZSH_VERSION+set}" ; then
1396
setopt NO_GLOB_SUBST
1400
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1403
cat <<_LT_EOF >> "$cfgfile"
1406
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1407
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1408
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1409
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1414
# ### BEGIN LIBTOOL CONFIG
1415
_LT_LIBTOOL_CONFIG_VARS
1416
_LT_LIBTOOL_TAG_VARS
1417
# ### END LIBTOOL CONFIG
1423
cat <<\_LT_EOF >> "$cfgfile"
1424
# AIX sometimes has problems with the GCC collect2 program. For some
1425
# reason, if we set the COLLECT_NAMES environment variable, the problems
1426
# vanish in a puff of smoke.
1427
if test "X${COLLECT_NAMES+set}" != Xset; then
1429
export COLLECT_NAMES
1437
# We use sed instead of cat because bash on DJGPP gets confused if
1438
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1439
# text mode, it properly converts lines to CR/LF. This bash problem
1440
# is reportedly fixed, but why not run on old versions too?
1441
sed '$q' "$ltmain" >> "$cfgfile" \
1442
|| (rm -f "$cfgfile"; exit 1)
1444
_LT_PROG_REPLACE_SHELLFNS
1446
mv -f "$cfgfile" "$ofile" ||
1447
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1450
[cat <<_LT_EOF >> "$ofile"
1452
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1453
dnl in a comment (ie after a #).
1454
# ### BEGIN LIBTOOL TAG CONFIG: $1
1455
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1456
# ### END LIBTOOL TAG CONFIG: $1
1463
TIMESTAMP='$TIMESTAMP'
1465
ofile='$ofile'], [])
1466
])dnl /_LT_CONFIG_SAVE_COMMANDS
1470
# LT_SUPPORTED_TAG(TAG)
1471
# ---------------------
1472
# Trace this macro to discover what tags are supported by the libtool
1473
# --tag option, using:
1474
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1475
AC_DEFUN([LT_SUPPORTED_TAG], [])
1478
# C support is built-in for now
1479
m4_define([_LT_LANG_C_enabled], [])
1480
m4_define([_LT_TAGS], [])
1485
# Enable libtool support for the given language if not already enabled.
1487
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1490
[C++], [_LT_LANG(CXX)],
1491
[Java], [_LT_LANG(GCJ)],
1492
[Fortran 77], [_LT_LANG(F77)],
1493
[Fortran], [_LT_LANG(FC)],
1494
[Windows Resource], [_LT_LANG(RC)],
1495
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1497
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1501
# _LT_LANG(LANGNAME)
1502
# ------------------
1503
m4_defun([_LT_LANG],
1504
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1505
[LT_SUPPORTED_TAG([$1])dnl
1506
m4_append([_LT_TAGS], [$1 ])dnl
1507
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1508
_LT_LANG_$1_CONFIG($1)])dnl
1512
# _LT_LANG_DEFAULT_CONFIG
1513
# -----------------------
1514
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1515
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1517
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1519
AC_PROVIDE_IFELSE([AC_PROG_F77],
1521
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1523
AC_PROVIDE_IFELSE([AC_PROG_FC],
1525
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1527
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1528
dnl pulling things in needlessly.
1529
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1531
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1533
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1535
[m4_ifdef([AC_PROG_GCJ],
1536
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1537
m4_ifdef([A][M_PROG_GCJ],
1538
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1539
m4_ifdef([LT_PROG_GCJ],
1540
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1542
AC_PROVIDE_IFELSE([LT_PROG_RC],
1544
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1545
])# _LT_LANG_DEFAULT_CONFIG
1548
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1549
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1550
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1551
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1552
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1553
dnl aclocal-1.4 backwards compatibility:
1554
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1555
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1556
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1557
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1558
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1563
m4_defun([_LT_TAG_COMPILER],
1564
[AC_REQUIRE([AC_PROG_CC])dnl
1566
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1567
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1568
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1569
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1571
# If no C compiler was specified, use CC.
1574
# If no C compiler flags were specified, use CFLAGS.
1575
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1577
# Allow CC to be a program name with arguments.
1579
])# _LT_TAG_COMPILER
1582
# _LT_COMPILER_BOILERPLATE
1583
# ------------------------
1584
# Check for compiler boilerplate output or warnings with
1585
# the simple compiler test code.
1586
m4_defun([_LT_COMPILER_BOILERPLATE],
1587
[m4_require([_LT_DECL_SED])dnl
1588
ac_outfile=conftest.$ac_objext
1589
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1590
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1591
_lt_compiler_boilerplate=`cat conftest.err`
1593
])# _LT_COMPILER_BOILERPLATE
1596
# _LT_LINKER_BOILERPLATE
1597
# ----------------------
1598
# Check for linker boilerplate output or warnings with
1599
# the simple link test code.
1600
m4_defun([_LT_LINKER_BOILERPLATE],
1601
[m4_require([_LT_DECL_SED])dnl
1602
ac_outfile=conftest.$ac_objext
1603
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1604
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1605
_lt_linker_boilerplate=`cat conftest.err`
1607
])# _LT_LINKER_BOILERPLATE
1609
# _LT_REQUIRED_DARWIN_CHECKS
1610
# -------------------------
1611
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1613
rhapsody* | darwin*)
1614
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1615
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1616
AC_CHECK_TOOL([LIPO], [lipo], [:])
1617
AC_CHECK_TOOL([OTOOL], [otool], [:])
1618
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1619
_LT_DECL([], [DSYMUTIL], [1],
1620
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1621
_LT_DECL([], [NMEDIT], [1],
1622
[Tool to change global to local symbols on Mac OS X])
1623
_LT_DECL([], [LIPO], [1],
1624
[Tool to manipulate fat objects and archives on Mac OS X])
1625
_LT_DECL([], [OTOOL], [1],
1626
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
1627
_LT_DECL([], [OTOOL64], [1],
1628
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1630
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1631
[lt_cv_apple_cc_single_mod=no
1632
if test -z "${LT_MULTI_MODULE}"; then
1633
# By default we will add the -single_module flag. You can override
1634
# by either setting the environment variable LT_MULTI_MODULE
1635
# non-empty at configure time, or by adding -multi_module to the
1637
rm -rf libconftest.dylib*
1638
echo "int foo(void){return 1;}" > conftest.c
1639
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1640
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1641
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1642
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1644
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1645
lt_cv_apple_cc_single_mod=yes
1647
cat conftest.err >&AS_MESSAGE_LOG_FD
1649
rm -rf libconftest.dylib*
1652
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1653
[lt_cv_ld_exported_symbols_list],
1654
[lt_cv_ld_exported_symbols_list=no
1655
save_LDFLAGS=$LDFLAGS
1656
echo "_main" > conftest.sym
1657
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1658
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1659
[lt_cv_ld_exported_symbols_list=yes],
1660
[lt_cv_ld_exported_symbols_list=no])
1661
LDFLAGS="$save_LDFLAGS"
1663
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1664
[lt_cv_ld_force_load=no
1665
cat > conftest.c << _LT_EOF
1666
int forced_loaded() { return 2;}
1668
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1669
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1670
echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1671
$AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1672
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1673
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1674
cat > conftest.c << _LT_EOF
1675
int main() { return 0;}
1677
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1678
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1680
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1681
lt_cv_ld_force_load=yes
1683
cat conftest.err >&AS_MESSAGE_LOG_FD
1685
rm -f conftest.err libconftest.a conftest conftest.c
1686
rm -rf conftest.dSYM
1689
rhapsody* | darwin1.[[012]])
1690
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1692
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1693
darwin*) # darwin 5.x on
1694
# if running on 10.5 or later, the deployment target defaults
1695
# to the OS version, if on x86, and 10.4, the deployment
1696
# target defaults to 10.4. Don't you love it?
1697
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1698
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1699
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1701
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1703
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1707
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1708
_lt_dar_single_mod='$single_module'
1710
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1711
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1713
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1715
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1716
_lt_dsymutil='~$DSYMUTIL $lib || :'
1725
# _LT_DARWIN_LINKER_FEATURES
1726
# --------------------------
1727
# Checks for linker and compiler features on darwin
1728
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1730
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1731
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
1732
_LT_TAGVAR(hardcode_direct, $1)=no
1733
_LT_TAGVAR(hardcode_automatic, $1)=yes
1734
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1735
if test "$lt_cv_ld_force_load" = "yes"; then
1736
_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\"`'
1738
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1740
_LT_TAGVAR(link_all_deplibs, $1)=yes
1741
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1742
case $cc_basename in
1743
ifort*) _lt_dar_can_shared=yes ;;
1744
*) _lt_dar_can_shared=$GCC ;;
1746
if test "$_lt_dar_can_shared" = "yes"; then
1747
output_verbose_link_cmd=func_echo_all
1748
_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}"
1749
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1750
_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}"
1751
_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}"
1753
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1754
_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}"
1755
_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}"
1759
_LT_TAGVAR(ld_shlibs, $1)=no
1763
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1764
# ----------------------------------
1765
# Links a minimal program and checks the executable
1766
# for the system default hardcoded library path. In most cases,
1767
# this is /usr/lib:/lib, but when the MPI compilers are used
1768
# the location of the communication and MPI libs are included too.
1769
# If we don't find anything, use the default library path according
1770
# to the aix ld manual.
1771
# Store the results from the different compilers for each TAGNAME.
1772
# Allow to override them for all tags through lt_cv_aix_libpath.
1773
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1774
[m4_require([_LT_DECL_SED])dnl
1775
if test "${lt_cv_aix_libpath+set}" = set; then
1776
aix_libpath=$lt_cv_aix_libpath
1778
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1779
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1780
lt_aix_libpath_sed='[
1781
/Import File Strings/,/^$/ {
1783
s/^0 *\([^ ]*\) *$/\1/
1787
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1788
# Check for a 64-bit object if we didn't find anything.
1789
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1790
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1792
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1793
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1796
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1798
])# _LT_SYS_MODULE_PATH_AIX
1801
# _LT_SHELL_INIT(ARG)
1802
# -------------------
1803
m4_define([_LT_SHELL_INIT],
1804
[m4_divert_text([M4SH-INIT], [$1
1805
])])# _LT_SHELL_INIT
1809
# _LT_PROG_ECHO_BACKSLASH
1810
# -----------------------
1811
# Find how we can fake an echo command that does not interpret backslash.
1812
# In particular, with Autoconf 2.60 or later we add some code to the start
1813
# of the generated configure script which will find a shell with a builtin
1814
# printf (which we can use as an echo command).
1815
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1816
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1817
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1818
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1820
AC_MSG_CHECKING([how to print strings])
1821
# Test print first, because it will be a builtin if present.
1822
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1823
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1825
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1828
# Use this function as a fallback that always works.
1829
func_fallback_echo ()
1831
eval 'cat <<_LTECHO_EOF
1835
ECHO='func_fallback_echo'
1838
# func_echo_all arg...
1839
# Invoke $ECHO with all args, space-separated.
1846
printf*) AC_MSG_RESULT([printf]) ;;
1847
print*) AC_MSG_RESULT([print -r]) ;;
1848
*) AC_MSG_RESULT([cat]) ;;
1851
m4_ifdef([_AS_DETECT_SUGGESTED],
1852
[_AS_DETECT_SUGGESTED([
1853
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1854
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1855
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1856
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1857
PATH=/empty FPATH=/empty; export PATH FPATH
1858
test "X`printf %s $ECHO`" = "X$ECHO" \
1859
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1861
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1862
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1863
])# _LT_PROG_ECHO_BACKSLASH
1868
AC_DEFUN([_LT_WITH_SYSROOT],
1869
[AC_MSG_CHECKING([for sysroot])
1870
AC_ARG_WITH([sysroot],
1871
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1872
(or the compiler's sysroot if not specified).],
1873
[], [with_sysroot=no])
1875
dnl lt_sysroot will always be passed unquoted. We quote it here
1876
dnl in case the user passed a directory name.
1878
case ${with_sysroot} in #(
1880
if test "$GCC" = yes; then
1881
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1885
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1890
AC_MSG_RESULT([${with_sysroot}])
1891
AC_MSG_ERROR([The sysroot must be an absolute path.])
1895
AC_MSG_RESULT([${lt_sysroot:-no}])
1896
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1897
[dependent libraries, and in which our libraries should be installed.])])
1901
m4_defun([_LT_ENABLE_LOCK],
1902
[AC_ARG_ENABLE([libtool-lock],
1903
[AS_HELP_STRING([--disable-libtool-lock],
1904
[avoid locking (might break parallel builds)])])
1905
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1907
# Some flags need to be propagated to the compiler or linker for good
1911
# Find out which ABI we are using.
1912
echo 'int i;' > conftest.$ac_ext
1913
if AC_TRY_EVAL(ac_compile); then
1914
case `/usr/bin/file conftest.$ac_objext` in
1926
# Find out which ABI we are using.
1927
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1928
if AC_TRY_EVAL(ac_compile); then
1929
if test "$lt_cv_prog_gnu_ld" = yes; then
1930
case `/usr/bin/file conftest.$ac_objext` in
1932
LD="${LD-ld} -melf32bsmip"
1935
LD="${LD-ld} -melf32bmipn32"
1938
LD="${LD-ld} -melf64bmip"
1942
case `/usr/bin/file conftest.$ac_objext` in
1958
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1959
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1960
# Find out which ABI we are using.
1961
echo 'int i;' > conftest.$ac_ext
1962
if AC_TRY_EVAL(ac_compile); then
1963
case `/usr/bin/file conftest.o` in
1966
x86_64-*kfreebsd*-gnu)
1967
LD="${LD-ld} -m elf_i386_fbsd"
1970
LD="${LD-ld} -m elf_i386"
1972
ppc64-*linux*|powerpc64-*linux*)
1973
LD="${LD-ld} -m elf32ppclinux"
1976
LD="${LD-ld} -m elf_s390"
1979
LD="${LD-ld} -m elf32_sparc"
1985
x86_64-*kfreebsd*-gnu)
1986
LD="${LD-ld} -m elf_x86_64_fbsd"
1989
LD="${LD-ld} -m elf_x86_64"
1991
ppc*-*linux*|powerpc*-*linux*)
1992
LD="${LD-ld} -m elf64ppc"
1994
s390*-*linux*|s390*-*tpf*)
1995
LD="${LD-ld} -m elf64_s390"
1998
LD="${LD-ld} -m elf64_sparc"
2008
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2009
SAVE_CFLAGS="$CFLAGS"
2010
CFLAGS="$CFLAGS -belf"
2011
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2013
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2015
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2016
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2017
CFLAGS="$SAVE_CFLAGS"
2021
# Find out which ABI we are using.
2022
echo 'int i;' > conftest.$ac_ext
2023
if AC_TRY_EVAL(ac_compile); then
2024
case `/usr/bin/file conftest.o` in
2026
case $lt_cv_prog_gnu_ld in
2027
yes*) LD="${LD-ld} -m elf64_sparc" ;;
2029
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2041
need_locks="$enable_libtool_lock"
2047
m4_defun([_LT_PROG_AR],
2048
[AC_CHECK_TOOLS(AR, [ar], false)
2051
_LT_DECL([], [AR], [1], [The archiver])
2052
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
2054
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
2055
[lt_cv_ar_at_file=no
2056
AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
2057
[echo conftest.$ac_objext > conftest.lst
2058
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2059
AC_TRY_EVAL([lt_ar_try])
2060
if test "$ac_status" -eq 0; then
2061
# Ensure the archiver fails upon bogus file names.
2062
rm -f conftest.$ac_objext libconftest.a
2063
AC_TRY_EVAL([lt_ar_try])
2064
if test "$ac_status" -ne 0; then
2068
rm -f conftest.* libconftest.a
2072
if test "x$lt_cv_ar_at_file" = xno; then
2075
archiver_list_spec=$lt_cv_ar_at_file
2077
_LT_DECL([], [archiver_list_spec], [1],
2078
[How to feed a file listing to the archiver])
2082
# _LT_CMD_OLD_ARCHIVE
2083
# -------------------
2084
m4_defun([_LT_CMD_OLD_ARCHIVE],
2087
AC_CHECK_TOOL(STRIP, strip, :)
2088
test -z "$STRIP" && STRIP=:
2089
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2091
AC_CHECK_TOOL(RANLIB, ranlib, :)
2092
test -z "$RANLIB" && RANLIB=:
2093
_LT_DECL([], [RANLIB], [1],
2094
[Commands used to install an old-style archive])
2096
# Determine commands to create old-style static archives.
2097
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2098
old_postinstall_cmds='chmod 644 $oldlib'
2099
old_postuninstall_cmds=
2101
if test -n "$RANLIB"; then
2104
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2107
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2110
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2115
lock_old_archive_extraction=yes ;;
2117
lock_old_archive_extraction=no ;;
2119
_LT_DECL([], [old_postinstall_cmds], [2])
2120
_LT_DECL([], [old_postuninstall_cmds], [2])
2121
_LT_TAGDECL([], [old_archive_cmds], [2],
2122
[Commands used to build an old-style archive])
2123
_LT_DECL([], [lock_old_archive_extraction], [0],
2124
[Whether to use a lock for old archive extraction])
2125
])# _LT_CMD_OLD_ARCHIVE
2128
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2129
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2130
# ----------------------------------------------------------------
2131
# Check whether the given compiler option works
2132
AC_DEFUN([_LT_COMPILER_OPTION],
2133
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2134
m4_require([_LT_DECL_SED])dnl
2135
AC_CACHE_CHECK([$1], [$2],
2137
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2138
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2139
lt_compiler_flag="$3"
2140
# Insert the option either (1) after the last *FLAGS variable, or
2141
# (2) before a word containing "conftest.", or (3) at the end.
2142
# Note that $ac_compile itself does not contain backslashes and begins
2143
# with a dollar sign (not a hyphen), so the echo should work correctly.
2144
# The option is referenced via a variable to avoid confusing sed.
2145
lt_compile=`echo "$ac_compile" | $SED \
2146
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2147
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2148
-e 's:$: $lt_compiler_flag:'`
2149
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2150
(eval "$lt_compile" 2>conftest.err)
2152
cat conftest.err >&AS_MESSAGE_LOG_FD
2153
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2154
if (exit $ac_status) && test -s "$ac_outfile"; then
2155
# The compiler can only warn and ignore the option if not recognized
2156
# So say no if there are warnings other than the usual output.
2157
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2158
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2159
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2166
if test x"[$]$2" = xyes; then
2167
m4_if([$5], , :, [$5])
2169
m4_if([$6], , :, [$6])
2171
])# _LT_COMPILER_OPTION
2174
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2175
dnl aclocal-1.4 backwards compatibility:
2176
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2179
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2180
# [ACTION-SUCCESS], [ACTION-FAILURE])
2181
# ----------------------------------------------------
2182
# Check whether the given linker option works
2183
AC_DEFUN([_LT_LINKER_OPTION],
2184
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2185
m4_require([_LT_DECL_SED])dnl
2186
AC_CACHE_CHECK([$1], [$2],
2188
save_LDFLAGS="$LDFLAGS"
2189
LDFLAGS="$LDFLAGS $3"
2190
echo "$lt_simple_link_test_code" > conftest.$ac_ext
2191
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2192
# The linker can only warn and ignore the option if not recognized
2193
# So say no if there are warnings
2194
if test -s conftest.err; then
2195
# Append any errors to the config.log.
2196
cat conftest.err 1>&AS_MESSAGE_LOG_FD
2197
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2198
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2199
if diff conftest.exp conftest.er2 >/dev/null; then
2207
LDFLAGS="$save_LDFLAGS"
2210
if test x"[$]$2" = xyes; then
2211
m4_if([$4], , :, [$4])
2213
m4_if([$5], , :, [$5])
2215
])# _LT_LINKER_OPTION
2218
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2219
dnl aclocal-1.4 backwards compatibility:
2220
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2225
AC_DEFUN([LT_CMD_MAX_LEN],
2226
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2227
# find the maximum length of command line arguments
2228
AC_MSG_CHECKING([the maximum length of command line arguments])
2229
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2235
# On DJGPP, this test can blow up pretty badly due to problems in libc
2236
# (any single argument exceeding 2000 bytes causes a buffer overrun
2237
# during glob expansion). Even if it were fixed, the result of this
2238
# check would be larger than it should be.
2239
lt_cv_sys_max_cmd_len=12288; # 12K is about right
2243
# Under GNU Hurd, this test is not required because there is
2244
# no limit to the length of command line arguments.
2245
# Libtool will interpret -1 as no limit whatsoever
2246
lt_cv_sys_max_cmd_len=-1;
2249
cygwin* | mingw* | cegcc*)
2250
# On Win9x/ME, this test blows up -- it succeeds, but takes
2251
# about 5 minutes as the teststring grows exponentially.
2252
# Worse, since 9x/ME are not pre-emptively multitasking,
2253
# you end up with a "frozen" computer, even though with patience
2254
# the test eventually succeeds (with a max line length of 256k).
2255
# Instead, let's just punt: use the minimum linelength reported by
2256
# all of the supported platforms: 8192 (on NT/2K/XP).
2257
lt_cv_sys_max_cmd_len=8192;
2261
# On MiNT this can take a long time and run out of memory.
2262
lt_cv_sys_max_cmd_len=8192;
2266
# On AmigaOS with pdksh, this test takes hours, literally.
2267
# So we just punt and use a minimum line length of 8192.
2268
lt_cv_sys_max_cmd_len=8192;
2271
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2272
# This has been around since 386BSD, at least. Likely further.
2273
if test -x /sbin/sysctl; then
2274
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2275
elif test -x /usr/sbin/sysctl; then
2276
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2278
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2280
# And add a safety zone
2281
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2282
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2286
# We know the value 262144 and hardcode it with a safety zone (like BSD)
2287
lt_cv_sys_max_cmd_len=196608
2291
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2292
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2293
# nice to cause kernel panics so lets avoid the loop below.
2294
# First set a reasonable default.
2295
lt_cv_sys_max_cmd_len=16384
2297
if test -x /sbin/sysconfig; then
2298
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2299
*1*) lt_cv_sys_max_cmd_len=-1 ;;
2304
lt_cv_sys_max_cmd_len=102400
2306
sysv5* | sco5v6* | sysv4.2uw2*)
2307
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2308
if test -n "$kargmax"; then
2309
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2311
lt_cv_sys_max_cmd_len=32768
2315
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2316
if test -n "$lt_cv_sys_max_cmd_len"; then
2317
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2318
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2320
# Make teststring a little bigger before we do anything with it.
2321
# a 1K string should be a reasonable start.
2322
for i in 1 2 3 4 5 6 7 8 ; do
2323
teststring=$teststring$teststring
2325
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2326
# If test is not a shell built-in, we'll probably end up computing a
2327
# maximum length that is only half of the actual maximum length, but
2329
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
2330
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
2331
test $i != 17 # 1/2 MB should be enough
2334
teststring=$teststring$teststring
2336
# Only check the string length outside the loop.
2337
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2339
# Add a significant safety factor because C++ compilers can tack on
2340
# massive amounts of additional arguments before passing them to the
2341
# linker. It appears as though 1/2 is a usable value.
2342
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2347
if test -n $lt_cv_sys_max_cmd_len ; then
2348
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2352
max_cmd_len=$lt_cv_sys_max_cmd_len
2353
_LT_DECL([], [max_cmd_len], [0],
2354
[What is the maximum length of a command?])
2358
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2359
dnl aclocal-1.4 backwards compatibility:
2360
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2365
m4_defun([_LT_HEADER_DLFCN],
2366
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2367
])# _LT_HEADER_DLFCN
2370
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2371
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2372
# ----------------------------------------------------------------
2373
m4_defun([_LT_TRY_DLOPEN_SELF],
2374
[m4_require([_LT_HEADER_DLFCN])dnl
2375
if test "$cross_compiling" = yes; then :
2378
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2379
lt_status=$lt_dlunknown
2380
cat > conftest.$ac_ext <<_LT_EOF
2381
[#line $LINENO "configure"
2382
#include "confdefs.h"
2391
# define LT_DLGLOBAL RTLD_GLOBAL
2394
# define LT_DLGLOBAL DL_GLOBAL
2396
# define LT_DLGLOBAL 0
2400
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2401
find out it does not work in some platform. */
2402
#ifndef LT_DLLAZY_OR_NOW
2404
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2407
# define LT_DLLAZY_OR_NOW DL_LAZY
2410
# define LT_DLLAZY_OR_NOW RTLD_NOW
2413
# define LT_DLLAZY_OR_NOW DL_NOW
2415
# define LT_DLLAZY_OR_NOW 0
2422
/* When -fvisbility=hidden is used, assume the code has been annotated
2423
correspondingly for the symbols needed. */
2424
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2425
int fnord () __attribute__((visibility("default")));
2428
int fnord () { return 42; }
2431
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2432
int status = $lt_dlunknown;
2436
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2439
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2440
else puts (dlerror ());
2442
/* dlclose (self); */
2450
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2451
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2454
x$lt_dlno_uscore) $1 ;;
2455
x$lt_dlneed_uscore) $2 ;;
2456
x$lt_dlunknown|x*) $3 ;;
2459
# compilation failed
2464
])# _LT_TRY_DLOPEN_SELF
2467
# LT_SYS_DLOPEN_SELF
2468
# ------------------
2469
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2470
[m4_require([_LT_HEADER_DLFCN])dnl
2471
if test "x$enable_dlopen" != xyes; then
2472
enable_dlopen=unknown
2473
enable_dlopen_self=unknown
2474
enable_dlopen_self_static=unknown
2481
lt_cv_dlopen="load_add_on"
2483
lt_cv_dlopen_self=yes
2486
mingw* | pw32* | cegcc*)
2487
lt_cv_dlopen="LoadLibrary"
2492
lt_cv_dlopen="dlopen"
2497
# if libdl is installed we need to link against it
2498
AC_CHECK_LIB([dl], [dlopen],
2499
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2502
lt_cv_dlopen_self=yes
2507
AC_CHECK_FUNC([shl_load],
2508
[lt_cv_dlopen="shl_load"],
2509
[AC_CHECK_LIB([dld], [shl_load],
2510
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2511
[AC_CHECK_FUNC([dlopen],
2512
[lt_cv_dlopen="dlopen"],
2513
[AC_CHECK_LIB([dl], [dlopen],
2514
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2515
[AC_CHECK_LIB([svld], [dlopen],
2516
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2517
[AC_CHECK_LIB([dld], [dld_link],
2518
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2527
if test "x$lt_cv_dlopen" != xno; then
2533
case $lt_cv_dlopen in
2535
save_CPPFLAGS="$CPPFLAGS"
2536
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2538
save_LDFLAGS="$LDFLAGS"
2539
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2542
LIBS="$lt_cv_dlopen_libs $LIBS"
2544
AC_CACHE_CHECK([whether a program can dlopen itself],
2545
lt_cv_dlopen_self, [dnl
2546
_LT_TRY_DLOPEN_SELF(
2547
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2548
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2551
if test "x$lt_cv_dlopen_self" = xyes; then
2552
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2553
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2554
lt_cv_dlopen_self_static, [dnl
2555
_LT_TRY_DLOPEN_SELF(
2556
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2557
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2561
CPPFLAGS="$save_CPPFLAGS"
2562
LDFLAGS="$save_LDFLAGS"
2567
case $lt_cv_dlopen_self in
2568
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2569
*) enable_dlopen_self=unknown ;;
2572
case $lt_cv_dlopen_self_static in
2573
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2574
*) enable_dlopen_self_static=unknown ;;
2577
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2578
[Whether dlopen is supported])
2579
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2580
[Whether dlopen of programs is supported])
2581
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2582
[Whether dlopen of statically linked programs is supported])
2583
])# LT_SYS_DLOPEN_SELF
2586
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2587
dnl aclocal-1.4 backwards compatibility:
2588
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2591
# _LT_COMPILER_C_O([TAGNAME])
2592
# ---------------------------
2593
# Check to see if options -c and -o are simultaneously supported by compiler.
2594
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2595
m4_defun([_LT_COMPILER_C_O],
2596
[m4_require([_LT_DECL_SED])dnl
2597
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2598
m4_require([_LT_TAG_COMPILER])dnl
2599
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2600
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2601
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2602
$RM -r conftest 2>/dev/null
2606
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2608
lt_compiler_flag="-o out/conftest2.$ac_objext"
2609
# Insert the option either (1) after the last *FLAGS variable, or
2610
# (2) before a word containing "conftest.", or (3) at the end.
2611
# Note that $ac_compile itself does not contain backslashes and begins
2612
# with a dollar sign (not a hyphen), so the echo should work correctly.
2613
lt_compile=`echo "$ac_compile" | $SED \
2614
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2615
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2616
-e 's:$: $lt_compiler_flag:'`
2617
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2618
(eval "$lt_compile" 2>out/conftest.err)
2620
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2621
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2622
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2624
# The compiler can only warn and ignore the option if not recognized
2625
# So say no if there are warnings
2626
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2627
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2628
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2629
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2632
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2634
# SGI C++ compiler will create directory out/ii_files/ for
2635
# template instantiation
2636
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2637
$RM out/* && rmdir out
2642
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2643
[Does compiler simultaneously support -c and -o options?])
2644
])# _LT_COMPILER_C_O
2647
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2648
# ----------------------------------
2649
# Check to see if we can do hard links to lock some files if needed
2650
m4_defun([_LT_COMPILER_FILE_LOCKS],
2651
[m4_require([_LT_ENABLE_LOCK])dnl
2652
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2653
_LT_COMPILER_C_O([$1])
2655
hard_links="nottested"
2656
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2657
# do not overwrite the value of need_locks provided by the user
2658
AC_MSG_CHECKING([if we can lock with hard links])
2661
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2663
ln conftest.a conftest.b 2>&5 || hard_links=no
2664
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2665
AC_MSG_RESULT([$hard_links])
2666
if test "$hard_links" = no; then
2667
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2673
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2674
])# _LT_COMPILER_FILE_LOCKS
2679
m4_defun([_LT_CHECK_OBJDIR],
2680
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2681
[rm -f .libs 2>/dev/null
2682
mkdir .libs 2>/dev/null
2683
if test -d .libs; then
2686
# MS-DOS does not allow filenames that begin with a dot.
2689
rmdir .libs 2>/dev/null])
2690
objdir=$lt_cv_objdir
2691
_LT_DECL([], [objdir], [0],
2692
[The name of the directory that contains temporary libtool files])dnl
2693
m4_pattern_allow([LT_OBJDIR])dnl
2694
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2695
[Define to the sub-directory in which libtool stores uninstalled libraries.])
2696
])# _LT_CHECK_OBJDIR
2699
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2700
# --------------------------------------
2701
# Check hardcoding attributes.
2702
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2703
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2704
_LT_TAGVAR(hardcode_action, $1)=
2705
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2706
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2707
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2709
# We can hardcode non-existent directories.
2710
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2711
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2712
# have to relink, otherwise we might link with an installed library
2713
# when we should be linking with a yet-to-be-installed one
2714
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2715
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2716
# Linking always hardcodes the temporary library directory.
2717
_LT_TAGVAR(hardcode_action, $1)=relink
2719
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2720
_LT_TAGVAR(hardcode_action, $1)=immediate
2723
# We cannot hardcode anything, or else we can only hardcode existing
2725
_LT_TAGVAR(hardcode_action, $1)=unsupported
2727
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2729
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2730
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2731
# Fast installation is not supported
2732
enable_fast_install=no
2733
elif test "$shlibpath_overrides_runpath" = yes ||
2734
test "$enable_shared" = no; then
2735
# Fast installation is not necessary
2736
enable_fast_install=needless
2738
_LT_TAGDECL([], [hardcode_action], [0],
2739
[How to hardcode a shared library path into an executable])
2740
])# _LT_LINKER_HARDCODE_LIBPATH
2745
m4_defun([_LT_CMD_STRIPLIB],
2746
[m4_require([_LT_DECL_EGREP])
2749
AC_MSG_CHECKING([whether stripping libraries is possible])
2750
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2751
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2752
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2753
AC_MSG_RESULT([yes])
2755
# FIXME - insert some real tests, host_os isn't really good enough
2758
if test -n "$STRIP" ; then
2759
striplib="$STRIP -x"
2760
old_striplib="$STRIP -S"
2761
AC_MSG_RESULT([yes])
2771
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2772
_LT_DECL([], [striplib], [1])
2773
])# _LT_CMD_STRIPLIB
2776
# _LT_SYS_DYNAMIC_LINKER([TAG])
2777
# -----------------------------
2778
# PORTME Fill in your ld.so characteristics
2779
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2780
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2781
m4_require([_LT_DECL_EGREP])dnl
2782
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2783
m4_require([_LT_DECL_OBJDUMP])dnl
2784
m4_require([_LT_DECL_SED])dnl
2785
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2786
AC_MSG_CHECKING([dynamic linker characteristics])
2789
if test "$GCC" = yes; then
2791
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2792
*) lt_awk_arg="/^libraries:/" ;;
2795
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2796
*) lt_sed_strip_eq="s,=/,/,g" ;;
2798
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2799
case $lt_search_path_spec in
2801
# if the path contains ";" then we assume it to be the separator
2802
# otherwise default to the standard path separator (i.e. ":") - it is
2803
# assumed that no part of a normal pathname contains ";" but that should
2804
# okay in the real world where ";" in dirpaths is itself problematic.
2805
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2808
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2811
# Ok, now we have the path, separated by spaces, we can step through it
2812
# and add multilib dir if necessary.
2813
lt_tmp_lt_search_path_spec=
2814
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2815
for lt_sys_path in $lt_search_path_spec; do
2816
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2817
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2819
test -d "$lt_sys_path" && \
2820
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2823
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2824
BEGIN {RS=" "; FS="/|\n";} {
2827
for (lt_i = NF; lt_i > 0; lt_i--) {
2828
if ($lt_i != "" && $lt_i != ".") {
2829
if ($lt_i == "..") {
2832
if (lt_count == 0) {
2833
lt_foo="/" $lt_i lt_foo;
2840
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2841
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2843
# AWK program above erroneously prepends '/' to C:/dos/paths
2846
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2847
$SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2849
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2851
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2854
libname_spec='lib$name'
2862
shlibpath_overrides_runpath=unknown
2864
dynamic_linker="$host_os ld.so"
2865
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2866
need_lib_prefix=unknown
2867
hardcode_into_libs=no
2869
# when you set need_version to no, make sure it does not cause -set_version
2870
# flags to be left without arguments
2871
need_version=unknown
2876
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2877
shlibpath_var=LIBPATH
2879
# AIX 3 has no versioning support, so we append a major version to the name.
2880
soname_spec='${libname}${release}${shared_ext}$major'
2887
hardcode_into_libs=yes
2888
if test "$host_cpu" = ia64; then
2889
# AIX 5 supports IA64
2890
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2891
shlibpath_var=LD_LIBRARY_PATH
2893
# With GCC up to 2.95.x, collect2 would create an import file
2894
# for dependence libraries. The import file would start with
2895
# the line `#! .'. This would cause the generated library to
2896
# depend on `.', always an invalid library. This was fixed in
2897
# development snapshots of GCC prior to 3.0.
2899
aix4 | aix4.[[01]] | aix4.[[01]].*)
2900
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2902
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2909
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2910
# soname into executable. Probably we can add versioning support to
2911
# collect2, so additional links can be useful in future.
2912
if test "$aix_use_runtimelinking" = yes; then
2913
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2914
# instead of lib<name>.a to let people know that these are not
2915
# typical AIX shared libraries.
2916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2918
# We preserve .a as extension for shared libraries through AIX4.2
2919
# and later when we are not doing run time linking.
2920
library_names_spec='${libname}${release}.a $libname.a'
2921
soname_spec='${libname}${release}${shared_ext}$major'
2923
shlibpath_var=LIBPATH
2930
# Since July 2007 AmigaOS4 officially supports .so libraries.
2931
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2935
library_names_spec='$libname.ixlibrary $libname.a'
2936
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2937
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'
2943
library_names_spec='${libname}${shared_ext}'
2944
dynamic_linker="$host_os ld.so"
2945
shlibpath_var=LIBRARY_PATH
2951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2952
soname_spec='${libname}${release}${shared_ext}$major'
2953
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2954
shlibpath_var=LD_LIBRARY_PATH
2955
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2956
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2957
# the default ld.so.conf also contains /usr/contrib/lib and
2958
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2959
# libtool to hard-code these into programs
2962
cygwin* | mingw* | pw32* | cegcc*)
2963
version_type=windows
2968
case $GCC,$cc_basename in
2971
library_names_spec='$libname.dll.a'
2972
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2973
postinstall_cmds='base_file=`basename \${file}`~
2974
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2975
dldir=$destdir/`dirname \$dlpath`~
2976
test -d \$dldir || mkdir -p \$dldir~
2977
$install_prog $dir/$dlname \$dldir/$dlname~
2978
chmod a+x \$dldir/$dlname~
2979
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2980
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2982
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2983
dlpath=$dir/\$dldll~
2985
shlibpath_overrides_runpath=yes
2989
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2990
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2992
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2995
# MinGW DLLs use traditional 'lib' prefix
2996
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2999
# pw32 DLLs use 'pw' prefix rather than 'lib'
3000
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3003
dynamic_linker='Win32 ld.exe'
3008
libname_spec='$name'
3009
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3010
library_names_spec='${libname}.dll.lib'
3014
sys_lib_search_path_spec=
3020
# Let DOS variable expansion print the short 8.3 style file name.
3021
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3022
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3025
# Convert to MSYS style.
3026
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3029
# Convert to unix form, then to dos form, then back to unix form
3030
# but this time dos style (no spaces!) so that the unix form looks
3031
# like /cygdrive/c/PROGRA~1:/cygdr...
3032
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3033
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3034
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3037
sys_lib_search_path_spec="$LIB"
3038
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3039
# It is most probably a Windows format PATH.
3040
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3042
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3044
# FIXME: find the short name or the path components, as spaces are
3045
# common. (e.g. "Program Files" -> "PROGRA~1")
3049
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3050
postinstall_cmds='base_file=`basename \${file}`~
3051
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3052
dldir=$destdir/`dirname \$dlpath`~
3053
test -d \$dldir || mkdir -p \$dldir~
3054
$install_prog $dir/$dlname \$dldir/$dlname'
3055
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3056
dlpath=$dir/\$dldll~
3058
shlibpath_overrides_runpath=yes
3059
dynamic_linker='Win32 link.exe'
3063
# Assume MSVC wrapper
3064
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3065
dynamic_linker='Win32 ld.exe'
3068
# FIXME: first we should search . and the directory the executable is in
3072
darwin* | rhapsody*)
3073
dynamic_linker="$host_os dyld"
3077
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3078
soname_spec='${libname}${release}${major}$shared_ext'
3079
shlibpath_overrides_runpath=yes
3080
shlibpath_var=DYLD_LIBRARY_PATH
3081
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3083
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3084
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3092
soname_spec='${libname}${release}${shared_ext}$major'
3093
shlibpath_var=LD_LIBRARY_PATH
3100
freebsd* | dragonfly*)
3101
# DragonFly does not have aout. When/if they implement a new
3102
# versioning mechanism, adjust this.
3103
if test -x /usr/bin/objformat; then
3104
objformat=`/usr/bin/objformat`
3107
freebsd[[123]]*) objformat=aout ;;
3111
version_type=freebsd-$objformat
3112
case $version_type in
3114
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3119
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3123
shlibpath_var=LD_LIBRARY_PATH
3126
shlibpath_overrides_runpath=yes
3128
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3129
shlibpath_overrides_runpath=yes
3130
hardcode_into_libs=yes
3132
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3133
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3134
shlibpath_overrides_runpath=no
3135
hardcode_into_libs=yes
3137
*) # from 4.6 on, and DragonFly
3138
shlibpath_overrides_runpath=yes
3139
hardcode_into_libs=yes
3148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3149
soname_spec='${libname}${release}${shared_ext}$major'
3150
shlibpath_var=LD_LIBRARY_PATH
3151
shlibpath_overrides_runpath=no
3152
hardcode_into_libs=yes
3159
dynamic_linker="$host_os runtime_loader"
3160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3161
soname_spec='${libname}${release}${shared_ext}$major'
3162
shlibpath_var=LIBRARY_PATH
3163
shlibpath_overrides_runpath=yes
3164
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3165
hardcode_into_libs=yes
3168
hpux9* | hpux10* | hpux11*)
3169
# Give a soname corresponding to the major version so that dld.sl refuses to
3170
# link against other versions.
3177
hardcode_into_libs=yes
3178
dynamic_linker="$host_os dld.so"
3179
shlibpath_var=LD_LIBRARY_PATH
3180
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3182
soname_spec='${libname}${release}${shared_ext}$major'
3183
if test "X$HPUX_IA64_MODE" = X32; then
3184
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3186
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3188
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3192
hardcode_into_libs=yes
3193
dynamic_linker="$host_os dld.sl"
3194
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3195
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3197
soname_spec='${libname}${release}${shared_ext}$major'
3198
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3199
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3203
dynamic_linker="$host_os dld.sl"
3204
shlibpath_var=SHLIB_PATH
3205
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3207
soname_spec='${libname}${release}${shared_ext}$major'
3210
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3211
postinstall_cmds='chmod 555 $lib'
3212
# or fails outright, so override atomically:
3213
install_override_mode=555
3220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3221
soname_spec='${libname}${release}${shared_ext}$major'
3222
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3223
shlibpath_var=LD_LIBRARY_PATH
3224
shlibpath_overrides_runpath=no
3225
hardcode_into_libs=yes
3228
irix5* | irix6* | nonstopux*)
3230
nonstopux*) version_type=nonstopux ;;
3232
if test "$lt_cv_prog_gnu_ld" = yes; then
3240
soname_spec='${libname}${release}${shared_ext}$major'
3241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3243
irix5* | nonstopux*)
3247
case $LD in # libtool.m4 will add one of these switches to LD
3248
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3249
libsuff= shlibsuff= libmagic=32-bit;;
3250
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3251
libsuff=32 shlibsuff=N32 libmagic=N32;;
3252
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3253
libsuff=64 shlibsuff=64 libmagic=64-bit;;
3254
*) libsuff= shlibsuff= libmagic=never-match;;
3258
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3259
shlibpath_overrides_runpath=no
3260
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3261
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3262
hardcode_into_libs=yes
3265
# No shared lib support for Linux oldld, aout, or coff.
3266
linux*oldld* | linux*aout* | linux*coff*)
3270
# This must be Linux ELF.
3271
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3276
soname_spec='${libname}${release}${shared_ext}$major'
3277
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3278
shlibpath_var=LD_LIBRARY_PATH
3279
shlibpath_overrides_runpath=no
3281
# Some binutils ld are patched to set DT_RUNPATH
3282
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3283
[lt_cv_shlibpath_overrides_runpath=no
3284
save_LDFLAGS=$LDFLAGS
3286
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3287
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3288
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3289
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3290
[lt_cv_shlibpath_overrides_runpath=yes])])
3291
LDFLAGS=$save_LDFLAGS
3294
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3296
# This implies no fast_install, which is unacceptable.
3297
# Some rework will be needed to allow for fast_install
3298
# before this can be enabled.
3299
hardcode_into_libs=yes
3301
# Append ld.so.conf contents to the search path
3302
if test -f /etc/ld.so.conf; then
3303
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' ' '`
3304
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3307
# We used to test for /lib/ld.so.1 and disable shared libraries on
3308
# powerpc, because MkLinux only supported shared libraries with the
3309
# GNU dynamic linker. Since this was broken with cross compilers,
3310
# most powerpc-linux boxes support dynamic linking these days and
3311
# people can always --disable-shared, the test was removed, and we
3312
# assume the GNU/Linux dynamic linker is in use.
3313
dynamic_linker='GNU/Linux ld.so'
3320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3321
soname_spec='${libname}${release}${shared_ext}$major'
3322
shlibpath_var=LD_LIBRARY_PATH
3323
shlibpath_overrides_runpath=no
3324
hardcode_into_libs=yes
3325
dynamic_linker='NetBSD ld.elf_so'
3332
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3334
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3335
dynamic_linker='NetBSD (a.out) ld.so'
3337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3338
soname_spec='${libname}${release}${shared_ext}$major'
3339
dynamic_linker='NetBSD ld.elf_so'
3341
shlibpath_var=LD_LIBRARY_PATH
3342
shlibpath_overrides_runpath=yes
3343
hardcode_into_libs=yes
3348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3349
shlibpath_var=LD_LIBRARY_PATH
3350
shlibpath_overrides_runpath=yes
3357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3358
soname_spec='${libname}${release}${shared_ext}$major'
3359
shlibpath_var=LD_LIBRARY_PATH
3360
shlibpath_overrides_runpath=no
3361
hardcode_into_libs=yes
3362
dynamic_linker='ldqnx.so'
3367
sys_lib_dlsearch_path_spec="/usr/lib"
3369
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3371
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3372
*) need_version=no ;;
3374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3375
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3376
shlibpath_var=LD_LIBRARY_PATH
3377
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3379
openbsd2.[[89]] | openbsd2.[[89]].*)
3380
shlibpath_overrides_runpath=no
3383
shlibpath_overrides_runpath=yes
3387
shlibpath_overrides_runpath=yes
3392
libname_spec='$name'
3395
library_names_spec='$libname${shared_ext} $libname.a'
3396
dynamic_linker='OS/2 ld.exe'
3397
shlibpath_var=LIBPATH
3400
osf3* | osf4* | osf5*)
3404
soname_spec='${libname}${release}${shared_ext}$major'
3405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3406
shlibpath_var=LD_LIBRARY_PATH
3407
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3408
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3420
soname_spec='${libname}${release}${shared_ext}$major'
3421
shlibpath_var=LD_LIBRARY_PATH
3422
shlibpath_overrides_runpath=yes
3423
hardcode_into_libs=yes
3424
# ldd complains unless libraries are executable
3425
postinstall_cmds='chmod +x $lib'
3430
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3431
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3432
shlibpath_var=LD_LIBRARY_PATH
3433
shlibpath_overrides_runpath=yes
3434
if test "$with_gnu_ld" = yes; then
3442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3443
soname_spec='${libname}${release}${shared_ext}$major'
3444
shlibpath_var=LD_LIBRARY_PATH
3445
case $host_vendor in
3447
shlibpath_overrides_runpath=no
3449
runpath_var=LD_RUN_PATH
3457
shlibpath_overrides_runpath=no
3458
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3464
if test -d /usr/nec ;then
3466
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3467
soname_spec='$libname${shared_ext}.$major'
3468
shlibpath_var=LD_LIBRARY_PATH
3472
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3473
version_type=freebsd-elf
3476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3477
soname_spec='${libname}${release}${shared_ext}$major'
3478
shlibpath_var=LD_LIBRARY_PATH
3479
shlibpath_overrides_runpath=yes
3480
hardcode_into_libs=yes
3481
if test "$with_gnu_ld" = yes; then
3482
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3484
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3487
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3491
sys_lib_dlsearch_path_spec='/usr/lib'
3495
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3500
shlibpath_var=LD_LIBRARY_PATH
3501
shlibpath_overrides_runpath=no
3502
hardcode_into_libs=yes
3507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3508
soname_spec='${libname}${release}${shared_ext}$major'
3509
shlibpath_var=LD_LIBRARY_PATH
3516
AC_MSG_RESULT([$dynamic_linker])
3517
test "$dynamic_linker" = no && can_build_shared=no
3519
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3520
if test "$GCC" = yes; then
3521
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3524
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3525
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3527
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3528
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3531
_LT_DECL([], [variables_saved_for_relink], [1],
3532
[Variables whose values should be saved in libtool wrapper scripts and
3533
restored at link time])
3534
_LT_DECL([], [need_lib_prefix], [0],
3535
[Do we need the "lib" prefix for modules?])
3536
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3537
_LT_DECL([], [version_type], [0], [Library versioning type])
3538
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3539
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3540
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3541
[Is shlibpath searched before the hard-coded library search path?])
3542
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3543
_LT_DECL([], [library_names_spec], [1],
3544
[[List of archive names. First name is the real one, the rest are links.
3545
The last name is the one that the linker finds with -lNAME]])
3546
_LT_DECL([], [soname_spec], [1],
3547
[[The coded name of the library, if different from the real name]])
3548
_LT_DECL([], [install_override_mode], [1],
3549
[Permission mode override for installation of shared libraries])
3550
_LT_DECL([], [postinstall_cmds], [2],
3551
[Command to use after installation of a shared archive])
3552
_LT_DECL([], [postuninstall_cmds], [2],
3553
[Command to use after uninstallation of a shared archive])
3554
_LT_DECL([], [finish_cmds], [2],
3555
[Commands used to finish a libtool library installation in a directory])
3556
_LT_DECL([], [finish_eval], [1],
3557
[[As "finish_cmds", except a single script fragment to be evaled but
3559
_LT_DECL([], [hardcode_into_libs], [0],
3560
[Whether we should hardcode library paths into libraries])
3561
_LT_DECL([], [sys_lib_search_path_spec], [2],
3562
[Compile-time system search path for libraries])
3563
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3564
[Run-time system search path for libraries])
3565
])# _LT_SYS_DYNAMIC_LINKER
3568
# _LT_PATH_TOOL_PREFIX(TOOL)
3569
# --------------------------
3570
# find a file program which can recognize shared library
3571
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3572
[m4_require([_LT_DECL_EGREP])dnl
3573
AC_MSG_CHECKING([for $1])
3574
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3576
[[\\/*] | ?:[\\/]*])
3577
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3580
lt_save_MAGIC_CMD="$MAGIC_CMD"
3581
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3582
dnl $ac_dummy forces splitting on constant user-supplied paths.
3583
dnl POSIX.2 word splitting is done only on the output of word expansions,
3584
dnl not every word. This closes a longstanding sh security hole.
3585
ac_dummy="m4_if([$2], , $PATH, [$2])"
3586
for ac_dir in $ac_dummy; do
3588
test -z "$ac_dir" && ac_dir=.
3589
if test -f $ac_dir/$1; then
3590
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3591
if test -n "$file_magic_test_file"; then
3592
case $deplibs_check_method in
3594
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3595
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3596
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3597
$EGREP "$file_magic_regex" > /dev/null; then
3602
*** Warning: the command libtool uses to detect shared libraries,
3603
*** $file_magic_cmd, produces output that libtool cannot recognize.
3604
*** The result is that libtool may fail to recognize shared libraries
3605
*** as such. This will affect the creation of libtool libraries that
3606
*** depend on shared libraries, but programs linked with such libtool
3607
*** libraries will work regardless of this problem. Nevertheless, you
3608
*** may want to report the problem to your system manager and/or to
3609
*** bug-libtool@gnu.org
3619
MAGIC_CMD="$lt_save_MAGIC_CMD"
3622
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3623
if test -n "$MAGIC_CMD"; then
3624
AC_MSG_RESULT($MAGIC_CMD)
3628
_LT_DECL([], [MAGIC_CMD], [0],
3629
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
3630
])# _LT_PATH_TOOL_PREFIX
3633
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3634
dnl aclocal-1.4 backwards compatibility:
3635
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3640
# find a file program which can recognize a shared library
3641
m4_defun([_LT_PATH_MAGIC],
3642
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3643
if test -z "$lt_cv_path_MAGIC_CMD"; then
3644
if test -n "$ac_tool_prefix"; then
3645
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3655
# find the pathname to the GNU or non-GNU linker
3656
AC_DEFUN([LT_PATH_LD],
3657
[AC_REQUIRE([AC_PROG_CC])dnl
3658
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3659
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3660
m4_require([_LT_DECL_SED])dnl
3661
m4_require([_LT_DECL_EGREP])dnl
3662
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3664
AC_ARG_WITH([gnu-ld],
3665
[AS_HELP_STRING([--with-gnu-ld],
3666
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3667
[test "$withval" = no || with_gnu_ld=yes],
3668
[with_gnu_ld=no])dnl
3671
if test "$GCC" = yes; then
3672
# Check if gcc -print-prog-name=ld gives a path.
3673
AC_MSG_CHECKING([for ld used by $CC])
3676
# gcc leaves a trailing carriage return which upsets mingw
3677
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3679
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3682
# Accept absolute paths.
3683
[[\\/]]* | ?:[[\\/]]*)
3684
re_direlt='/[[^/]][[^/]]*/\.\./'
3685
# Canonicalize the pathname of ld
3686
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3687
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3688
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3690
test -z "$LD" && LD="$ac_prog"
3693
# If it fails, then pretend we aren't using GCC.
3697
# If it is relative, then search for the first ld in PATH.
3701
elif test "$with_gnu_ld" = yes; then
3702
AC_MSG_CHECKING([for GNU ld])
3704
AC_MSG_CHECKING([for non-GNU ld])
3706
AC_CACHE_VAL(lt_cv_path_LD,
3707
[if test -z "$LD"; then
3708
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3709
for ac_dir in $PATH; do
3711
test -z "$ac_dir" && ac_dir=.
3712
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3713
lt_cv_path_LD="$ac_dir/$ac_prog"
3714
# Check to see if the program is GNU ld. I'd rather use --version,
3715
# but apparently some variants of GNU ld only accept -v.
3716
# Break only if it was the GNU/non-GNU ld that we prefer.
3717
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3718
*GNU* | *'with BFD'*)
3719
test "$with_gnu_ld" != no && break
3722
test "$with_gnu_ld" != yes && break
3729
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3732
if test -n "$LD"; then
3737
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3741
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3745
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3746
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3747
dnl aclocal-1.4 backwards compatibility:
3748
dnl AC_DEFUN([AM_PROG_LD], [])
3749
dnl AC_DEFUN([AC_PROG_LD], [])
3754
m4_defun([_LT_PATH_LD_GNU],
3755
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3756
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3757
case `$LD -v 2>&1 </dev/null` in
3758
*GNU* | *'with BFD'*)
3759
lt_cv_prog_gnu_ld=yes
3762
lt_cv_prog_gnu_ld=no
3765
with_gnu_ld=$lt_cv_prog_gnu_ld
3771
# find reload flag for linker
3772
# -- PORTME Some linkers may need a different reload flag.
3773
m4_defun([_LT_CMD_RELOAD],
3774
[AC_CACHE_CHECK([for $LD option to reload object files],
3775
lt_cv_ld_reload_flag,
3776
[lt_cv_ld_reload_flag='-r'])
3777
reload_flag=$lt_cv_ld_reload_flag
3778
case $reload_flag in
3780
*) reload_flag=" $reload_flag" ;;
3782
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3784
cygwin* | mingw* | pw32* | cegcc*)
3785
if test "$GCC" != yes; then
3790
if test "$GCC" = yes; then
3791
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3793
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3797
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3798
_LT_TAGDECL([], [reload_cmds], [2])dnl
3802
# _LT_CHECK_MAGIC_METHOD
3803
# ----------------------
3804
# how to check for library dependencies
3805
# -- PORTME fill in with the dynamic library characteristics
3806
m4_defun([_LT_CHECK_MAGIC_METHOD],
3807
[m4_require([_LT_DECL_EGREP])
3808
m4_require([_LT_DECL_OBJDUMP])
3809
AC_CACHE_CHECK([how to recognize dependent libraries],
3810
lt_cv_deplibs_check_method,
3811
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3812
lt_cv_file_magic_test_file=
3813
lt_cv_deplibs_check_method='unknown'
3814
# Need to set the preceding variable on all platforms that support
3815
# interlibrary dependencies.
3816
# 'none' -- dependencies not supported.
3817
# `unknown' -- same as none, but documents that we really don't know.
3818
# 'pass_all' -- all dependencies passed with no checks.
3819
# 'test_compile' -- check by making test program.
3820
# 'file_magic [[regex]]' -- check by looking for files in library path
3821
# which responds to the $file_magic_cmd with a given extended regex.
3822
# If you have `file' or equivalent on your system and you're not sure
3823
# whether `pass_all' will *always* work, you probably want this one.
3827
lt_cv_deplibs_check_method=pass_all
3831
lt_cv_deplibs_check_method=pass_all
3835
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3836
lt_cv_file_magic_cmd='/usr/bin/file -L'
3837
lt_cv_file_magic_test_file=/shlib/libc.so
3841
# func_win32_libid is a shell function defined in ltmain.sh
3842
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3843
lt_cv_file_magic_cmd='func_win32_libid'
3847
# Base MSYS/MinGW do not provide the 'file' command needed by
3848
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3849
# unless we find 'file', for example because we are cross-compiling.
3850
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3851
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3852
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3853
lt_cv_file_magic_cmd='func_win32_libid'
3855
# Keep this pattern in sync with the one in func_win32_libid.
3856
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3857
lt_cv_file_magic_cmd='$OBJDUMP -f'
3862
# use the weaker test based on 'objdump'. See mingw*.
3863
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3864
lt_cv_file_magic_cmd='$OBJDUMP -f'
3867
darwin* | rhapsody*)
3868
lt_cv_deplibs_check_method=pass_all
3871
freebsd* | dragonfly*)
3872
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3875
# Not sure whether the presence of OpenBSD here was a mistake.
3876
# Let's accept both of them until this is cleared up.
3877
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3878
lt_cv_file_magic_cmd=/usr/bin/file
3879
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3883
lt_cv_deplibs_check_method=pass_all
3888
lt_cv_deplibs_check_method=pass_all
3892
lt_cv_deplibs_check_method=pass_all
3895
hpux10.20* | hpux11*)
3896
lt_cv_file_magic_cmd=/usr/bin/file
3899
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3900
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3903
[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]']
3904
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3907
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3908
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3914
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3915
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3918
irix5* | irix6* | nonstopux*)
3920
*-32|*"-32 ") libmagic=32-bit;;
3921
*-n32|*"-n32 ") libmagic=N32;;
3922
*-64|*"-64 ") libmagic=64-bit;;
3923
*) libmagic=never-match;;
3925
lt_cv_deplibs_check_method=pass_all
3928
# This must be Linux ELF.
3929
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3930
lt_cv_deplibs_check_method=pass_all
3933
netbsd* | netbsdelf*-gnu)
3934
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3935
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3937
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3942
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3943
lt_cv_file_magic_cmd=/usr/bin/file
3944
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3948
lt_cv_deplibs_check_method=pass_all
3952
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3953
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3955
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3959
osf3* | osf4* | osf5*)
3960
lt_cv_deplibs_check_method=pass_all
3964
lt_cv_deplibs_check_method=pass_all
3968
lt_cv_deplibs_check_method=pass_all
3971
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3972
lt_cv_deplibs_check_method=pass_all
3976
case $host_vendor in
3978
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]]'
3979
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3982
lt_cv_deplibs_check_method=pass_all
3985
lt_cv_file_magic_cmd='/bin/file'
3986
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3989
lt_cv_file_magic_cmd='/bin/file'
3990
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3991
lt_cv_file_magic_test_file=/lib/libc.so
3994
lt_cv_deplibs_check_method=pass_all
3997
lt_cv_deplibs_check_method=pass_all
4003
lt_cv_deplibs_check_method=pass_all
4010
if test "$build" = "$host"; then
4013
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4016
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
4022
file_magic_cmd=$lt_cv_file_magic_cmd
4023
deplibs_check_method=$lt_cv_deplibs_check_method
4024
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4026
_LT_DECL([], [deplibs_check_method], [1],
4027
[Method to check whether dependent libraries are shared objects])
4028
_LT_DECL([], [file_magic_cmd], [1],
4029
[Command to use when deplibs_check_method = "file_magic"])
4030
_LT_DECL([], [file_magic_glob], [1],
4031
[How to find potential files when deplibs_check_method = "file_magic"])
4032
_LT_DECL([], [want_nocaseglob], [1],
4033
[Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
4034
])# _LT_CHECK_MAGIC_METHOD
4039
# find the pathname to a BSD- or MS-compatible name lister
4040
AC_DEFUN([LT_PATH_NM],
4041
[AC_REQUIRE([AC_PROG_CC])dnl
4042
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4043
[if test -n "$NM"; then
4044
# Let the user override the test.
4047
lt_nm_to_check="${ac_tool_prefix}nm"
4048
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4049
lt_nm_to_check="$lt_nm_to_check nm"
4051
for lt_tmp_nm in $lt_nm_to_check; do
4052
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4053
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4055
test -z "$ac_dir" && ac_dir=.
4056
tmp_nm="$ac_dir/$lt_tmp_nm"
4057
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4058
# Check to see if the nm accepts a BSD-compat flag.
4059
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4060
# nm: unknown option "B" ignored
4061
# Tru64's nm complains that /dev/null is an invalid object file
4062
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4063
*/dev/null* | *'Invalid file or object type'*)
4064
lt_cv_path_NM="$tmp_nm -B"
4068
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4070
lt_cv_path_NM="$tmp_nm -p"
4074
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4075
continue # so that we can try to find one that supports BSD flags
4084
: ${lt_cv_path_NM=no}
4086
if test "$lt_cv_path_NM" != "no"; then
4089
# Didn't find any BSD compatible name lister, look for dumpbin.
4090
if test -n "$DUMPBIN"; then :
4091
# Let the user override the test.
4093
AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4094
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4096
DUMPBIN="$DUMPBIN -symbols"
4104
if test "$DUMPBIN" != ":"; then
4108
test -z "$NM" && NM=nm
4110
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4112
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4113
[lt_cv_nm_interface="BSD nm"
4114
echo "int some_variable = 0;" > conftest.$ac_ext
4115
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4116
(eval "$ac_compile" 2>conftest.err)
4117
cat conftest.err >&AS_MESSAGE_LOG_FD
4118
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4119
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4120
cat conftest.err >&AS_MESSAGE_LOG_FD
4121
(eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4122
cat conftest.out >&AS_MESSAGE_LOG_FD
4123
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4124
lt_cv_nm_interface="MS dumpbin"
4130
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4131
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4132
dnl aclocal-1.4 backwards compatibility:
4133
dnl AC_DEFUN([AM_PROG_NM], [])
4134
dnl AC_DEFUN([AC_PROG_NM], [])
4136
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4137
# --------------------------------
4138
# how to determine the name of the shared library
4139
# associated with a specific link library.
4140
# -- PORTME fill in with the dynamic library characteristics
4141
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4142
[m4_require([_LT_DECL_EGREP])
4143
m4_require([_LT_DECL_OBJDUMP])
4144
m4_require([_LT_DECL_DLLTOOL])
4145
AC_CACHE_CHECK([how to associate runtime and link libraries],
4146
lt_cv_sharedlib_from_linklib_cmd,
4147
[lt_cv_sharedlib_from_linklib_cmd='unknown'
4150
cygwin* | mingw* | pw32* | cegcc*)
4151
# two different shell functions defined in ltmain.sh
4152
# decide which to use based on capabilities of $DLLTOOL
4153
case `$DLLTOOL --help 2>&1` in
4154
*--identify-strict*)
4155
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4158
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4163
# fallback: assume linklib IS sharedlib
4164
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4168
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4169
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4171
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4172
[Command to associate shared and link libraries])
4173
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4176
# _LT_PATH_MANIFEST_TOOL
4177
# ----------------------
4178
# locate the manifest tool
4179
m4_defun([_LT_PATH_MANIFEST_TOOL],
4180
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4181
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4182
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4183
[lt_cv_path_mainfest_tool=no
4184
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4185
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4186
cat conftest.err >&AS_MESSAGE_LOG_FD
4187
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4188
lt_cv_path_mainfest_tool=yes
4191
if test "x$lt_cv_path_mainfest_tool" != xyes; then
4194
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4195
])# _LT_PATH_MANIFEST_TOOL
4200
# check for math library
4201
AC_DEFUN([LT_LIB_M],
4202
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4205
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4206
# These system don't have libm, or don't need it
4209
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4210
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4213
AC_CHECK_LIB(m, cos, LIBM="-lm")
4220
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4221
dnl aclocal-1.4 backwards compatibility:
4222
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4225
# _LT_COMPILER_NO_RTTI([TAGNAME])
4226
# -------------------------------
4227
m4_defun([_LT_COMPILER_NO_RTTI],
4228
[m4_require([_LT_TAG_COMPILER])dnl
4230
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4232
if test "$GCC" = yes; then
4233
case $cc_basename in
4235
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4237
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4240
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4241
lt_cv_prog_compiler_rtti_exceptions,
4242
[-fno-rtti -fno-exceptions], [],
4243
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4245
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4246
[Compiler flag to turn off builtin functions])
4247
])# _LT_COMPILER_NO_RTTI
4250
# _LT_CMD_GLOBAL_SYMBOLS
4251
# ----------------------
4252
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4253
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4254
AC_REQUIRE([AC_PROG_CC])dnl
4255
AC_REQUIRE([AC_PROG_AWK])dnl
4256
AC_REQUIRE([LT_PATH_NM])dnl
4257
AC_REQUIRE([LT_PATH_LD])dnl
4258
m4_require([_LT_DECL_SED])dnl
4259
m4_require([_LT_DECL_EGREP])dnl
4260
m4_require([_LT_TAG_COMPILER])dnl
4262
# Check for command to grab the raw symbol name followed by C symbol from nm.
4263
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4264
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4266
# These are sane defaults that work on at least a few old systems.
4267
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4269
# Character class describing NM global symbol codes.
4270
symcode='[[BCDEGRST]]'
4272
# Regexp to match symbols that can be accessed directly from C.
4273
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4275
# Define system-specific variables.
4280
cygwin* | mingw* | pw32* | cegcc*)
4281
symcode='[[ABCDGISTW]]'
4284
if test "$host_cpu" = ia64; then
4285
symcode='[[ABCDEGRST]]'
4289
symcode='[[BCDEGRST]]'
4292
symcode='[[BCDEGQRST]]'
4303
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4307
symcode='[[DFNSTU]]'
4311
# If we're using GNU nm, then use its standard symbol codes.
4312
case `$NM -V 2>&1` in
4313
*GNU* | *'with BFD'*)
4314
symcode='[[ABCDGIRSTW]]' ;;
4317
# Transform an extracted symbol line into a proper C declaration.
4318
# Some systems (esp. on ia64) link data and code symbols differently,
4319
# so use this general approach.
4320
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4322
# Transform an extracted symbol line into symbol name and symbol address
4323
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4324
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'"
4326
# Handle CRLF in mingw tool chain
4330
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4334
# Try without a prefix underscore, then with it.
4335
for ac_symprfx in "" "_"; do
4337
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4338
symxfrm="\\1 $ac_symprfx\\2 \\2"
4340
# Write the raw and C identifiers.
4341
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4342
# Fake it for dumpbin and say T for any non-static function
4343
# and D for any global variable.
4344
# Also find C++ and __fastcall symbols from MSVC++,
4345
# which start with @ or ?.
4346
lt_cv_sys_global_symbol_pipe="$AWK ['"\
4347
" {last_section=section; section=\$ 3};"\
4348
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4349
" \$ 0!~/External *\|/{next};"\
4350
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4351
" {if(hide[section]) next};"\
4352
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4353
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4354
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4355
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4356
" ' prfx=^$ac_symprfx]"
4358
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4360
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4362
# Check to see that the pipe works correctly.
4366
cat > conftest.$ac_ext <<_LT_EOF
4371
void nm_test_func(void);
4372
void nm_test_func(void){}
4376
int main(){nm_test_var='a';nm_test_func();return(0);}
4379
if AC_TRY_EVAL(ac_compile); then
4380
# Now try to grab the symbols.
4382
if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4383
# Try sorting and uniquifying the output.
4384
if sort "$nlist" | uniq > "$nlist"T; then
4385
mv -f "$nlist"T "$nlist"
4390
# Make sure that we snagged all the symbols we need.
4391
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4392
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4393
cat <<_LT_EOF > conftest.$ac_ext
4394
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4395
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4396
/* DATA imports from DLLs on WIN32 con't be const, because runtime
4397
relocations are performed -- see ld's documentation on pseudo-relocs. */
4398
# define LT@&t@_DLSYM_CONST
4399
#elif defined(__osf__)
4400
/* This system does not cope well with relocations in const data. */
4401
# define LT@&t@_DLSYM_CONST
4403
# define LT@&t@_DLSYM_CONST const
4411
# Now generate the symbol file.
4412
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4414
cat <<_LT_EOF >> conftest.$ac_ext
4416
/* The mapping between symbol names and symbols. */
4417
LT@&t@_DLSYM_CONST struct {
4421
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4423
{ "@PROGRAM@", (void *) 0 },
4425
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4426
cat <<\_LT_EOF >> conftest.$ac_ext
4430
/* This works around a problem in FreeBSD linker */
4431
#ifdef FREEBSD_WORKAROUND
4432
static const void *lt_preloaded_setup() {
4433
return lt__PROGRAM__LTX_preloaded_symbols;
4441
# Now try linking the two files.
4442
mv conftest.$ac_objext conftstm.$ac_objext
4443
lt_globsym_save_LIBS=$LIBS
4444
lt_globsym_save_CFLAGS=$CFLAGS
4445
LIBS="conftstm.$ac_objext"
4446
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4447
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4450
LIBS=$lt_globsym_save_LIBS
4451
CFLAGS=$lt_globsym_save_CFLAGS
4453
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4456
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4459
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4462
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4463
cat conftest.$ac_ext >&5
4465
rm -rf conftest* conftst*
4467
# Do not use the global_symbol_pipe unless it works.
4468
if test "$pipe_works" = yes; then
4471
lt_cv_sys_global_symbol_pipe=
4475
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4476
lt_cv_sys_global_symbol_to_cdecl=
4478
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4479
AC_MSG_RESULT(failed)
4484
# Response file support.
4485
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4486
nm_file_list_spec='@'
4487
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4488
nm_file_list_spec='@'
4491
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4492
[Take the output of nm and produce a listing of raw symbols and C names])
4493
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4494
[Transform the output of nm in a proper C declaration])
4495
_LT_DECL([global_symbol_to_c_name_address],
4496
[lt_cv_sys_global_symbol_to_c_name_address], [1],
4497
[Transform the output of nm in a C name address pair])
4498
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4499
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4500
[Transform the output of nm in a C name address pair when lib prefix is needed])
4501
_LT_DECL([], [nm_file_list_spec], [1],
4502
[Specify filename containing input files for $NM])
4503
]) # _LT_CMD_GLOBAL_SYMBOLS
4506
# _LT_COMPILER_PIC([TAGNAME])
4507
# ---------------------------
4508
m4_defun([_LT_COMPILER_PIC],
4509
[m4_require([_LT_TAG_COMPILER])dnl
4510
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4511
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4512
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4514
m4_if([$1], [CXX], [
4515
# C++ specific cases for pic, static, wl, etc.
4516
if test "$GXX" = yes; then
4517
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4518
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4522
# All AIX code is PIC.
4523
if test "$host_cpu" = ia64; then
4524
# AIX 5 now supports IA64 processor
4525
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4532
# see comment about AmigaOS4 .so support
4533
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4536
# FIXME: we need at least 68020 code to build shared libraries, but
4537
# adding the `-m68020' flag to GCC prevents building anything better,
4539
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4544
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4545
# PIC is the default for these OSes.
4547
mingw* | cygwin* | os2* | pw32* | cegcc*)
4548
# This hack is so that the source file can tell whether it is being
4549
# built for inclusion in a dll (and should export symbols for example).
4550
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4551
# (--disable-auto-import) libraries
4552
m4_if([$1], [GCJ], [],
4553
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4555
darwin* | rhapsody*)
4556
# PIC is the default on this platform
4557
# Common symbols not allowed in MH_DYLIB files
4558
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4561
# DJGPP does not support shared libraries at all
4562
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4565
# PIC is the default for Haiku.
4566
# The "-static" flag exists, but is broken.
4567
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4570
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4571
# Instead, we relocate shared libraries at runtime.
4574
if test -d /usr/nec; then
4575
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4579
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4580
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4581
# sets the default TLS model and affects inlining.
4586
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4591
# QNX uses GNU C++, but need to define -shared option too, otherwise
4593
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4596
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4602
# All AIX code is PIC.
4603
if test "$host_cpu" = ia64; then
4604
# AIX 5 now supports IA64 processor
4605
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4607
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4611
case $cc_basename in
4613
# Green Hills C++ Compiler
4614
# _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"
4618
mingw* | cygwin* | os2* | pw32* | cegcc*)
4619
# This hack is so that the source file can tell whether it is being
4620
# built for inclusion in a dll (and should export symbols for example).
4621
m4_if([$1], [GCJ], [],
4622
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4625
case $cc_basename in
4627
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4630
# Green Hills C++ Compiler
4631
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4637
freebsd* | dragonfly*)
4638
# FreeBSD uses GNU C++
4640
hpux9* | hpux10* | hpux11*)
4641
case $cc_basename in
4643
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4644
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4645
if test "$host_cpu" != ia64; then
4646
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4650
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4651
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4657
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4666
# This is c89, which is MS Visual C++ (no shared libs)
4667
# Anyone wants to do a port?
4669
irix5* | irix6* | nonstopux*)
4670
case $cc_basename in
4672
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4673
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4674
# CC pic flag -KPIC is the default.
4680
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4681
case $cc_basename in
4684
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4685
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4688
# old Intel C++ for x86_64 which still supported -KPIC.
4689
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4690
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4691
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4694
# Intel C++, used to be incompatible with GCC.
4695
# ICC 10 doesn't accept -KPIC any more.
4696
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4697
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4698
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4701
# Portland Group C++ compiler
4702
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4703
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4704
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4708
# Make sure the PIC flag is empty. It appears that all Alpha
4709
# Linux and Compaq Tru64 Unix objects are PIC.
4710
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4711
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4713
xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4714
# IBM XL 8.0, 9.0 on PPC and BlueGene
4715
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4716
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4717
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4720
case `$CC -V 2>&1 | sed 5q` in
4723
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4724
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4725
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4736
case $cc_basename in
4738
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4744
netbsd* | netbsdelf*-gnu)
4747
# QNX uses GNU C++, but need to define -shared option too, otherwise
4749
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4751
osf3* | osf4* | osf5*)
4752
case $cc_basename in
4754
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4757
# Rational C++ 2.4.1
4758
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4761
# Digital/Compaq C++
4762
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4763
# Make sure the PIC flag is empty. It appears that all Alpha
4764
# Linux and Compaq Tru64 Unix objects are PIC.
4765
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4766
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4775
case $cc_basename in
4777
# Sun C++ 4.2, 5.x and Centerline C++
4778
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4779
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4780
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4783
# Green Hills C++ Compiler
4784
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4791
case $cc_basename in
4794
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4795
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4799
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4805
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4806
case $cc_basename in
4808
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4809
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4810
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4815
case $cc_basename in
4817
# NonStop-UX NCC 3.20
4818
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4827
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4833
if test "$GCC" = yes; then
4834
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4835
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4839
# All AIX code is PIC.
4840
if test "$host_cpu" = ia64; then
4841
# AIX 5 now supports IA64 processor
4842
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4849
# see comment about AmigaOS4 .so support
4850
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4853
# FIXME: we need at least 68020 code to build shared libraries, but
4854
# adding the `-m68020' flag to GCC prevents building anything better,
4856
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4861
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4862
# PIC is the default for these OSes.
4865
mingw* | cygwin* | pw32* | os2* | cegcc*)
4866
# This hack is so that the source file can tell whether it is being
4867
# built for inclusion in a dll (and should export symbols for example).
4868
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4869
# (--disable-auto-import) libraries
4870
m4_if([$1], [GCJ], [],
4871
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4874
darwin* | rhapsody*)
4875
# PIC is the default on this platform
4876
# Common symbols not allowed in MH_DYLIB files
4877
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4881
# PIC is the default for Haiku.
4882
# The "-static" flag exists, but is broken.
4883
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4887
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4888
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4889
# sets the default TLS model and affects inlining.
4895
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4901
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4902
# Instead, we relocate shared libraries at runtime.
4906
# Just because we use GCC doesn't mean we suddenly get shared libraries
4907
# on systems that don't support them.
4908
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4913
# QNX uses GNU C++, but need to define -shared option too, otherwise
4915
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4919
if test -d /usr/nec; then
4920
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4925
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4929
case $cc_basename in
4930
nvcc*) # Cuda Compiler Driver 2.2
4931
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4932
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4936
# PORTME Check for flag to pass linker flags through the system compiler.
4939
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4940
if test "$host_cpu" = ia64; then
4941
# AIX 5 now supports IA64 processor
4942
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4944
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4948
mingw* | cygwin* | pw32* | os2* | cegcc*)
4949
# This hack is so that the source file can tell whether it is being
4950
# built for inclusion in a dll (and should export symbols for example).
4951
m4_if([$1], [GCJ], [],
4952
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4955
hpux9* | hpux10* | hpux11*)
4956
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4957
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4964
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4967
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4968
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4971
irix5* | irix6* | nonstopux*)
4972
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4973
# PIC (with -KPIC) is the default.
4974
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4977
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4978
case $cc_basename in
4979
# old Intel for x86_64 which still supported -KPIC.
4981
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4982
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4983
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4985
# icc used to be incompatible with GCC.
4986
# ICC 10 doesn't accept -KPIC any more.
4988
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4989
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4990
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4992
# Lahey Fortran 8.1.
4994
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4995
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4996
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4999
# NAG Fortran compiler
5000
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
5001
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5002
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5004
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5005
# Portland Group compilers (*not* the Pentium gcc compiler,
5006
# which looks to be a dead project)
5007
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5008
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5009
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5012
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5013
# All Alpha code is PIC.
5014
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5016
xl* | bgxl* | bgf* | mpixl*)
5017
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5018
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5019
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5020
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5023
case `$CC -V 2>&1 | sed 5q` in
5024
*Sun\ F* | *Sun*Fortran*)
5025
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5026
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5027
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5028
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5032
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5033
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5034
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5042
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5043
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5047
# QNX uses GNU C++, but need to define -shared option too, otherwise
5049
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5052
osf3* | osf4* | osf5*)
5053
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5054
# All OSF/1 code is PIC.
5055
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5059
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5063
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5064
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5065
case $cc_basename in
5066
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5067
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5069
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5074
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5075
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5076
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5079
sysv4 | sysv4.2uw2* | sysv4.3*)
5080
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5081
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5082
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5086
if test -d /usr/nec ;then
5087
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5088
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5092
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5093
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5094
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5095
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5099
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5100
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5104
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5105
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5109
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5115
# For platforms which do not support PIC, -DPIC is meaningless:
5117
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5120
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5124
AC_CACHE_CHECK([for $compiler option to produce PIC],
5125
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
5126
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5127
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
5130
# Check to make sure the PIC flag actually works.
5132
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5133
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5134
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5135
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5136
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5138
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5140
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5141
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5143
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5144
[Additional compiler flags for building library objects])
5146
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5147
[How to pass a linker flag through the compiler])
5149
# Check to make sure the static flag actually works.
5151
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5152
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5153
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5154
$lt_tmp_static_flag,
5156
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5157
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5158
[Compiler flag to prevent dynamic linking])
5159
])# _LT_COMPILER_PIC
5162
# _LT_LINKER_SHLIBS([TAGNAME])
5163
# ----------------------------
5164
# See if the linker supports building shared libraries.
5165
m4_defun([_LT_LINKER_SHLIBS],
5166
[AC_REQUIRE([LT_PATH_LD])dnl
5167
AC_REQUIRE([LT_PATH_NM])dnl
5168
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5169
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5170
m4_require([_LT_DECL_EGREP])dnl
5171
m4_require([_LT_DECL_SED])dnl
5172
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5173
m4_require([_LT_TAG_COMPILER])dnl
5174
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5175
m4_if([$1], [CXX], [
5176
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5177
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5180
# If we're using GNU nm, then we don't want the "-C" option.
5181
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5182
# Also, AIX nm treats weak defined symbols like other global defined
5183
# symbols, whereas GNU nm marks them as "W".
5184
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5185
_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'
5187
_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'
5191
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5193
cygwin* | mingw* | cegcc*)
5194
case $cc_basename in
5197
_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'
5198
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5202
linux* | k*bsd*-gnu | gnu*)
5203
_LT_TAGVAR(link_all_deplibs, $1)=no
5206
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5211
_LT_TAGVAR(allow_undefined_flag, $1)=
5212
_LT_TAGVAR(always_export_symbols, $1)=no
5213
_LT_TAGVAR(archive_cmds, $1)=
5214
_LT_TAGVAR(archive_expsym_cmds, $1)=
5215
_LT_TAGVAR(compiler_needs_object, $1)=no
5216
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5217
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5218
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5219
_LT_TAGVAR(hardcode_automatic, $1)=no
5220
_LT_TAGVAR(hardcode_direct, $1)=no
5221
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5222
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5223
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5224
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5225
_LT_TAGVAR(hardcode_minus_L, $1)=no
5226
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5227
_LT_TAGVAR(inherit_rpath, $1)=no
5228
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5229
_LT_TAGVAR(module_cmds, $1)=
5230
_LT_TAGVAR(module_expsym_cmds, $1)=
5231
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5232
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5233
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5234
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5235
# include_expsyms should be a list of space-separated symbols to be *always*
5236
# included in the symbol list
5237
_LT_TAGVAR(include_expsyms, $1)=
5238
# exclude_expsyms can be an extended regexp of symbols to exclude
5239
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5240
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5241
# as well as any symbol that contains `d'.
5242
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5243
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5244
# platforms (ab)use it in PIC code, but their linkers get confused if
5245
# the symbol is explicitly referenced. Since portable code cannot
5246
# rely on this symbol name, it's probably fine to never include it in
5247
# preloaded symbol tables.
5248
# Exclude shared library initialization/finalization symbols.
5249
dnl Note also adjust exclude_expsyms for C++ above.
5250
extract_expsyms_cmds=
5253
cygwin* | mingw* | pw32* | cegcc*)
5254
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5255
# When not using gcc, we currently assume that we are using
5256
# Microsoft Visual C++.
5257
if test "$GCC" != yes; then
5262
# we just hope/assume this is gcc and not c89 (= MSVC++)
5268
linux* | k*bsd*-gnu | gnu*)
5269
_LT_TAGVAR(link_all_deplibs, $1)=no
5273
_LT_TAGVAR(ld_shlibs, $1)=yes
5275
# On some targets, GNU ld is compatible enough with the native linker
5276
# that we're better off using the native interface for both.
5277
lt_use_gnu_ld_interface=no
5278
if test "$with_gnu_ld" = yes; then
5281
# The AIX port of GNU ld has always aspired to compatibility
5282
# with the native linker. However, as the warning in the GNU ld
5283
# block says, versions before 2.19.5* couldn't really create working
5284
# shared libraries, regardless of the interface used.
5285
case `$LD -v 2>&1` in
5286
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5287
*\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5288
*\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5290
lt_use_gnu_ld_interface=yes
5295
lt_use_gnu_ld_interface=yes
5300
if test "$lt_use_gnu_ld_interface" = yes; then
5301
# If archive_cmds runs LD, not CC, wlarc should be empty
5304
# Set some defaults for GNU ld with shared library support. These
5305
# are reset later if shared libraries are not supported. Putting them
5306
# here allows them to be overridden if necessary.
5307
runpath_var=LD_RUN_PATH
5308
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5309
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5310
# ancient GNU ld didn't support --whole-archive et. al.
5311
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5312
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5314
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5316
supports_anon_versioning=no
5317
case `$LD -v 2>&1` in
5318
*GNU\ gold*) supports_anon_versioning=yes ;;
5319
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5320
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5321
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5322
*\ 2.11.*) ;; # other 2.11 versions
5323
*) supports_anon_versioning=yes ;;
5326
# See if GNU ld supports shared libraries.
5329
# On AIX/PPC, the GNU linker is very broken
5330
if test "$host_cpu" != ia64; then
5331
_LT_TAGVAR(ld_shlibs, $1)=no
5334
*** Warning: the GNU linker, at least up to release 2.19, is reported
5335
*** to be unable to reliably create shared libraries on AIX.
5336
*** Therefore, libtool is disabling shared libraries support. If you
5337
*** really care for shared libraries, you may want to install binutils
5338
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5339
*** You will then need to restart the configuration process.
5348
# see comment about AmigaOS4 .so support
5349
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5350
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5353
_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)'
5354
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5355
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5361
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5362
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5363
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5364
# support --undefined. This deserves some investigation. FIXME
5365
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5367
_LT_TAGVAR(ld_shlibs, $1)=no
5371
cygwin* | mingw* | pw32* | cegcc*)
5372
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5373
# as there is no search path for DLLs.
5374
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5375
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5376
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5377
_LT_TAGVAR(always_export_symbols, $1)=no
5378
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5379
_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'
5380
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5382
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5383
_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'
5384
# If the export-symbols file already is a .def file (1st line
5385
# is EXPORTS), use it as is; otherwise, prepend...
5386
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5387
cp $export_symbols $output_objdir/$soname.def;
5389
echo EXPORTS > $output_objdir/$soname.def;
5390
cat $export_symbols >> $output_objdir/$soname.def;
5392
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5394
_LT_TAGVAR(ld_shlibs, $1)=no
5399
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5400
_LT_TAGVAR(link_all_deplibs, $1)=yes
5404
_LT_TAGVAR(hardcode_direct, $1)=no
5405
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5406
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5407
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5408
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5409
# Instead, shared libraries are loaded at an image base (0x10000000 by
5410
# default) and relocated if they conflict, which is a slow very memory
5411
# consuming and fragmenting process. To avoid this, we pick a random,
5412
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5413
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5414
_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'
5415
_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'
5418
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5420
if test "$host_os" = linux-dietlibc; then
5421
case $cc_basename in
5422
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5425
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5426
&& test "$tmp_diet" = no
5428
tmp_addflag=' $pic_flag'
5429
tmp_sharedflag='-shared'
5430
case $cc_basename,$host_cpu in
5431
pgcc*) # Portland Group C compiler
5432
_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'
5433
tmp_addflag=' $pic_flag'
5435
pgf77* | pgf90* | pgf95* | pgfortran*)
5436
# Portland Group f77 and f90 compilers
5437
_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'
5438
tmp_addflag=' $pic_flag -Mnomain' ;;
5439
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5440
tmp_addflag=' -i_dynamic' ;;
5441
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5442
tmp_addflag=' -i_dynamic -nofor_main' ;;
5443
ifc* | ifort*) # Intel Fortran compiler
5444
tmp_addflag=' -nofor_main' ;;
5445
lf95*) # Lahey Fortran 8.1
5446
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5447
tmp_sharedflag='--shared' ;;
5448
xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5449
tmp_sharedflag='-qmkshrobj'
5451
nvcc*) # Cuda Compiler Driver 2.2
5452
_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'
5453
_LT_TAGVAR(compiler_needs_object, $1)=yes
5456
case `$CC -V 2>&1 | sed 5q` in
5457
*Sun\ C*) # Sun C 5.9
5458
_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'
5459
_LT_TAGVAR(compiler_needs_object, $1)=yes
5460
tmp_sharedflag='-G' ;;
5461
*Sun\ F*) # Sun Fortran 8.3
5462
tmp_sharedflag='-G' ;;
5464
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5466
if test "x$supports_anon_versioning" = xyes; then
5467
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5468
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5469
echo "local: *; };" >> $output_objdir/$libname.ver~
5470
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5473
case $cc_basename in
5474
xlf* | bgf* | bgxlf* | mpixlf*)
5475
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5476
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5477
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5478
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5479
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5480
if test "x$supports_anon_versioning" = xyes; then
5481
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5482
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5483
echo "local: *; };" >> $output_objdir/$libname.ver~
5484
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5489
_LT_TAGVAR(ld_shlibs, $1)=no
5493
netbsd* | netbsdelf*-gnu)
5494
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5495
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5498
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5499
_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'
5504
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5505
_LT_TAGVAR(ld_shlibs, $1)=no
5508
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5509
*** create shared libraries on Solaris systems. Therefore, libtool
5510
*** is disabling shared libraries support. We urge you to upgrade GNU
5511
*** binutils to release 2.9.1 or newer. Another option is to modify
5512
*** your PATH or compiler configuration so that the native linker is
5513
*** used, and then restart.
5516
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5517
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5518
_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'
5520
_LT_TAGVAR(ld_shlibs, $1)=no
5524
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5525
case `$LD -v 2>&1` in
5526
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5527
_LT_TAGVAR(ld_shlibs, $1)=no
5530
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5531
*** reliably create shared libraries on SCO systems. Therefore, libtool
5532
*** is disabling shared libraries support. We urge you to upgrade GNU
5533
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5534
*** your PATH or compiler configuration so that the native linker is
5535
*** used, and then restart.
5540
# For security reasons, it is highly recommended that you always
5541
# use absolute paths for naming shared libraries, and exclude the
5542
# DT_RUNPATH tag from executables and libraries. But doing so
5543
# requires that you compile everything twice, which is a pain.
5544
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5545
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5546
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5547
_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'
5549
_LT_TAGVAR(ld_shlibs, $1)=no
5556
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5558
_LT_TAGVAR(hardcode_direct, $1)=yes
5559
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5563
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5564
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5565
_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'
5567
_LT_TAGVAR(ld_shlibs, $1)=no
5572
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5574
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5575
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5576
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5579
# PORTME fill in a description of your system's linker (not GNU ld)
5582
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5583
_LT_TAGVAR(always_export_symbols, $1)=yes
5584
_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'
5585
# Note: this linker hardcodes the directories in LIBPATH if there
5586
# are no directories specified by -L.
5587
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5588
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5589
# Neither direct hardcoding nor static linking is supported with a
5591
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5596
if test "$host_cpu" = ia64; then
5597
# On IA64, the linker does run time linking by default, so we don't
5598
# have to do anything special.
5599
aix_use_runtimelinking=no
5600
exp_sym_flag='-Bexport'
5603
# If we're using GNU nm, then we don't want the "-C" option.
5604
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5605
# Also, AIX nm treats weak defined symbols like other global
5606
# defined symbols, whereas GNU nm marks them as "W".
5607
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5608
_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'
5610
_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'
5612
aix_use_runtimelinking=no
5614
# Test if we are trying to use run time linking or normal
5615
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5616
# need to do runtime linking.
5617
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5618
for ld_flag in $LDFLAGS; do
5619
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5620
aix_use_runtimelinking=yes
5627
exp_sym_flag='-bexport'
5628
no_entry_flag='-bnoentry'
5631
# When large executables or shared objects are built, AIX ld can
5632
# have problems creating the table of contents. If linking a library
5633
# or program results in "error TOC overflow" add -mminimal-toc to
5634
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5635
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5637
_LT_TAGVAR(archive_cmds, $1)=''
5638
_LT_TAGVAR(hardcode_direct, $1)=yes
5639
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5640
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5641
_LT_TAGVAR(link_all_deplibs, $1)=yes
5642
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5644
if test "$GCC" = yes; then
5645
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5646
# We only want to do this on AIX 4.2 and lower, the check
5647
# below for broken collect2 doesn't work under 4.3+
5648
collect2name=`${CC} -print-prog-name=collect2`
5649
if test -f "$collect2name" &&
5650
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5652
# We have reworked collect2
5655
# We have old collect2
5656
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5657
# It fails to find uninstalled libraries when the uninstalled
5658
# path is not listed in the libpath. Setting hardcode_minus_L
5659
# to unsupported forces relinking
5660
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5661
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5662
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5666
shared_flag='-shared'
5667
if test "$aix_use_runtimelinking" = yes; then
5668
shared_flag="$shared_flag "'${wl}-G'
5670
_LT_TAGVAR(link_all_deplibs, $1)=no
5673
if test "$host_cpu" = ia64; then
5674
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5675
# chokes on -Wl,-G. The following line is correct:
5678
if test "$aix_use_runtimelinking" = yes; then
5679
shared_flag='${wl}-G'
5681
shared_flag='${wl}-bM:SRE'
5686
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5687
# It seems that -bexpall does not export symbols beginning with
5688
# underscore (_), so it is better to generate a list of symbols to export.
5689
_LT_TAGVAR(always_export_symbols, $1)=yes
5690
if test "$aix_use_runtimelinking" = yes; then
5691
# Warning - without using the other runtime loading flags (-brtl),
5692
# -berok will link without error, but may produce a broken library.
5693
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5694
# Determine the default libpath from the value encoded in an
5696
_LT_SYS_MODULE_PATH_AIX([$1])
5697
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5698
_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"
5700
if test "$host_cpu" = ia64; then
5701
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5702
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5703
_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"
5705
# Determine the default libpath from the value encoded in an
5707
_LT_SYS_MODULE_PATH_AIX([$1])
5708
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5709
# Warning - without using the other run time loading flags,
5710
# -berok will link without error, but may produce a broken library.
5711
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5712
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5713
if test "$with_gnu_ld" = yes; then
5714
# We only use this code for GNU lds that support --whole-archive.
5715
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5717
# Exported symbols can be pulled into shared objects from archives
5718
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5720
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5721
# This is similar to how AIX traditionally builds its shared libraries.
5722
_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'
5730
# see comment about AmigaOS4 .so support
5731
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5732
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5735
_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)'
5736
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5737
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5743
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5746
cygwin* | mingw* | pw32* | cegcc*)
5747
# When not using gcc, we currently assume that we are using
5748
# Microsoft Visual C++.
5749
# hardcode_libdir_flag_spec is actually meaningless, as there is
5750
# no search path for DLLs.
5751
case $cc_basename in
5754
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5755
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5756
_LT_TAGVAR(always_export_symbols, $1)=yes
5757
_LT_TAGVAR(file_list_spec, $1)='@'
5758
# Tell ltmain to make .lib files, not .a files.
5760
# Tell ltmain to make .dll files, not .so files.
5762
# FIXME: Setting linknames here is a bad hack.
5763
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5764
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5765
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5767
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5769
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5771
# The linker will not automatically build a static lib if we build a DLL.
5772
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5773
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5774
_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'
5776
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5777
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5778
lt_tool_outputfile="@TOOL_OUTPUT@"~
5779
case $lt_outputfile in
5782
lt_outputfile="$lt_outputfile.exe"
5783
lt_tool_outputfile="$lt_tool_outputfile.exe"
5786
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5787
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5788
$RM "$lt_outputfile.manifest";
5792
# Assume MSVC wrapper
5793
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5794
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5795
# Tell ltmain to make .lib files, not .a files.
5797
# Tell ltmain to make .dll files, not .so files.
5799
# FIXME: Setting linknames here is a bad hack.
5800
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5801
# The linker will automatically build a .lib file if we build a DLL.
5802
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5803
# FIXME: Should let the user specify the lib program.
5804
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5805
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5810
darwin* | rhapsody*)
5811
_LT_DARWIN_LINKER_FEATURES($1)
5815
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5816
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5817
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5821
_LT_TAGVAR(ld_shlibs, $1)=no
5824
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5825
# support. Future versions do this automatically, but an explicit c++rt0.o
5826
# does not break anything, and helps significantly (at the cost of a little
5829
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5830
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5831
_LT_TAGVAR(hardcode_direct, $1)=yes
5832
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5835
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5837
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5838
_LT_TAGVAR(hardcode_direct, $1)=yes
5839
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5840
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5843
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5844
freebsd* | dragonfly*)
5845
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5846
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5847
_LT_TAGVAR(hardcode_direct, $1)=yes
5848
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5852
if test "$GCC" = yes; then
5853
_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'
5855
_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'
5857
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5858
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5859
_LT_TAGVAR(hardcode_direct, $1)=yes
5861
# hardcode_minus_L: Not really in the search PATH,
5862
# but as the default location of the library.
5863
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5864
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5868
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5869
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5871
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5873
if test "$with_gnu_ld" = no; then
5874
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5875
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5876
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5877
_LT_TAGVAR(hardcode_direct, $1)=yes
5878
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5879
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5880
# hardcode_minus_L: Not really in the search PATH,
5881
# but as the default location of the library.
5882
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5887
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5890
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5893
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5896
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5902
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5905
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5909
# Older versions of the 11.00 compiler do not understand -b yet
5910
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5911
_LT_LINKER_OPTION([if $CC understands -b],
5912
_LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5913
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5914
[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5915
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5919
if test "$with_gnu_ld" = no; then
5920
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5921
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5925
_LT_TAGVAR(hardcode_direct, $1)=no
5926
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5929
_LT_TAGVAR(hardcode_direct, $1)=yes
5930
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5931
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5933
# hardcode_minus_L: Not really in the search PATH,
5934
# but as the default location of the library.
5935
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5941
irix5* | irix6* | nonstopux*)
5942
if test "$GCC" = yes; then
5943
_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'
5944
# Try to use the -exported_symbol ld option, if it does not
5945
# work, assume that -exports_file does not work either and
5946
# implicitly export all symbols.
5947
# This should be the same for all languages, so no per-tag cache variable.
5948
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5949
[lt_cv_irix_exported_symbol],
5950
[save_LDFLAGS="$LDFLAGS"
5951
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5954
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5955
[C++], [[int foo (void) { return 0; }]],
5962
[lt_cv_irix_exported_symbol=yes],
5963
[lt_cv_irix_exported_symbol=no])
5964
LDFLAGS="$save_LDFLAGS"])
5965
if test "$lt_cv_irix_exported_symbol" = yes; then
5966
_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'
5969
_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'
5970
_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'
5972
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5973
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5974
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5975
_LT_TAGVAR(inherit_rpath, $1)=yes
5976
_LT_TAGVAR(link_all_deplibs, $1)=yes
5979
netbsd* | netbsdelf*-gnu)
5980
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5981
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5983
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5985
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5986
_LT_TAGVAR(hardcode_direct, $1)=yes
5987
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5991
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5992
_LT_TAGVAR(hardcode_direct, $1)=yes
5993
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5994
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5995
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6002
if test -f /usr/libexec/ld.so; then
6003
_LT_TAGVAR(hardcode_direct, $1)=yes
6004
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6005
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6006
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6007
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6008
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6009
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6010
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6013
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6014
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6015
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6018
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6019
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6024
_LT_TAGVAR(ld_shlibs, $1)=no
6029
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6030
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6031
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6032
_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'
6033
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6037
if test "$GCC" = yes; then
6038
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6039
_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'
6041
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6042
_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'
6044
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6045
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6046
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6049
osf4* | osf5*) # as osf3* with the addition of -msym flag
6050
if test "$GCC" = yes; then
6051
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6052
_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'
6053
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6055
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6056
_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'
6057
_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~
6058
$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'
6060
# Both c and cxx compiler support -rpath directly
6061
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6063
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6064
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6068
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6069
if test "$GCC" = yes; then
6071
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6072
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6073
$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'
6075
case `$CC -V 2>&1` in
6078
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6079
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6080
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6084
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6085
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6086
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6090
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6091
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6093
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6095
# The compiler driver will combine and reorder linker options,
6096
# but understands `-z linker_flag'. GCC discards it without `$wl',
6097
# but is careful enough not to reorder.
6098
# Supported since Solaris 2.6 (maybe 2.5.1?)
6099
if test "$GCC" = yes; then
6100
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6102
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6106
_LT_TAGVAR(link_all_deplibs, $1)=yes
6110
if test "x$host_vendor" = xsequent; then
6111
# Use $CC to link under sequent, because it throws in some extra .o
6112
# files that make .init and .fini sections work.
6113
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6115
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6117
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6118
_LT_TAGVAR(hardcode_direct, $1)=yes
6119
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6120
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6124
case $host_vendor in
6126
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6127
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6130
## LD is ld it makes a PLAMLIB
6131
## CC just makes a GrossModule.
6132
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6133
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6134
_LT_TAGVAR(hardcode_direct, $1)=no
6137
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6138
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6141
runpath_var='LD_RUN_PATH'
6142
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6146
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6147
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6148
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6152
if test -d /usr/nec; then
6153
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6154
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6155
runpath_var=LD_RUN_PATH
6156
hardcode_runpath_var=yes
6157
_LT_TAGVAR(ld_shlibs, $1)=yes
6161
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6162
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6163
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6164
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6165
runpath_var='LD_RUN_PATH'
6167
if test "$GCC" = yes; then
6168
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6169
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6171
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6172
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6176
sysv5* | sco3.2v5* | sco5v6*)
6177
# Note: We can NOT use -z defs as we might desire, because we do not
6178
# link with -lc, and that would cause any symbols used from libc to
6179
# always be unresolved, which means just about no library would
6180
# ever link correctly. If we're not using GNU ld we use -z text
6181
# though, which does catch some bad symbols but isn't as heavy-handed
6183
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6184
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6185
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6186
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6187
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6188
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6189
_LT_TAGVAR(link_all_deplibs, $1)=yes
6190
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6191
runpath_var='LD_RUN_PATH'
6193
if test "$GCC" = yes; then
6194
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6195
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6197
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6198
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6203
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6204
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6205
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6209
_LT_TAGVAR(ld_shlibs, $1)=no
6213
if test x$host_vendor = xsni; then
6215
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6216
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6222
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6223
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6225
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6227
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6228
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6229
_LT_DECL([], [extract_expsyms_cmds], [2],
6230
[The commands to extract the exported symbol list from a shared archive])
6233
# Do we need to explicitly link libc?
6235
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6237
# Assume -lc should be added
6238
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6240
if test "$enable_shared" = yes && test "$GCC" = yes; then
6241
case $_LT_TAGVAR(archive_cmds, $1) in
6243
# FIXME: we may have to deal with multi-command sequences.
6246
# Test whether the compiler implicitly links with -lc since on some
6247
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6248
# to ld, don't add -lc before -lgcc.
6249
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6250
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6252
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6254
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6257
libobjs=conftest.$ac_objext
6259
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6260
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6266
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6267
_LT_TAGVAR(allow_undefined_flag, $1)=
6268
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6270
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6272
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6274
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6276
cat conftest.err 1>&5
6280
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6287
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6288
[Whether or not to add -lc for building shared libraries])
6289
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6290
[enable_shared_with_static_runtimes], [0],
6291
[Whether or not to disallow shared libs when runtime libs are static])
6292
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6293
[Compiler flag to allow reflexive dlopens])
6294
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6295
[Compiler flag to generate shared objects directly from archives])
6296
_LT_TAGDECL([], [compiler_needs_object], [1],
6297
[Whether the compiler copes with passing no objects directly])
6298
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6299
[Create an old-style archive from a shared archive])
6300
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6301
[Create a temporary old-style archive to link instead of a shared archive])
6302
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6303
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6304
_LT_TAGDECL([], [module_cmds], [2],
6305
[Commands used to build a loadable module if different from building
6307
_LT_TAGDECL([], [module_expsym_cmds], [2])
6308
_LT_TAGDECL([], [with_gnu_ld], [1],
6309
[Whether we are building with GNU ld or not])
6310
_LT_TAGDECL([], [allow_undefined_flag], [1],
6311
[Flag that allows shared libraries with undefined symbols to be built])
6312
_LT_TAGDECL([], [no_undefined_flag], [1],
6313
[Flag that enforces no undefined symbols])
6314
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6315
[Flag to hardcode $libdir into a binary during linking.
6316
This must work even if $libdir does not exist])
6317
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6318
[[If ld is used when linking, flag to hardcode $libdir into a binary
6319
during linking. This must work even if $libdir does not exist]])
6320
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6321
[Whether we need a single "-rpath" flag with a separated argument])
6322
_LT_TAGDECL([], [hardcode_direct], [0],
6323
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6324
DIR into the resulting binary])
6325
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6326
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6327
DIR into the resulting binary and the resulting library dependency is
6328
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6329
library is relocated])
6330
_LT_TAGDECL([], [hardcode_minus_L], [0],
6331
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6332
into the resulting binary])
6333
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6334
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6335
into the resulting binary])
6336
_LT_TAGDECL([], [hardcode_automatic], [0],
6337
[Set to "yes" if building a shared library automatically hardcodes DIR
6338
into the library and all subsequent libraries and executables linked
6340
_LT_TAGDECL([], [inherit_rpath], [0],
6341
[Set to yes if linker adds runtime paths of dependent libraries
6342
to runtime path list])
6343
_LT_TAGDECL([], [link_all_deplibs], [0],
6344
[Whether libtool must link a program against all its dependency libraries])
6345
_LT_TAGDECL([], [always_export_symbols], [0],
6346
[Set to "yes" if exported symbols are required])
6347
_LT_TAGDECL([], [export_symbols_cmds], [2],
6348
[The commands to list exported symbols])
6349
_LT_TAGDECL([], [exclude_expsyms], [1],
6350
[Symbols that should not be listed in the preloaded symbols])
6351
_LT_TAGDECL([], [include_expsyms], [1],
6352
[Symbols that must always be exported])
6353
_LT_TAGDECL([], [prelink_cmds], [2],
6354
[Commands necessary for linking programs (against libraries) with templates])
6355
_LT_TAGDECL([], [postlink_cmds], [2],
6356
[Commands necessary for finishing linking programs])
6357
_LT_TAGDECL([], [file_list_spec], [1],
6358
[Specify filename containing input files])
6359
dnl FIXME: Not yet implemented
6360
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6361
dnl [Compiler flag to generate thread safe objects])
6362
])# _LT_LINKER_SHLIBS
6365
# _LT_LANG_C_CONFIG([TAG])
6366
# ------------------------
6367
# Ensure that the configuration variables for a C compiler are suitably
6368
# defined. These variables are subsequently used by _LT_CONFIG to write
6369
# the compiler configuration to `libtool'.
6370
m4_defun([_LT_LANG_C_CONFIG],
6371
[m4_require([_LT_DECL_EGREP])dnl
6375
# Source file extension for C test sources.
6378
# Object file extension for compiled C test sources.
6380
_LT_TAGVAR(objext, $1)=$objext
6382
# Code to be used in simple compile tests
6383
lt_simple_compile_test_code="int some_variable = 0;"
6385
# Code to be used in simple link tests
6386
lt_simple_link_test_code='int main(){return(0);}'
6389
# Save the default compiler, since it gets overwritten when the other
6390
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6391
compiler_DEFAULT=$CC
6393
# save warnings/boilerplate of simple test code
6394
_LT_COMPILER_BOILERPLATE
6395
_LT_LINKER_BOILERPLATE
6397
if test -n "$compiler"; then
6398
_LT_COMPILER_NO_RTTI($1)
6399
_LT_COMPILER_PIC($1)
6400
_LT_COMPILER_C_O($1)
6401
_LT_COMPILER_FILE_LOCKS($1)
6402
_LT_LINKER_SHLIBS($1)
6403
_LT_SYS_DYNAMIC_LINKER($1)
6404
_LT_LINKER_HARDCODE_LIBPATH($1)
6408
# Report which library types will actually be built
6409
AC_MSG_CHECKING([if libtool supports shared libraries])
6410
AC_MSG_RESULT([$can_build_shared])
6412
AC_MSG_CHECKING([whether to build shared libraries])
6413
test "$can_build_shared" = "no" && enable_shared=no
6415
# On AIX, shared libraries and static libraries use the same namespace, and
6416
# are all built from PIC.
6419
test "$enable_shared" = yes && enable_static=no
6420
if test -n "$RANLIB"; then
6421
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6422
postinstall_cmds='$RANLIB $lib'
6427
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6428
test "$enable_shared" = yes && enable_static=no
6432
AC_MSG_RESULT([$enable_shared])
6434
AC_MSG_CHECKING([whether to build static libraries])
6435
# Make sure either enable_shared or enable_static is yes.
6436
test "$enable_shared" = yes || enable_static=yes
6437
AC_MSG_RESULT([$enable_static])
6443
])# _LT_LANG_C_CONFIG
6446
# _LT_LANG_CXX_CONFIG([TAG])
6447
# --------------------------
6448
# Ensure that the configuration variables for a C++ compiler are suitably
6449
# defined. These variables are subsequently used by _LT_CONFIG to write
6450
# the compiler configuration to `libtool'.
6451
m4_defun([_LT_LANG_CXX_CONFIG],
6452
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6453
m4_require([_LT_DECL_EGREP])dnl
6454
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6455
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6456
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6457
(test "X$CXX" != "Xg++"))) ; then
6460
_lt_caught_CXX_error=yes
6464
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6465
_LT_TAGVAR(allow_undefined_flag, $1)=
6466
_LT_TAGVAR(always_export_symbols, $1)=no
6467
_LT_TAGVAR(archive_expsym_cmds, $1)=
6468
_LT_TAGVAR(compiler_needs_object, $1)=no
6469
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6470
_LT_TAGVAR(hardcode_direct, $1)=no
6471
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6472
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6473
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6474
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6475
_LT_TAGVAR(hardcode_minus_L, $1)=no
6476
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6477
_LT_TAGVAR(hardcode_automatic, $1)=no
6478
_LT_TAGVAR(inherit_rpath, $1)=no
6479
_LT_TAGVAR(module_cmds, $1)=
6480
_LT_TAGVAR(module_expsym_cmds, $1)=
6481
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6482
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6483
_LT_TAGVAR(reload_flag, $1)=$reload_flag
6484
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6485
_LT_TAGVAR(no_undefined_flag, $1)=
6486
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6487
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6489
# Source file extension for C++ test sources.
6492
# Object file extension for compiled C++ test sources.
6494
_LT_TAGVAR(objext, $1)=$objext
6496
# No sense in running all these tests if we already determined that
6497
# the CXX compiler isn't working. Some variables (like enable_shared)
6498
# are currently assumed to apply to all compilers on this platform,
6499
# and will be corrupted by setting them based on a non-working compiler.
6500
if test "$_lt_caught_CXX_error" != yes; then
6501
# Code to be used in simple compile tests
6502
lt_simple_compile_test_code="int some_variable = 0;"
6504
# Code to be used in simple link tests
6505
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6507
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6510
# save warnings/boilerplate of simple test code
6511
_LT_COMPILER_BOILERPLATE
6512
_LT_LINKER_BOILERPLATE
6514
# Allow CC to be a program name with arguments.
6516
lt_save_CFLAGS=$CFLAGS
6520
lt_save_with_gnu_ld=$with_gnu_ld
6521
lt_save_path_LD=$lt_cv_path_LD
6522
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6523
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6525
$as_unset lt_cv_prog_gnu_ld
6527
if test -n "${lt_cv_path_LDCXX+set}"; then
6528
lt_cv_path_LD=$lt_cv_path_LDCXX
6530
$as_unset lt_cv_path_LD
6532
test -z "${LDCXX+set}" || LD=$LDCXX
6536
_LT_TAGVAR(compiler, $1)=$CC
6537
_LT_CC_BASENAME([$compiler])
6539
if test -n "$compiler"; then
6540
# We don't want -fno-exception when compiling C++ code, so set the
6541
# no_builtin_flag separately
6542
if test "$GXX" = yes; then
6543
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6545
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6548
if test "$GXX" = yes; then
6549
# Set up default GNU C++ configuration
6553
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6554
# archiving commands below assume that GNU ld is being used.
6555
if test "$with_gnu_ld" = yes; then
6556
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6557
_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'
6559
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6560
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6562
# If archive_cmds runs LD, not CC, wlarc should be empty
6563
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6564
# investigate it a little bit more. (MM)
6567
# ancient GNU ld didn't support --whole-archive et. al.
6568
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6569
$GREP 'no-whole-archive' > /dev/null; then
6570
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6572
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6578
# A generic and very simple default shared library creation
6579
# command for GNU C++ for the case where it uses the native
6580
# linker, instead of GNU ld. If possible, this setting should
6581
# overridden to take advantage of the native linker features on
6582
# the platform it is being used on.
6583
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6586
# Commands to make compiler produce verbose output that lists
6587
# what "hidden" libraries, object files and flags are used when
6588
# linking a shared library.
6589
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6597
# PORTME: fill in a description of your system's C++ link characteristics
6598
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6599
_LT_TAGVAR(ld_shlibs, $1)=yes
6602
# FIXME: insert proper C++ library support
6603
_LT_TAGVAR(ld_shlibs, $1)=no
6606
if test "$host_cpu" = ia64; then
6607
# On IA64, the linker does run time linking by default, so we don't
6608
# have to do anything special.
6609
aix_use_runtimelinking=no
6610
exp_sym_flag='-Bexport'
6613
aix_use_runtimelinking=no
6615
# Test if we are trying to use run time linking or normal
6616
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6617
# need to do runtime linking.
6618
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6619
for ld_flag in $LDFLAGS; do
6622
aix_use_runtimelinking=yes
6630
exp_sym_flag='-bexport'
6631
no_entry_flag='-bnoentry'
6634
# When large executables or shared objects are built, AIX ld can
6635
# have problems creating the table of contents. If linking a library
6636
# or program results in "error TOC overflow" add -mminimal-toc to
6637
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6638
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6640
_LT_TAGVAR(archive_cmds, $1)=''
6641
_LT_TAGVAR(hardcode_direct, $1)=yes
6642
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6643
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6644
_LT_TAGVAR(link_all_deplibs, $1)=yes
6645
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6647
if test "$GXX" = yes; then
6648
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6649
# We only want to do this on AIX 4.2 and lower, the check
6650
# below for broken collect2 doesn't work under 4.3+
6651
collect2name=`${CC} -print-prog-name=collect2`
6652
if test -f "$collect2name" &&
6653
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6655
# We have reworked collect2
6658
# We have old collect2
6659
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6660
# It fails to find uninstalled libraries when the uninstalled
6661
# path is not listed in the libpath. Setting hardcode_minus_L
6662
# to unsupported forces relinking
6663
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6664
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6665
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6668
shared_flag='-shared'
6669
if test "$aix_use_runtimelinking" = yes; then
6670
shared_flag="$shared_flag "'${wl}-G'
6674
if test "$host_cpu" = ia64; then
6675
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6676
# chokes on -Wl,-G. The following line is correct:
6679
if test "$aix_use_runtimelinking" = yes; then
6680
shared_flag='${wl}-G'
6682
shared_flag='${wl}-bM:SRE'
6687
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6688
# It seems that -bexpall does not export symbols beginning with
6689
# underscore (_), so it is better to generate a list of symbols to
6691
_LT_TAGVAR(always_export_symbols, $1)=yes
6692
if test "$aix_use_runtimelinking" = yes; then
6693
# Warning - without using the other runtime loading flags (-brtl),
6694
# -berok will link without error, but may produce a broken library.
6695
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6696
# Determine the default libpath from the value encoded in an empty
6698
_LT_SYS_MODULE_PATH_AIX([$1])
6699
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6701
_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"
6703
if test "$host_cpu" = ia64; then
6704
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6705
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6706
_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"
6708
# Determine the default libpath from the value encoded in an
6710
_LT_SYS_MODULE_PATH_AIX([$1])
6711
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6712
# Warning - without using the other run time loading flags,
6713
# -berok will link without error, but may produce a broken library.
6714
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6715
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6716
if test "$with_gnu_ld" = yes; then
6717
# We only use this code for GNU lds that support --whole-archive.
6718
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6720
# Exported symbols can be pulled into shared objects from archives
6721
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6723
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6724
# This is similar to how AIX traditionally builds its shared
6726
_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'
6732
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6733
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6734
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6735
# support --undefined. This deserves some investigation. FIXME
6736
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6738
_LT_TAGVAR(ld_shlibs, $1)=no
6743
case $cc_basename in
6745
# FIXME: insert proper C++ library support
6746
_LT_TAGVAR(ld_shlibs, $1)=no
6751
cygwin* | mingw* | pw32* | cegcc*)
6752
case $GXX,$cc_basename in
6755
# hardcode_libdir_flag_spec is actually meaningless, as there is
6756
# no search path for DLLs.
6757
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6758
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6759
_LT_TAGVAR(always_export_symbols, $1)=yes
6760
_LT_TAGVAR(file_list_spec, $1)='@'
6761
# Tell ltmain to make .lib files, not .a files.
6763
# Tell ltmain to make .dll files, not .so files.
6765
# FIXME: Setting linknames here is a bad hack.
6766
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6767
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6768
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6770
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6772
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6774
# The linker will not automatically build a static lib if we build a DLL.
6775
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6776
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6778
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6779
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6780
lt_tool_outputfile="@TOOL_OUTPUT@"~
6781
case $lt_outputfile in
6784
lt_outputfile="$lt_outputfile.exe"
6785
lt_tool_outputfile="$lt_tool_outputfile.exe"
6788
func_to_tool_file "$lt_outputfile"~
6789
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6790
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6791
$RM "$lt_outputfile.manifest";
6796
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6797
# as there is no search path for DLLs.
6798
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6799
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6800
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6801
_LT_TAGVAR(always_export_symbols, $1)=no
6802
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6804
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6805
_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'
6806
# If the export-symbols file already is a .def file (1st line
6807
# is EXPORTS), use it as is; otherwise, prepend...
6808
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6809
cp $export_symbols $output_objdir/$soname.def;
6811
echo EXPORTS > $output_objdir/$soname.def;
6812
cat $export_symbols >> $output_objdir/$soname.def;
6814
$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'
6816
_LT_TAGVAR(ld_shlibs, $1)=no
6821
darwin* | rhapsody*)
6822
_LT_DARWIN_LINKER_FEATURES($1)
6826
case $cc_basename in
6828
# FIXME: insert proper C++ library support
6829
_LT_TAGVAR(ld_shlibs, $1)=no
6832
# Green Hills C++ Compiler
6833
# FIXME: insert proper C++ library support
6834
_LT_TAGVAR(ld_shlibs, $1)=no
6837
# FIXME: insert proper C++ library support
6838
_LT_TAGVAR(ld_shlibs, $1)=no
6844
# C++ shared libraries reported to be fairly broken before
6846
_LT_TAGVAR(ld_shlibs, $1)=no
6850
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6853
freebsd* | dragonfly*)
6854
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6856
_LT_TAGVAR(ld_shlibs, $1)=yes
6863
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6864
_LT_TAGVAR(link_all_deplibs, $1)=yes
6868
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6869
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6870
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6871
_LT_TAGVAR(hardcode_direct, $1)=yes
6872
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6873
# but as the default
6874
# location of the library.
6876
case $cc_basename in
6878
# FIXME: insert proper C++ library support
6879
_LT_TAGVAR(ld_shlibs, $1)=no
6882
_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'
6883
# Commands to make compiler produce verbose output that lists
6884
# what "hidden" libraries, object files and flags are used when
6885
# linking a shared library.
6887
# There doesn't appear to be a way to prevent this compiler from
6888
# explicitly linking system object files so we need to strip them
6889
# from the output so that they don't get included in the library
6891
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"'
6894
if test "$GXX" = yes; then
6895
_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'
6897
# FIXME: insert proper C++ library support
6898
_LT_TAGVAR(ld_shlibs, $1)=no
6905
if test $with_gnu_ld = no; then
6906
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6907
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6913
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6919
_LT_TAGVAR(hardcode_direct, $1)=no
6920
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6923
_LT_TAGVAR(hardcode_direct, $1)=yes
6924
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6925
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6926
# but as the default
6927
# location of the library.
6931
case $cc_basename in
6933
# FIXME: insert proper C++ library support
6934
_LT_TAGVAR(ld_shlibs, $1)=no
6939
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6942
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6945
_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'
6948
# Commands to make compiler produce verbose output that lists
6949
# what "hidden" libraries, object files and flags are used when
6950
# linking a shared library.
6952
# There doesn't appear to be a way to prevent this compiler from
6953
# explicitly linking system object files so we need to strip them
6954
# from the output so that they don't get included in the library
6956
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"'
6959
if test "$GXX" = yes; then
6960
if test $with_gnu_ld = no; then
6963
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6966
_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'
6969
_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'
6974
# FIXME: insert proper C++ library support
6975
_LT_TAGVAR(ld_shlibs, $1)=no
6982
_LT_TAGVAR(hardcode_direct, $1)=no
6983
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6984
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6985
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6986
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6987
# Instead, shared libraries are loaded at an image base (0x10000000 by
6988
# default) and relocated if they conflict, which is a slow very memory
6989
# consuming and fragmenting process. To avoid this, we pick a random,
6990
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6991
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6992
_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'
6993
_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'
6996
case $cc_basename in
6999
_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'
7001
# Archives containing C++ object files must be created using
7002
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
7003
# necessary to make sure instantiated templates are included
7005
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7008
if test "$GXX" = yes; then
7009
if test "$with_gnu_ld" = no; then
7010
_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'
7012
_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'
7015
_LT_TAGVAR(link_all_deplibs, $1)=yes
7018
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7019
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7020
_LT_TAGVAR(inherit_rpath, $1)=yes
7023
linux* | k*bsd*-gnu | kopensolaris*-gnu)
7024
case $cc_basename in
7026
# Kuck and Associates, Inc. (KAI) C++ Compiler
7028
# KCC will only create a shared library if the output file
7029
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7030
# to its proper name (with version) after linking.
7031
_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'
7032
_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'
7033
# Commands to make compiler produce verbose output that lists
7034
# what "hidden" libraries, object files and flags are used when
7035
# linking a shared library.
7037
# There doesn't appear to be a way to prevent this compiler from
7038
# explicitly linking system object files so we need to strip them
7039
# from the output so that they don't get included in the library
7041
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"'
7043
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7044
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7046
# Archives containing C++ object files must be created using
7047
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
7048
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7053
# version 8.0 and above of icpc choke on multiply defined symbols
7054
# if we add $predep_objects and $postdep_objects, however 7.1 and
7055
# earlier do not add the objects themselves.
7056
case `$CC -V 2>&1` in
7058
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7059
_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'
7061
*) # Version 8.0 or newer
7064
ia64*) tmp_idyn=' -i_dynamic';;
7066
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7067
_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'
7070
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7071
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7072
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7073
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7076
# Portland Group C++ compiler
7078
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7079
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7081
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7082
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7083
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7085
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7086
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7088
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7090
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7091
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7092
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7094
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7095
$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'
7097
*) # Version 6 and above use weak symbols
7098
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7099
_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'
7103
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7104
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7105
_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'
7109
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7110
_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'
7112
runpath_var=LD_RUN_PATH
7113
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7114
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7116
# Commands to make compiler produce verbose output that lists
7117
# what "hidden" libraries, object files and flags are used when
7118
# linking a shared library.
7120
# There doesn't appear to be a way to prevent this compiler from
7121
# explicitly linking system object files so we need to strip them
7122
# from the output so that they don't get included in the library
7124
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'
7126
xl* | mpixl* | bgxl*)
7127
# IBM XL 8.0 on PPC, with GNU ld
7128
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7129
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7130
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7131
if test "x$supports_anon_versioning" = xyes; then
7132
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7133
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7134
echo "local: *; };" >> $output_objdir/$libname.ver~
7135
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7139
case `$CC -V 2>&1 | sed 5q` in
7142
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7143
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7144
_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'
7145
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7146
_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'
7147
_LT_TAGVAR(compiler_needs_object, $1)=yes
7149
# Not sure whether something based on
7150
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7152
output_verbose_link_cmd='func_echo_all'
7154
# Archives containing C++ object files must be created using
7155
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7156
# necessary to make sure instantiated templates are included
7158
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7166
# FIXME: insert proper C++ library support
7167
_LT_TAGVAR(ld_shlibs, $1)=no
7171
# FIXME: insert proper C++ library support
7172
_LT_TAGVAR(ld_shlibs, $1)=no
7176
case $cc_basename in
7178
# FIXME: insert proper C++ library support
7179
_LT_TAGVAR(ld_shlibs, $1)=no
7182
# FIXME: insert proper C++ library support
7183
_LT_TAGVAR(ld_shlibs, $1)=no
7189
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7190
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7192
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7193
_LT_TAGVAR(hardcode_direct, $1)=yes
7194
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7196
# Workaround some broken pre-1.5 toolchains
7197
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7201
_LT_TAGVAR(ld_shlibs, $1)=yes
7205
# C++ shared libraries are fairly broken
7206
_LT_TAGVAR(ld_shlibs, $1)=no
7210
if test -f /usr/libexec/ld.so; then
7211
_LT_TAGVAR(hardcode_direct, $1)=yes
7212
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7213
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7214
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7215
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7216
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7217
_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'
7218
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7219
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7221
output_verbose_link_cmd=func_echo_all
7223
_LT_TAGVAR(ld_shlibs, $1)=no
7227
osf3* | osf4* | osf5*)
7228
case $cc_basename in
7230
# Kuck and Associates, Inc. (KAI) C++ Compiler
7232
# KCC will only create a shared library if the output file
7233
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7234
# to its proper name (with version) after linking.
7235
_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'
7237
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7238
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7240
# Archives containing C++ object files must be created using
7241
# the KAI C++ compiler.
7243
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7244
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7248
# Rational C++ 2.4.1
7249
# FIXME: insert proper C++ library support
7250
_LT_TAGVAR(ld_shlibs, $1)=no
7255
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7256
_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'
7257
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7260
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7261
_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'
7262
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7263
echo "-hidden">> $lib.exp~
7264
$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~
7266
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7270
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7272
# Commands to make compiler produce verbose output that lists
7273
# what "hidden" libraries, object files and flags are used when
7274
# linking a shared library.
7276
# There doesn't appear to be a way to prevent this compiler from
7277
# explicitly linking system object files so we need to strip them
7278
# from the output so that they don't get included in the library
7280
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"'
7283
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7284
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7287
_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'
7290
_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'
7294
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7295
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7297
# Commands to make compiler produce verbose output that lists
7298
# what "hidden" libraries, object files and flags are used when
7299
# linking a shared library.
7300
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7303
# FIXME: insert proper C++ library support
7304
_LT_TAGVAR(ld_shlibs, $1)=no
7311
# FIXME: insert proper C++ library support
7312
_LT_TAGVAR(ld_shlibs, $1)=no
7316
case $cc_basename in
7319
# FIXME: insert proper C++ library support
7320
_LT_TAGVAR(ld_shlibs, $1)=no
7324
# FIXME: insert proper C++ library support
7325
_LT_TAGVAR(ld_shlibs, $1)=no
7328
# FIXME: insert proper C++ library support
7329
_LT_TAGVAR(ld_shlibs, $1)=no
7335
case $cc_basename in
7337
# Sun C++ 4.2, 5.x and Centerline C++
7338
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7339
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7340
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7341
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7342
$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'
7344
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7345
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7347
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7349
# The compiler driver will combine and reorder linker options,
7350
# but understands `-z linker_flag'.
7351
# Supported since Solaris 2.6 (maybe 2.5.1?)
7352
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7355
_LT_TAGVAR(link_all_deplibs, $1)=yes
7357
output_verbose_link_cmd='func_echo_all'
7359
# Archives containing C++ object files must be created using
7360
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7361
# necessary to make sure instantiated templates are included
7363
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7366
# Green Hills C++ Compiler
7367
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7369
# The C++ compiler must be used to create the archive.
7370
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7373
# GNU C++ compiler with Solaris linker
7374
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7375
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7376
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7377
_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'
7378
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7379
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7381
# Commands to make compiler produce verbose output that lists
7382
# what "hidden" libraries, object files and flags are used when
7383
# linking a shared library.
7384
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7386
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7388
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7389
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7390
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7392
# Commands to make compiler produce verbose output that lists
7393
# what "hidden" libraries, object files and flags are used when
7394
# linking a shared library.
7395
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7398
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7400
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7402
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7410
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7411
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7412
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7413
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7414
runpath_var='LD_RUN_PATH'
7416
case $cc_basename in
7418
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7419
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7422
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7423
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7428
sysv5* | sco3.2v5* | sco5v6*)
7429
# Note: We can NOT use -z defs as we might desire, because we do not
7430
# link with -lc, and that would cause any symbols used from libc to
7431
# always be unresolved, which means just about no library would
7432
# ever link correctly. If we're not using GNU ld we use -z text
7433
# though, which does catch some bad symbols but isn't as heavy-handed
7435
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7436
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7437
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7438
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7439
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7440
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7441
_LT_TAGVAR(link_all_deplibs, $1)=yes
7442
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7443
runpath_var='LD_RUN_PATH'
7445
case $cc_basename in
7447
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7448
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7449
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7450
'"$_LT_TAGVAR(old_archive_cmds, $1)"
7451
_LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7452
'"$_LT_TAGVAR(reload_cmds, $1)"
7455
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7456
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7462
case $cc_basename in
7464
# NonStop-UX NCC 3.20
7465
# FIXME: insert proper C++ library support
7466
_LT_TAGVAR(ld_shlibs, $1)=no
7469
# FIXME: insert proper C++ library support
7470
_LT_TAGVAR(ld_shlibs, $1)=no
7476
# FIXME: insert proper C++ library support
7477
_LT_TAGVAR(ld_shlibs, $1)=no
7481
# FIXME: insert proper C++ library support
7482
_LT_TAGVAR(ld_shlibs, $1)=no
7486
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7487
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7489
_LT_TAGVAR(GCC, $1)="$GXX"
7490
_LT_TAGVAR(LD, $1)="$LD"
7493
## There is no encapsulation within the following macros, do not change
7494
## the running order or otherwise move them around unless you know exactly
7495
## what you are doing...
7496
_LT_SYS_HIDDEN_LIBDEPS($1)
7497
_LT_COMPILER_PIC($1)
7498
_LT_COMPILER_C_O($1)
7499
_LT_COMPILER_FILE_LOCKS($1)
7500
_LT_LINKER_SHLIBS($1)
7501
_LT_SYS_DYNAMIC_LINKER($1)
7502
_LT_LINKER_HARDCODE_LIBPATH($1)
7505
fi # test -n "$compiler"
7508
CFLAGS=$lt_save_CFLAGS
7512
with_gnu_ld=$lt_save_with_gnu_ld
7513
lt_cv_path_LDCXX=$lt_cv_path_LD
7514
lt_cv_path_LD=$lt_save_path_LD
7515
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7516
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7517
fi # test "$_lt_caught_CXX_error" != yes
7520
])# _LT_LANG_CXX_CONFIG
7523
# _LT_FUNC_STRIPNAME_CNF
7524
# ----------------------
7525
# func_stripname_cnf prefix suffix name
7526
# strip PREFIX and SUFFIX off of NAME.
7527
# PREFIX and SUFFIX must not contain globbing or regex special
7528
# characters, hashes, percent signs, but SUFFIX may contain a leading
7529
# dot (in which case that matches only a dot).
7531
# This function is identical to the (non-XSI) version of func_stripname,
7532
# except this one can be used by m4 code that may be executed by configure,
7533
# rather than the libtool script.
7534
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7535
AC_REQUIRE([_LT_DECL_SED])
7536
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7537
func_stripname_cnf ()
7540
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7541
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7543
} # func_stripname_cnf
7544
])# _LT_FUNC_STRIPNAME_CNF
7546
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7547
# ---------------------------------
7548
# Figure out "hidden" library dependencies from verbose
7549
# compiler output when linking a shared library.
7550
# Parse the compiler output and extract the necessary
7551
# objects, libraries and library flags.
7552
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7553
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7554
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7555
# Dependencies to place before and after the object being linked:
7556
_LT_TAGVAR(predep_objects, $1)=
7557
_LT_TAGVAR(postdep_objects, $1)=
7558
_LT_TAGVAR(predeps, $1)=
7559
_LT_TAGVAR(postdeps, $1)=
7560
_LT_TAGVAR(compiler_lib_search_path, $1)=
7562
dnl we can't use the lt_simple_compile_test_code here,
7563
dnl because it contains code intended for an executable,
7564
dnl not a library. It's possible we should let each
7565
dnl tag define a new lt_????_link_test_code variable,
7566
dnl but it's only used here...
7567
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7569
void foo (void) { a = 0; }
7571
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7575
Foo (void) { a = 0; }
7580
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7588
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7596
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7599
public void bar (void) {
7606
_lt_libdeps_save_CFLAGS=$CFLAGS
7607
case "$CC $CFLAGS " in #(
7608
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7609
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7612
dnl Parse the compiler output and extract the necessary
7613
dnl objects, libraries and library flags.
7614
if AC_TRY_EVAL(ac_compile); then
7615
# Parse the compiler output and extract the necessary
7616
# objects, libraries and library flags.
7618
# Sentinel used to keep track of whether or not we are before
7619
# the conftest object file.
7620
pre_test_object_deps_done=no
7622
for p in `eval "$output_verbose_link_cmd"`; do
7626
# Some compilers place space between "-{L,R}" and the path.
7628
if test $p = "-L" ||
7629
test $p = "-R"; then
7634
# Expand the sysroot to ease extracting the directories later.
7635
if test -z "$prev"; then
7637
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7638
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7639
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7643
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7645
if test "$pre_test_object_deps_done" = no; then
7648
# Internal compiler library paths should come after those
7649
# provided the user. The postdeps already come after the
7650
# user supplied libs so there is no need to process them.
7651
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7652
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7654
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7657
# The "-l" case would never come before the object being
7658
# linked, so don't bother handling this case.
7661
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7662
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7664
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7670
*.lto.$objext) ;; # Ignore GCC LTO objects
7672
# This assumes that the test object file only shows up
7673
# once in the compiler output.
7674
if test "$p" = "conftest.$objext"; then
7675
pre_test_object_deps_done=yes
7679
if test "$pre_test_object_deps_done" = no; then
7680
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7681
_LT_TAGVAR(predep_objects, $1)="$p"
7683
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7686
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7687
_LT_TAGVAR(postdep_objects, $1)="$p"
7689
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7694
*) ;; # Ignore the rest.
7702
echo "libtool.m4: error: problem compiling $1 test program"
7705
$RM -f confest.$objext
7706
CFLAGS=$_lt_libdeps_save_CFLAGS
7708
# PORTME: override above test on systems where it is broken
7712
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7713
# hack all around it, let's just trust "g++" to DTRT.
7714
_LT_TAGVAR(predep_objects,$1)=
7715
_LT_TAGVAR(postdep_objects,$1)=
7716
_LT_TAGVAR(postdeps,$1)=
7720
case `$CC -V 2>&1 | sed 5q` in
7724
# The more standards-conforming stlport4 library is
7725
# incompatible with the Cstd library. Avoid specifying
7726
# it if it's in CXXFLAGS. Ignore libCrun as
7727
# -library=stlport4 depends on it.
7728
case " $CXX $CXXFLAGS " in
7729
*" -library=stlport4 "*)
7730
solaris_use_stlport4=yes
7734
if test "$solaris_use_stlport4" != yes; then
7735
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7742
case $cc_basename in
7744
# The more standards-conforming stlport4 library is
7745
# incompatible with the Cstd library. Avoid specifying
7746
# it if it's in CXXFLAGS. Ignore libCrun as
7747
# -library=stlport4 depends on it.
7748
case " $CXX $CXXFLAGS " in
7749
*" -library=stlport4 "*)
7750
solaris_use_stlport4=yes
7754
# Adding this requires a known-good setup of shared libraries for
7755
# Sun compiler versions before 5.6, else PIC objects from an old
7756
# archive will be linked into the output, leading to subtle bugs.
7757
if test "$solaris_use_stlport4" != yes; then
7758
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7766
case " $_LT_TAGVAR(postdeps, $1) " in
7767
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7769
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7770
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7771
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7773
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7774
[The directories searched by this compiler when creating a shared library])
7775
_LT_TAGDECL([], [predep_objects], [1],
7776
[Dependencies to place before and after the objects being linked to
7777
create a shared library])
7778
_LT_TAGDECL([], [postdep_objects], [1])
7779
_LT_TAGDECL([], [predeps], [1])
7780
_LT_TAGDECL([], [postdeps], [1])
7781
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7782
[The library search path used internally by the compiler when linking
7784
])# _LT_SYS_HIDDEN_LIBDEPS
7787
# _LT_LANG_F77_CONFIG([TAG])
7788
# --------------------------
7789
# Ensure that the configuration variables for a Fortran 77 compiler are
7790
# suitably defined. These variables are subsequently used by _LT_CONFIG
7791
# to write the compiler configuration to `libtool'.
7792
m4_defun([_LT_LANG_F77_CONFIG],
7793
[AC_LANG_PUSH(Fortran 77)
7794
if test -z "$F77" || test "X$F77" = "Xno"; then
7798
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7799
_LT_TAGVAR(allow_undefined_flag, $1)=
7800
_LT_TAGVAR(always_export_symbols, $1)=no
7801
_LT_TAGVAR(archive_expsym_cmds, $1)=
7802
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7803
_LT_TAGVAR(hardcode_direct, $1)=no
7804
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7805
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7806
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7807
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7808
_LT_TAGVAR(hardcode_minus_L, $1)=no
7809
_LT_TAGVAR(hardcode_automatic, $1)=no
7810
_LT_TAGVAR(inherit_rpath, $1)=no
7811
_LT_TAGVAR(module_cmds, $1)=
7812
_LT_TAGVAR(module_expsym_cmds, $1)=
7813
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7814
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7815
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7816
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7817
_LT_TAGVAR(no_undefined_flag, $1)=
7818
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7819
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7821
# Source file extension for f77 test sources.
7824
# Object file extension for compiled f77 test sources.
7826
_LT_TAGVAR(objext, $1)=$objext
7828
# No sense in running all these tests if we already determined that
7829
# the F77 compiler isn't working. Some variables (like enable_shared)
7830
# are currently assumed to apply to all compilers on this platform,
7831
# and will be corrupted by setting them based on a non-working compiler.
7832
if test "$_lt_disable_F77" != yes; then
7833
# Code to be used in simple compile tests
7834
lt_simple_compile_test_code="\
7840
# Code to be used in simple link tests
7841
lt_simple_link_test_code="\
7846
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7849
# save warnings/boilerplate of simple test code
7850
_LT_COMPILER_BOILERPLATE
7851
_LT_LINKER_BOILERPLATE
7853
# Allow CC to be a program name with arguments.
7856
lt_save_CFLAGS=$CFLAGS
7860
_LT_TAGVAR(compiler, $1)=$CC
7861
_LT_CC_BASENAME([$compiler])
7863
if test -n "$compiler"; then
7864
AC_MSG_CHECKING([if libtool supports shared libraries])
7865
AC_MSG_RESULT([$can_build_shared])
7867
AC_MSG_CHECKING([whether to build shared libraries])
7868
test "$can_build_shared" = "no" && enable_shared=no
7870
# On AIX, shared libraries and static libraries use the same namespace, and
7871
# are all built from PIC.
7874
test "$enable_shared" = yes && enable_static=no
7875
if test -n "$RANLIB"; then
7876
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7877
postinstall_cmds='$RANLIB $lib'
7881
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7882
test "$enable_shared" = yes && enable_static=no
7886
AC_MSG_RESULT([$enable_shared])
7888
AC_MSG_CHECKING([whether to build static libraries])
7889
# Make sure either enable_shared or enable_static is yes.
7890
test "$enable_shared" = yes || enable_static=yes
7891
AC_MSG_RESULT([$enable_static])
7893
_LT_TAGVAR(GCC, $1)="$G77"
7894
_LT_TAGVAR(LD, $1)="$LD"
7897
## There is no encapsulation within the following macros, do not change
7898
## the running order or otherwise move them around unless you know exactly
7899
## what you are doing...
7900
_LT_COMPILER_PIC($1)
7901
_LT_COMPILER_C_O($1)
7902
_LT_COMPILER_FILE_LOCKS($1)
7903
_LT_LINKER_SHLIBS($1)
7904
_LT_SYS_DYNAMIC_LINKER($1)
7905
_LT_LINKER_HARDCODE_LIBPATH($1)
7908
fi # test -n "$compiler"
7912
CFLAGS="$lt_save_CFLAGS"
7913
fi # test "$_lt_disable_F77" != yes
7916
])# _LT_LANG_F77_CONFIG
7919
# _LT_LANG_FC_CONFIG([TAG])
7920
# -------------------------
7921
# Ensure that the configuration variables for a Fortran compiler are
7922
# suitably defined. These variables are subsequently used by _LT_CONFIG
7923
# to write the compiler configuration to `libtool'.
7924
m4_defun([_LT_LANG_FC_CONFIG],
7925
[AC_LANG_PUSH(Fortran)
7927
if test -z "$FC" || test "X$FC" = "Xno"; then
7931
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7932
_LT_TAGVAR(allow_undefined_flag, $1)=
7933
_LT_TAGVAR(always_export_symbols, $1)=no
7934
_LT_TAGVAR(archive_expsym_cmds, $1)=
7935
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7936
_LT_TAGVAR(hardcode_direct, $1)=no
7937
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7938
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7939
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7940
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7941
_LT_TAGVAR(hardcode_minus_L, $1)=no
7942
_LT_TAGVAR(hardcode_automatic, $1)=no
7943
_LT_TAGVAR(inherit_rpath, $1)=no
7944
_LT_TAGVAR(module_cmds, $1)=
7945
_LT_TAGVAR(module_expsym_cmds, $1)=
7946
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7947
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7948
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7949
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7950
_LT_TAGVAR(no_undefined_flag, $1)=
7951
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7952
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7954
# Source file extension for fc test sources.
7955
ac_ext=${ac_fc_srcext-f}
7957
# Object file extension for compiled fc test sources.
7959
_LT_TAGVAR(objext, $1)=$objext
7961
# No sense in running all these tests if we already determined that
7962
# the FC compiler isn't working. Some variables (like enable_shared)
7963
# are currently assumed to apply to all compilers on this platform,
7964
# and will be corrupted by setting them based on a non-working compiler.
7965
if test "$_lt_disable_FC" != yes; then
7966
# Code to be used in simple compile tests
7967
lt_simple_compile_test_code="\
7973
# Code to be used in simple link tests
7974
lt_simple_link_test_code="\
7979
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7982
# save warnings/boilerplate of simple test code
7983
_LT_COMPILER_BOILERPLATE
7984
_LT_LINKER_BOILERPLATE
7986
# Allow CC to be a program name with arguments.
7989
lt_save_CFLAGS=$CFLAGS
7993
GCC=$ac_cv_fc_compiler_gnu
7995
_LT_TAGVAR(compiler, $1)=$CC
7996
_LT_CC_BASENAME([$compiler])
7998
if test -n "$compiler"; then
7999
AC_MSG_CHECKING([if libtool supports shared libraries])
8000
AC_MSG_RESULT([$can_build_shared])
8002
AC_MSG_CHECKING([whether to build shared libraries])
8003
test "$can_build_shared" = "no" && enable_shared=no
8005
# On AIX, shared libraries and static libraries use the same namespace, and
8006
# are all built from PIC.
8009
test "$enable_shared" = yes && enable_static=no
8010
if test -n "$RANLIB"; then
8011
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8012
postinstall_cmds='$RANLIB $lib'
8016
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8017
test "$enable_shared" = yes && enable_static=no
8021
AC_MSG_RESULT([$enable_shared])
8023
AC_MSG_CHECKING([whether to build static libraries])
8024
# Make sure either enable_shared or enable_static is yes.
8025
test "$enable_shared" = yes || enable_static=yes
8026
AC_MSG_RESULT([$enable_static])
8028
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
8029
_LT_TAGVAR(LD, $1)="$LD"
8032
## There is no encapsulation within the following macros, do not change
8033
## the running order or otherwise move them around unless you know exactly
8034
## what you are doing...
8035
_LT_SYS_HIDDEN_LIBDEPS($1)
8036
_LT_COMPILER_PIC($1)
8037
_LT_COMPILER_C_O($1)
8038
_LT_COMPILER_FILE_LOCKS($1)
8039
_LT_LINKER_SHLIBS($1)
8040
_LT_SYS_DYNAMIC_LINKER($1)
8041
_LT_LINKER_HARDCODE_LIBPATH($1)
8044
fi # test -n "$compiler"
8048
CFLAGS=$lt_save_CFLAGS
8049
fi # test "$_lt_disable_FC" != yes
8052
])# _LT_LANG_FC_CONFIG
8055
# _LT_LANG_GCJ_CONFIG([TAG])
8056
# --------------------------
8057
# Ensure that the configuration variables for the GNU Java Compiler compiler
8058
# are suitably defined. These variables are subsequently used by _LT_CONFIG
8059
# to write the compiler configuration to `libtool'.
8060
m4_defun([_LT_LANG_GCJ_CONFIG],
8061
[AC_REQUIRE([LT_PROG_GCJ])dnl
8064
# Source file extension for Java test sources.
8067
# Object file extension for compiled Java test sources.
8069
_LT_TAGVAR(objext, $1)=$objext
8071
# Code to be used in simple compile tests
8072
lt_simple_compile_test_code="class foo {}"
8074
# Code to be used in simple link tests
8075
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
8077
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8080
# save warnings/boilerplate of simple test code
8081
_LT_COMPILER_BOILERPLATE
8082
_LT_LINKER_BOILERPLATE
8084
# Allow CC to be a program name with arguments.
8086
lt_save_CFLAGS=$CFLAGS
8092
_LT_TAGVAR(compiler, $1)=$CC
8093
_LT_TAGVAR(LD, $1)="$LD"
8094
_LT_CC_BASENAME([$compiler])
8096
# GCJ did not exist at the time GCC didn't implicitly link libc in.
8097
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8099
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8100
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8101
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8103
if test -n "$compiler"; then
8104
_LT_COMPILER_NO_RTTI($1)
8105
_LT_COMPILER_PIC($1)
8106
_LT_COMPILER_C_O($1)
8107
_LT_COMPILER_FILE_LOCKS($1)
8108
_LT_LINKER_SHLIBS($1)
8109
_LT_LINKER_HARDCODE_LIBPATH($1)
8118
CFLAGS=$lt_save_CFLAGS
8119
])# _LT_LANG_GCJ_CONFIG
8122
# _LT_LANG_RC_CONFIG([TAG])
8123
# -------------------------
8124
# Ensure that the configuration variables for the Windows resource compiler
8125
# are suitably defined. These variables are subsequently used by _LT_CONFIG
8126
# to write the compiler configuration to `libtool'.
8127
m4_defun([_LT_LANG_RC_CONFIG],
8128
[AC_REQUIRE([LT_PROG_RC])dnl
8131
# Source file extension for RC test sources.
8134
# Object file extension for compiled RC test sources.
8136
_LT_TAGVAR(objext, $1)=$objext
8138
# Code to be used in simple compile tests
8139
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8141
# Code to be used in simple link tests
8142
lt_simple_link_test_code="$lt_simple_compile_test_code"
8144
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8147
# save warnings/boilerplate of simple test code
8148
_LT_COMPILER_BOILERPLATE
8149
_LT_LINKER_BOILERPLATE
8151
# Allow CC to be a program name with arguments.
8153
lt_save_CFLAGS=$CFLAGS
8159
_LT_TAGVAR(compiler, $1)=$CC
8160
_LT_CC_BASENAME([$compiler])
8161
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8163
if test -n "$compiler"; then
8171
CFLAGS=$lt_save_CFLAGS
8172
])# _LT_LANG_RC_CONFIG
8177
AC_DEFUN([LT_PROG_GCJ],
8178
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8179
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8180
[AC_CHECK_TOOL(GCJ, gcj,)
8181
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8182
AC_SUBST(GCJFLAGS)])])[]dnl
8186
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8187
dnl aclocal-1.4 backwards compatibility:
8188
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8193
AC_DEFUN([LT_PROG_RC],
8194
[AC_CHECK_TOOL(RC, windres,)
8198
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8199
dnl aclocal-1.4 backwards compatibility:
8200
dnl AC_DEFUN([LT_AC_PROG_RC], [])
8205
# If we don't have a new enough Autoconf to choose the best grep
8206
# available, choose the one first in the user's PATH.
8207
m4_defun([_LT_DECL_EGREP],
8208
[AC_REQUIRE([AC_PROG_EGREP])dnl
8209
AC_REQUIRE([AC_PROG_FGREP])dnl
8210
test -z "$GREP" && GREP=grep
8211
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8212
_LT_DECL([], [EGREP], [1], [An ERE matcher])
8213
_LT_DECL([], [FGREP], [1], [A literal string matcher])
8214
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8221
# If we don't have a new enough Autoconf to choose the best objdump
8222
# available, choose the one first in the user's PATH.
8223
m4_defun([_LT_DECL_OBJDUMP],
8224
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8225
test -z "$OBJDUMP" && OBJDUMP=objdump
8226
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8232
# Ensure DLLTOOL variable is set.
8233
m4_defun([_LT_DECL_DLLTOOL],
8234
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8235
test -z "$DLLTOOL" && DLLTOOL=dlltool
8236
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8242
# Check for a fully-functional sed program, that truncates
8243
# as few characters as possible. Prefer GNU sed if found.
8244
m4_defun([_LT_DECL_SED],
8246
test -z "$SED" && SED=sed
8247
Xsed="$SED -e 1s/^X//"
8248
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8249
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8250
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
8253
m4_ifndef([AC_PROG_SED], [
8254
# NOTE: This macro has been submitted for inclusion into #
8255
# GNU Autoconf as AC_PROG_SED. When it is available in #
8256
# a released version of Autoconf we should remove this #
8257
# macro and use it instead. #
8259
m4_defun([AC_PROG_SED],
8260
[AC_MSG_CHECKING([for a sed that does not truncate output])
8261
AC_CACHE_VAL(lt_cv_path_SED,
8262
[# Loop through the user's path and test for sed and gsed.
8263
# Then use that list of sed's as ones to test for truncation.
8264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268
test -z "$as_dir" && as_dir=.
8269
for lt_ac_prog in sed gsed; do
8270
for ac_exec_ext in '' $ac_executable_extensions; do
8271
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8272
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8280
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8281
# along with /bin/sed that truncates output.
8282
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8283
test ! -f $lt_ac_sed && continue
8284
cat /dev/null > conftest.in
8286
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8287
# Check for GNU sed and select it if it is found.
8288
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8289
lt_cv_path_SED=$lt_ac_sed
8293
cat conftest.in conftest.in >conftest.tmp
8294
mv conftest.tmp conftest.in
8295
cp conftest.in conftest.nl
8297
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8298
cmp -s conftest.out conftest.nl || break
8299
# 10000 chars as input seems more than enough
8300
test $lt_ac_count -gt 10 && break
8301
lt_ac_count=`expr $lt_ac_count + 1`
8302
if test $lt_ac_count -gt $lt_ac_max; then
8303
lt_ac_max=$lt_ac_count
8304
lt_cv_path_SED=$lt_ac_sed
8311
AC_MSG_RESULT([$SED])
8316
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8317
dnl aclocal-1.4 backwards compatibility:
8318
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8321
# _LT_CHECK_SHELL_FEATURES
8322
# ------------------------
8323
# Find out whether the shell is Bourne or XSI compatible,
8324
# or has some other useful features.
8325
m4_defun([_LT_CHECK_SHELL_FEATURES],
8326
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8327
# Try some XSI features
8330
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8332
&& eval 'test $(( 1 + 1 )) -eq 2 \
8333
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8335
AC_MSG_RESULT([$xsi_shell])
8336
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8338
AC_MSG_CHECKING([whether the shell understands "+="])
8340
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8342
&& lt_shell_append=yes
8343
AC_MSG_RESULT([$lt_shell_append])
8344
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8346
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8351
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8353
# test EBCDIC or ASCII
8354
case `echo X|tr X '\101'` in
8355
A) # ASCII based system
8356
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8357
lt_SP2NL='tr \040 \012'
8358
lt_NL2SP='tr \015\012 \040\040'
8360
*) # EBCDIC based system
8361
lt_SP2NL='tr \100 \n'
8362
lt_NL2SP='tr \r\n \100\100'
8365
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8366
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8367
])# _LT_CHECK_SHELL_FEATURES
8370
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8371
# ------------------------------------------------------
8372
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8373
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8374
m4_defun([_LT_PROG_FUNCTION_REPLACE],
8376
sed -e '/^$1 ()$/,/^} # $1 /c\
8379
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8380
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8381
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8382
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8383
test 0 -eq $? || _lt_function_replace_fail=:
8387
# _LT_PROG_REPLACE_SHELLFNS
8388
# -------------------------
8389
# Replace existing portable implementations of several shell functions with
8390
# equivalent extended shell implementations where those features are available..
8391
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8392
[if test x"$xsi_shell" = xyes; then
8393
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8395
*/*) func_dirname_result="${1%/*}${2}" ;;
8396
* ) func_dirname_result="${3}" ;;
8399
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8400
func_basename_result="${1##*/}"])
8402
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8404
*/*) func_dirname_result="${1%/*}${2}" ;;
8405
* ) func_dirname_result="${3}" ;;
8407
func_basename_result="${1##*/}"])
8409
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8410
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8411
# positional parameters, so assign one to ordinary parameter first.
8412
func_stripname_result=${3}
8413
func_stripname_result=${func_stripname_result#"${1}"}
8414
func_stripname_result=${func_stripname_result%"${2}"}])
8416
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8417
func_split_long_opt_name=${1%%=*}
8418
func_split_long_opt_arg=${1#*=}])
8420
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8421
func_split_short_opt_arg=${1#??}
8422
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8424
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8426
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8427
*) func_lo2o_result=${1} ;;
8430
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8432
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8434
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8437
if test x"$lt_shell_append" = xyes; then
8438
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8440
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8441
func_quote_for_eval "${2}"
8442
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8443
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8445
# Save a `func_append' function call where possible by direct use of '+='
8446
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8447
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8448
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8449
test 0 -eq $? || _lt_function_replace_fail=:
8451
# Save a `func_append' function call even when '+=' is not available
8452
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8453
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8454
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8455
test 0 -eq $? || _lt_function_replace_fail=:
8458
if test x"$_lt_function_replace_fail" = x":"; then
8459
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8463
# _LT_PATH_CONVERSION_FUNCTIONS
8464
# -----------------------------
8465
# Determine which file name conversion functions should be used by
8466
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8467
# for certain cross-compile configurations and native mingw.
8468
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8469
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8470
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8471
AC_MSG_CHECKING([how to convert $build file names to $host format])
8472
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8476
*-*-mingw* ) # actually msys
8477
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8480
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8482
* ) # otherwise, assume *nix
8483
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8489
*-*-mingw* ) # actually msys
8490
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8493
lt_cv_to_host_file_cmd=func_convert_file_noop
8495
* ) # otherwise, assume *nix
8496
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8500
* ) # unhandled hosts (and "normal" native builds)
8501
lt_cv_to_host_file_cmd=func_convert_file_noop
8505
to_host_file_cmd=$lt_cv_to_host_file_cmd
8506
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8507
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8508
[0], [convert $build file names to $host format])dnl
8510
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8511
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8512
[#assume ordinary cross tools, or native build.
8513
lt_cv_to_tool_file_cmd=func_convert_file_noop
8517
*-*-mingw* ) # actually msys
8518
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8524
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8525
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8526
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8527
[0], [convert $build files to toolchain format])dnl
8528
])# _LT_PATH_CONVERSION_FUNCTIONS
8530
# Helper functions for option handling. -*- Autoconf -*-
8532
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8534
# Written by Gary V. Vaughan, 2004
8536
# This file is free software; the Free Software Foundation gives
8537
# unlimited permission to copy and/or distribute it, with or without
8538
# modifications, as long as this notice is preserved.
8540
# serial 7 ltoptions.m4
8542
# This is to help aclocal find these macros, as it can't see m4_define.
8543
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8546
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8547
# ------------------------------------------
8548
m4_define([_LT_MANGLE_OPTION],
8549
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8552
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8553
# ---------------------------------------
8554
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8555
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8557
m4_define([_LT_SET_OPTION],
8558
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8559
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8560
_LT_MANGLE_DEFUN([$1], [$2]),
8561
[m4_warning([Unknown $1 option `$2'])])[]dnl
8565
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8566
# ------------------------------------------------------------
8567
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8568
m4_define([_LT_IF_OPTION],
8569
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8572
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8573
# -------------------------------------------------------
8574
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8576
m4_define([_LT_UNLESS_OPTIONS],
8577
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8578
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8579
[m4_define([$0_found])])])[]dnl
8580
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8585
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8586
# ----------------------------------------
8587
# OPTION-LIST is a space-separated list of Libtool options associated
8588
# with MACRO-NAME. If any OPTION has a matching handler declared with
8589
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8590
# the unknown option and exit.
8591
m4_defun([_LT_SET_OPTIONS],
8593
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8594
[_LT_SET_OPTION([$1], _LT_Option)])
8596
m4_if([$1],[LT_INIT],[
8598
dnl Simply set some default values (i.e off) if boolean options were not
8600
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8602
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8605
dnl If no reference was made to various pairs of opposing options, then
8606
dnl we run the default mode handler for the pair. For example, if neither
8607
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8608
dnl archives by default:
8609
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8610
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8611
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8612
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8613
[_LT_ENABLE_FAST_INSTALL])
8619
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8620
# -----------------------------------------
8621
m4_define([_LT_MANGLE_DEFUN],
8622
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8625
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8626
# -----------------------------------------------
8627
m4_define([LT_OPTION_DEFINE],
8628
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8629
])# LT_OPTION_DEFINE
8634
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8637
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8638
[_LT_SET_OPTION([LT_INIT], [dlopen])
8639
AC_DIAGNOSE([obsolete],
8640
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8641
put the `dlopen' option into LT_INIT's first parameter.])
8644
dnl aclocal-1.4 backwards compatibility:
8645
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8650
# Declare package support for building win32 dll's.
8651
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8652
[enable_win32_dll=yes
8655
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8656
AC_CHECK_TOOL(AS, as, false)
8657
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8658
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8662
test -z "$AS" && AS=as
8663
_LT_DECL([], [AS], [1], [Assembler program])dnl
8665
test -z "$DLLTOOL" && DLLTOOL=dlltool
8666
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8668
test -z "$OBJDUMP" && OBJDUMP=objdump
8669
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8672
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8673
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8674
_LT_SET_OPTION([LT_INIT], [win32-dll])
8675
AC_DIAGNOSE([obsolete],
8676
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8677
put the `win32-dll' option into LT_INIT's first parameter.])
8680
dnl aclocal-1.4 backwards compatibility:
8681
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8684
# _LT_ENABLE_SHARED([DEFAULT])
8685
# ----------------------------
8686
# implement the --enable-shared flag, and supports the `shared' and
8687
# `disable-shared' LT_INIT options.
8688
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8689
m4_define([_LT_ENABLE_SHARED],
8690
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8691
AC_ARG_ENABLE([shared],
8692
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8693
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8694
[p=${PACKAGE-default}
8696
yes) enable_shared=yes ;;
8697
no) enable_shared=no ;;
8700
# Look at the argument we got. We use all the common list separators.
8701
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8702
for pkg in $enableval; do
8704
if test "X$pkg" = "X$p"; then
8711
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8713
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8714
[Whether or not to build shared libraries])
8715
])# _LT_ENABLE_SHARED
8717
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8718
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8721
AC_DEFUN([AC_ENABLE_SHARED],
8722
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8725
AC_DEFUN([AC_DISABLE_SHARED],
8726
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8729
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8730
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8732
dnl aclocal-1.4 backwards compatibility:
8733
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8734
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8738
# _LT_ENABLE_STATIC([DEFAULT])
8739
# ----------------------------
8740
# implement the --enable-static flag, and support the `static' and
8741
# `disable-static' LT_INIT options.
8742
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8743
m4_define([_LT_ENABLE_STATIC],
8744
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8745
AC_ARG_ENABLE([static],
8746
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8747
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8748
[p=${PACKAGE-default}
8750
yes) enable_static=yes ;;
8751
no) enable_static=no ;;
8754
# Look at the argument we got. We use all the common list separators.
8755
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8756
for pkg in $enableval; do
8758
if test "X$pkg" = "X$p"; then
8765
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8767
_LT_DECL([build_old_libs], [enable_static], [0],
8768
[Whether or not to build static libraries])
8769
])# _LT_ENABLE_STATIC
8771
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8772
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8775
AC_DEFUN([AC_ENABLE_STATIC],
8776
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8779
AC_DEFUN([AC_DISABLE_STATIC],
8780
[_LT_SET_OPTION([LT_INIT], [disable-static])
8783
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8784
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8786
dnl aclocal-1.4 backwards compatibility:
8787
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8788
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8792
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8793
# ----------------------------------
8794
# implement the --enable-fast-install flag, and support the `fast-install'
8795
# and `disable-fast-install' LT_INIT options.
8796
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8797
m4_define([_LT_ENABLE_FAST_INSTALL],
8798
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8799
AC_ARG_ENABLE([fast-install],
8800
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8801
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8802
[p=${PACKAGE-default}
8804
yes) enable_fast_install=yes ;;
8805
no) enable_fast_install=no ;;
8807
enable_fast_install=no
8808
# Look at the argument we got. We use all the common list separators.
8809
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8810
for pkg in $enableval; do
8812
if test "X$pkg" = "X$p"; then
8813
enable_fast_install=yes
8819
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8821
_LT_DECL([fast_install], [enable_fast_install], [0],
8822
[Whether or not to optimize for fast installation])dnl
8823
])# _LT_ENABLE_FAST_INSTALL
8825
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8826
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8829
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8830
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8831
AC_DIAGNOSE([obsolete],
8832
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8833
the `fast-install' option into LT_INIT's first parameter.])
8836
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8837
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8838
AC_DIAGNOSE([obsolete],
8839
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8840
the `disable-fast-install' option into LT_INIT's first parameter.])
8843
dnl aclocal-1.4 backwards compatibility:
8844
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8845
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8848
# _LT_WITH_PIC([MODE])
8849
# --------------------
8850
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8852
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8853
m4_define([_LT_WITH_PIC],
8855
[AS_HELP_STRING([--with-pic],
8856
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8857
[pic_mode="$withval"],
8860
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8862
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8865
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8866
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8869
AU_DEFUN([AC_LIBTOOL_PICMODE],
8870
[_LT_SET_OPTION([LT_INIT], [pic-only])
8871
AC_DIAGNOSE([obsolete],
8872
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8873
put the `pic-only' option into LT_INIT's first parameter.])
8876
dnl aclocal-1.4 backwards compatibility:
8877
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8880
m4_define([_LTDL_MODE], [])
8881
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8882
[m4_define([_LTDL_MODE], [nonrecursive])])
8883
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8884
[m4_define([_LTDL_MODE], [recursive])])
8885
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8886
[m4_define([_LTDL_MODE], [subproject])])
8888
m4_define([_LTDL_TYPE], [])
8889
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8890
[m4_define([_LTDL_TYPE], [installable])])
8891
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8892
[m4_define([_LTDL_TYPE], [convenience])])
8894
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8896
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8897
# Written by Gary V. Vaughan, 2004
8899
# This file is free software; the Free Software Foundation gives
8900
# unlimited permission to copy and/or distribute it, with or without
8901
# modifications, as long as this notice is preserved.
8903
# serial 6 ltsugar.m4
8905
# This is to help aclocal find these macros, as it can't see m4_define.
8906
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8909
# lt_join(SEP, ARG1, [ARG2...])
8910
# -----------------------------
8911
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8912
# associated separator.
8913
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8914
# versions in m4sugar had bugs.
8915
m4_define([lt_join],
8916
[m4_if([$#], [1], [],
8918
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8919
m4_define([_lt_join],
8920
[m4_if([$#$2], [2], [],
8921
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8927
# Manipulate m4 lists.
8928
# These macros are necessary as long as will still need to support
8929
# Autoconf-2.59 which quotes differently.
8930
m4_define([lt_car], [[$1]])
8932
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8934
[m4_dquote(m4_shift($@))])])
8935
m4_define([lt_unquote], $1)
8938
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8939
# ------------------------------------------
8940
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8941
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8942
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8943
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8944
# than defined and empty).
8946
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8947
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8948
m4_define([lt_append],
8950
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8954
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8955
# ----------------------------------------------------------
8956
# Produce a SEP delimited list of all paired combinations of elements of
8957
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8958
# has the form PREFIXmINFIXSUFFIXn.
8959
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8960
m4_define([lt_combine],
8961
[m4_if(m4_eval([$# > 3]), [1],
8962
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8963
[[m4_foreach([_Lt_prefix], [$2],
8964
[m4_foreach([_Lt_suffix],
8965
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8966
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8969
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8970
# -----------------------------------------------------------------------
8971
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8972
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8973
m4_define([lt_if_append_uniq],
8975
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8976
[lt_append([$1], [$2], [$3])$4],
8978
[lt_append([$1], [$2], [$3])$4])])
8981
# lt_dict_add(DICT, KEY, VALUE)
8982
# -----------------------------
8983
m4_define([lt_dict_add],
8984
[m4_define([$1($2)], [$3])])
8987
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8988
# --------------------------------------------
8989
m4_define([lt_dict_add_subkey],
8990
[m4_define([$1($2:$3)], [$4])])
8993
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8994
# ----------------------------------
8995
m4_define([lt_dict_fetch],
8997
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8998
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9001
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9002
# -----------------------------------------------------------------
9003
m4_define([lt_if_dict_fetch],
9004
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9009
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9010
# --------------------------------------------------------------
9011
m4_define([lt_dict_filter],
9012
[m4_if([$5], [], [],
9013
[lt_join(m4_quote(m4_default([$4], [[, ]])),
9014
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9015
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9018
# ltversion.m4 -- version numbers -*- Autoconf -*-
9020
# Copyright (C) 2004 Free Software Foundation, Inc.
9021
# Written by Scott James Remnant, 2004
9023
# This file is free software; the Free Software Foundation gives
9024
# unlimited permission to copy and/or distribute it, with or without
9025
# modifications, as long as this notice is preserved.
9029
# serial 3293 ltversion.m4
9030
# This file is part of GNU Libtool
9032
m4_define([LT_PACKAGE_VERSION], [2.4])
9033
m4_define([LT_PACKAGE_REVISION], [1.3293])
9035
AC_DEFUN([LTVERSION_VERSION],
9036
[macro_version='2.4'
9037
macro_revision='1.3293'
9038
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9039
_LT_DECL(, macro_revision, 0)
9042
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
9044
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9045
# Written by Scott James Remnant, 2004.
9047
# This file is free software; the Free Software Foundation gives
9048
# unlimited permission to copy and/or distribute it, with or without
9049
# modifications, as long as this notice is preserved.
9051
# serial 5 lt~obsolete.m4
9053
# These exist entirely to fool aclocal when bootstrapping libtool.
9055
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
9056
# which have later been changed to m4_define as they aren't part of the
9057
# exported API, or moved to Autoconf or Automake where they belong.
9059
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
9060
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
9061
# using a macro with the same name in our local m4/libtool.m4 it'll
9062
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
9063
# and doesn't know about Autoconf macros at all.)
9065
# So we provide this file, which has a silly filename so it's always
9066
# included after everything else. This provides aclocal with the
9067
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9068
# because those macros already exist, or will be overwritten later.
9069
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9071
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9072
# Yes, that means every name once taken will need to remain here until
9073
# we give up compatibility with versions before 1.7, at which point
9074
# we need to keep only those names which we still refer to.
9076
# This is to help aclocal find these macros, as it can't see m4_define.
9077
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
9079
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
9080
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
9081
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
9082
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
9083
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
9084
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
9085
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
9086
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
9087
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
9088
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
9089
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
9090
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
9091
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
9092
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
9093
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
9094
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9095
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
9096
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9097
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9098
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
9099
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
9100
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9101
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9102
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9103
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9104
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9105
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9106
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9107
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9108
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9109
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9110
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9111
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9112
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9113
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9114
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9115
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9116
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9117
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9118
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9119
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9120
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9121
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9122
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9123
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9124
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9125
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9126
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9127
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9128
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9129
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9130
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9131
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9132
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9133
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9134
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9135
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9136
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9137
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
9138
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
9139
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
9141
539
# nls.m4 serial 5 (gettext-0.18)
9142
540
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,