789
742
rm -f confinc confmf
792
# AM_CONDITIONAL -*- Autoconf -*-
794
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
796
# This program is free software; you can redistribute it and/or modify
797
# it under the terms of the GNU General Public License as published by
798
# the Free Software Foundation; either version 2, or (at your option)
801
# This program is distributed in the hope that it will be useful,
802
# but WITHOUT ANY WARRANTY; without even the implied warranty of
803
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
804
# GNU General Public License for more details.
806
# You should have received a copy of the GNU General Public License
807
# along with this program; if not, write to the Free Software
808
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
815
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
816
# -------------------------------------
817
# Define a conditional.
818
AC_DEFUN([AM_CONDITIONAL],
819
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
820
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
830
AC_CONFIG_COMMANDS_PRE(
831
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
832
AC_MSG_ERROR([conditional "$1" was never defined.
833
Usually this means the macro was only invoked conditionally.])
836
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
838
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
840
# This program is free software; you can redistribute it and/or modify
841
# it under the terms of the GNU General Public License as published by
842
# the Free Software Foundation; either version 2, or (at your option)
845
# This program is distributed in the hope that it will be useful,
846
# but WITHOUT ANY WARRANTY; without even the implied warranty of
847
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
848
# GNU General Public License for more details.
850
# You should have received a copy of the GNU General Public License
851
# along with this program; if not, write to the Free Software
852
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
745
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
747
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
748
# Free Software Foundation, Inc.
750
# This file is free software; the Free Software Foundation
751
# gives unlimited permission to copy and/or distribute it,
752
# with or without modifications, as long as this notice is preserved.
859
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
860
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
862
# Add --enable-maintainer-mode option to configure.
865
# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
867
# This program is free software; you can redistribute it and/or modify
868
# it under the terms of the GNU General Public License as published by
869
# the Free Software Foundation; either version 2, or (at your option)
872
# This program is distributed in the hope that it will be useful,
873
# but WITHOUT ANY WARRANTY; without even the implied warranty of
874
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
875
# GNU General Public License for more details.
877
# You should have received a copy of the GNU General Public License
878
# along with this program; if not, write to the Free Software
879
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
884
AC_DEFUN([AM_MAINTAINER_MODE],
885
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
886
dnl maintainer-mode is disabled by default
887
AC_ARG_ENABLE(maintainer-mode,
888
[ --enable-maintainer-mode enable make rules and dependencies not useful
889
(and sometimes confusing) to the casual installer],
890
USE_MAINTAINER_MODE=$enableval,
891
USE_MAINTAINER_MODE=no)
892
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
893
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
894
MAINT=$MAINTAINER_MODE_TRUE
899
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
756
# AM_MISSING_PROG(NAME, PROGRAM)
757
# ------------------------------
758
AC_DEFUN([AM_MISSING_PROG],
759
[AC_REQUIRE([AM_MISSING_HAS_RUN])
760
$1=${$1-"${am_missing_run}$2"}
766
# Define MISSING if not defined so far and test if it supports --run.
767
# If it does, set am_missing_run to use it, otherwise, to nothing.
768
AC_DEFUN([AM_MISSING_HAS_RUN],
769
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
770
AC_REQUIRE_AUX_FILE([missing])dnl
771
if test x"${MISSING+set}" != xset; then
774
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
776
MISSING="\${SHELL} $am_aux_dir/missing" ;;
779
# Use eval to expand $SHELL
780
if eval "$MISSING --run true"; then
781
am_missing_run="$MISSING --run "
784
AC_MSG_WARN([`missing' script is too old or missing])
788
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
790
# This file is free software; the Free Software Foundation
791
# gives unlimited permission to copy and/or distribute it,
792
# with or without modifications, as long as this notice is preserved.
796
# Check for `mkdir -p'.
797
AC_DEFUN([AM_PROG_MKDIR_P],
798
[AC_PREREQ([2.60])dnl
799
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
800
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
801
dnl while keeping a definition of mkdir_p for backward compatibility.
802
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
803
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
804
dnl Makefile.ins that do not define MKDIR_P, so we do our own
805
dnl adjustment using top_builddir (which is defined more often than
807
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
809
[[\\/$]]* | ?:[[\\/]]*) ;;
810
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
814
# Helper functions for option handling. -*- Autoconf -*-
816
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
818
# This file is free software; the Free Software Foundation
819
# gives unlimited permission to copy and/or distribute it,
820
# with or without modifications, as long as this notice is preserved.
824
# _AM_MANGLE_OPTION(NAME)
825
# -----------------------
826
AC_DEFUN([_AM_MANGLE_OPTION],
827
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
829
# _AM_SET_OPTION(NAME)
830
# ------------------------------
831
# Set option NAME. Presently that only means defining a flag for this option.
832
AC_DEFUN([_AM_SET_OPTION],
833
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
835
# _AM_SET_OPTIONS(OPTIONS)
836
# ----------------------------------
837
# OPTIONS is a space-separated list of Automake options.
838
AC_DEFUN([_AM_SET_OPTIONS],
839
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
841
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
842
# -------------------------------------------
843
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
844
AC_DEFUN([_AM_IF_OPTION],
845
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
847
# Check to make sure that the build environment is sane. -*- Autoconf -*-
849
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
850
# Free Software Foundation, Inc.
852
# This file is free software; the Free Software Foundation
853
# gives unlimited permission to copy and/or distribute it,
854
# with or without modifications, as long as this notice is preserved.
860
AC_DEFUN([AM_SANITY_CHECK],
861
[AC_MSG_CHECKING([whether build environment is sane])
864
echo timestamp > conftest.file
865
# Reject unsafe characters in $srcdir or the absolute working directory
866
# name. Accept space and tab only in the latter.
870
*[[\\\"\#\$\&\'\`$am_lf]]*)
871
AC_MSG_ERROR([unsafe absolute working directory name]);;
874
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
875
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
878
# Do `set' in a subshell so we don't clobber the current shell's
879
# arguments. Must try -L first in case configure is actually a
880
# symlink; some systems play weird games with the mod time of symlinks
881
# (eg FreeBSD returns the mod time of the symlink's containing
884
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
885
if test "$[*]" = "X"; then
887
set X `ls -t "$srcdir/configure" conftest.file`
890
if test "$[*]" != "X $srcdir/configure conftest.file" \
891
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
893
# If neither matched, then we have a broken ls. This can happen
894
# if, for instance, CONFIG_SHELL is bash and it inherits a
895
# broken ls alias from the environment. This has actually
896
# happened. Such a system could not be considered "sane".
897
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
898
alias in your environment])
901
test "$[2]" = conftest.file
907
AC_MSG_ERROR([newly created file is older than distributed files!
908
Check your system clock])
912
# Copyright (C) 2009 Free Software Foundation, Inc.
914
# This file is free software; the Free Software Foundation
915
# gives unlimited permission to copy and/or distribute it,
916
# with or without modifications, as long as this notice is preserved.
920
# AM_SILENT_RULES([DEFAULT])
921
# --------------------------
922
# Enable less verbose build rules; with the default set to DEFAULT
923
# (`yes' being less verbose, `no' or empty being verbose).
924
AC_DEFUN([AM_SILENT_RULES],
925
[AC_ARG_ENABLE([silent-rules],
926
[ --enable-silent-rules less verbose build output (undo: `make V=1')
927
--disable-silent-rules verbose build output (undo: `make V=0')])
928
case $enable_silent_rules in
929
yes) AM_DEFAULT_VERBOSITY=0;;
930
no) AM_DEFAULT_VERBOSITY=1;;
931
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
933
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
935
AC_SUBST([AM_BACKSLASH])dnl
936
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
939
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
941
# This file is free software; the Free Software Foundation
942
# gives unlimited permission to copy and/or distribute it,
943
# with or without modifications, as long as this notice is preserved.
945
# AM_PROG_INSTALL_STRIP
946
# ---------------------
947
# One issue with vendor `install' (even GNU) is that you can't
948
# specify the program used to strip binaries. This is especially
949
# annoying in cross-compiling environments, where the build's strip
950
# is unlikely to handle the host's binaries.
951
# Fortunately install-sh will honor a STRIPPROG variable, so we
952
# always use install-sh in `make install-strip', and initialize
953
# STRIPPROG with the value of the STRIP variable (set by the user).
954
AC_DEFUN([AM_PROG_INSTALL_STRIP],
955
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
956
# Installed binaries are usually stripped using `strip' when the user
957
# run `make install-strip'. However `strip' might not be the right
958
# tool to use in cross-compilation environments, therefore Automake
959
# will honor the `STRIP' environment variable to overrule this program.
960
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
961
if test "$cross_compiling" != no; then
962
AC_CHECK_TOOL([STRIP], [strip], :)
964
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
965
AC_SUBST([INSTALL_STRIP_PROGRAM])])
967
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
969
# This file is free software; the Free Software Foundation
970
# gives unlimited permission to copy and/or distribute it,
971
# with or without modifications, as long as this notice is preserved.
975
# _AM_SUBST_NOTMAKE(VARIABLE)
976
# ---------------------------
977
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
978
# This macro is traced by Automake.
979
AC_DEFUN([_AM_SUBST_NOTMAKE])
981
# AM_SUBST_NOTMAKE(VARIABLE)
982
# ---------------------------
983
# Public sister of _AM_SUBST_NOTMAKE.
984
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
986
# Check how to create a tarball. -*- Autoconf -*-
988
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
990
# This file is free software; the Free Software Foundation
991
# gives unlimited permission to copy and/or distribute it,
992
# with or without modifications, as long as this notice is preserved.
996
# _AM_PROG_TAR(FORMAT)
997
# --------------------
998
# Check how to create a tarball in format FORMAT.
999
# FORMAT should be one of `v7', `ustar', or `pax'.
1001
# Substitute a variable $(am__tar) that is a command
1002
# writing to stdout a FORMAT-tarball containing the directory
1004
# tardir=directory && $(am__tar) > result.tar
1006
# Substitute a variable $(am__untar) that extract such
1007
# a tarball read from stdin.
1008
# $(am__untar) < result.tar
1009
AC_DEFUN([_AM_PROG_TAR],
1010
[# Always define AMTAR for backward compatibility.
1011
AM_MISSING_PROG([AMTAR], [tar])
1013
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1014
[m4_case([$1], [ustar],, [pax],,
1015
[m4_fatal([Unknown tar format])])
1016
AC_MSG_CHECKING([how to create a $1 tar archive])
1017
# Loop over all known methods to create a tar archive until one works.
1018
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1019
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1020
# Do not fold the above two line into one, because Tru64 sh and
1021
# Solaris sh will not grok spaces in the rhs of `-'.
1022
for _am_tool in $_am_tools
1026
for _am_tar in tar gnutar gtar;
1028
AM_RUN_LOG([$_am_tar --version]) && break
1030
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1031
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1032
am__untar="$_am_tar -xf -"
1035
# Must skip GNU tar: if it does not support --format= it doesn't create
1036
# ustar tarball either.
1037
(tar --version) >/dev/null 2>&1 && continue
1038
am__tar='tar chf - "$$tardir"'
1039
am__tar_='tar chf - "$tardir"'
1040
am__untar='tar xf -'
1043
am__tar='pax -L -x $1 -w "$$tardir"'
1044
am__tar_='pax -L -x $1 -w "$tardir"'
1048
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1049
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1050
am__untar='cpio -i -H $1 -d'
1059
# If the value was cached, stop now. We just wanted to have am__tar
1060
# and am__untar set.
1061
test -n "${am_cv_prog_tar_$1}" && break
1063
# tar/untar a dummy directory, and stop if the command works
1066
echo GrepMe > conftest.dir/file
1067
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1069
if test -s conftest.tar; then
1070
AM_RUN_LOG([$am__untar <conftest.tar])
1071
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1076
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1077
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1079
AC_SUBST([am__untar])
901
1082
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
903
# serial 48 AC_PROG_LIBTOOL
906
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
907
# -----------------------------------------------------------
908
# If this macro is not defined by Autoconf, define it here.
909
m4_ifdef([AC_PROVIDE_IFELSE],
911
[m4_define([AC_PROVIDE_IFELSE],
912
[m4_ifdef([AC_PROVIDE_$1],
918
AC_DEFUN([AC_PROG_LIBTOOL],
919
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
920
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
921
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
922
AC_PROVIDE_IFELSE([AC_PROG_CXX],
924
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
926
dnl And a similar setup for Fortran 77 support
927
AC_PROVIDE_IFELSE([AC_PROG_F77],
929
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
932
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
933
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
934
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
935
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
937
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
939
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
941
[ifdef([AC_PROG_GCJ],
942
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
943
ifdef([A][M_PROG_GCJ],
944
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
945
ifdef([LT_AC_PROG_GCJ],
946
[define([LT_AC_PROG_GCJ],
947
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
948
])])# AC_PROG_LIBTOOL
953
AC_DEFUN([_AC_PROG_LIBTOOL],
954
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
955
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
956
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
957
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1084
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1085
# 2006, 2007, 2008 Free Software Foundation, Inc.
1086
# Written by Gordon Matzigkeit, 1996
1088
# This file is free software; the Free Software Foundation gives
1089
# unlimited permission to copy and/or distribute it, with or without
1090
# modifications, as long as this notice is preserved.
1092
m4_define([_LT_COPYING], [dnl
1093
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1094
# 2006, 2007, 2008 Free Software Foundation, Inc.
1095
# Written by Gordon Matzigkeit, 1996
1097
# This file is part of GNU Libtool.
1099
# GNU Libtool is free software; you can redistribute it and/or
1100
# modify it under the terms of the GNU General Public License as
1101
# published by the Free Software Foundation; either version 2 of
1102
# the License, or (at your option) any later version.
1104
# As a special exception to the GNU General Public License,
1105
# if you distribute this file as part of a program or library that
1106
# is built using GNU Libtool, you may include this file under the
1107
# same distribution terms that you use for the rest of that program.
1109
# GNU Libtool is distributed in the hope that it will be useful,
1110
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1112
# GNU General Public License for more details.
1114
# You should have received a copy of the GNU General Public License
1115
# along with GNU Libtool; see the file COPYING. If not, a copy
1116
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1117
# obtained by writing to the Free Software Foundation, Inc.,
1118
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1124
# LT_PREREQ(VERSION)
1125
# ------------------
1126
# Complain and exit if this libtool version is less that VERSION.
1127
m4_defun([LT_PREREQ],
1128
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1130
[m4_fatal([Libtool version $1 or higher is required],
1135
# _LT_CHECK_BUILDDIR
1136
# ------------------
1137
# Complain if the absolute build directory name contains unusual characters
1138
m4_defun([_LT_CHECK_BUILDDIR],
1141
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1146
# LT_INIT([OPTIONS])
1147
# ------------------
1149
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1150
AC_BEFORE([$0], [LT_LANG])dnl
1151
AC_BEFORE([$0], [LT_OUTPUT])dnl
1152
AC_BEFORE([$0], [LTDL_INIT])dnl
1153
m4_require([_LT_CHECK_BUILDDIR])dnl
1155
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1156
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1157
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1158
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1159
dnl unless we require an AC_DEFUNed macro:
1160
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1161
AC_REQUIRE([LTSUGAR_VERSION])dnl
1162
AC_REQUIRE([LTVERSION_VERSION])dnl
1163
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1164
m4_require([_LT_PROG_LTMAIN])dnl
1167
_LT_SET_OPTIONS([$0], [$1])
959
1169
# This can be used to rebuild libtool when needed
960
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1170
LIBTOOL_DEPS="$ltmain"
962
1172
# Always use our own libtool.
963
1173
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
964
1174
AC_SUBST(LIBTOOL)dnl
966
# Prevent multiple expansion
967
define([AC_PROG_LIBTOOL], [])
973
AC_DEFUN([AC_LIBTOOL_SETUP],
975
AC_REQUIRE([AC_ENABLE_SHARED])dnl
976
AC_REQUIRE([AC_ENABLE_STATIC])dnl
977
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
978
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1179
m4_define([LT_INIT])
1183
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1184
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1185
dnl aclocal-1.4 backwards compatibility:
1186
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1187
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1190
# _LT_CC_BASENAME(CC)
1191
# -------------------
1192
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1193
m4_defun([_LT_CC_BASENAME],
1194
[for cc_temp in $1""; do
1196
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1197
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1202
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1206
# _LT_FILEUTILS_DEFAULTS
1207
# ----------------------
1208
# It is okay to use these file commands and assume they have been set
1209
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1210
m4_defun([_LT_FILEUTILS_DEFAULTS],
1214
])# _LT_FILEUTILS_DEFAULTS
1219
m4_defun([_LT_SETUP],
1220
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
979
1221
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1222
_LT_DECL([], [host_alias], [0], [The host system])dnl
1223
_LT_DECL([], [host], [0])dnl
1224
_LT_DECL([], [host_os], [0])dnl
1226
_LT_DECL([], [build_alias], [0], [The build system])dnl
1227
_LT_DECL([], [build], [0])dnl
1228
_LT_DECL([], [build_os], [0])dnl
980
1230
AC_REQUIRE([AC_PROG_CC])dnl
981
AC_REQUIRE([AC_PROG_LD])dnl
982
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
983
AC_REQUIRE([AC_PROG_NM])dnl
1231
AC_REQUIRE([LT_PATH_LD])dnl
1232
AC_REQUIRE([LT_PATH_NM])dnl
985
1234
AC_REQUIRE([AC_PROG_LN_S])dnl
986
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
987
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
988
AC_REQUIRE([AC_OBJEXT])dnl
989
AC_REQUIRE([AC_EXEEXT])dnl
992
AC_LIBTOOL_SYS_MAX_CMD_LEN
993
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
996
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
997
_LT_AC_PROG_ECHO_BACKSLASH
1235
test -z "$LN_S" && LN_S="ln -s"
1236
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1238
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1239
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1240
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1242
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1243
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1244
m4_require([_LT_CMD_RELOAD])dnl
1245
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1246
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1247
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1249
_LT_CONFIG_LIBTOOL_INIT([
1250
# See if we are running on zsh, and set the options which allow our
1251
# commands through without removal of \ escapes INIT.
1252
if test -n "\${ZSH_VERSION+set}" ; then
1253
setopt NO_GLOB_SUBST
1256
if test -n "${ZSH_VERSION+set}" ; then
1257
setopt NO_GLOB_SUBST
1262
m4_require([_LT_TAG_COMPILER])dnl
1263
_LT_PROG_ECHO_BACKSLASH
999
1265
case $host_os in
1011
1277
# Sed substitution that helps us do robust quoting. It backslashifies
1012
1278
# metacharacters that are still active within double-quoted strings.
1013
Xsed='sed -e 1s/^X//'
1014
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1279
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1016
1281
# Same as above, but do not quote variable references.
1017
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1282
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1019
1284
# Sed substitution to delay expansion of an escaped shell variable in a
1020
1285
# double_quote_subst'ed string.
1021
1286
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1288
# Sed substitution to delay expansion of an escaped single quote.
1289
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1023
1291
# Sed substitution to avoid accidental globbing in evaled expressions
1024
1292
no_glob_subst='s/\*/\\\*/g'
1029
1294
# Global variables:
1030
default_ofile=libtool
1031
1296
can_build_shared=yes
1033
1298
# All known linkers require a `.a' archive for static linking (except MSVC,
1034
1299
# which needs '.lib').
1036
ltmain="$ac_aux_dir/ltmain.sh"
1037
ofile="$default_ofile"
1038
1302
with_gnu_ld="$lt_cv_prog_gnu_ld"
1040
AC_CHECK_TOOL(AR, ar, false)
1041
AC_CHECK_TOOL(RANLIB, ranlib, :)
1042
AC_CHECK_TOOL(STRIP, strip, :)
1045
1305
old_CFLAGS="$CFLAGS"
1047
1307
# Set sane defaults for various variables
1048
test -z "$AR" && AR=ar
1049
test -z "$AR_FLAGS" && AR_FLAGS=cru
1050
test -z "$AS" && AS=as
1051
1308
test -z "$CC" && CC=cc
1052
1309
test -z "$LTCC" && LTCC=$CC
1053
1310
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1054
test -z "$DLLTOOL" && DLLTOOL=dlltool
1055
1311
test -z "$LD" && LD=ld
1056
test -z "$LN_S" && LN_S="ln -s"
1057
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1058
test -z "$NM" && NM=nm
1059
test -z "$SED" && SED=sed
1060
test -z "$OBJDUMP" && OBJDUMP=objdump
1061
test -z "$RANLIB" && RANLIB=:
1062
test -z "$STRIP" && STRIP=:
1063
1312
test -z "$ac_objext" && ac_objext=o
1065
# Determine commands to create old-style static archives.
1066
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1067
old_postinstall_cmds='chmod 644 $oldlib'
1068
old_postuninstall_cmds=
1070
if test -n "$RANLIB"; then
1073
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1076
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1079
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1082
1314
_LT_CC_BASENAME([$compiler])
1084
1316
# Only perform the check for file, if the check method requires it
1317
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1085
1318
case $deplibs_check_method in
1087
1320
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1093
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1094
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1095
enable_win32_dll=yes, enable_win32_dll=no)
1097
AC_ARG_ENABLE([libtool-lock],
1098
[AC_HELP_STRING([--disable-libtool-lock],
1099
[avoid locking (might break parallel builds)])])
1100
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1103
[AC_HELP_STRING([--with-pic],
1104
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1105
[pic_mode="$withval"],
1107
test -z "$pic_mode" && pic_mode=default
1109
1326
# Use C for the default configuration in the libtool script
1111
AC_LIBTOOL_LANG_C_CONFIG
1113
])# AC_LIBTOOL_SETUP
1116
# _LT_AC_SYS_COMPILER
1327
LT_SUPPORTED_TAG([CC])
1329
_LT_LANG_DEFAULT_CONFIG
1336
# Note that this code is called both from `configure', and `config.status'
1337
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1338
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1339
# so we pass a copy along to make sure it has a sensible value anyway.
1340
m4_defun([_LT_PROG_LTMAIN],
1341
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1342
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1343
ltmain="$ac_aux_dir/ltmain.sh"
1348
# So that we can recreate a full libtool script including additional
1349
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1350
# in macros and then make a single call at the end using the `libtool'
1354
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1355
# ----------------------------------------
1356
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1357
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1359
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1364
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1367
# _LT_CONFIG_LIBTOOL([COMMANDS])
1368
# ------------------------------
1369
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1370
m4_define([_LT_CONFIG_LIBTOOL],
1372
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1377
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1380
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1381
# -----------------------------------------------------
1382
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1383
[_LT_CONFIG_LIBTOOL([$1])
1384
_LT_CONFIG_LIBTOOL_INIT([$2])
1388
# _LT_FORMAT_COMMENT([COMMENT])
1389
# -----------------------------
1390
# Add leading comment marks to the start of each line, and a trailing
1391
# full-stop to the whole comment if one is not present already.
1392
m4_define([_LT_FORMAT_COMMENT],
1394
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1395
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1402
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1403
# -------------------------------------------------------------------
1404
# CONFIGNAME is the name given to the value in the libtool script.
1405
# VARNAME is the (base) name used in the configure script.
1406
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1407
# VARNAME. Any other value will be used directly.
1408
m4_define([_LT_DECL],
1409
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1410
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1411
[m4_ifval([$1], [$1], [$2])])
1412
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1414
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1415
lt_dict_add_subkey([lt_decl_dict], [$2],
1416
[tagged?], [m4_ifval([$5], [yes], [no])])])
1420
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1421
# --------------------------------------------------------
1422
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1425
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1426
# ------------------------------------------------
1427
m4_define([lt_decl_tag_varnames],
1428
[_lt_decl_filter([tagged?], [yes], $@)])
1431
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1432
# ---------------------------------------------------------
1433
m4_define([_lt_decl_filter],
1435
[0], [m4_fatal([$0: too few arguments: $#])],
1436
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1437
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1438
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1439
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1443
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1444
# --------------------------------------------------
1445
m4_define([lt_decl_quote_varnames],
1446
[_lt_decl_filter([value], [1], $@)])
1449
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1450
# ---------------------------------------------------
1451
m4_define([lt_decl_dquote_varnames],
1452
[_lt_decl_filter([value], [2], $@)])
1455
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1456
# ---------------------------------------------------
1457
m4_define([lt_decl_varnames_tagged],
1458
[m4_assert([$# <= 2])dnl
1459
_$0(m4_quote(m4_default([$1], [[, ]])),
1460
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1461
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1462
m4_define([_lt_decl_varnames_tagged],
1463
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1466
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1467
# ------------------------------------------------
1468
m4_define([lt_decl_all_varnames],
1469
[_$0(m4_quote(m4_default([$1], [[, ]])),
1471
m4_quote(lt_decl_varnames),
1472
m4_quote(m4_shift($@))))[]dnl
1474
m4_define([_lt_decl_all_varnames],
1475
[lt_join($@, lt_decl_varnames_tagged([$1],
1476
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1480
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1481
# ------------------------------------
1482
# Quote a variable value, and forward it to `config.status' so that its
1483
# declaration there will have the same value as in `configure'. VARNAME
1484
# must have a single quote delimited value for this to work.
1485
m4_define([_LT_CONFIG_STATUS_DECLARE],
1486
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1489
# _LT_CONFIG_STATUS_DECLARATIONS
1490
# ------------------------------
1491
# We delimit libtool config variables with single quotes, so when
1492
# we write them to config.status, we have to be sure to quote all
1493
# embedded single quotes properly. In configure, this macro expands
1494
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1496
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1497
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1498
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1499
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1504
# Output comment and list of tags supported by the script
1505
m4_defun([_LT_LIBTOOL_TAGS],
1506
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1507
available_tags="_LT_TAGS"dnl
1511
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1512
# -----------------------------------
1513
# Extract the dictionary values for VARNAME (optionally with TAG) and
1514
# expand to a commented shell variable setting:
1516
# # Some comment about what VAR is for.
1517
# visible_name=$lt_internal_name
1518
m4_define([_LT_LIBTOOL_DECLARE],
1519
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1520
[description])))[]dnl
1521
m4_pushdef([_libtool_name],
1522
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1523
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1524
[0], [_libtool_name=[$]$1],
1525
[1], [_libtool_name=$lt_[]$1],
1526
[2], [_libtool_name=$lt_[]$1],
1527
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1528
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1532
# _LT_LIBTOOL_CONFIG_VARS
1533
# -----------------------
1534
# Produce commented declarations of non-tagged libtool config variables
1535
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1536
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1537
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1538
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1539
[m4_foreach([_lt_var],
1540
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1541
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1544
# _LT_LIBTOOL_TAG_VARS(TAG)
1545
# -------------------------
1546
m4_define([_LT_LIBTOOL_TAG_VARS],
1547
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1548
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1551
# _LT_TAGVAR(VARNAME, [TAGNAME])
1552
# ------------------------------
1553
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1556
# _LT_CONFIG_COMMANDS
1117
1557
# -------------------
1118
AC_DEFUN([_LT_AC_SYS_COMPILER],
1558
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1559
# variables for single and double quote escaping we saved from calls
1560
# to _LT_DECL, we can put quote escaped variables declarations
1561
# into `config.status', and then the shell code to quote escape them in
1562
# for loops in `config.status'. Finally, any additional code accumulated
1563
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1564
m4_defun([_LT_CONFIG_COMMANDS],
1565
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1566
dnl If the libtool generation code has been placed in $CONFIG_LT,
1567
dnl instead of duplicating it all over again into config.status,
1568
dnl then we will have config.status run $CONFIG_LT later, so it
1569
dnl needs to know what name is stored there:
1570
[AC_CONFIG_COMMANDS([libtool],
1571
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1572
dnl If the libtool generation code is destined for config.status,
1573
dnl expand the accumulated commands and init code now:
1574
[AC_CONFIG_COMMANDS([libtool],
1575
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1576
])#_LT_CONFIG_COMMANDS
1580
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1583
# The HP-UX ksh and POSIX shell print the target directory to stdout
1585
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1587
sed_quote_subst='$sed_quote_subst'
1588
double_quote_subst='$double_quote_subst'
1589
delay_variable_subst='$delay_variable_subst'
1590
_LT_CONFIG_STATUS_DECLARATIONS
1592
LTCFLAGS='$LTCFLAGS'
1593
compiler='$compiler_DEFAULT'
1595
# Quote evaled strings.
1596
for var in lt_decl_all_varnames([[ \
1597
]], lt_decl_quote_varnames); do
1598
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1599
*[[\\\\\\\`\\"\\\$]]*)
1600
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1603
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1608
# Double-quote double-evaled strings.
1609
for var in lt_decl_all_varnames([[ \
1610
]], lt_decl_dquote_varnames); do
1611
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1612
*[[\\\\\\\`\\"\\\$]]*)
1613
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1616
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1621
# Fix-up fallback echo if it was mangled by the above quoting rules.
1623
*'\\\[$]0 --fallback-echo"')dnl "
1624
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1628
_LT_OUTPUT_LIBTOOL_INIT
1634
# This macro allows early generation of the libtool script (before
1635
# AC_OUTPUT is called), incase it is used in configure for compilation
1637
AC_DEFUN([LT_OUTPUT],
1638
[: ${CONFIG_LT=./config.lt}
1639
AC_MSG_NOTICE([creating $CONFIG_LT])
1640
cat >"$CONFIG_LT" <<_LTEOF
1642
# Generated by $as_me.
1643
# Run this file to recreate a libtool stub with the current configuration.
1646
SHELL=\${CONFIG_SHELL-$SHELL}
1649
cat >>"$CONFIG_LT" <<\_LTEOF
1653
exec AS_MESSAGE_FD>&1
1654
exec AS_MESSAGE_LOG_FD>>config.log
1657
AS_BOX([Running $as_me.])
1658
} >&AS_MESSAGE_LOG_FD
1661
\`$as_me' creates a local libtool stub from the current configuration,
1662
for use in further configure time tests before the real libtool is
1665
Usage: $[0] [[OPTIONS]]
1667
-h, --help print this help, then exit
1668
-V, --version print version number, then exit
1669
-q, --quiet do not print progress messages
1670
-d, --debug don't remove temporary files
1672
Report bugs to <bug-libtool@gnu.org>."
1675
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1676
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1677
configured by $[0], generated by m4_PACKAGE_STRING.
1679
Copyright (C) 2008 Free Software Foundation, Inc.
1680
This config.lt script is free software; the Free Software Foundation
1681
gives unlimited permision to copy, distribute and modify it."
1683
while test $[#] != 0
1686
--version | --v* | -V )
1687
echo "$lt_cl_version"; exit 0 ;;
1688
--help | --h* | -h )
1689
echo "$lt_cl_help"; exit 0 ;;
1690
--debug | --d* | -d )
1692
--quiet | --q* | --silent | --s* | -q )
1695
-*) AC_MSG_ERROR([unrecognized option: $[1]
1696
Try \`$[0] --help' for more information.]) ;;
1698
*) AC_MSG_ERROR([unrecognized argument: $[1]
1699
Try \`$[0] --help' for more information.]) ;;
1704
if $lt_cl_silent; then
1705
exec AS_MESSAGE_FD>/dev/null
1709
cat >>"$CONFIG_LT" <<_LTEOF
1710
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1713
cat >>"$CONFIG_LT" <<\_LTEOF
1714
AC_MSG_NOTICE([creating $ofile])
1715
_LT_OUTPUT_LIBTOOL_COMMANDS
1718
chmod +x "$CONFIG_LT"
1720
# configure is writing to config.log, but config.lt does its own redirection,
1721
# appending to config.log, which fails on DOS, as config.log is still kept
1722
# open by configure. Here we exec the FD to /dev/null, effectively closing
1723
# config.log, so it can be properly (re)opened and appended to by config.lt.
1724
if test "$no_create" != yes; then
1726
test "$silent" = yes &&
1727
lt_config_lt_args="$lt_config_lt_args --quiet"
1728
exec AS_MESSAGE_LOG_FD>/dev/null
1729
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1730
exec AS_MESSAGE_LOG_FD>>config.log
1731
$lt_cl_success || AS_EXIT(1)
1738
# If TAG is the built-in tag, create an initial libtool script with a
1739
# default configuration from the untagged config vars. Otherwise add code
1740
# to config.status for appending the configuration named by TAG from the
1741
# matching tagged config vars.
1742
m4_defun([_LT_CONFIG],
1743
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1744
_LT_CONFIG_SAVE_COMMANDS([
1745
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1746
m4_if(_LT_TAG, [C], [
1747
# See if we are running on zsh, and set the options which allow our
1748
# commands through without removal of \ escapes.
1749
if test -n "${ZSH_VERSION+set}" ; then
1750
setopt NO_GLOB_SUBST
1754
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1757
cat <<_LT_EOF >> "$cfgfile"
1760
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1761
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1762
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1763
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1768
# ### BEGIN LIBTOOL CONFIG
1769
_LT_LIBTOOL_CONFIG_VARS
1770
_LT_LIBTOOL_TAG_VARS
1771
# ### END LIBTOOL CONFIG
1777
cat <<\_LT_EOF >> "$cfgfile"
1778
# AIX sometimes has problems with the GCC collect2 program. For some
1779
# reason, if we set the COLLECT_NAMES environment variable, the problems
1780
# vanish in a puff of smoke.
1781
if test "X${COLLECT_NAMES+set}" != Xset; then
1783
export COLLECT_NAMES
1791
# We use sed instead of cat because bash on DJGPP gets confused if
1792
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1793
# text mode, it properly converts lines to CR/LF. This bash problem
1794
# is reportedly fixed, but why not run on old versions too?
1795
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1796
|| (rm -f "$cfgfile"; exit 1)
1798
_LT_PROG_XSI_SHELLFNS
1800
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1801
|| (rm -f "$cfgfile"; exit 1)
1803
mv -f "$cfgfile" "$ofile" ||
1804
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1807
[cat <<_LT_EOF >> "$ofile"
1809
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1810
dnl in a comment (ie after a #).
1811
# ### BEGIN LIBTOOL TAG CONFIG: $1
1812
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1813
# ### END LIBTOOL TAG CONFIG: $1
1820
TIMESTAMP='$TIMESTAMP'
1822
ofile='$ofile'], [])
1823
])dnl /_LT_CONFIG_SAVE_COMMANDS
1827
# LT_SUPPORTED_TAG(TAG)
1828
# ---------------------
1829
# Trace this macro to discover what tags are supported by the libtool
1830
# --tag option, using:
1831
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1832
AC_DEFUN([LT_SUPPORTED_TAG], [])
1835
# C support is built-in for now
1836
m4_define([_LT_LANG_C_enabled], [])
1837
m4_define([_LT_TAGS], [])
1842
# Enable libtool support for the given language if not already enabled.
1844
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1847
[C++], [_LT_LANG(CXX)],
1848
[Java], [_LT_LANG(GCJ)],
1849
[Fortran 77], [_LT_LANG(F77)],
1850
[Fortran], [_LT_LANG(FC)],
1851
[Windows Resource], [_LT_LANG(RC)],
1852
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1854
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1858
# _LT_LANG(LANGNAME)
1859
# ------------------
1860
m4_defun([_LT_LANG],
1861
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1862
[LT_SUPPORTED_TAG([$1])dnl
1863
m4_append([_LT_TAGS], [$1 ])dnl
1864
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1865
_LT_LANG_$1_CONFIG($1)])dnl
1869
# _LT_LANG_DEFAULT_CONFIG
1870
# -----------------------
1871
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1872
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1874
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1876
AC_PROVIDE_IFELSE([AC_PROG_F77],
1878
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1880
AC_PROVIDE_IFELSE([AC_PROG_FC],
1882
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1884
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1885
dnl pulling things in needlessly.
1886
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1888
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1890
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1892
[m4_ifdef([AC_PROG_GCJ],
1893
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1894
m4_ifdef([A][M_PROG_GCJ],
1895
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1896
m4_ifdef([LT_PROG_GCJ],
1897
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1899
AC_PROVIDE_IFELSE([LT_PROG_RC],
1901
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1902
])# _LT_LANG_DEFAULT_CONFIG
1905
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1906
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1907
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1908
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1909
dnl aclocal-1.4 backwards compatibility:
1910
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1911
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1912
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1913
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1918
m4_defun([_LT_TAG_COMPILER],
1119
1919
[AC_REQUIRE([AC_PROG_CC])dnl
1921
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1922
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1923
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1924
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1121
1926
# If no C compiler was specified, use CC.
1122
1927
LTCC=${LTCC-"$CC"}
3414
4342
AC_CHECK_LIB(m, cos, LIBM="-lm")
3420
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3421
# -----------------------------------
3422
# sets LIBLTDL to the link flags for the libltdl convenience library and
3423
# LTDLINCL to the include flags for the libltdl header and adds
3424
# --enable-ltdl-convenience to the configure arguments. Note that
3425
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3426
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3427
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3428
# (note the single quotes!). If your package is not flat and you're not
3429
# using automake, define top_builddir and top_srcdir appropriately in
3431
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3432
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3433
case $enable_ltdl_convenience in
3434
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3435
"") enable_ltdl_convenience=yes
3436
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3438
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3439
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3440
# For backwards non-gettext consistent compatibility...
3442
])# AC_LIBLTDL_CONVENIENCE
3445
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3446
# -----------------------------------
3447
# sets LIBLTDL to the link flags for the libltdl installable library and
3448
# LTDLINCL to the include flags for the libltdl header and adds
3449
# --enable-ltdl-install to the configure arguments. Note that
3450
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3451
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3452
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3453
# '${top_srcdir}/' (note the single quotes!). If your package is not
3454
# flat and you're not using automake, define top_builddir and top_srcdir
3455
# appropriately in the Makefiles.
3456
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3457
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3458
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3459
AC_CHECK_LIB(ltdl, lt_dlinit,
3460
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3461
[if test x"$enable_ltdl_install" = xno; then
3462
AC_MSG_WARN([libltdl not installed, but installation disabled])
3464
enable_ltdl_install=yes
3467
if test x"$enable_ltdl_install" = x"yes"; then
3468
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3469
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3470
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3472
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3476
# For backwards non-gettext consistent compatibility...
3478
])# AC_LIBLTDL_INSTALLABLE
3483
# enable support for C++ libraries
3484
AC_DEFUN([AC_LIBTOOL_CXX],
3485
[AC_REQUIRE([_LT_AC_LANG_CXX])
3491
AC_DEFUN([_LT_AC_LANG_CXX],
3492
[AC_REQUIRE([AC_PROG_CXX])
3493
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3494
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3497
# _LT_AC_PROG_CXXCPP
3498
# ------------------
3499
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3501
AC_REQUIRE([AC_PROG_CXX])
3502
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3503
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3504
(test "X$CXX" != "Xg++"))) ; then
3507
])# _LT_AC_PROG_CXXCPP
3511
# enable support for Fortran 77 libraries
3512
AC_DEFUN([AC_LIBTOOL_F77],
3513
[AC_REQUIRE([_LT_AC_LANG_F77])
3519
AC_DEFUN([_LT_AC_LANG_F77],
3520
[AC_REQUIRE([AC_PROG_F77])
3521
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3527
# enable support for GCJ libraries
3528
AC_DEFUN([AC_LIBTOOL_GCJ],
3529
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3535
AC_DEFUN([_LT_AC_LANG_GCJ],
3536
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3537
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3538
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3539
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3540
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3541
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3542
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3548
# enable support for Windows resource files
3549
AC_DEFUN([AC_LIBTOOL_RC],
3550
[AC_REQUIRE([LT_AC_PROG_RC])
3551
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3555
# AC_LIBTOOL_LANG_C_CONFIG
3556
# ------------------------
3557
# Ensure that the configuration vars for the C compiler are
3558
# suitably defined. Those variables are subsequently used by
3559
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3560
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3561
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3565
# Source file extension for C test sources.
3568
# Object file extension for compiled C test sources.
3570
_LT_AC_TAGVAR(objext, $1)=$objext
3572
# Code to be used in simple compile tests
3573
lt_simple_compile_test_code="int some_variable = 0;\n"
3575
# Code to be used in simple link tests
3576
lt_simple_link_test_code='int main(){return(0);}\n'
3580
# save warnings/boilerplate of simple test code
3581
_LT_COMPILER_BOILERPLATE
3582
_LT_LINKER_BOILERPLATE
3584
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3585
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3586
AC_LIBTOOL_PROG_CC_C_O($1)
3587
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3588
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3589
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3590
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3591
AC_LIBTOOL_SYS_LIB_STRIP
3592
AC_LIBTOOL_DLOPEN_SELF
3594
# Report which library types will actually be built
3595
AC_MSG_CHECKING([if libtool supports shared libraries])
3596
AC_MSG_RESULT([$can_build_shared])
3598
AC_MSG_CHECKING([whether to build shared libraries])
3599
test "$can_build_shared" = "no" && enable_shared=no
3601
# On AIX, shared libraries and static libraries use the same namespace, and
3602
# are all built from PIC.
3605
test "$enable_shared" = yes && enable_static=no
3606
if test -n "$RANLIB"; then
3607
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3608
postinstall_cmds='$RANLIB $lib'
3613
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3614
test "$enable_shared" = yes && enable_static=no
3618
AC_MSG_RESULT([$enable_shared])
3620
AC_MSG_CHECKING([whether to build static libraries])
3621
# Make sure either enable_shared or enable_static is yes.
3622
test "$enable_shared" = yes || enable_static=yes
3623
AC_MSG_RESULT([$enable_static])
3625
AC_LIBTOOL_CONFIG($1)
3629
])# AC_LIBTOOL_LANG_C_CONFIG
3632
# AC_LIBTOOL_LANG_CXX_CONFIG
3633
# --------------------------
3634
# Ensure that the configuration vars for the C compiler are
3635
# suitably defined. Those variables are subsequently used by
3636
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3637
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3638
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3640
AC_REQUIRE([AC_PROG_CXX])
3641
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3643
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3644
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3645
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3646
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3647
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3648
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3649
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3650
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3651
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3652
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3653
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3654
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3655
_LT_AC_TAGVAR(module_cmds, $1)=
3656
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3657
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3658
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3659
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3660
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3661
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3663
# Dependencies to place before and after the object being linked:
3664
_LT_AC_TAGVAR(predep_objects, $1)=
3665
_LT_AC_TAGVAR(postdep_objects, $1)=
3666
_LT_AC_TAGVAR(predeps, $1)=
3667
_LT_AC_TAGVAR(postdeps, $1)=
3668
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3670
# Source file extension for C++ test sources.
3673
# Object file extension for compiled C++ test sources.
3675
_LT_AC_TAGVAR(objext, $1)=$objext
3677
# Code to be used in simple compile tests
3678
lt_simple_compile_test_code="int some_variable = 0;\n"
3680
# Code to be used in simple link tests
3681
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3683
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3686
# save warnings/boilerplate of simple test code
3687
_LT_COMPILER_BOILERPLATE
3688
_LT_LINKER_BOILERPLATE
3690
# Allow CC to be a program name with arguments.
3695
lt_save_with_gnu_ld=$with_gnu_ld
3696
lt_save_path_LD=$lt_cv_path_LD
3697
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3698
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3700
$as_unset lt_cv_prog_gnu_ld
3702
if test -n "${lt_cv_path_LDCXX+set}"; then
3703
lt_cv_path_LD=$lt_cv_path_LDCXX
3705
$as_unset lt_cv_path_LD
3707
test -z "${LDCXX+set}" || LD=$LDCXX
3710
_LT_AC_TAGVAR(compiler, $1)=$CC
3711
_LT_CC_BASENAME([$compiler])
3713
# We don't want -fno-exception wen compiling C++ code, so set the
3714
# no_builtin_flag separately
3715
if test "$GXX" = yes; then
3716
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3718
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3721
if test "$GXX" = yes; then
3722
# Set up default GNU C++ configuration
3726
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3727
# archiving commands below assume that GNU ld is being used.
3728
if test "$with_gnu_ld" = yes; then
3729
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3730
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3732
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3733
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3735
# If archive_cmds runs LD, not CC, wlarc should be empty
3736
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3737
# investigate it a little bit more. (MM)
3740
# ancient GNU ld didn't support --whole-archive et. al.
3741
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3742
grep 'no-whole-archive' > /dev/null; then
3743
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3745
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3751
# A generic and very simple default shared library creation
3752
# command for GNU C++ for the case where it uses the native
3753
# linker, instead of GNU ld. If possible, this setting should
3754
# overridden to take advantage of the native linker features on
3755
# the platform it is being used on.
3756
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3759
# Commands to make compiler produce verbose output that lists
3760
# what "hidden" libraries, object files and flags are used when
3761
# linking a shared library.
3762
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3770
# PORTME: fill in a description of your system's C++ link characteristics
3771
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3772
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3775
# FIXME: insert proper C++ library support
3776
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3779
if test "$host_cpu" = ia64; then
3780
# On IA64, the linker does run time linking by default, so we don't
3781
# have to do anything special.
3782
aix_use_runtimelinking=no
3783
exp_sym_flag='-Bexport'
3786
aix_use_runtimelinking=no
3788
# Test if we are trying to use run time linking or normal
3789
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3790
# need to do runtime linking.
3791
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3792
for ld_flag in $LDFLAGS; do
3795
aix_use_runtimelinking=yes
3803
exp_sym_flag='-bexport'
3804
no_entry_flag='-bnoentry'
3807
# When large executables or shared objects are built, AIX ld can
3808
# have problems creating the table of contents. If linking a library
3809
# or program results in "error TOC overflow" add -mminimal-toc to
3810
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3811
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3813
_LT_AC_TAGVAR(archive_cmds, $1)=''
3814
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3815
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3816
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3818
if test "$GXX" = yes; then
3819
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3820
# We only want to do this on AIX 4.2 and lower, the check
3821
# below for broken collect2 doesn't work under 4.3+
3822
collect2name=`${CC} -print-prog-name=collect2`
3823
if test -f "$collect2name" && \
3824
strings "$collect2name" | grep resolve_lib_name >/dev/null
3826
# We have reworked collect2
3827
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3829
# We have old collect2
3830
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3831
# It fails to find uninstalled libraries when the uninstalled
3832
# path is not listed in the libpath. Setting hardcode_minus_L
3833
# to unsupported forces relinking
3834
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3835
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3836
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3840
shared_flag='-shared'
3841
if test "$aix_use_runtimelinking" = yes; then
3842
shared_flag="$shared_flag "'${wl}-G'
3846
if test "$host_cpu" = ia64; then
3847
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3848
# chokes on -Wl,-G. The following line is correct:
3851
if test "$aix_use_runtimelinking" = yes; then
3852
shared_flag='${wl}-G'
3854
shared_flag='${wl}-bM:SRE'
3859
# It seems that -bexpall does not export symbols beginning with
3860
# underscore (_), so it is better to generate a list of symbols to export.
3861
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3862
if test "$aix_use_runtimelinking" = yes; then
3863
# Warning - without using the other runtime loading flags (-brtl),
3864
# -berok will link without error, but may produce a broken library.
3865
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3866
# Determine the default libpath from the value encoded in an empty executable.
3867
_LT_AC_SYS_LIBPATH_AIX
3868
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3870
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3872
if test "$host_cpu" = ia64; then
3873
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3874
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3875
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3877
# Determine the default libpath from the value encoded in an empty executable.
3878
_LT_AC_SYS_LIBPATH_AIX
3879
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3880
# Warning - without using the other run time loading flags,
3881
# -berok will link without error, but may produce a broken library.
3882
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3883
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3884
# Exported symbols can be pulled into shared objects from archives
3885
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3886
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3887
# This is similar to how AIX traditionally builds its shared libraries.
3888
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3894
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3895
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3896
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3897
# support --undefined. This deserves some investigation. FIXME
3898
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3900
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3905
case $cc_basename in
3907
# FIXME: insert proper C++ library support
3908
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3913
cygwin* | mingw* | pw32*)
3914
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3915
# as there is no search path for DLLs.
3916
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3917
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3918
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3919
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3921
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3922
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3923
# If the export-symbols file already is a .def file (1st line
3924
# is EXPORTS), use it as is; otherwise, prepend...
3925
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3926
cp $export_symbols $output_objdir/$soname.def;
3928
echo EXPORTS > $output_objdir/$soname.def;
3929
cat $export_symbols >> $output_objdir/$soname.def;
3931
$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'
3933
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3936
darwin* | rhapsody*)
3938
rhapsody* | darwin1.[[012]])
3939
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3942
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3943
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3945
case ${MACOSX_DEPLOYMENT_TARGET} in
3947
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3950
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3956
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3957
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3958
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3959
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3960
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3961
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3963
if test "$GXX" = yes ; then
3964
lt_int_apple_cc_single_mod=no
3965
output_verbose_link_cmd='echo'
3966
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3967
lt_int_apple_cc_single_mod=yes
3969
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3970
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3972
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3974
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3975
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3976
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3977
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3979
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3981
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3983
case $cc_basename in
3985
output_verbose_link_cmd='echo'
3986
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3987
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3988
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3989
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3990
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3993
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4000
case $cc_basename in
4002
# FIXME: insert proper C++ library support
4003
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4006
# Green Hills C++ Compiler
4007
# FIXME: insert proper C++ library support
4008
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4011
# FIXME: insert proper C++ library support
4012
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4017
# C++ shared libraries reported to be fairly broken before switch to ELF
4018
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4021
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4023
freebsd* | kfreebsd*-gnu | dragonfly*)
4024
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4026
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4031
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4032
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4033
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4034
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4035
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4036
# but as the default
4037
# location of the library.
4039
case $cc_basename in
4041
# FIXME: insert proper C++ library support
4042
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4045
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4046
# Commands to make compiler produce verbose output that lists
4047
# what "hidden" libraries, object files and flags are used when
4048
# linking a shared library.
4050
# There doesn't appear to be a way to prevent this compiler from
4051
# explicitly linking system object files so we need to strip them
4052
# from the output so that they don't get included in the library
4054
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4057
if test "$GXX" = yes; then
4058
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4060
# FIXME: insert proper C++ library support
4061
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4067
if test $with_gnu_ld = no; then
4068
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4069
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4073
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4076
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4082
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4083
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4086
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4087
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4088
# but as the default
4089
# location of the library.
4093
case $cc_basename in
4095
# FIXME: insert proper C++ library support
4096
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4101
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4104
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4107
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4110
# Commands to make compiler produce verbose output that lists
4111
# what "hidden" libraries, object files and flags are used when
4112
# linking a shared library.
4114
# There doesn't appear to be a way to prevent this compiler from
4115
# explicitly linking system object files so we need to strip them
4116
# from the output so that they don't get included in the library
4118
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4121
if test "$GXX" = yes; then
4122
if test $with_gnu_ld = no; then
4125
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4128
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4131
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4136
# FIXME: insert proper C++ library support
4137
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4143
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4144
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4145
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4146
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4147
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4148
# Instead, shared libraries are loaded at an image base (0x10000000 by
4149
# default) and relocated if they conflict, which is a slow very memory
4150
# consuming and fragmenting process. To avoid this, we pick a random,
4151
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4152
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4153
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4154
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4157
case $cc_basename in
4160
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4162
# Archives containing C++ object files must be created using
4163
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4164
# necessary to make sure instantiated templates are included
4166
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4169
if test "$GXX" = yes; then
4170
if test "$with_gnu_ld" = no; then
4171
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4173
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4176
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4179
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4180
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4183
case $cc_basename in
4185
# Kuck and Associates, Inc. (KAI) C++ Compiler
4187
# KCC will only create a shared library if the output file
4188
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4189
# to its proper name (with version) after linking.
4190
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4191
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4192
# Commands to make compiler produce verbose output that lists
4193
# what "hidden" libraries, object files and flags are used when
4194
# linking a shared library.
4196
# There doesn't appear to be a way to prevent this compiler from
4197
# explicitly linking system object files so we need to strip them
4198
# from the output so that they don't get included in the library
4200
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4202
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4203
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4205
# Archives containing C++ object files must be created using
4206
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4207
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4212
# version 8.0 and above of icpc choke on multiply defined symbols
4213
# if we add $predep_objects and $postdep_objects, however 7.1 and
4214
# earlier do not add the objects themselves.
4215
case `$CC -V 2>&1` in
4217
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4218
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4220
*) # Version 8.0 or newer
4223
ia64*) tmp_idyn=' -i_dynamic';;
4225
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4226
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4229
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4230
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4231
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4232
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4235
# Portland Group C++ compiler
4236
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4237
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4239
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4240
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4241
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4245
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4246
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4248
runpath_var=LD_RUN_PATH
4249
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4250
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4252
# Commands to make compiler produce verbose output that lists
4253
# what "hidden" libraries, object files and flags are used when
4254
# linking a shared library.
4256
# There doesn't appear to be a way to prevent this compiler from
4257
# explicitly linking system object files so we need to strip them
4258
# from the output so that they don't get included in the library
4260
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4265
# FIXME: insert proper C++ library support
4266
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4269
# FIXME: insert proper C++ library support
4270
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4273
case $cc_basename in
4275
# FIXME: insert proper C++ library support
4276
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4279
# FIXME: insert proper C++ library support
4280
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4285
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4286
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4288
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4289
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4290
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4292
# Workaround some broken pre-1.5 toolchains
4293
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4296
# C++ shared libraries are fairly broken
4297
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4300
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4301
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4302
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4303
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4304
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4305
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4306
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4307
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4309
output_verbose_link_cmd='echo'
4312
case $cc_basename in
4314
# Kuck and Associates, Inc. (KAI) C++ Compiler
4316
# KCC will only create a shared library if the output file
4317
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4318
# to its proper name (with version) after linking.
4319
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4321
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4322
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4324
# Archives containing C++ object files must be created using
4325
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4326
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4330
# Rational C++ 2.4.1
4331
# FIXME: insert proper C++ library support
4332
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4335
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4336
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4338
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4339
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4341
# Commands to make compiler produce verbose output that lists
4342
# what "hidden" libraries, object files and flags are used when
4343
# linking a shared library.
4345
# There doesn't appear to be a way to prevent this compiler from
4346
# explicitly linking system object files so we need to strip them
4347
# from the output so that they don't get included in the library
4349
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4352
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4353
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4354
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4356
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4357
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4359
# Commands to make compiler produce verbose output that lists
4360
# what "hidden" libraries, object files and flags are used when
4361
# linking a shared library.
4362
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4365
# FIXME: insert proper C++ library support
4366
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4372
case $cc_basename in
4374
# Kuck and Associates, Inc. (KAI) C++ Compiler
4376
# KCC will only create a shared library if the output file
4377
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4378
# to its proper name (with version) after linking.
4379
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4381
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4382
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4384
# Archives containing C++ object files must be created using
4385
# the KAI C++ compiler.
4386
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4389
# Rational C++ 2.4.1
4390
# FIXME: insert proper C++ library support
4391
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4394
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4395
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4396
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4397
echo "-hidden">> $lib.exp~
4398
$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~
4401
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4402
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4404
# Commands to make compiler produce verbose output that lists
4405
# what "hidden" libraries, object files and flags are used when
4406
# linking a shared library.
4408
# There doesn't appear to be a way to prevent this compiler from
4409
# explicitly linking system object files so we need to strip them
4410
# from the output so that they don't get included in the library
4412
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4415
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4416
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4417
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4419
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4420
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4422
# Commands to make compiler produce verbose output that lists
4423
# what "hidden" libraries, object files and flags are used when
4424
# linking a shared library.
4425
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4428
# FIXME: insert proper C++ library support
4429
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4435
# FIXME: insert proper C++ library support
4436
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4439
case $cc_basename in
4442
# FIXME: insert proper C++ library support
4443
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4447
# FIXME: insert proper C++ library support
4448
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4451
# FIXME: insert proper C++ library support
4452
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4457
case $cc_basename in
4459
# Sun C++ 4.2, 5.x and Centerline C++
4460
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4461
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4462
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4463
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4464
$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'
4466
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4467
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4469
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4471
# The C++ compiler is used as linker so we must use $wl
4472
# flag to pass the commands to the underlying system
4473
# linker. We must also pass each convience library through
4474
# to the system linker between allextract/defaultextract.
4475
# The C++ compiler will combine linker options so we
4476
# cannot just pass the convience library names through
4478
# Supported since Solaris 2.6 (maybe 2.5.1?)
4479
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4482
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4484
output_verbose_link_cmd='echo'
4486
# Archives containing C++ object files must be created using
4487
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4488
# necessary to make sure instantiated templates are included
4490
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4493
# Green Hills C++ Compiler
4494
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4496
# The C++ compiler must be used to create the archive.
4497
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4500
# GNU C++ compiler with Solaris linker
4501
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4502
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4503
if $CC --version | grep -v '^2\.7' > /dev/null; then
4504
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4505
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4506
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4508
# Commands to make compiler produce verbose output that lists
4509
# what "hidden" libraries, object files and flags are used when
4510
# linking a shared library.
4511
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4513
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4515
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4516
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4517
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4519
# Commands to make compiler produce verbose output that lists
4520
# what "hidden" libraries, object files and flags are used when
4521
# linking a shared library.
4522
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4525
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4530
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4531
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4532
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4533
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4534
runpath_var='LD_RUN_PATH'
4536
case $cc_basename in
4538
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4539
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4542
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4543
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4547
sysv5* | sco3.2v5* | sco5v6*)
4548
# Note: We can NOT use -z defs as we might desire, because we do not
4549
# link with -lc, and that would cause any symbols used from libc to
4550
# always be unresolved, which means just about no library would
4551
# ever link correctly. If we're not using GNU ld we use -z text
4552
# though, which does catch some bad symbols but isn't as heavy-handed
4554
# For security reasons, it is highly recommended that you always
4555
# use absolute paths for naming shared libraries, and exclude the
4556
# DT_RUNPATH tag from executables and libraries. But doing so
4557
# requires that you compile everything twice, which is a pain.
4558
# So that behaviour is only enabled if SCOABSPATH is set to a
4559
# non-empty value in the environment. Most likely only useful for
4560
# creating official distributions of packages.
4561
# This is a hack until libtool officially supports absolute path
4562
# names for shared libraries.
4563
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4564
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4565
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4566
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4567
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4568
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4569
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4570
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4571
runpath_var='LD_RUN_PATH'
4573
case $cc_basename in
4575
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4576
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4579
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4580
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4585
case $cc_basename in
4587
# NonStop-UX NCC 3.20
4588
# FIXME: insert proper C++ library support
4589
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4592
# FIXME: insert proper C++ library support
4593
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4598
# FIXME: insert proper C++ library support
4599
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4602
# FIXME: insert proper C++ library support
4603
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4606
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4607
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4609
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4610
_LT_AC_TAGVAR(LD, $1)="$LD"
4612
AC_LIBTOOL_POSTDEP_PREDEP($1)
4613
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4614
AC_LIBTOOL_PROG_CC_C_O($1)
4615
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4616
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4617
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4618
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4620
AC_LIBTOOL_CONFIG($1)
4627
with_gnu_ldcxx=$with_gnu_ld
4628
with_gnu_ld=$lt_save_with_gnu_ld
4629
lt_cv_path_LDCXX=$lt_cv_path_LD
4630
lt_cv_path_LD=$lt_save_path_LD
4631
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4632
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4633
])# AC_LIBTOOL_LANG_CXX_CONFIG
4635
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4636
# ------------------------------------
4637
# Figure out "hidden" library dependencies from verbose
4638
# compiler output when linking a shared library.
4639
# Parse the compiler output and extract the necessary
4640
# objects, libraries and library flags.
4641
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4642
dnl we can't use the lt_simple_compile_test_code here,
4643
dnl because it contains code intended for an executable,
4644
dnl not a library. It's possible we should let each
4645
dnl tag define a new lt_????_link_test_code variable,
4646
dnl but it's only used here...
4647
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4649
void foo (void) { a = 0; }
4651
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4655
Foo (void) { a = 0; }
4660
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4668
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4671
public void bar (void) {
4677
dnl Parse the compiler output and extract the necessary
4678
dnl objects, libraries and library flags.
4679
if AC_TRY_EVAL(ac_compile); then
4680
# Parse the compiler output and extract the necessary
4681
# objects, libraries and library flags.
4683
# Sentinel used to keep track of whether or not we are before
4684
# the conftest object file.
4685
pre_test_object_deps_done=no
4687
# The `*' in the case matches for architectures that use `case' in
4688
# $output_verbose_cmd can trigger glob expansion during the loop
4689
# eval without this substitution.
4690
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4692
for p in `eval $output_verbose_link_cmd`; do
4696
# Some compilers place space between "-{L,R}" and the path.
4699
|| test $p = "-R"; then
4706
if test "$pre_test_object_deps_done" = no; then
4709
# Internal compiler library paths should come after those
4710
# provided the user. The postdeps already come after the
4711
# user supplied libs so there is no need to process them.
4712
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4713
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4715
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4718
# The "-l" case would never come before the object being
4719
# linked, so don't bother handling this case.
4722
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4723
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4725
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4731
# This assumes that the test object file only shows up
4732
# once in the compiler output.
4733
if test "$p" = "conftest.$objext"; then
4734
pre_test_object_deps_done=yes
4738
if test "$pre_test_object_deps_done" = no; then
4739
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4740
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4742
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4745
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4746
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4748
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4753
*) ;; # Ignore the rest.
4761
echo "libtool.m4: error: problem compiling $1 test program"
4764
$rm -f confest.$objext
4766
# PORTME: override above test on systems where it is broken
4770
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4771
# hack all around it, let's just trust "g++" to DTRT.
4772
_LT_AC_TAGVAR(predep_objects,$1)=
4773
_LT_AC_TAGVAR(postdep_objects,$1)=
4774
_LT_AC_TAGVAR(postdeps,$1)=
4778
case $cc_basename in
4780
# Adding this requires a known-good setup of shared libraries for
4781
# Sun compiler versions before 5.6, else PIC objects from an old
4782
# archive will be linked into the output, leading to subtle bugs.
4783
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4790
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4791
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4793
])# AC_LIBTOOL_POSTDEP_PREDEP
4795
# AC_LIBTOOL_LANG_F77_CONFIG
4796
# --------------------------
4797
# Ensure that the configuration vars for the C compiler are
4798
# suitably defined. Those variables are subsequently used by
4799
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4800
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4801
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4802
[AC_REQUIRE([AC_PROG_F77])
4803
AC_LANG_PUSH(Fortran 77)
4805
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4806
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4807
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4808
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4809
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4810
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4811
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4812
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4813
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4814
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4815
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4816
_LT_AC_TAGVAR(module_cmds, $1)=
4817
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4818
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4819
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4820
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4821
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4822
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4824
# Source file extension for f77 test sources.
4827
# Object file extension for compiled f77 test sources.
4829
_LT_AC_TAGVAR(objext, $1)=$objext
4831
# Code to be used in simple compile tests
4832
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4834
# Code to be used in simple link tests
4835
lt_simple_link_test_code=" program t\n end\n"
4837
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4840
# save warnings/boilerplate of simple test code
4841
_LT_COMPILER_BOILERPLATE
4842
_LT_LINKER_BOILERPLATE
4844
# Allow CC to be a program name with arguments.
4848
_LT_AC_TAGVAR(compiler, $1)=$CC
4849
_LT_CC_BASENAME([$compiler])
4851
AC_MSG_CHECKING([if libtool supports shared libraries])
4852
AC_MSG_RESULT([$can_build_shared])
4854
AC_MSG_CHECKING([whether to build shared libraries])
4855
test "$can_build_shared" = "no" && enable_shared=no
4857
# On AIX, shared libraries and static libraries use the same namespace, and
4858
# are all built from PIC.
4861
test "$enable_shared" = yes && enable_static=no
4862
if test -n "$RANLIB"; then
4863
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4864
postinstall_cmds='$RANLIB $lib'
4868
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4869
test "$enable_shared" = yes && enable_static=no
4873
AC_MSG_RESULT([$enable_shared])
4875
AC_MSG_CHECKING([whether to build static libraries])
4876
# Make sure either enable_shared or enable_static is yes.
4877
test "$enable_shared" = yes || enable_static=yes
4878
AC_MSG_RESULT([$enable_static])
4880
_LT_AC_TAGVAR(GCC, $1)="$G77"
4881
_LT_AC_TAGVAR(LD, $1)="$LD"
4883
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4884
AC_LIBTOOL_PROG_CC_C_O($1)
4885
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4886
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4887
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4888
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4890
AC_LIBTOOL_CONFIG($1)
4894
])# AC_LIBTOOL_LANG_F77_CONFIG
4897
# AC_LIBTOOL_LANG_GCJ_CONFIG
4898
# --------------------------
4899
# Ensure that the configuration vars for the C compiler are
4900
# suitably defined. Those variables are subsequently used by
4901
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4902
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4903
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4906
# Source file extension for Java test sources.
4909
# Object file extension for compiled Java test sources.
4911
_LT_AC_TAGVAR(objext, $1)=$objext
4913
# Code to be used in simple compile tests
4914
lt_simple_compile_test_code="class foo {}\n"
4916
# Code to be used in simple link tests
4917
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4919
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4922
# save warnings/boilerplate of simple test code
4923
_LT_COMPILER_BOILERPLATE
4924
_LT_LINKER_BOILERPLATE
4926
# Allow CC to be a program name with arguments.
4930
_LT_AC_TAGVAR(compiler, $1)=$CC
4931
_LT_CC_BASENAME([$compiler])
4933
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4934
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4936
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4938
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4939
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4940
AC_LIBTOOL_PROG_CC_C_O($1)
4941
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4942
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4943
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4944
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4946
AC_LIBTOOL_CONFIG($1)
4950
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4953
# AC_LIBTOOL_LANG_RC_CONFIG
4954
# -------------------------
4955
# Ensure that the configuration vars for the Windows resource compiler are
4956
# suitably defined. Those variables are subsequently used by
4957
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4958
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4959
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4962
# Source file extension for RC test sources.
4965
# Object file extension for compiled RC test sources.
4967
_LT_AC_TAGVAR(objext, $1)=$objext
4969
# Code to be used in simple compile tests
4970
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4972
# Code to be used in simple link tests
4973
lt_simple_link_test_code="$lt_simple_compile_test_code"
4975
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4978
# save warnings/boilerplate of simple test code
4979
_LT_COMPILER_BOILERPLATE
4980
_LT_LINKER_BOILERPLATE
4982
# Allow CC to be a program name with arguments.
4986
_LT_AC_TAGVAR(compiler, $1)=$CC
4987
_LT_CC_BASENAME([$compiler])
4988
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4990
AC_LIBTOOL_CONFIG($1)
4994
])# AC_LIBTOOL_LANG_RC_CONFIG
4997
# AC_LIBTOOL_CONFIG([TAGNAME])
4998
# ----------------------------
4999
# If TAGNAME is not passed, then create an initial libtool script
5000
# with a default configuration from the untagged config vars. Otherwise
5001
# add code to config.status for appending the configuration named by
5002
# TAGNAME from the matching tagged config vars.
5003
AC_DEFUN([AC_LIBTOOL_CONFIG],
5004
[# The else clause should only fire when bootstrapping the
5005
# libtool distribution, otherwise you forgot to ship ltmain.sh
5006
# with your package, and you will get complaints that there are
5007
# no rules to generate ltmain.sh.
5008
if test -f "$ltmain"; then
5009
# See if we are running on zsh, and set the options which allow our commands through
5010
# without removal of \ escapes.
5011
if test -n "${ZSH_VERSION+set}" ; then
5012
setopt NO_GLOB_SUBST
5014
# Now quote all the things that may contain metacharacters while being
5015
# careful not to overquote the AC_SUBSTed values. We take copies of the
5016
# variables and quote the copies for generation of the libtool script.
5017
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5019
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5020
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5021
deplibs_check_method reload_flag reload_cmds need_locks \
5022
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5023
lt_cv_sys_global_symbol_to_c_name_address \
5024
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5025
old_postinstall_cmds old_postuninstall_cmds \
5026
_LT_AC_TAGVAR(compiler, $1) \
5027
_LT_AC_TAGVAR(CC, $1) \
5028
_LT_AC_TAGVAR(LD, $1) \
5029
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5030
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5031
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5032
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5033
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5034
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5035
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5036
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5037
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5038
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5039
_LT_AC_TAGVAR(predep_objects, $1) \
5040
_LT_AC_TAGVAR(postdep_objects, $1) \
5041
_LT_AC_TAGVAR(predeps, $1) \
5042
_LT_AC_TAGVAR(postdeps, $1) \
5043
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5044
_LT_AC_TAGVAR(archive_cmds, $1) \
5045
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5046
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5047
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5048
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5049
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5050
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5051
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5052
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5053
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5054
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5055
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5056
_LT_AC_TAGVAR(module_cmds, $1) \
5057
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5058
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5059
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5060
_LT_AC_TAGVAR(include_expsyms, $1); do
5063
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5064
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5065
_LT_AC_TAGVAR(archive_cmds, $1) | \
5066
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5067
_LT_AC_TAGVAR(module_cmds, $1) | \
5068
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5069
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5070
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5071
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5072
postinstall_cmds | postuninstall_cmds | \
5073
old_postinstall_cmds | old_postuninstall_cmds | \
5074
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5075
# Double-quote double-evaled strings.
5076
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5079
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5085
*'\[$]0 --fallback-echo"')
5086
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5091
[cfgfile="${ofile}T"
5092
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5094
AC_MSG_NOTICE([creating $ofile])],
5097
cat <<__EOF__ >> "$cfgfile"
5101
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5102
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5103
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5105
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5106
# Free Software Foundation, Inc.
5108
# This file is part of GNU Libtool:
5109
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5111
# This program is free software; you can redistribute it and/or modify
5112
# it under the terms of the GNU General Public License as published by
5113
# the Free Software Foundation; either version 2 of the License, or
5114
# (at your option) any later version.
5116
# This program is distributed in the hope that it will be useful, but
5117
# WITHOUT ANY WARRANTY; without even the implied warranty of
5118
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5119
# General Public License for more details.
5121
# You should have received a copy of the GNU General Public License
5122
# along with this program; if not, write to the Free Software
5123
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5125
# As a special exception to the GNU General Public License, if you
5126
# distribute this file as part of a program that contains a
5127
# configuration script generated by Autoconf, you may include it under
5128
# the same distribution terms that you use for the rest of that program.
5130
# A sed program that does not truncate output.
5133
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5134
Xsed="$SED -e 1s/^X//"
5136
# The HP-UX ksh and POSIX shell print the target directory to stdout
5138
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5140
# The names of the tagged configurations supported by this script.
5143
# ### BEGIN LIBTOOL CONFIG],
5144
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5146
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5148
# Shell to use when invoking shell scripts.
5151
# Whether or not to build shared libraries.
5152
build_libtool_libs=$enable_shared
5154
# Whether or not to build static libraries.
5155
build_old_libs=$enable_static
5157
# Whether or not to add -lc for building shared libraries.
5158
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5160
# Whether or not to disallow shared libs when runtime libs are static
5161
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5163
# Whether or not to optimize for fast installation.
5164
fast_install=$enable_fast_install
5167
host_alias=$host_alias
5172
build_alias=$build_alias
5176
# An echo program that does not interpret backslashes.
5181
AR_FLAGS=$lt_AR_FLAGS
5186
# LTCC compiler flags.
5187
LTCFLAGS=$lt_LTCFLAGS
5189
# A language-specific compiler.
5190
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5192
# Is the compiler the GNU C compiler?
5193
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5198
# The linker used to build libraries.
5199
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5201
# Whether we need hard or soft links.
5204
# A BSD-compatible nm program.
5207
# A symbol stripping program
5210
# Used to examine libraries when file_magic_cmd begins "file"
5211
MAGIC_CMD=$MAGIC_CMD
5213
# Used on cygwin: DLL creation program.
5216
# Used on cygwin: object dumper.
5219
# Used on cygwin: assembler.
5222
# The name of the directory that contains temporary libtool files.
5225
# How to create reloadable object files.
5226
reload_flag=$lt_reload_flag
5227
reload_cmds=$lt_reload_cmds
5229
# How to pass a linker flag through the compiler.
5230
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5232
# Object file suffix (normally "o").
5235
# Old archive suffix (normally "a").
5238
# Shared library suffix (normally ".so").
5239
shrext_cmds='$shrext_cmds'
5241
# Executable file suffix (normally "").
5244
# Additional compiler flags for building library objects.
5245
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5248
# What is the maximum length of a command?
5249
max_cmd_len=$lt_cv_sys_max_cmd_len
5251
# Does compiler simultaneously support -c and -o options?
5252
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5254
# Must we lock files when doing compilation?
5255
need_locks=$lt_need_locks
5257
# Do we need the lib prefix for modules?
5258
need_lib_prefix=$need_lib_prefix
5260
# Do we need a version for libraries?
5261
need_version=$need_version
5263
# Whether dlopen is supported.
5264
dlopen_support=$enable_dlopen
5266
# Whether dlopen of programs is supported.
5267
dlopen_self=$enable_dlopen_self
5269
# Whether dlopen of statically linked programs is supported.
5270
dlopen_self_static=$enable_dlopen_self_static
5272
# Compiler flag to prevent dynamic linking.
5273
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5275
# Compiler flag to turn off builtin functions.
5276
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5278
# Compiler flag to allow reflexive dlopens.
5279
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5281
# Compiler flag to generate shared objects directly from archives.
5282
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5284
# Compiler flag to generate thread-safe objects.
5285
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5287
# Library versioning type.
5288
version_type=$version_type
5290
# Format of library name prefix.
5291
libname_spec=$lt_libname_spec
5293
# List of archive names. First name is the real one, the rest are links.
5294
# The last name is the one that the linker finds with -lNAME.
5295
library_names_spec=$lt_library_names_spec
5297
# The coded name of the library, if different from the real name.
5298
soname_spec=$lt_soname_spec
5300
# Commands used to build and install an old-style archive.
5302
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5303
old_postinstall_cmds=$lt_old_postinstall_cmds
5304
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5306
# Create an old-style archive from a shared archive.
5307
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5309
# Create a temporary old-style archive to link instead of a shared archive.
5310
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5312
# Commands used to build and install a shared archive.
5313
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5314
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5315
postinstall_cmds=$lt_postinstall_cmds
5316
postuninstall_cmds=$lt_postuninstall_cmds
5318
# Commands used to build a loadable module (assumed same as above if empty)
5319
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5320
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5322
# Commands to strip libraries.
5323
old_striplib=$lt_old_striplib
5324
striplib=$lt_striplib
5326
# Dependencies to place before the objects being linked to create a
5328
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5330
# Dependencies to place after the objects being linked to create a
5332
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5334
# Dependencies to place before the objects being linked to create a
5336
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5338
# Dependencies to place after the objects being linked to create a
5340
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5342
# The library search path used internally by the compiler when linking
5344
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5346
# Method to check whether dependent libraries are shared objects.
5347
deplibs_check_method=$lt_deplibs_check_method
5349
# Command to use when deplibs_check_method == file_magic.
5350
file_magic_cmd=$lt_file_magic_cmd
5352
# Flag that allows shared libraries with undefined symbols to be built.
5353
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5355
# Flag that forces no undefined symbols.
5356
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5358
# Commands used to finish a libtool library installation in a directory.
5359
finish_cmds=$lt_finish_cmds
5361
# Same as above, but a single script fragment to be evaled but not shown.
5362
finish_eval=$lt_finish_eval
5364
# Take the output of nm and produce a listing of raw symbols and C names.
5365
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5367
# Transform the output of nm in a proper C declaration
5368
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5370
# Transform the output of nm in a C name address pair
5371
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5373
# This is the shared library runtime path variable.
5374
runpath_var=$runpath_var
5376
# This is the shared library path variable.
5377
shlibpath_var=$shlibpath_var
5379
# Is shlibpath searched before the hard-coded library search path?
5380
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5382
# How to hardcode a shared library path into an executable.
5383
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5385
# Whether we should hardcode library paths into libraries.
5386
hardcode_into_libs=$hardcode_into_libs
5388
# Flag to hardcode \$libdir into a binary during linking.
5389
# This must work even if \$libdir does not exist.
5390
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5392
# If ld is used when linking, flag to hardcode \$libdir into
5393
# a binary during linking. This must work even if \$libdir does
5395
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5397
# Whether we need a single -rpath flag with a separated argument.
5398
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5400
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5402
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5404
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5406
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5408
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5409
# the resulting binary.
5410
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5412
# Set to yes if building a shared library automatically hardcodes DIR into the library
5413
# and all subsequent libraries and executables linked against it.
5414
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5416
# Variables whose values should be saved in libtool wrapper scripts and
5417
# restored at relink time.
5418
variables_saved_for_relink="$variables_saved_for_relink"
5420
# Whether libtool must link a program against all its dependency libraries.
5421
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5423
# Compile-time system search path for libraries
5424
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5426
# Run-time system search path for libraries
5427
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5429
# Fix the shell variable \$srcfile for the compiler.
5430
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5432
# Set to yes if exported symbols are required.
5433
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5435
# The commands to list exported symbols.
5436
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5438
# The commands to extract the exported symbol list from a shared archive.
5439
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5441
# Symbols that should not be listed in the preloaded symbols.
5442
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5444
# Symbols that must always be exported.
5445
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5448
[# ### END LIBTOOL CONFIG],
5449
[# ### END LIBTOOL TAG CONFIG: $tagname])
5456
cat <<\EOF >> "$cfgfile"
5458
# AIX sometimes has problems with the GCC collect2 program. For some
5459
# reason, if we set the COLLECT_NAMES environment variable, the problems
5460
# vanish in a puff of smoke.
5461
if test "X${COLLECT_NAMES+set}" != Xset; then
5463
export COLLECT_NAMES
5469
# We use sed instead of cat because bash on DJGPP gets confused if
5470
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5471
# text mode, it properly converts lines to CR/LF. This bash problem
5472
# is reportedly fixed, but why not run on old versions too?
5473
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5475
mv -f "$cfgfile" "$ofile" || \
5476
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5480
# If there is no Makefile yet, we rely on a make rule to execute
5481
# `config.status --recheck' to rerun these tests and create the
5482
# libtool script then.
5483
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5484
if test -f "$ltmain_in"; then
5485
test -f Makefile && make "$ltmain"
5488
])# AC_LIBTOOL_CONFIG
5491
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5492
# -------------------------------------------
5493
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5494
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5496
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4349
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4350
dnl aclocal-1.4 backwards compatibility:
4351
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4354
# _LT_COMPILER_NO_RTTI([TAGNAME])
4355
# -------------------------------
4356
m4_defun([_LT_COMPILER_NO_RTTI],
4357
[m4_require([_LT_TAG_COMPILER])dnl
4359
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5498
4361
if test "$GCC" = yes; then
5499
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4362
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5501
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4364
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5502
4365
lt_cv_prog_compiler_rtti_exceptions,
5503
4366
[-fno-rtti -fno-exceptions], [],
5504
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4367
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5506
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5509
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5510
# ---------------------------------
5511
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5512
[AC_REQUIRE([AC_CANONICAL_HOST])
5513
AC_REQUIRE([AC_PROG_NM])
5514
AC_REQUIRE([AC_OBJEXT])
4369
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4370
[Compiler flag to turn off builtin functions])
4371
])# _LT_COMPILER_NO_RTTI
4374
# _LT_CMD_GLOBAL_SYMBOLS
4375
# ----------------------
4376
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4377
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4378
AC_REQUIRE([AC_PROG_CC])dnl
4379
AC_REQUIRE([LT_PATH_NM])dnl
4380
AC_REQUIRE([LT_PATH_LD])dnl
4381
m4_require([_LT_DECL_SED])dnl
4382
m4_require([_LT_DECL_EGREP])dnl
4383
m4_require([_LT_TAG_COMPILER])dnl
5515
4385
# Check for command to grab the raw symbol name followed by C symbol from nm.
5516
4386
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5517
4387
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6098
5039
# +Z the default
6101
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5042
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6104
5045
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6105
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5046
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6108
5049
irix5* | irix6* | nonstopux*)
6109
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5050
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6110
5051
# PIC (with -KPIC) is the default.
6111
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6115
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6116
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5052
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5055
linux* | k*bsd*-gnu)
6120
5056
case $cc_basename in
6122
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6123
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6124
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5057
# old Intel for x86_64 which still supported -KPIC.
5059
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5060
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5061
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5063
# icc used to be incompatible with GCC.
5064
# ICC 10 doesn't accept -KPIC any more.
5066
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5067
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5068
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5070
# Lahey Fortran 8.1.
5072
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5073
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5074
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6126
5076
pgcc* | pgf77* | pgf90* | pgf95*)
6127
5077
# Portland Group compilers (*not* the Pentium gcc compiler,
6128
5078
# which looks to be a dead project)
6129
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6130
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6131
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5079
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5080
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5081
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6134
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5084
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6135
5085
# All Alpha code is PIC.
6136
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5086
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5089
# IBM XL C 8.0/Fortran 10.1 on PPC
5090
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5091
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5092
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5095
case `$CC -V 2>&1 | sed 5q` in
5098
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5099
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5100
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5103
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5104
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5105
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5106
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5114
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5115
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5119
# QNX uses GNU C++, but need to define -shared option too, otherwise
5121
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6141
5124
osf3* | osf4* | osf5*)
6142
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5125
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6143
5126
# All OSF/1 code is PIC.
6144
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5127
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5131
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6148
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6149
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5135
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5136
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6150
5137
case $cc_basename in
6151
5138
f77* | f90* | f95*)
6152
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5139
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6154
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5141
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6159
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6160
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6161
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5146
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5147
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5148
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6164
5151
sysv4 | sysv4.2uw2* | sysv4.3*)
6165
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6166
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6167
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5152
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5153
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5154
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6171
5158
if test -d /usr/nec ;then
6172
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6173
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5159
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5160
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6177
5164
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6178
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6179
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6180
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5165
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5166
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5167
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6184
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6185
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5171
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5172
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6189
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6190
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5176
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5177
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6194
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5181
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6199
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5187
# For platforms which do not support PIC, -DPIC is meaningless:
5189
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5192
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5195
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5196
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5197
[How to pass a linker flag through the compiler])
6202
5200
# Check to make sure the PIC flag actually works.
6204
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6205
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6206
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6207
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6208
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5202
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5203
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5204
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5205
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5206
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6210
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5208
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6212
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6213
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5210
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5211
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6216
# For platforms which do not support PIC, -DPIC is meaningless:
6218
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6221
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5213
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5214
[Additional compiler flags for building library objects])
6226
5217
# Check to make sure the static flag actually works.
6228
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6229
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6230
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5219
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5220
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5221
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6231
5222
$lt_tmp_static_flag,
6233
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6237
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6238
# ------------------------------------
5224
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5225
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5226
[Compiler flag to prevent dynamic linking])
5227
])# _LT_COMPILER_PIC
5230
# _LT_LINKER_SHLIBS([TAGNAME])
5231
# ----------------------------
6239
5232
# See if the linker supports building shared libraries.
6240
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6241
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6243
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5233
m4_defun([_LT_LINKER_SHLIBS],
5234
[AC_REQUIRE([LT_PATH_LD])dnl
5235
AC_REQUIRE([LT_PATH_NM])dnl
5236
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5237
m4_require([_LT_DECL_EGREP])dnl
5238
m4_require([_LT_DECL_SED])dnl
5239
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5240
m4_require([_LT_TAG_COMPILER])dnl
5241
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5242
m4_if([$1], [CXX], [
5243
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6244
5244
case $host_os in
6246
5246
# If we're using GNU nm, then we don't want the "-C" option.
6247
5247
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6248
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6249
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5248
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5249
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6251
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5251
_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'
6255
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5255
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6258
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5257
cygwin* | mingw* | cegcc*)
5258
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6261
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5261
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5264
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6266
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6267
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6268
_LT_AC_TAGVAR(archive_cmds, $1)=
6269
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6270
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6271
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6272
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6273
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6274
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6275
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6276
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6277
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6278
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6279
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6280
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6281
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6282
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6283
_LT_AC_TAGVAR(module_cmds, $1)=
6284
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6285
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6286
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5267
_LT_TAGVAR(allow_undefined_flag, $1)=
5268
_LT_TAGVAR(always_export_symbols, $1)=no
5269
_LT_TAGVAR(archive_cmds, $1)=
5270
_LT_TAGVAR(archive_expsym_cmds, $1)=
5271
_LT_TAGVAR(compiler_needs_object, $1)=no
5272
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5273
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5274
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5275
_LT_TAGVAR(hardcode_automatic, $1)=no
5276
_LT_TAGVAR(hardcode_direct, $1)=no
5277
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5278
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5279
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5280
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5281
_LT_TAGVAR(hardcode_minus_L, $1)=no
5282
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5283
_LT_TAGVAR(inherit_rpath, $1)=no
5284
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5285
_LT_TAGVAR(module_cmds, $1)=
5286
_LT_TAGVAR(module_expsym_cmds, $1)=
5287
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5288
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5289
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5290
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6287
5291
# include_expsyms should be a list of space-separated symbols to be *always*
6288
5292
# included in the symbol list
6289
_LT_AC_TAGVAR(include_expsyms, $1)=
5293
_LT_TAGVAR(include_expsyms, $1)=
6290
5294
# exclude_expsyms can be an extended regexp of symbols to exclude
6291
5295
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6292
5296
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6293
5297
# as well as any symbol that contains `d'.
6294
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5298
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6295
5299
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6296
5300
# platforms (ab)use it in PIC code, but their linkers get confused if
6297
5301
# the symbol is explicitly referenced. Since portable code cannot
6298
5302
# rely on this symbol name, it's probably fine to never include it in
6299
5303
# preloaded symbol tables.
5304
# Exclude shared library initialization/finalization symbols.
5305
dnl Note also adjust exclude_expsyms for C++ above.
6300
5306
extract_expsyms_cmds=
6301
# Just being paranoid about ensuring that cc_basename is set.
6302
_LT_CC_BASENAME([$compiler])
6303
5308
case $host_os in
6304
cygwin* | mingw* | pw32*)
5309
cygwin* | mingw* | pw32* | cegcc*)
6305
5310
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6306
5311
# When not using gcc, we currently assume that we are using
6307
5312
# Microsoft Visual C++.
6881
5896
irix5* | irix6* | nonstopux*)
6882
5897
if test "$GCC" = yes; then
6883
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5898
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5899
# Try to use the -exported_symbol ld option, if it does not
5900
# work, assume that -exports_file does not work either and
5901
# implicitly export all symbols.
5902
save_LDFLAGS="$LDFLAGS"
5903
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5904
AC_LINK_IFELSE(int foo(void) {},
5905
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5907
LDFLAGS="$save_LDFLAGS"
6885
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6886
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5909
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5910
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6888
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6889
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6890
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5912
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5913
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5914
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5915
_LT_TAGVAR(inherit_rpath, $1)=yes
5916
_LT_TAGVAR(link_all_deplibs, $1)=yes
6894
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6895
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5920
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5921
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6897
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5923
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6899
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6900
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6901
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5925
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5926
_LT_TAGVAR(hardcode_direct, $1)=yes
5927
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6905
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6906
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6907
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6908
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6909
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5931
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5932
_LT_TAGVAR(hardcode_direct, $1)=yes
5933
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5934
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5935
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6913
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6914
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6915
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6916
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6917
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6918
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6919
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5942
if test -f /usr/libexec/ld.so; then
5943
_LT_TAGVAR(hardcode_direct, $1)=yes
5944
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5945
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5946
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5947
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5948
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5949
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5950
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5953
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5954
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5955
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5958
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5959
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6922
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6923
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6924
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6927
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6928
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5964
_LT_TAGVAR(ld_shlibs, $1)=no
6935
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6936
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6937
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6938
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6939
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5969
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5970
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5971
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5972
_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'
5973
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6943
5977
if test "$GCC" = yes; then
6944
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6945
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5978
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5979
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6947
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6948
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5981
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5982
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6950
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6951
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5984
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5985
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5986
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6954
5989
osf4* | osf5*) # as osf3* with the addition of -msym flag
6955
5990
if test "$GCC" = yes; then
6956
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6957
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6958
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5991
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5992
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5993
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6960
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6961
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6962
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6963
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5995
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5996
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5997
_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~
5998
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6965
6000
# Both c and cxx compiler support -rpath directly
6966
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6001
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6968
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6003
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6004
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6972
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6008
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6973
6009
if test "$GCC" = yes; then
6975
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6976
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6977
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6011
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6012
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6013
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6980
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6981
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6982
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6015
case `$CC -V 2>&1` in
6018
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6019
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6020
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6024
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6025
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6026
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6984
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6985
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6030
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6031
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6986
6032
case $host_os in
6987
6033
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6989
# The compiler driver will combine linker options so we
6990
# cannot just pass the convience library names through
6991
# without $wl, iff we do not link with $LD.
6992
# Luckily, gcc supports the same syntax we need for Sun Studio.
6993
# Supported since Solaris 2.6 (maybe 2.5.1?)
6996
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6998
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6035
# The compiler driver will combine and reorder linker options,
6036
# but understands `-z linker_flag'. GCC discards it without `$wl',
6037
# but is careful enough not to reorder.
6038
# Supported since Solaris 2.6 (maybe 2.5.1?)
6039
if test "$GCC" = yes; then
6040
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6042
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7001
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6046
_LT_TAGVAR(link_all_deplibs, $1)=yes
7005
6050
if test "x$host_vendor" = xsequent; then
7006
6051
# Use $CC to link under sequent, because it throws in some extra .o
7007
6052
# files that make .init and .fini sections work.
7008
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6053
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7010
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6055
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7012
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7013
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7014
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7015
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6057
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6058
_LT_TAGVAR(hardcode_direct, $1)=yes
6059
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6060
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7019
6064
case $host_vendor in
7021
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7022
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6066
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6067
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7025
6070
## LD is ld it makes a PLAMLIB
7026
6071
## CC just makes a GrossModule.
7027
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7028
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7029
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6072
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6073
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6074
_LT_TAGVAR(hardcode_direct, $1)=no
7032
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7033
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6077
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6078
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7036
6081
runpath_var='LD_RUN_PATH'
7037
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6082
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7041
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7042
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7043
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6086
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6087
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6088
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7047
6092
if test -d /usr/nec; then
7048
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7049
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6093
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6094
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7050
6095
runpath_var=LD_RUN_PATH
7051
6096
hardcode_runpath_var=yes
7052
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6097
_LT_TAGVAR(ld_shlibs, $1)=yes
7056
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7057
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7058
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7059
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6101
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6102
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6103
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6104
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7060
6105
runpath_var='LD_RUN_PATH'
7062
6107
if test "$GCC" = yes; then
7063
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7064
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6108
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6109
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7066
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7067
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6111
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6112
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7127
6187
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7128
6188
# to ld, don't add -lc before -lgcc.
7129
6189
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7131
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6191
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7133
6193
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7134
6194
soname=conftest
7136
6196
libobjs=conftest.$ac_objext
7138
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7139
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6198
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6199
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7140
6200
compiler_flags=-v
7141
6201
linker_flags=-v
7143
6203
output_objdir=.
7144
6204
libname=conftest
7145
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7146
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7147
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6205
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6206
_LT_TAGVAR(allow_undefined_flag, $1)=
6207
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7149
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6209
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7151
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6211
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7153
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6213
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7155
6215
cat conftest.err 1>&5
7158
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6218
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7164
])# AC_LIBTOOL_PROG_LD_SHLIBS
7167
# _LT_AC_FILE_LTDLL_C
7168
# -------------------
7169
# Be careful that the start marker always follows a newline.
7170
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7171
# /* ltdll.c starts here */
7172
# #define WIN32_LEAN_AND_MEAN
7173
# #include <windows.h>
7174
# #undef WIN32_LEAN_AND_MEAN
7175
# #include <stdio.h>
7177
# #ifndef __CYGWIN__
7178
# # ifdef __CYGWIN32__
7179
# # define __CYGWIN__ __CYGWIN32__
7183
# #ifdef __cplusplus
7186
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7187
# #ifdef __cplusplus
7192
# #include <cygwin/cygwin_dll.h>
7193
# DECLARE_CYGWIN_DLL( DllMain );
7195
# HINSTANCE __hDllInstance_base;
7198
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7200
# __hDllInstance_base = hInst;
7203
# /* ltdll.c ends here */
7204
])# _LT_AC_FILE_LTDLL_C
7207
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6225
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6226
[Whether or not to add -lc for building shared libraries])
6227
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6228
[enable_shared_with_static_runtimes], [0],
6229
[Whether or not to disallow shared libs when runtime libs are static])
6230
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6231
[Compiler flag to allow reflexive dlopens])
6232
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6233
[Compiler flag to generate shared objects directly from archives])
6234
_LT_TAGDECL([], [compiler_needs_object], [1],
6235
[Whether the compiler copes with passing no objects directly])
6236
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6237
[Create an old-style archive from a shared archive])
6238
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6239
[Create a temporary old-style archive to link instead of a shared archive])
6240
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6241
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6242
_LT_TAGDECL([], [module_cmds], [2],
6243
[Commands used to build a loadable module if different from building
6245
_LT_TAGDECL([], [module_expsym_cmds], [2])
6246
_LT_TAGDECL([], [with_gnu_ld], [1],
6247
[Whether we are building with GNU ld or not])
6248
_LT_TAGDECL([], [allow_undefined_flag], [1],
6249
[Flag that allows shared libraries with undefined symbols to be built])
6250
_LT_TAGDECL([], [no_undefined_flag], [1],
6251
[Flag that enforces no undefined symbols])
6252
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6253
[Flag to hardcode $libdir into a binary during linking.
6254
This must work even if $libdir does not exist])
6255
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6256
[[If ld is used when linking, flag to hardcode $libdir into a binary
6257
during linking. This must work even if $libdir does not exist]])
6258
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6259
[Whether we need a single "-rpath" flag with a separated argument])
6260
_LT_TAGDECL([], [hardcode_direct], [0],
6261
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6262
DIR into the resulting binary])
6263
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6264
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6265
DIR into the resulting binary and the resulting library dependency is
6266
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6267
library is relocated])
6268
_LT_TAGDECL([], [hardcode_minus_L], [0],
6269
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6270
into the resulting binary])
6271
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6272
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6273
into the resulting binary])
6274
_LT_TAGDECL([], [hardcode_automatic], [0],
6275
[Set to "yes" if building a shared library automatically hardcodes DIR
6276
into the library and all subsequent libraries and executables linked
6278
_LT_TAGDECL([], [inherit_rpath], [0],
6279
[Set to yes if linker adds runtime paths of dependent libraries
6280
to runtime path list])
6281
_LT_TAGDECL([], [link_all_deplibs], [0],
6282
[Whether libtool must link a program against all its dependency libraries])
6283
_LT_TAGDECL([], [fix_srcfile_path], [1],
6284
[Fix the shell variable $srcfile for the compiler])
6285
_LT_TAGDECL([], [always_export_symbols], [0],
6286
[Set to "yes" if exported symbols are required])
6287
_LT_TAGDECL([], [export_symbols_cmds], [2],
6288
[The commands to list exported symbols])
6289
_LT_TAGDECL([], [exclude_expsyms], [1],
6290
[Symbols that should not be listed in the preloaded symbols])
6291
_LT_TAGDECL([], [include_expsyms], [1],
6292
[Symbols that must always be exported])
6293
_LT_TAGDECL([], [prelink_cmds], [2],
6294
[Commands necessary for linking programs (against libraries) with templates])
6295
_LT_TAGDECL([], [file_list_spec], [1],
6296
[Specify filename containing input files])
6297
dnl FIXME: Not yet implemented
6298
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6299
dnl [Compiler flag to generate thread safe objects])
6300
])# _LT_LINKER_SHLIBS
6303
# _LT_LANG_C_CONFIG([TAG])
6304
# ------------------------
6305
# Ensure that the configuration variables for a C compiler are suitably
6306
# defined. These variables are subsequently used by _LT_CONFIG to write
6307
# the compiler configuration to `libtool'.
6308
m4_defun([_LT_LANG_C_CONFIG],
6309
[m4_require([_LT_DECL_EGREP])dnl
6313
# Source file extension for C test sources.
6316
# Object file extension for compiled C test sources.
6318
_LT_TAGVAR(objext, $1)=$objext
6320
# Code to be used in simple compile tests
6321
lt_simple_compile_test_code="int some_variable = 0;"
6323
# Code to be used in simple link tests
6324
lt_simple_link_test_code='int main(){return(0);}'
6327
# Save the default compiler, since it gets overwritten when the other
6328
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6329
compiler_DEFAULT=$CC
6331
# save warnings/boilerplate of simple test code
6332
_LT_COMPILER_BOILERPLATE
6333
_LT_LINKER_BOILERPLATE
6335
if test -n "$compiler"; then
6336
_LT_COMPILER_NO_RTTI($1)
6337
_LT_COMPILER_PIC($1)
6338
_LT_COMPILER_C_O($1)
6339
_LT_COMPILER_FILE_LOCKS($1)
6340
_LT_LINKER_SHLIBS($1)
6341
_LT_SYS_DYNAMIC_LINKER($1)
6342
_LT_LINKER_HARDCODE_LIBPATH($1)
6346
# Report which library types will actually be built
6347
AC_MSG_CHECKING([if libtool supports shared libraries])
6348
AC_MSG_RESULT([$can_build_shared])
6350
AC_MSG_CHECKING([whether to build shared libraries])
6351
test "$can_build_shared" = "no" && enable_shared=no
6353
# On AIX, shared libraries and static libraries use the same namespace, and
6354
# are all built from PIC.
6357
test "$enable_shared" = yes && enable_static=no
6358
if test -n "$RANLIB"; then
6359
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6360
postinstall_cmds='$RANLIB $lib'
6365
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6366
test "$enable_shared" = yes && enable_static=no
6370
AC_MSG_RESULT([$enable_shared])
6372
AC_MSG_CHECKING([whether to build static libraries])
6373
# Make sure either enable_shared or enable_static is yes.
6374
test "$enable_shared" = yes || enable_static=yes
6375
AC_MSG_RESULT([$enable_static])
6381
])# _LT_LANG_C_CONFIG
6386
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6387
# compiler, we have our own version here.
6388
m4_defun([_LT_PROG_CXX],
6390
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6392
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6393
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6394
(test "X$CXX" != "Xg++"))) ; then
6397
_lt_caught_CXX_error=yes
6399
popdef([AC_MSG_ERROR])
6402
dnl aclocal-1.4 backwards compatibility:
6403
dnl AC_DEFUN([_LT_PROG_CXX], [])
6406
# _LT_LANG_CXX_CONFIG([TAG])
6407
# --------------------------
6408
# Ensure that the configuration variables for a C++ compiler are suitably
6409
# defined. These variables are subsequently used by _LT_CONFIG to write
6410
# the compiler configuration to `libtool'.
6411
m4_defun([_LT_LANG_CXX_CONFIG],
6412
[AC_REQUIRE([_LT_PROG_CXX])dnl
6413
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6414
m4_require([_LT_DECL_EGREP])dnl
6417
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6418
_LT_TAGVAR(allow_undefined_flag, $1)=
6419
_LT_TAGVAR(always_export_symbols, $1)=no
6420
_LT_TAGVAR(archive_expsym_cmds, $1)=
6421
_LT_TAGVAR(compiler_needs_object, $1)=no
6422
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6423
_LT_TAGVAR(hardcode_direct, $1)=no
6424
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6425
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6426
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6427
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6428
_LT_TAGVAR(hardcode_minus_L, $1)=no
6429
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6430
_LT_TAGVAR(hardcode_automatic, $1)=no
6431
_LT_TAGVAR(inherit_rpath, $1)=no
6432
_LT_TAGVAR(module_cmds, $1)=
6433
_LT_TAGVAR(module_expsym_cmds, $1)=
6434
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6435
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6436
_LT_TAGVAR(no_undefined_flag, $1)=
6437
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6438
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6440
# Source file extension for C++ test sources.
6443
# Object file extension for compiled C++ test sources.
6445
_LT_TAGVAR(objext, $1)=$objext
6447
# No sense in running all these tests if we already determined that
6448
# the CXX compiler isn't working. Some variables (like enable_shared)
6449
# are currently assumed to apply to all compilers on this platform,
6450
# and will be corrupted by setting them based on a non-working compiler.
6451
if test "$_lt_caught_CXX_error" != yes; then
6452
# Code to be used in simple compile tests
6453
lt_simple_compile_test_code="int some_variable = 0;"
6455
# Code to be used in simple link tests
6456
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6458
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6461
# save warnings/boilerplate of simple test code
6462
_LT_COMPILER_BOILERPLATE
6463
_LT_LINKER_BOILERPLATE
6465
# Allow CC to be a program name with arguments.
6470
lt_save_with_gnu_ld=$with_gnu_ld
6471
lt_save_path_LD=$lt_cv_path_LD
6472
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6473
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6475
$as_unset lt_cv_prog_gnu_ld
6477
if test -n "${lt_cv_path_LDCXX+set}"; then
6478
lt_cv_path_LD=$lt_cv_path_LDCXX
6480
$as_unset lt_cv_path_LD
6482
test -z "${LDCXX+set}" || LD=$LDCXX
6485
_LT_TAGVAR(compiler, $1)=$CC
6486
_LT_CC_BASENAME([$compiler])
6488
if test -n "$compiler"; then
6489
# We don't want -fno-exception when compiling C++ code, so set the
6490
# no_builtin_flag separately
6491
if test "$GXX" = yes; then
6492
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6494
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6497
if test "$GXX" = yes; then
6498
# Set up default GNU C++ configuration
6502
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6503
# archiving commands below assume that GNU ld is being used.
6504
if test "$with_gnu_ld" = yes; then
6505
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6506
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6508
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6509
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6511
# If archive_cmds runs LD, not CC, wlarc should be empty
6512
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6513
# investigate it a little bit more. (MM)
6516
# ancient GNU ld didn't support --whole-archive et. al.
6517
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6518
$GREP 'no-whole-archive' > /dev/null; then
6519
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6521
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6527
# A generic and very simple default shared library creation
6528
# command for GNU C++ for the case where it uses the native
6529
# linker, instead of GNU ld. If possible, this setting should
6530
# overridden to take advantage of the native linker features on
6531
# the platform it is being used on.
6532
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6535
# Commands to make compiler produce verbose output that lists
6536
# what "hidden" libraries, object files and flags are used when
6537
# linking a shared library.
6538
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6546
# PORTME: fill in a description of your system's C++ link characteristics
6547
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6548
_LT_TAGVAR(ld_shlibs, $1)=yes
6551
# FIXME: insert proper C++ library support
6552
_LT_TAGVAR(ld_shlibs, $1)=no
6555
if test "$host_cpu" = ia64; then
6556
# On IA64, the linker does run time linking by default, so we don't
6557
# have to do anything special.
6558
aix_use_runtimelinking=no
6559
exp_sym_flag='-Bexport'
6562
aix_use_runtimelinking=no
6564
# Test if we are trying to use run time linking or normal
6565
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6566
# need to do runtime linking.
6567
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6568
for ld_flag in $LDFLAGS; do
6571
aix_use_runtimelinking=yes
6579
exp_sym_flag='-bexport'
6580
no_entry_flag='-bnoentry'
6583
# When large executables or shared objects are built, AIX ld can
6584
# have problems creating the table of contents. If linking a library
6585
# or program results in "error TOC overflow" add -mminimal-toc to
6586
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6587
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6589
_LT_TAGVAR(archive_cmds, $1)=''
6590
_LT_TAGVAR(hardcode_direct, $1)=yes
6591
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6592
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6593
_LT_TAGVAR(link_all_deplibs, $1)=yes
6594
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6596
if test "$GXX" = yes; then
6597
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6598
# We only want to do this on AIX 4.2 and lower, the check
6599
# below for broken collect2 doesn't work under 4.3+
6600
collect2name=`${CC} -print-prog-name=collect2`
6601
if test -f "$collect2name" &&
6602
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6604
# We have reworked collect2
6607
# We have old collect2
6608
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6609
# It fails to find uninstalled libraries when the uninstalled
6610
# path is not listed in the libpath. Setting hardcode_minus_L
6611
# to unsupported forces relinking
6612
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6613
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6614
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6617
shared_flag='-shared'
6618
if test "$aix_use_runtimelinking" = yes; then
6619
shared_flag="$shared_flag "'${wl}-G'
6623
if test "$host_cpu" = ia64; then
6624
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6625
# chokes on -Wl,-G. The following line is correct:
6628
if test "$aix_use_runtimelinking" = yes; then
6629
shared_flag='${wl}-G'
6631
shared_flag='${wl}-bM:SRE'
6636
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6637
# It seems that -bexpall does not export symbols beginning with
6638
# underscore (_), so it is better to generate a list of symbols to
6640
_LT_TAGVAR(always_export_symbols, $1)=yes
6641
if test "$aix_use_runtimelinking" = yes; then
6642
# Warning - without using the other runtime loading flags (-brtl),
6643
# -berok will link without error, but may produce a broken library.
6644
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6645
# Determine the default libpath from the value encoded in an empty
6647
_LT_SYS_MODULE_PATH_AIX
6648
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6650
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6652
if test "$host_cpu" = ia64; then
6653
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6654
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6655
_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"
6657
# Determine the default libpath from the value encoded in an
6659
_LT_SYS_MODULE_PATH_AIX
6660
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6661
# Warning - without using the other run time loading flags,
6662
# -berok will link without error, but may produce a broken library.
6663
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6664
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6665
# Exported symbols can be pulled into shared objects from archives
6666
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6667
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6668
# This is similar to how AIX traditionally builds its shared
6670
_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'
6676
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6677
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6678
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6679
# support --undefined. This deserves some investigation. FIXME
6680
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6682
_LT_TAGVAR(ld_shlibs, $1)=no
6687
case $cc_basename in
6689
# FIXME: insert proper C++ library support
6690
_LT_TAGVAR(ld_shlibs, $1)=no
6695
cygwin* | mingw* | pw32* | cegcc*)
6696
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6697
# as there is no search path for DLLs.
6698
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6699
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6700
_LT_TAGVAR(always_export_symbols, $1)=no
6701
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6703
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6704
_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'
6705
# If the export-symbols file already is a .def file (1st line
6706
# is EXPORTS), use it as is; otherwise, prepend...
6707
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6708
cp $export_symbols $output_objdir/$soname.def;
6710
echo EXPORTS > $output_objdir/$soname.def;
6711
cat $export_symbols >> $output_objdir/$soname.def;
6713
$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'
6715
_LT_TAGVAR(ld_shlibs, $1)=no
6718
darwin* | rhapsody*)
6719
_LT_DARWIN_LINKER_FEATURES($1)
6723
case $cc_basename in
6725
# FIXME: insert proper C++ library support
6726
_LT_TAGVAR(ld_shlibs, $1)=no
6729
# Green Hills C++ Compiler
6730
# FIXME: insert proper C++ library support
6731
_LT_TAGVAR(ld_shlibs, $1)=no
6734
# FIXME: insert proper C++ library support
6735
_LT_TAGVAR(ld_shlibs, $1)=no
6741
# C++ shared libraries reported to be fairly broken before
6743
_LT_TAGVAR(ld_shlibs, $1)=no
6747
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6750
freebsd* | dragonfly*)
6751
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6753
_LT_TAGVAR(ld_shlibs, $1)=yes
6760
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6761
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6762
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6763
_LT_TAGVAR(hardcode_direct, $1)=yes
6764
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6765
# but as the default
6766
# location of the library.
6768
case $cc_basename in
6770
# FIXME: insert proper C++ library support
6771
_LT_TAGVAR(ld_shlibs, $1)=no
6774
_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'
6775
# Commands to make compiler produce verbose output that lists
6776
# what "hidden" libraries, object files and flags are used when
6777
# linking a shared library.
6779
# There doesn't appear to be a way to prevent this compiler from
6780
# explicitly linking system object files so we need to strip them
6781
# from the output so that they don't get included in the library
6783
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6786
if test "$GXX" = yes; then
6787
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6789
# FIXME: insert proper C++ library support
6790
_LT_TAGVAR(ld_shlibs, $1)=no
6797
if test $with_gnu_ld = no; then
6798
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6799
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6805
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6811
_LT_TAGVAR(hardcode_direct, $1)=no
6812
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6815
_LT_TAGVAR(hardcode_direct, $1)=yes
6816
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6817
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6818
# but as the default
6819
# location of the library.
6823
case $cc_basename in
6825
# FIXME: insert proper C++ library support
6826
_LT_TAGVAR(ld_shlibs, $1)=no
6831
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6834
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6837
_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'
6840
# Commands to make compiler produce verbose output that lists
6841
# what "hidden" libraries, object files and flags are used when
6842
# linking a shared library.
6844
# There doesn't appear to be a way to prevent this compiler from
6845
# explicitly linking system object files so we need to strip them
6846
# from the output so that they don't get included in the library
6848
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6851
if test "$GXX" = yes; then
6852
if test $with_gnu_ld = no; then
6855
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6858
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6861
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6866
# FIXME: insert proper C++ library support
6867
_LT_TAGVAR(ld_shlibs, $1)=no
6874
_LT_TAGVAR(hardcode_direct, $1)=no
6875
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6876
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6877
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6878
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6879
# Instead, shared libraries are loaded at an image base (0x10000000 by
6880
# default) and relocated if they conflict, which is a slow very memory
6881
# consuming and fragmenting process. To avoid this, we pick a random,
6882
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6883
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6884
_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'
6885
_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'
6888
case $cc_basename in
6891
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6893
# Archives containing C++ object files must be created using
6894
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6895
# necessary to make sure instantiated templates are included
6897
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6900
if test "$GXX" = yes; then
6901
if test "$with_gnu_ld" = no; then
6902
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6904
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6907
_LT_TAGVAR(link_all_deplibs, $1)=yes
6910
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6911
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6912
_LT_TAGVAR(inherit_rpath, $1)=yes
6915
linux* | k*bsd*-gnu)
6916
case $cc_basename in
6918
# Kuck and Associates, Inc. (KAI) C++ Compiler
6920
# KCC will only create a shared library if the output file
6921
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6922
# to its proper name (with version) after linking.
6923
_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'
6924
_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'
6925
# Commands to make compiler produce verbose output that lists
6926
# what "hidden" libraries, object files and flags are used when
6927
# linking a shared library.
6929
# There doesn't appear to be a way to prevent this compiler from
6930
# explicitly linking system object files so we need to strip them
6931
# from the output so that they don't get included in the library
6933
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6935
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6936
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6938
# Archives containing C++ object files must be created using
6939
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6940
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6945
# version 8.0 and above of icpc choke on multiply defined symbols
6946
# if we add $predep_objects and $postdep_objects, however 7.1 and
6947
# earlier do not add the objects themselves.
6948
case `$CC -V 2>&1` in
6950
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6951
_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'
6953
*) # Version 8.0 or newer
6956
ia64*) tmp_idyn=' -i_dynamic';;
6958
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6959
_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'
6962
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6963
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6964
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6965
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6968
# Portland Group C++ compiler
6970
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6971
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6973
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6974
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6975
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6977
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6978
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6980
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6982
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6983
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6984
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6986
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6987
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6989
*) # Version 6 will use weak symbols
6990
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6991
_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'
6995
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6996
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6997
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7001
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7002
_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'
7004
runpath_var=LD_RUN_PATH
7005
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7006
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7008
# Commands to make compiler produce verbose output that lists
7009
# what "hidden" libraries, object files and flags are used when
7010
# linking a shared library.
7012
# There doesn't appear to be a way to prevent this compiler from
7013
# explicitly linking system object files so we need to strip them
7014
# from the output so that they don't get included in the library
7016
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7019
# IBM XL 8.0 on PPC, with GNU ld
7020
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7021
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7022
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7023
if test "x$supports_anon_versioning" = xyes; then
7024
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7025
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7026
echo "local: *; };" >> $output_objdir/$libname.ver~
7027
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7031
case `$CC -V 2>&1 | sed 5q` in
7034
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7035
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7036
_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'
7037
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7038
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7039
_LT_TAGVAR(compiler_needs_object, $1)=yes
7041
# Not sure whether something based on
7042
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7044
output_verbose_link_cmd='echo'
7046
# Archives containing C++ object files must be created using
7047
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7048
# necessary to make sure instantiated templates are included
7050
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7058
# FIXME: insert proper C++ library support
7059
_LT_TAGVAR(ld_shlibs, $1)=no
7063
# FIXME: insert proper C++ library support
7064
_LT_TAGVAR(ld_shlibs, $1)=no
7068
case $cc_basename in
7070
# FIXME: insert proper C++ library support
7071
_LT_TAGVAR(ld_shlibs, $1)=no
7074
# FIXME: insert proper C++ library support
7075
_LT_TAGVAR(ld_shlibs, $1)=no
7081
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7082
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7084
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7085
_LT_TAGVAR(hardcode_direct, $1)=yes
7086
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7088
# Workaround some broken pre-1.5 toolchains
7089
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7093
_LT_TAGVAR(ld_shlibs, $1)=yes
7097
# C++ shared libraries are fairly broken
7098
_LT_TAGVAR(ld_shlibs, $1)=no
7102
if test -f /usr/libexec/ld.so; then
7103
_LT_TAGVAR(hardcode_direct, $1)=yes
7104
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7105
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7106
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7107
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7108
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7109
_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'
7110
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7111
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7113
output_verbose_link_cmd=echo
7115
_LT_TAGVAR(ld_shlibs, $1)=no
7119
osf3* | osf4* | osf5*)
7120
case $cc_basename in
7122
# Kuck and Associates, Inc. (KAI) C++ Compiler
7124
# KCC will only create a shared library if the output file
7125
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7126
# to its proper name (with version) after linking.
7127
_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'
7129
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7130
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7132
# Archives containing C++ object files must be created using
7133
# the KAI C++ compiler.
7135
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7136
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7140
# Rational C++ 2.4.1
7141
# FIXME: insert proper C++ library support
7142
_LT_TAGVAR(ld_shlibs, $1)=no
7147
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7148
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7149
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7152
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7153
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7154
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7155
echo "-hidden">> $lib.exp~
7156
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
7158
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7162
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7164
# Commands to make compiler produce verbose output that lists
7165
# what "hidden" libraries, object files and flags are used when
7166
# linking a shared library.
7168
# There doesn't appear to be a way to prevent this compiler from
7169
# explicitly linking system object files so we need to strip them
7170
# from the output so that they don't get included in the library
7172
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7175
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7176
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7179
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7182
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7186
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7187
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7189
# Commands to make compiler produce verbose output that lists
7190
# what "hidden" libraries, object files and flags are used when
7191
# linking a shared library.
7192
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7195
# FIXME: insert proper C++ library support
7196
_LT_TAGVAR(ld_shlibs, $1)=no
7203
# FIXME: insert proper C++ library support
7204
_LT_TAGVAR(ld_shlibs, $1)=no
7208
case $cc_basename in
7211
# FIXME: insert proper C++ library support
7212
_LT_TAGVAR(ld_shlibs, $1)=no
7216
# FIXME: insert proper C++ library support
7217
_LT_TAGVAR(ld_shlibs, $1)=no
7220
# FIXME: insert proper C++ library support
7221
_LT_TAGVAR(ld_shlibs, $1)=no
7227
case $cc_basename in
7229
# Sun C++ 4.2, 5.x and Centerline C++
7230
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7231
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7232
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7233
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7234
$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'
7236
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7237
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7239
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7241
# The compiler driver will combine and reorder linker options,
7242
# but understands `-z linker_flag'.
7243
# Supported since Solaris 2.6 (maybe 2.5.1?)
7244
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7247
_LT_TAGVAR(link_all_deplibs, $1)=yes
7249
output_verbose_link_cmd='echo'
7251
# Archives containing C++ object files must be created using
7252
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7253
# necessary to make sure instantiated templates are included
7255
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7258
# Green Hills C++ Compiler
7259
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7261
# The C++ compiler must be used to create the archive.
7262
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7265
# GNU C++ compiler with Solaris linker
7266
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7267
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7268
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7269
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7270
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7271
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7273
# Commands to make compiler produce verbose output that lists
7274
# what "hidden" libraries, object files and flags are used when
7275
# linking a shared library.
7276
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7278
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7280
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7281
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7282
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7284
# Commands to make compiler produce verbose output that lists
7285
# what "hidden" libraries, object files and flags are used when
7286
# linking a shared library.
7287
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7290
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7292
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7294
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7302
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7303
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7304
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7305
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7306
runpath_var='LD_RUN_PATH'
7308
case $cc_basename in
7310
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7311
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7314
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7315
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7320
sysv5* | sco3.2v5* | sco5v6*)
7321
# Note: We can NOT use -z defs as we might desire, because we do not
7322
# link with -lc, and that would cause any symbols used from libc to
7323
# always be unresolved, which means just about no library would
7324
# ever link correctly. If we're not using GNU ld we use -z text
7325
# though, which does catch some bad symbols but isn't as heavy-handed
7327
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7328
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7329
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7330
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7331
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7332
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7333
_LT_TAGVAR(link_all_deplibs, $1)=yes
7334
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7335
runpath_var='LD_RUN_PATH'
7337
case $cc_basename in
7339
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7340
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7343
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7344
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7350
case $cc_basename in
7352
# NonStop-UX NCC 3.20
7353
# FIXME: insert proper C++ library support
7354
_LT_TAGVAR(ld_shlibs, $1)=no
7357
# FIXME: insert proper C++ library support
7358
_LT_TAGVAR(ld_shlibs, $1)=no
7364
# FIXME: insert proper C++ library support
7365
_LT_TAGVAR(ld_shlibs, $1)=no
7369
# FIXME: insert proper C++ library support
7370
_LT_TAGVAR(ld_shlibs, $1)=no
7374
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7375
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7377
_LT_TAGVAR(GCC, $1)="$GXX"
7378
_LT_TAGVAR(LD, $1)="$LD"
7381
## There is no encapsulation within the following macros, do not change
7382
## the running order or otherwise move them around unless you know exactly
7383
## what you are doing...
7384
_LT_SYS_HIDDEN_LIBDEPS($1)
7385
_LT_COMPILER_PIC($1)
7386
_LT_COMPILER_C_O($1)
7387
_LT_COMPILER_FILE_LOCKS($1)
7388
_LT_LINKER_SHLIBS($1)
7389
_LT_SYS_DYNAMIC_LINKER($1)
7390
_LT_LINKER_HARDCODE_LIBPATH($1)
7393
fi # test -n "$compiler"
7399
with_gnu_ld=$lt_save_with_gnu_ld
7400
lt_cv_path_LDCXX=$lt_cv_path_LD
7401
lt_cv_path_LD=$lt_save_path_LD
7402
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7403
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7404
fi # test "$_lt_caught_CXX_error" != yes
7407
])# _LT_LANG_CXX_CONFIG
7410
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7208
7411
# ---------------------------------
7209
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7213
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7214
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7215
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7216
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7217
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7218
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7219
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7221
# This is just to silence aclocal about the macro not being used
7222
ifelse([AC_DISABLE_FAST_INSTALL])
7224
AC_DEFUN([LT_AC_PROG_GCJ],
7225
[AC_CHECK_TOOL(GCJ, gcj, no)
7226
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7230
AC_DEFUN([LT_AC_PROG_RC],
7231
[AC_CHECK_TOOL(RC, windres, no)
7412
# Figure out "hidden" library dependencies from verbose
7413
# compiler output when linking a shared library.
7414
# Parse the compiler output and extract the necessary
7415
# objects, libraries and library flags.
7416
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7417
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7418
# Dependencies to place before and after the object being linked:
7419
_LT_TAGVAR(predep_objects, $1)=
7420
_LT_TAGVAR(postdep_objects, $1)=
7421
_LT_TAGVAR(predeps, $1)=
7422
_LT_TAGVAR(postdeps, $1)=
7423
_LT_TAGVAR(compiler_lib_search_path, $1)=
7425
dnl we can't use the lt_simple_compile_test_code here,
7426
dnl because it contains code intended for an executable,
7427
dnl not a library. It's possible we should let each
7428
dnl tag define a new lt_????_link_test_code variable,
7429
dnl but it's only used here...
7430
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7432
void foo (void) { a = 0; }
7434
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7438
Foo (void) { a = 0; }
7443
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7451
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7459
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7462
public void bar (void) {
7468
dnl Parse the compiler output and extract the necessary
7469
dnl objects, libraries and library flags.
7470
if AC_TRY_EVAL(ac_compile); then
7471
# Parse the compiler output and extract the necessary
7472
# objects, libraries and library flags.
7474
# Sentinel used to keep track of whether or not we are before
7475
# the conftest object file.
7476
pre_test_object_deps_done=no
7478
for p in `eval "$output_verbose_link_cmd"`; do
7482
# Some compilers place space between "-{L,R}" and the path.
7484
if test $p = "-L" ||
7485
test $p = "-R"; then
7492
if test "$pre_test_object_deps_done" = no; then
7495
# Internal compiler library paths should come after those
7496
# provided the user. The postdeps already come after the
7497
# user supplied libs so there is no need to process them.
7498
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7499
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7501
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7504
# The "-l" case would never come before the object being
7505
# linked, so don't bother handling this case.
7508
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7509
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7511
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7517
# This assumes that the test object file only shows up
7518
# once in the compiler output.
7519
if test "$p" = "conftest.$objext"; then
7520
pre_test_object_deps_done=yes
7524
if test "$pre_test_object_deps_done" = no; then
7525
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7526
_LT_TAGVAR(predep_objects, $1)="$p"
7528
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7531
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7532
_LT_TAGVAR(postdep_objects, $1)="$p"
7534
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7539
*) ;; # Ignore the rest.
7547
echo "libtool.m4: error: problem compiling $1 test program"
7550
$RM -f confest.$objext
7552
# PORTME: override above test on systems where it is broken
7556
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7557
# hack all around it, let's just trust "g++" to DTRT.
7558
_LT_TAGVAR(predep_objects,$1)=
7559
_LT_TAGVAR(postdep_objects,$1)=
7560
_LT_TAGVAR(postdeps,$1)=
7564
case `$CC -V 2>&1 | sed 5q` in
7568
# The more standards-conforming stlport4 library is
7569
# incompatible with the Cstd library. Avoid specifying
7570
# it if it's in CXXFLAGS. Ignore libCrun as
7571
# -library=stlport4 depends on it.
7572
case " $CXX $CXXFLAGS " in
7573
*" -library=stlport4 "*)
7574
solaris_use_stlport4=yes
7578
if test "$solaris_use_stlport4" != yes; then
7579
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7586
case $cc_basename in
7588
# The more standards-conforming stlport4 library is
7589
# incompatible with the Cstd library. Avoid specifying
7590
# it if it's in CXXFLAGS. Ignore libCrun as
7591
# -library=stlport4 depends on it.
7592
case " $CXX $CXXFLAGS " in
7593
*" -library=stlport4 "*)
7594
solaris_use_stlport4=yes
7598
# Adding this requires a known-good setup of shared libraries for
7599
# Sun compiler versions before 5.6, else PIC objects from an old
7600
# archive will be linked into the output, leading to subtle bugs.
7601
if test "$solaris_use_stlport4" != yes; then
7602
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7610
case " $_LT_TAGVAR(postdeps, $1) " in
7611
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7613
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7614
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7615
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7617
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7618
[The directories searched by this compiler when creating a shared library])
7619
_LT_TAGDECL([], [predep_objects], [1],
7620
[Dependencies to place before and after the objects being linked to
7621
create a shared library])
7622
_LT_TAGDECL([], [postdep_objects], [1])
7623
_LT_TAGDECL([], [predeps], [1])
7624
_LT_TAGDECL([], [postdeps], [1])
7625
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7626
[The library search path used internally by the compiler when linking
7628
])# _LT_SYS_HIDDEN_LIBDEPS
7633
# Since AC_PROG_F77 is broken, in that it returns the empty string
7634
# if there is no fortran compiler, we have our own version here.
7635
m4_defun([_LT_PROG_F77],
7637
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7639
if test -z "$F77" || test "X$F77" = "Xno"; then
7642
popdef([AC_MSG_ERROR])
7645
dnl aclocal-1.4 backwards compatibility:
7646
dnl AC_DEFUN([_LT_PROG_F77], [])
7649
# _LT_LANG_F77_CONFIG([TAG])
7650
# --------------------------
7651
# Ensure that the configuration variables for a Fortran 77 compiler are
7652
# suitably defined. These variables are subsequently used by _LT_CONFIG
7653
# to write the compiler configuration to `libtool'.
7654
m4_defun([_LT_LANG_F77_CONFIG],
7655
[AC_REQUIRE([_LT_PROG_F77])dnl
7656
AC_LANG_PUSH(Fortran 77)
7658
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7659
_LT_TAGVAR(allow_undefined_flag, $1)=
7660
_LT_TAGVAR(always_export_symbols, $1)=no
7661
_LT_TAGVAR(archive_expsym_cmds, $1)=
7662
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7663
_LT_TAGVAR(hardcode_direct, $1)=no
7664
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7665
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7666
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7667
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7668
_LT_TAGVAR(hardcode_minus_L, $1)=no
7669
_LT_TAGVAR(hardcode_automatic, $1)=no
7670
_LT_TAGVAR(inherit_rpath, $1)=no
7671
_LT_TAGVAR(module_cmds, $1)=
7672
_LT_TAGVAR(module_expsym_cmds, $1)=
7673
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7674
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7675
_LT_TAGVAR(no_undefined_flag, $1)=
7676
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7677
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7679
# Source file extension for f77 test sources.
7682
# Object file extension for compiled f77 test sources.
7684
_LT_TAGVAR(objext, $1)=$objext
7686
# No sense in running all these tests if we already determined that
7687
# the F77 compiler isn't working. Some variables (like enable_shared)
7688
# are currently assumed to apply to all compilers on this platform,
7689
# and will be corrupted by setting them based on a non-working compiler.
7690
if test "$_lt_disable_F77" != yes; then
7691
# Code to be used in simple compile tests
7692
lt_simple_compile_test_code="\
7698
# Code to be used in simple link tests
7699
lt_simple_link_test_code="\
7704
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7707
# save warnings/boilerplate of simple test code
7708
_LT_COMPILER_BOILERPLATE
7709
_LT_LINKER_BOILERPLATE
7711
# Allow CC to be a program name with arguments.
7716
_LT_TAGVAR(compiler, $1)=$CC
7717
_LT_CC_BASENAME([$compiler])
7719
if test -n "$compiler"; then
7720
AC_MSG_CHECKING([if libtool supports shared libraries])
7721
AC_MSG_RESULT([$can_build_shared])
7723
AC_MSG_CHECKING([whether to build shared libraries])
7724
test "$can_build_shared" = "no" && enable_shared=no
7726
# On AIX, shared libraries and static libraries use the same namespace, and
7727
# are all built from PIC.
7730
test "$enable_shared" = yes && enable_static=no
7731
if test -n "$RANLIB"; then
7732
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7733
postinstall_cmds='$RANLIB $lib'
7737
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7738
test "$enable_shared" = yes && enable_static=no
7742
AC_MSG_RESULT([$enable_shared])
7744
AC_MSG_CHECKING([whether to build static libraries])
7745
# Make sure either enable_shared or enable_static is yes.
7746
test "$enable_shared" = yes || enable_static=yes
7747
AC_MSG_RESULT([$enable_static])
7749
_LT_TAGVAR(GCC, $1)="$G77"
7750
_LT_TAGVAR(LD, $1)="$LD"
7753
## There is no encapsulation within the following macros, do not change
7754
## the running order or otherwise move them around unless you know exactly
7755
## what you are doing...
7756
_LT_COMPILER_PIC($1)
7757
_LT_COMPILER_C_O($1)
7758
_LT_COMPILER_FILE_LOCKS($1)
7759
_LT_LINKER_SHLIBS($1)
7760
_LT_SYS_DYNAMIC_LINKER($1)
7761
_LT_LINKER_HARDCODE_LIBPATH($1)
7764
fi # test -n "$compiler"
7768
fi # test "$_lt_disable_F77" != yes
7771
])# _LT_LANG_F77_CONFIG
7776
# Since AC_PROG_FC is broken, in that it returns the empty string
7777
# if there is no fortran compiler, we have our own version here.
7778
m4_defun([_LT_PROG_FC],
7780
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7782
if test -z "$FC" || test "X$FC" = "Xno"; then
7785
popdef([AC_MSG_ERROR])
7788
dnl aclocal-1.4 backwards compatibility:
7789
dnl AC_DEFUN([_LT_PROG_FC], [])
7792
# _LT_LANG_FC_CONFIG([TAG])
7793
# -------------------------
7794
# Ensure that the configuration variables for a Fortran compiler are
7795
# suitably defined. These variables are subsequently used by _LT_CONFIG
7796
# to write the compiler configuration to `libtool'.
7797
m4_defun([_LT_LANG_FC_CONFIG],
7798
[AC_REQUIRE([_LT_PROG_FC])dnl
7799
AC_LANG_PUSH(Fortran)
7801
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7802
_LT_TAGVAR(allow_undefined_flag, $1)=
7803
_LT_TAGVAR(always_export_symbols, $1)=no
7804
_LT_TAGVAR(archive_expsym_cmds, $1)=
7805
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7806
_LT_TAGVAR(hardcode_direct, $1)=no
7807
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7808
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7809
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7810
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7811
_LT_TAGVAR(hardcode_minus_L, $1)=no
7812
_LT_TAGVAR(hardcode_automatic, $1)=no
7813
_LT_TAGVAR(inherit_rpath, $1)=no
7814
_LT_TAGVAR(module_cmds, $1)=
7815
_LT_TAGVAR(module_expsym_cmds, $1)=
7816
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7817
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7818
_LT_TAGVAR(no_undefined_flag, $1)=
7819
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7820
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7822
# Source file extension for fc test sources.
7823
ac_ext=${ac_fc_srcext-f}
7825
# Object file extension for compiled fc test sources.
7827
_LT_TAGVAR(objext, $1)=$objext
7829
# No sense in running all these tests if we already determined that
7830
# the FC compiler isn't working. Some variables (like enable_shared)
7831
# are currently assumed to apply to all compilers on this platform,
7832
# and will be corrupted by setting them based on a non-working compiler.
7833
if test "$_lt_disable_FC" != yes; then
7834
# Code to be used in simple compile tests
7835
lt_simple_compile_test_code="\
7841
# Code to be used in simple link tests
7842
lt_simple_link_test_code="\
7847
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7850
# save warnings/boilerplate of simple test code
7851
_LT_COMPILER_BOILERPLATE
7852
_LT_LINKER_BOILERPLATE
7854
# Allow CC to be a program name with arguments.
7859
GCC=$ac_cv_fc_compiler_gnu
7861
_LT_TAGVAR(compiler, $1)=$CC
7862
_LT_CC_BASENAME([$compiler])
7864
if test -n "$compiler"; then
7865
AC_MSG_CHECKING([if libtool supports shared libraries])
7866
AC_MSG_RESULT([$can_build_shared])
7868
AC_MSG_CHECKING([whether to build shared libraries])
7869
test "$can_build_shared" = "no" && enable_shared=no
7871
# On AIX, shared libraries and static libraries use the same namespace, and
7872
# are all built from PIC.
7875
test "$enable_shared" = yes && enable_static=no
7876
if test -n "$RANLIB"; then
7877
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7878
postinstall_cmds='$RANLIB $lib'
7882
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7883
test "$enable_shared" = yes && enable_static=no
7887
AC_MSG_RESULT([$enable_shared])
7889
AC_MSG_CHECKING([whether to build static libraries])
7890
# Make sure either enable_shared or enable_static is yes.
7891
test "$enable_shared" = yes || enable_static=yes
7892
AC_MSG_RESULT([$enable_static])
7894
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7895
_LT_TAGVAR(LD, $1)="$LD"
7898
## There is no encapsulation within the following macros, do not change
7899
## the running order or otherwise move them around unless you know exactly
7900
## what you are doing...
7901
_LT_SYS_HIDDEN_LIBDEPS($1)
7902
_LT_COMPILER_PIC($1)
7903
_LT_COMPILER_C_O($1)
7904
_LT_COMPILER_FILE_LOCKS($1)
7905
_LT_LINKER_SHLIBS($1)
7906
_LT_SYS_DYNAMIC_LINKER($1)
7907
_LT_LINKER_HARDCODE_LIBPATH($1)
7910
fi # test -n "$compiler"
7914
fi # test "$_lt_disable_FC" != yes
7917
])# _LT_LANG_FC_CONFIG
7920
# _LT_LANG_GCJ_CONFIG([TAG])
7921
# --------------------------
7922
# Ensure that the configuration variables for the GNU Java Compiler compiler
7923
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7924
# to write the compiler configuration to `libtool'.
7925
m4_defun([_LT_LANG_GCJ_CONFIG],
7926
[AC_REQUIRE([LT_PROG_GCJ])dnl
7929
# Source file extension for Java test sources.
7932
# Object file extension for compiled Java test sources.
7934
_LT_TAGVAR(objext, $1)=$objext
7936
# Code to be used in simple compile tests
7937
lt_simple_compile_test_code="class foo {}"
7939
# Code to be used in simple link tests
7940
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7942
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7945
# save warnings/boilerplate of simple test code
7946
_LT_COMPILER_BOILERPLATE
7947
_LT_LINKER_BOILERPLATE
7949
# Allow CC to be a program name with arguments.
7955
_LT_TAGVAR(compiler, $1)=$CC
7956
_LT_TAGVAR(LD, $1)="$LD"
7957
_LT_CC_BASENAME([$compiler])
7959
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7960
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7962
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7964
if test -n "$compiler"; then
7965
_LT_COMPILER_NO_RTTI($1)
7966
_LT_COMPILER_PIC($1)
7967
_LT_COMPILER_C_O($1)
7968
_LT_COMPILER_FILE_LOCKS($1)
7969
_LT_LINKER_SHLIBS($1)
7970
_LT_LINKER_HARDCODE_LIBPATH($1)
7979
])# _LT_LANG_GCJ_CONFIG
7982
# _LT_LANG_RC_CONFIG([TAG])
7983
# -------------------------
7984
# Ensure that the configuration variables for the Windows resource compiler
7985
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7986
# to write the compiler configuration to `libtool'.
7987
m4_defun([_LT_LANG_RC_CONFIG],
7988
[AC_REQUIRE([LT_PROG_RC])dnl
7991
# Source file extension for RC test sources.
7994
# Object file extension for compiled RC test sources.
7996
_LT_TAGVAR(objext, $1)=$objext
7998
# Code to be used in simple compile tests
7999
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8001
# Code to be used in simple link tests
8002
lt_simple_link_test_code="$lt_simple_compile_test_code"
8004
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8007
# save warnings/boilerplate of simple test code
8008
_LT_COMPILER_BOILERPLATE
8009
_LT_LINKER_BOILERPLATE
8011
# Allow CC to be a program name with arguments.
8017
_LT_TAGVAR(compiler, $1)=$CC
8018
_LT_CC_BASENAME([$compiler])
8019
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8021
if test -n "$compiler"; then
8029
])# _LT_LANG_RC_CONFIG
8034
AC_DEFUN([LT_PROG_GCJ],
8035
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8036
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8037
[AC_CHECK_TOOL(GCJ, gcj,)
8038
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8039
AC_SUBST(GCJFLAGS)])])[]dnl
8043
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8044
dnl aclocal-1.4 backwards compatibility:
8045
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8050
AC_DEFUN([LT_PROG_RC],
8051
[AC_CHECK_TOOL(RC, windres,)
8055
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8056
dnl aclocal-1.4 backwards compatibility:
8057
dnl AC_DEFUN([LT_AC_PROG_RC], [])
8062
# If we don't have a new enough Autoconf to choose the best grep
8063
# available, choose the one first in the user's PATH.
8064
m4_defun([_LT_DECL_EGREP],
8065
[AC_REQUIRE([AC_PROG_EGREP])dnl
8066
AC_REQUIRE([AC_PROG_FGREP])dnl
8067
test -z "$GREP" && GREP=grep
8068
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8069
_LT_DECL([], [EGREP], [1], [An ERE matcher])
8070
_LT_DECL([], [FGREP], [1], [A literal string matcher])
8071
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8078
# If we don't have a new enough Autoconf to choose the best objdump
8079
# available, choose the one first in the user's PATH.
8080
m4_defun([_LT_DECL_OBJDUMP],
8081
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8082
test -z "$OBJDUMP" && OBJDUMP=objdump
8083
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8090
# Check for a fully-functional sed program, that truncates
8091
# as few characters as possible. Prefer GNU sed if found.
8092
m4_defun([_LT_DECL_SED],
8094
test -z "$SED" && SED=sed
8095
Xsed="$SED -e 1s/^X//"
8096
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8097
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8098
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
8101
m4_ifndef([AC_PROG_SED], [
7234
8102
# NOTE: This macro has been submitted for inclusion into #
7235
8103
# GNU Autoconf as AC_PROG_SED. When it is available in #
7236
8104
# a released version of Autoconf we should remove this #
7237
8105
# macro and use it instead. #
7240
# Check for a fully-functional sed program, that truncates
7241
# as few characters as possible. Prefer GNU sed if found.
7242
AC_DEFUN([LT_AC_PROG_SED],
8107
m4_defun([AC_PROG_SED],
7243
8108
[AC_MSG_CHECKING([for a sed that does not truncate output])
7244
8109
AC_CACHE_VAL(lt_cv_path_SED,
7245
8110
[# Loop through the user's path and test for sed and gsed.
7291
8157
SED=$lt_cv_path_SED
7292
8159
AC_MSG_RESULT([$SED])
8164
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8165
dnl aclocal-1.4 backwards compatibility:
8166
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8169
# _LT_CHECK_SHELL_FEATURES
8170
# ------------------------
8171
# Find out whether the shell is Bourne or XSI compatible,
8172
# or has some other useful features.
8173
m4_defun([_LT_CHECK_SHELL_FEATURES],
8174
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8175
# Try some XSI features
8178
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8180
&& eval 'test $(( 1 + 1 )) -eq 2 \
8181
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8183
AC_MSG_RESULT([$xsi_shell])
8184
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8186
AC_MSG_CHECKING([whether the shell understands "+="])
8188
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8190
&& lt_shell_append=yes
8191
AC_MSG_RESULT([$lt_shell_append])
8192
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8194
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8199
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8201
# test EBCDIC or ASCII
8202
case `echo X|tr X '\101'` in
8203
A) # ASCII based system
8204
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8205
lt_SP2NL='tr \040 \012'
8206
lt_NL2SP='tr \015\012 \040\040'
8208
*) # EBCDIC based system
8209
lt_SP2NL='tr \100 \n'
8210
lt_NL2SP='tr \r\n \100\100'
8213
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8214
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8215
])# _LT_CHECK_SHELL_FEATURES
8218
# _LT_PROG_XSI_SHELLFNS
8219
# ---------------------
8220
# Bourne and XSI compatible variants of some useful shell functions.
8221
m4_defun([_LT_PROG_XSI_SHELLFNS],
8224
cat << \_LT_EOF >> "$cfgfile"
8226
# func_dirname file append nondir_replacement
8227
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8228
# otherwise set result to NONDIR_REPLACEMENT.
8232
*/*) func_dirname_result="${1%/*}${2}" ;;
8233
* ) func_dirname_result="${3}" ;;
8237
# func_basename file
8240
func_basename_result="${1##*/}"
8243
# func_dirname_and_basename file append nondir_replacement
8244
# perform func_basename and func_dirname in a single function
8246
# dirname: Compute the dirname of FILE. If nonempty,
8247
# add APPEND to the result, otherwise set result
8248
# to NONDIR_REPLACEMENT.
8249
# value returned in "$func_dirname_result"
8250
# basename: Compute filename of FILE.
8251
# value retuned in "$func_basename_result"
8252
# Implementation must be kept synchronized with func_dirname
8253
# and func_basename. For efficiency, we do not delegate to
8254
# those functions but instead duplicate the functionality here.
8255
func_dirname_and_basename ()
8258
*/*) func_dirname_result="${1%/*}${2}" ;;
8259
* ) func_dirname_result="${3}" ;;
8261
func_basename_result="${1##*/}"
8264
# func_stripname prefix suffix name
8265
# strip PREFIX and SUFFIX off of NAME.
8266
# PREFIX and SUFFIX must not contain globbing or regex special
8267
# characters, hashes, percent signs, but SUFFIX may contain a leading
8268
# dot (in which case that matches only a dot).
8271
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8272
# positional parameters, so assign one to ordinary parameter first.
8273
func_stripname_result=${3}
8274
func_stripname_result=${func_stripname_result#"${1}"}
8275
func_stripname_result=${func_stripname_result%"${2}"}
8281
func_opt_split_opt=${1%%=*}
8282
func_opt_split_arg=${1#*=}
8289
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8290
*) func_lo2o_result=${1} ;;
8294
# func_xform libobj-or-source
8297
func_xform_result=${1%.*}.lo
8300
# func_arith arithmetic-term...
8303
func_arith_result=$(( $[*] ))
8307
# STRING may not start with a hyphen.
8310
func_len_result=${#1}
8315
*) # Bourne compatible functions.
8316
cat << \_LT_EOF >> "$cfgfile"
8318
# func_dirname file append nondir_replacement
8319
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8320
# otherwise set result to NONDIR_REPLACEMENT.
8323
# Extract subdirectory from the argument.
8324
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8325
if test "X$func_dirname_result" = "X${1}"; then
8326
func_dirname_result="${3}"
8328
func_dirname_result="$func_dirname_result${2}"
8332
# func_basename file
8335
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8338
dnl func_dirname_and_basename
8339
dnl A portable version of this function is already defined in general.m4sh
8340
dnl so there is no need for it here.
8342
# func_stripname prefix suffix name
8343
# strip PREFIX and SUFFIX off of NAME.
8344
# PREFIX and SUFFIX must not contain globbing or regex special
8345
# characters, hashes, percent signs, but SUFFIX may contain a leading
8346
# dot (in which case that matches only a dot).
8347
# func_strip_suffix prefix name
8351
.*) func_stripname_result=`$ECHO "X${3}" \
8352
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8353
*) func_stripname_result=`$ECHO "X${3}" \
8354
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8359
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8360
my_sed_long_arg='1s/^-[[^=]]*=//'
8365
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8366
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8372
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8375
# func_xform libobj-or-source
8378
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8381
# func_arith arithmetic-term...
8384
func_arith_result=`expr "$[@]"`
8388
# STRING may not start with a hyphen.
8391
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8397
case $lt_shell_append in
8399
cat << \_LT_EOF >> "$cfgfile"
8401
# func_append var value
8402
# Append VALUE to the end of shell variable VAR.
8410
cat << \_LT_EOF >> "$cfgfile"
8412
# func_append var value
8413
# Append VALUE to the end of shell variable VAR.
8416
eval "$[1]=\$$[1]\$[2]"
8424
# Helper functions for option handling. -*- Autoconf -*-
8426
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8427
# Written by Gary V. Vaughan, 2004
8429
# This file is free software; the Free Software Foundation gives
8430
# unlimited permission to copy and/or distribute it, with or without
8431
# modifications, as long as this notice is preserved.
8433
# serial 6 ltoptions.m4
8435
# This is to help aclocal find these macros, as it can't see m4_define.
8436
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8439
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8440
# ------------------------------------------
8441
m4_define([_LT_MANGLE_OPTION],
8442
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8445
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8446
# ---------------------------------------
8447
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8448
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8450
m4_define([_LT_SET_OPTION],
8451
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8452
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8453
_LT_MANGLE_DEFUN([$1], [$2]),
8454
[m4_warning([Unknown $1 option `$2'])])[]dnl
8458
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8459
# ------------------------------------------------------------
8460
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8461
m4_define([_LT_IF_OPTION],
8462
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8465
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8466
# -------------------------------------------------------
8467
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8469
m4_define([_LT_UNLESS_OPTIONS],
8470
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8471
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8472
[m4_define([$0_found])])])[]dnl
8473
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8478
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8479
# ----------------------------------------
8480
# OPTION-LIST is a space-separated list of Libtool options associated
8481
# with MACRO-NAME. If any OPTION has a matching handler declared with
8482
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8483
# the unknown option and exit.
8484
m4_defun([_LT_SET_OPTIONS],
8486
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8487
[_LT_SET_OPTION([$1], _LT_Option)])
8489
m4_if([$1],[LT_INIT],[
8491
dnl Simply set some default values (i.e off) if boolean options were not
8493
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8495
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8498
dnl If no reference was made to various pairs of opposing options, then
8499
dnl we run the default mode handler for the pair. For example, if neither
8500
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8501
dnl archives by default:
8502
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8503
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8504
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8505
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8506
[_LT_ENABLE_FAST_INSTALL])
8512
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8513
# -----------------------------------------
8514
m4_define([_LT_MANGLE_DEFUN],
8515
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8518
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8519
# -----------------------------------------------
8520
m4_define([LT_OPTION_DEFINE],
8521
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8522
])# LT_OPTION_DEFINE
8527
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8530
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8531
[_LT_SET_OPTION([LT_INIT], [dlopen])
8532
AC_DIAGNOSE([obsolete],
8533
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8534
put the `dlopen' option into LT_INIT's first parameter.])
8537
dnl aclocal-1.4 backwards compatibility:
8538
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8543
# Declare package support for building win32 dll's.
8544
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8545
[enable_win32_dll=yes
8548
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8549
AC_CHECK_TOOL(AS, as, false)
8550
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8551
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8555
test -z "$AS" && AS=as
8556
_LT_DECL([], [AS], [0], [Assembler program])dnl
8558
test -z "$DLLTOOL" && DLLTOOL=dlltool
8559
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8561
test -z "$OBJDUMP" && OBJDUMP=objdump
8562
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8565
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8566
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8567
_LT_SET_OPTION([LT_INIT], [win32-dll])
8568
AC_DIAGNOSE([obsolete],
8569
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8570
put the `win32-dll' option into LT_INIT's first parameter.])
8573
dnl aclocal-1.4 backwards compatibility:
8574
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8577
# _LT_ENABLE_SHARED([DEFAULT])
8578
# ----------------------------
8579
# implement the --enable-shared flag, and supports the `shared' and
8580
# `disable-shared' LT_INIT options.
8581
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8582
m4_define([_LT_ENABLE_SHARED],
8583
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8584
AC_ARG_ENABLE([shared],
8585
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8586
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8587
[p=${PACKAGE-default}
8589
yes) enable_shared=yes ;;
8590
no) enable_shared=no ;;
8593
# Look at the argument we got. We use all the common list separators.
8594
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8595
for pkg in $enableval; do
8597
if test "X$pkg" = "X$p"; then
8604
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8606
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8607
[Whether or not to build shared libraries])
8608
])# _LT_ENABLE_SHARED
8610
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8611
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8614
AC_DEFUN([AC_ENABLE_SHARED],
8615
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8618
AC_DEFUN([AC_DISABLE_SHARED],
8619
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8622
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8623
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8625
dnl aclocal-1.4 backwards compatibility:
8626
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8627
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8631
# _LT_ENABLE_STATIC([DEFAULT])
8632
# ----------------------------
8633
# implement the --enable-static flag, and support the `static' and
8634
# `disable-static' LT_INIT options.
8635
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8636
m4_define([_LT_ENABLE_STATIC],
8637
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8638
AC_ARG_ENABLE([static],
8639
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8640
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8641
[p=${PACKAGE-default}
8643
yes) enable_static=yes ;;
8644
no) enable_static=no ;;
8647
# Look at the argument we got. We use all the common list separators.
8648
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8649
for pkg in $enableval; do
8651
if test "X$pkg" = "X$p"; then
8658
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8660
_LT_DECL([build_old_libs], [enable_static], [0],
8661
[Whether or not to build static libraries])
8662
])# _LT_ENABLE_STATIC
8664
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8665
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8668
AC_DEFUN([AC_ENABLE_STATIC],
8669
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8672
AC_DEFUN([AC_DISABLE_STATIC],
8673
[_LT_SET_OPTION([LT_INIT], [disable-static])
8676
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8677
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8679
dnl aclocal-1.4 backwards compatibility:
8680
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8681
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8685
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8686
# ----------------------------------
8687
# implement the --enable-fast-install flag, and support the `fast-install'
8688
# and `disable-fast-install' LT_INIT options.
8689
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8690
m4_define([_LT_ENABLE_FAST_INSTALL],
8691
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8692
AC_ARG_ENABLE([fast-install],
8693
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8694
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8695
[p=${PACKAGE-default}
8697
yes) enable_fast_install=yes ;;
8698
no) enable_fast_install=no ;;
8700
enable_fast_install=no
8701
# Look at the argument we got. We use all the common list separators.
8702
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8703
for pkg in $enableval; do
8705
if test "X$pkg" = "X$p"; then
8706
enable_fast_install=yes
8712
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8714
_LT_DECL([fast_install], [enable_fast_install], [0],
8715
[Whether or not to optimize for fast installation])dnl
8716
])# _LT_ENABLE_FAST_INSTALL
8718
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8719
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8722
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8723
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8724
AC_DIAGNOSE([obsolete],
8725
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8726
the `fast-install' option into LT_INIT's first parameter.])
8729
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8730
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8731
AC_DIAGNOSE([obsolete],
8732
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8733
the `disable-fast-install' option into LT_INIT's first parameter.])
8736
dnl aclocal-1.4 backwards compatibility:
8737
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8738
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8741
# _LT_WITH_PIC([MODE])
8742
# --------------------
8743
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8745
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8746
m4_define([_LT_WITH_PIC],
8748
[AS_HELP_STRING([--with-pic],
8749
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8750
[pic_mode="$withval"],
8753
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8755
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8758
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8759
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8762
AU_DEFUN([AC_LIBTOOL_PICMODE],
8763
[_LT_SET_OPTION([LT_INIT], [pic-only])
8764
AC_DIAGNOSE([obsolete],
8765
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8766
put the `pic-only' option into LT_INIT's first parameter.])
8769
dnl aclocal-1.4 backwards compatibility:
8770
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8773
m4_define([_LTDL_MODE], [])
8774
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8775
[m4_define([_LTDL_MODE], [nonrecursive])])
8776
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8777
[m4_define([_LTDL_MODE], [recursive])])
8778
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8779
[m4_define([_LTDL_MODE], [subproject])])
8781
m4_define([_LTDL_TYPE], [])
8782
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8783
[m4_define([_LTDL_TYPE], [installable])])
8784
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8785
[m4_define([_LTDL_TYPE], [convenience])])
8787
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8789
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8790
# Written by Gary V. Vaughan, 2004
8792
# This file is free software; the Free Software Foundation gives
8793
# unlimited permission to copy and/or distribute it, with or without
8794
# modifications, as long as this notice is preserved.
8796
# serial 6 ltsugar.m4
8798
# This is to help aclocal find these macros, as it can't see m4_define.
8799
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8802
# lt_join(SEP, ARG1, [ARG2...])
8803
# -----------------------------
8804
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8805
# associated separator.
8806
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8807
# versions in m4sugar had bugs.
8808
m4_define([lt_join],
8809
[m4_if([$#], [1], [],
8811
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8812
m4_define([_lt_join],
8813
[m4_if([$#$2], [2], [],
8814
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8820
# Manipulate m4 lists.
8821
# These macros are necessary as long as will still need to support
8822
# Autoconf-2.59 which quotes differently.
8823
m4_define([lt_car], [[$1]])
8825
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8827
[m4_dquote(m4_shift($@))])])
8828
m4_define([lt_unquote], $1)
8831
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8832
# ------------------------------------------
8833
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8834
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8835
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8836
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8837
# than defined and empty).
8839
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8840
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8841
m4_define([lt_append],
8843
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8847
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8848
# ----------------------------------------------------------
8849
# Produce a SEP delimited list of all paired combinations of elements of
8850
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8851
# has the form PREFIXmINFIXSUFFIXn.
8852
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8853
m4_define([lt_combine],
8854
[m4_if(m4_eval([$# > 3]), [1],
8855
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8856
[[m4_foreach([_Lt_prefix], [$2],
8857
[m4_foreach([_Lt_suffix],
8858
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8859
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8862
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8863
# -----------------------------------------------------------------------
8864
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8865
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8866
m4_define([lt_if_append_uniq],
8868
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8869
[lt_append([$1], [$2], [$3])$4],
8871
[lt_append([$1], [$2], [$3])$4])])
8874
# lt_dict_add(DICT, KEY, VALUE)
8875
# -----------------------------
8876
m4_define([lt_dict_add],
8877
[m4_define([$1($2)], [$3])])
8880
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8881
# --------------------------------------------
8882
m4_define([lt_dict_add_subkey],
8883
[m4_define([$1($2:$3)], [$4])])
8886
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8887
# ----------------------------------
8888
m4_define([lt_dict_fetch],
8890
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8891
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8894
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8895
# -----------------------------------------------------------------
8896
m4_define([lt_if_dict_fetch],
8897
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8902
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8903
# --------------------------------------------------------------
8904
m4_define([lt_dict_filter],
8905
[m4_if([$5], [], [],
8906
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8907
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8908
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8911
# ltversion.m4 -- version numbers -*- Autoconf -*-
8913
# Copyright (C) 2004 Free Software Foundation, Inc.
8914
# Written by Scott James Remnant, 2004
8916
# This file is free software; the Free Software Foundation gives
8917
# unlimited permission to copy and/or distribute it, with or without
8918
# modifications, as long as this notice is preserved.
8920
# Generated from ltversion.in.
8922
# serial 3012 ltversion.m4
8923
# This file is part of GNU Libtool
8925
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8926
m4_define([LT_PACKAGE_REVISION], [1.3012])
8928
AC_DEFUN([LTVERSION_VERSION],
8929
[macro_version='2.2.6'
8930
macro_revision='1.3012'
8931
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8932
_LT_DECL(, macro_revision, 0)
8935
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8937
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8938
# Written by Scott James Remnant, 2004.
8940
# This file is free software; the Free Software Foundation gives
8941
# unlimited permission to copy and/or distribute it, with or without
8942
# modifications, as long as this notice is preserved.
8944
# serial 4 lt~obsolete.m4
8946
# These exist entirely to fool aclocal when bootstrapping libtool.
8948
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8949
# which have later been changed to m4_define as they aren't part of the
8950
# exported API, or moved to Autoconf or Automake where they belong.
8952
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8953
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8954
# using a macro with the same name in our local m4/libtool.m4 it'll
8955
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8956
# and doesn't know about Autoconf macros at all.)
8958
# So we provide this file, which has a silly filename so it's always
8959
# included after everything else. This provides aclocal with the
8960
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8961
# because those macros already exist, or will be overwritten later.
8962
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8964
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8965
# Yes, that means every name once taken will need to remain here until
8966
# we give up compatibility with versions before 1.7, at which point
8967
# we need to keep only those names which we still refer to.
8969
# This is to help aclocal find these macros, as it can't see m4_define.
8970
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8972
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8973
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8974
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8975
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8976
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8977
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8978
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8979
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8980
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8981
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8982
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8983
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8984
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8985
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8986
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8987
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8988
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8989
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8990
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8991
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8992
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8993
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8994
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8995
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8996
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8997
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8998
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8999
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9000
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9001
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9002
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9003
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9004
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9005
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9006
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9007
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9008
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9009
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9010
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9011
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9012
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9013
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9014
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
9015
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9016
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9017
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9018
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9019
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9020
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9021
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9022
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9023
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9024
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9025
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9026
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7295
9028
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-