768
844
# Sed substitution that helps us do robust quoting. It backslashifies
769
845
# metacharacters that are still active within double-quoted strings.
770
Xsed='sed -e 1s/^X//'
771
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
846
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
773
848
# Same as above, but do not quote variable references.
774
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
849
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
776
851
# Sed substitution to delay expansion of an escaped shell variable in a
777
852
# double_quote_subst'ed string.
778
853
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
855
# Sed substitution to delay expansion of an escaped single quote.
856
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
780
858
# Sed substitution to avoid accidental globbing in evaled expressions
781
859
no_glob_subst='s/\*/\\\*/g'
786
861
# Global variables:
787
default_ofile=libtool
788
863
can_build_shared=yes
790
865
# All known linkers require a `.a' archive for static linking (except MSVC,
791
866
# which needs '.lib').
793
ltmain="$ac_aux_dir/ltmain.sh"
794
ofile="$default_ofile"
795
869
with_gnu_ld="$lt_cv_prog_gnu_ld"
797
AC_CHECK_TOOL(AR, ar, false)
798
AC_CHECK_TOOL(RANLIB, ranlib, :)
799
AC_CHECK_TOOL(STRIP, strip, :)
802
872
old_CFLAGS="$CFLAGS"
804
874
# Set sane defaults for various variables
805
test -z "$AR" && AR=ar
806
test -z "$AR_FLAGS" && AR_FLAGS=cru
807
test -z "$AS" && AS=as
808
875
test -z "$CC" && CC=cc
809
876
test -z "$LTCC" && LTCC=$CC
810
877
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
811
test -z "$DLLTOOL" && DLLTOOL=dlltool
812
878
test -z "$LD" && LD=ld
813
test -z "$LN_S" && LN_S="ln -s"
814
test -z "$MAGIC_CMD" && MAGIC_CMD=file
815
test -z "$NM" && NM=nm
816
test -z "$SED" && SED=sed
817
test -z "$OBJDUMP" && OBJDUMP=objdump
818
test -z "$RANLIB" && RANLIB=:
819
test -z "$STRIP" && STRIP=:
820
879
test -z "$ac_objext" && ac_objext=o
822
# Determine commands to create old-style static archives.
823
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
824
old_postinstall_cmds='chmod 644 $oldlib'
825
old_postuninstall_cmds=
827
if test -n "$RANLIB"; then
830
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
833
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
836
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
839
881
_LT_CC_BASENAME([$compiler])
841
883
# Only perform the check for file, if the check method requires it
884
test -z "$MAGIC_CMD" && MAGIC_CMD=file
842
885
case $deplibs_check_method in
844
887
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
850
_LT_REQUIRED_DARWIN_CHECKS
852
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
853
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
854
enable_win32_dll=yes, enable_win32_dll=no)
856
AC_ARG_ENABLE([libtool-lock],
857
[AC_HELP_STRING([--disable-libtool-lock],
858
[avoid locking (might break parallel builds)])])
859
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
862
[AC_HELP_STRING([--with-pic],
863
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
864
[pic_mode="$withval"],
866
test -z "$pic_mode" && pic_mode=default
868
893
# Use C for the default configuration in the libtool script
870
AC_LIBTOOL_LANG_C_CONFIG
875
# _LT_AC_SYS_COMPILER
894
LT_SUPPORTED_TAG([CC])
896
_LT_LANG_DEFAULT_CONFIG
903
# Note that this code is called both from `configure', and `config.status'
904
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
905
# `config.status' has no value for ac_aux_dir unless we are using Automake,
906
# so we pass a copy along to make sure it has a sensible value anyway.
907
m4_defun([_LT_PROG_LTMAIN],
908
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
909
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
910
ltmain="$ac_aux_dir/ltmain.sh"
915
# So that we can recreate a full libtool script including additional
916
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
917
# in macros and then make a single call at the end using the `libtool'
921
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
922
# ----------------------------------------
923
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
924
m4_define([_LT_CONFIG_LIBTOOL_INIT],
926
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
931
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
934
# _LT_CONFIG_LIBTOOL([COMMANDS])
935
# ------------------------------
936
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
937
m4_define([_LT_CONFIG_LIBTOOL],
939
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
944
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
947
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
948
# -----------------------------------------------------
949
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
950
[_LT_CONFIG_LIBTOOL([$1])
951
_LT_CONFIG_LIBTOOL_INIT([$2])
955
# _LT_FORMAT_COMMENT([COMMENT])
956
# -----------------------------
957
# Add leading comment marks to the start of each line, and a trailing
958
# full-stop to the whole comment if one is not present already.
959
m4_define([_LT_FORMAT_COMMENT],
961
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
962
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
969
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
970
# -------------------------------------------------------------------
971
# CONFIGNAME is the name given to the value in the libtool script.
972
# VARNAME is the (base) name used in the configure script.
973
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
974
# VARNAME. Any other value will be used directly.
975
m4_define([_LT_DECL],
976
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
977
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
978
[m4_ifval([$1], [$1], [$2])])
979
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
981
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
982
lt_dict_add_subkey([lt_decl_dict], [$2],
983
[tagged?], [m4_ifval([$5], [yes], [no])])])
987
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
988
# --------------------------------------------------------
989
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
992
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
993
# ------------------------------------------------
994
m4_define([lt_decl_tag_varnames],
995
[_lt_decl_filter([tagged?], [yes], $@)])
998
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
999
# ---------------------------------------------------------
1000
m4_define([_lt_decl_filter],
1002
[0], [m4_fatal([$0: too few arguments: $#])],
1003
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1004
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1005
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1006
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1010
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1011
# --------------------------------------------------
1012
m4_define([lt_decl_quote_varnames],
1013
[_lt_decl_filter([value], [1], $@)])
1016
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1017
# ---------------------------------------------------
1018
m4_define([lt_decl_dquote_varnames],
1019
[_lt_decl_filter([value], [2], $@)])
1022
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1023
# ---------------------------------------------------
1024
m4_define([lt_decl_varnames_tagged],
1025
[m4_assert([$# <= 2])dnl
1026
_$0(m4_quote(m4_default([$1], [[, ]])),
1027
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1028
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1029
m4_define([_lt_decl_varnames_tagged],
1030
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1033
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1034
# ------------------------------------------------
1035
m4_define([lt_decl_all_varnames],
1036
[_$0(m4_quote(m4_default([$1], [[, ]])),
1038
m4_quote(lt_decl_varnames),
1039
m4_quote(m4_shift($@))))[]dnl
1041
m4_define([_lt_decl_all_varnames],
1042
[lt_join($@, lt_decl_varnames_tagged([$1],
1043
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1047
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1048
# ------------------------------------
1049
# Quote a variable value, and forward it to `config.status' so that its
1050
# declaration there will have the same value as in `configure'. VARNAME
1051
# must have a single quote delimited value for this to work.
1052
m4_define([_LT_CONFIG_STATUS_DECLARE],
1053
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1056
# _LT_CONFIG_STATUS_DECLARATIONS
1057
# ------------------------------
1058
# We delimit libtool config variables with single quotes, so when
1059
# we write them to config.status, we have to be sure to quote all
1060
# embedded single quotes properly. In configure, this macro expands
1061
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1063
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1064
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1065
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1066
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1071
# Output comment and list of tags supported by the script
1072
m4_defun([_LT_LIBTOOL_TAGS],
1073
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1074
available_tags="_LT_TAGS"dnl
1078
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1079
# -----------------------------------
1080
# Extract the dictionary values for VARNAME (optionally with TAG) and
1081
# expand to a commented shell variable setting:
1083
# # Some comment about what VAR is for.
1084
# visible_name=$lt_internal_name
1085
m4_define([_LT_LIBTOOL_DECLARE],
1086
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1087
[description])))[]dnl
1088
m4_pushdef([_libtool_name],
1089
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1090
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1091
[0], [_libtool_name=[$]$1],
1092
[1], [_libtool_name=$lt_[]$1],
1093
[2], [_libtool_name=$lt_[]$1],
1094
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1095
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1099
# _LT_LIBTOOL_CONFIG_VARS
1100
# -----------------------
1101
# Produce commented declarations of non-tagged libtool config variables
1102
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1103
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1104
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1105
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1106
[m4_foreach([_lt_var],
1107
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1108
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1111
# _LT_LIBTOOL_TAG_VARS(TAG)
1112
# -------------------------
1113
m4_define([_LT_LIBTOOL_TAG_VARS],
1114
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1115
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1118
# _LT_TAGVAR(VARNAME, [TAGNAME])
1119
# ------------------------------
1120
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1123
# _LT_CONFIG_COMMANDS
876
1124
# -------------------
877
AC_DEFUN([_LT_AC_SYS_COMPILER],
1125
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1126
# variables for single and double quote escaping we saved from calls
1127
# to _LT_DECL, we can put quote escaped variables declarations
1128
# into `config.status', and then the shell code to quote escape them in
1129
# for loops in `config.status'. Finally, any additional code accumulated
1130
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1131
m4_defun([_LT_CONFIG_COMMANDS],
1132
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1133
dnl If the libtool generation code has been placed in $CONFIG_LT,
1134
dnl instead of duplicating it all over again into config.status,
1135
dnl then we will have config.status run $CONFIG_LT later, so it
1136
dnl needs to know what name is stored there:
1137
[AC_CONFIG_COMMANDS([libtool],
1138
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1139
dnl If the libtool generation code is destined for config.status,
1140
dnl expand the accumulated commands and init code now:
1141
[AC_CONFIG_COMMANDS([libtool],
1142
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1143
])#_LT_CONFIG_COMMANDS
1147
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1150
# The HP-UX ksh and POSIX shell print the target directory to stdout
1152
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1154
sed_quote_subst='$sed_quote_subst'
1155
double_quote_subst='$double_quote_subst'
1156
delay_variable_subst='$delay_variable_subst'
1157
_LT_CONFIG_STATUS_DECLARATIONS
1159
LTCFLAGS='$LTCFLAGS'
1160
compiler='$compiler_DEFAULT'
1162
# Quote evaled strings.
1163
for var in lt_decl_all_varnames([[ \
1164
]], lt_decl_quote_varnames); do
1165
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1166
*[[\\\\\\\`\\"\\\$]]*)
1167
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1170
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1175
# Double-quote double-evaled strings.
1176
for var in lt_decl_all_varnames([[ \
1177
]], lt_decl_dquote_varnames); do
1178
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1179
*[[\\\\\\\`\\"\\\$]]*)
1180
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1183
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1188
# Fix-up fallback echo if it was mangled by the above quoting rules.
1190
*'\\\[$]0 --fallback-echo"')dnl "
1191
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1195
_LT_OUTPUT_LIBTOOL_INIT
1201
# This macro allows early generation of the libtool script (before
1202
# AC_OUTPUT is called), incase it is used in configure for compilation
1204
AC_DEFUN([LT_OUTPUT],
1205
[: ${CONFIG_LT=./config.lt}
1206
AC_MSG_NOTICE([creating $CONFIG_LT])
1207
cat >"$CONFIG_LT" <<_LTEOF
1209
# Generated by $as_me.
1210
# Run this file to recreate a libtool stub with the current configuration.
1213
SHELL=\${CONFIG_SHELL-$SHELL}
1216
cat >>"$CONFIG_LT" <<\_LTEOF
1220
exec AS_MESSAGE_FD>&1
1221
exec AS_MESSAGE_LOG_FD>>config.log
1224
AS_BOX([Running $as_me.])
1225
} >&AS_MESSAGE_LOG_FD
1228
\`$as_me' creates a local libtool stub from the current configuration,
1229
for use in further configure time tests before the real libtool is
1232
Usage: $[0] [[OPTIONS]]
1234
-h, --help print this help, then exit
1235
-V, --version print version number, then exit
1236
-q, --quiet do not print progress messages
1237
-d, --debug don't remove temporary files
1239
Report bugs to <bug-libtool@gnu.org>."
1242
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1243
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1244
configured by $[0], generated by m4_PACKAGE_STRING.
1246
Copyright (C) 2008 Free Software Foundation, Inc.
1247
This config.lt script is free software; the Free Software Foundation
1248
gives unlimited permision to copy, distribute and modify it."
1250
while test $[#] != 0
1253
--version | --v* | -V )
1254
echo "$lt_cl_version"; exit 0 ;;
1255
--help | --h* | -h )
1256
echo "$lt_cl_help"; exit 0 ;;
1257
--debug | --d* | -d )
1259
--quiet | --q* | --silent | --s* | -q )
1262
-*) AC_MSG_ERROR([unrecognized option: $[1]
1263
Try \`$[0] --help' for more information.]) ;;
1265
*) AC_MSG_ERROR([unrecognized argument: $[1]
1266
Try \`$[0] --help' for more information.]) ;;
1271
if $lt_cl_silent; then
1272
exec AS_MESSAGE_FD>/dev/null
1276
cat >>"$CONFIG_LT" <<_LTEOF
1277
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1280
cat >>"$CONFIG_LT" <<\_LTEOF
1281
AC_MSG_NOTICE([creating $ofile])
1282
_LT_OUTPUT_LIBTOOL_COMMANDS
1285
chmod +x "$CONFIG_LT"
1287
# configure is writing to config.log, but config.lt does its own redirection,
1288
# appending to config.log, which fails on DOS, as config.log is still kept
1289
# open by configure. Here we exec the FD to /dev/null, effectively closing
1290
# config.log, so it can be properly (re)opened and appended to by config.lt.
1291
if test "$no_create" != yes; then
1293
test "$silent" = yes &&
1294
lt_config_lt_args="$lt_config_lt_args --quiet"
1295
exec AS_MESSAGE_LOG_FD>/dev/null
1296
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1297
exec AS_MESSAGE_LOG_FD>>config.log
1298
$lt_cl_success || AS_EXIT(1)
1305
# If TAG is the built-in tag, create an initial libtool script with a
1306
# default configuration from the untagged config vars. Otherwise add code
1307
# to config.status for appending the configuration named by TAG from the
1308
# matching tagged config vars.
1309
m4_defun([_LT_CONFIG],
1310
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1311
_LT_CONFIG_SAVE_COMMANDS([
1312
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1313
m4_if(_LT_TAG, [C], [
1314
# See if we are running on zsh, and set the options which allow our
1315
# commands through without removal of \ escapes.
1316
if test -n "${ZSH_VERSION+set}" ; then
1317
setopt NO_GLOB_SUBST
1321
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1324
cat <<_LT_EOF >> "$cfgfile"
1327
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1328
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1329
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1330
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1335
# ### BEGIN LIBTOOL CONFIG
1336
_LT_LIBTOOL_CONFIG_VARS
1337
_LT_LIBTOOL_TAG_VARS
1338
# ### END LIBTOOL CONFIG
1344
cat <<\_LT_EOF >> "$cfgfile"
1345
# AIX sometimes has problems with the GCC collect2 program. For some
1346
# reason, if we set the COLLECT_NAMES environment variable, the problems
1347
# vanish in a puff of smoke.
1348
if test "X${COLLECT_NAMES+set}" != Xset; then
1350
export COLLECT_NAMES
1358
# We use sed instead of cat because bash on DJGPP gets confused if
1359
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1360
# text mode, it properly converts lines to CR/LF. This bash problem
1361
# is reportedly fixed, but why not run on old versions too?
1362
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1363
|| (rm -f "$cfgfile"; exit 1)
1365
_LT_PROG_XSI_SHELLFNS
1367
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1368
|| (rm -f "$cfgfile"; exit 1)
1370
mv -f "$cfgfile" "$ofile" ||
1371
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1374
[cat <<_LT_EOF >> "$ofile"
1376
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1377
dnl in a comment (ie after a #).
1378
# ### BEGIN LIBTOOL TAG CONFIG: $1
1379
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1380
# ### END LIBTOOL TAG CONFIG: $1
1387
TIMESTAMP='$TIMESTAMP'
1389
ofile='$ofile'], [])
1390
])dnl /_LT_CONFIG_SAVE_COMMANDS
1394
# LT_SUPPORTED_TAG(TAG)
1395
# ---------------------
1396
# Trace this macro to discover what tags are supported by the libtool
1397
# --tag option, using:
1398
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1399
AC_DEFUN([LT_SUPPORTED_TAG], [])
1402
# C support is built-in for now
1403
m4_define([_LT_LANG_C_enabled], [])
1404
m4_define([_LT_TAGS], [])
1409
# Enable libtool support for the given language if not already enabled.
1411
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1414
[C++], [_LT_LANG(CXX)],
1415
[Java], [_LT_LANG(GCJ)],
1416
[Fortran 77], [_LT_LANG(F77)],
1417
[Fortran], [_LT_LANG(FC)],
1418
[Windows Resource], [_LT_LANG(RC)],
1419
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1421
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1425
# _LT_LANG(LANGNAME)
1426
# ------------------
1427
m4_defun([_LT_LANG],
1428
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1429
[LT_SUPPORTED_TAG([$1])dnl
1430
m4_append([_LT_TAGS], [$1 ])dnl
1431
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1432
_LT_LANG_$1_CONFIG($1)])dnl
1436
# _LT_LANG_DEFAULT_CONFIG
1437
# -----------------------
1438
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1439
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1441
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1443
AC_PROVIDE_IFELSE([AC_PROG_F77],
1445
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1447
AC_PROVIDE_IFELSE([AC_PROG_FC],
1449
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1451
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1452
dnl pulling things in needlessly.
1453
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1455
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1457
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1459
[m4_ifdef([AC_PROG_GCJ],
1460
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1461
m4_ifdef([A][M_PROG_GCJ],
1462
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1463
m4_ifdef([LT_PROG_GCJ],
1464
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1466
AC_PROVIDE_IFELSE([LT_PROG_RC],
1468
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1469
])# _LT_LANG_DEFAULT_CONFIG
1472
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1473
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1474
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1475
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1476
dnl aclocal-1.4 backwards compatibility:
1477
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1478
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1479
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1480
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1485
m4_defun([_LT_TAG_COMPILER],
878
1486
[AC_REQUIRE([AC_PROG_CC])dnl
1488
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1489
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1490
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1491
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
880
1493
# If no C compiler was specified, use CC.
881
1494
LTCC=${LTCC-"$CC"}
3299
3921
AC_CHECK_LIB(m, cos, LIBM="-lm")
3305
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3306
# -----------------------------------
3307
# sets LIBLTDL to the link flags for the libltdl convenience library and
3308
# LTDLINCL to the include flags for the libltdl header and adds
3309
# --enable-ltdl-convenience to the configure arguments. Note that
3310
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3311
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3312
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3313
# (note the single quotes!). If your package is not flat and you're not
3314
# using automake, define top_builddir and top_srcdir appropriately in
3316
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3317
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3318
case $enable_ltdl_convenience in
3319
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3320
"") enable_ltdl_convenience=yes
3321
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3323
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3324
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3325
# For backwards non-gettext consistent compatibility...
3327
])# AC_LIBLTDL_CONVENIENCE
3330
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3331
# -----------------------------------
3332
# sets LIBLTDL to the link flags for the libltdl installable library and
3333
# LTDLINCL to the include flags for the libltdl header and adds
3334
# --enable-ltdl-install to the configure arguments. Note that
3335
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3336
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3337
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3338
# '${top_srcdir}/' (note the single quotes!). If your package is not
3339
# flat and you're not using automake, define top_builddir and top_srcdir
3340
# appropriately in the Makefiles.
3341
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3342
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3343
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3344
AC_CHECK_LIB(ltdl, lt_dlinit,
3345
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3346
[if test x"$enable_ltdl_install" = xno; then
3347
AC_MSG_WARN([libltdl not installed, but installation disabled])
3349
enable_ltdl_install=yes
3352
if test x"$enable_ltdl_install" = x"yes"; then
3353
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3354
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3355
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3357
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3361
# For backwards non-gettext consistent compatibility...
3363
])# AC_LIBLTDL_INSTALLABLE
3368
# enable support for C++ libraries
3369
AC_DEFUN([AC_LIBTOOL_CXX],
3370
[AC_REQUIRE([_LT_AC_LANG_CXX])
3376
AC_DEFUN([_LT_AC_LANG_CXX],
3377
[AC_REQUIRE([AC_PROG_CXX])
3378
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3379
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3382
# _LT_AC_PROG_CXXCPP
3383
# ------------------
3384
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3386
AC_REQUIRE([AC_PROG_CXX])
3387
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3388
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3389
(test "X$CXX" != "Xg++"))) ; then
3392
])# _LT_AC_PROG_CXXCPP
3396
# enable support for Fortran 77 libraries
3397
AC_DEFUN([AC_LIBTOOL_F77],
3398
[AC_REQUIRE([_LT_AC_LANG_F77])
3404
AC_DEFUN([_LT_AC_LANG_F77],
3405
[AC_REQUIRE([AC_PROG_F77])
3406
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3412
# enable support for GCJ libraries
3413
AC_DEFUN([AC_LIBTOOL_GCJ],
3414
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3420
AC_DEFUN([_LT_AC_LANG_GCJ],
3421
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3422
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3423
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3424
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3425
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3426
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3427
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3433
# enable support for Windows resource files
3434
AC_DEFUN([AC_LIBTOOL_RC],
3435
[AC_REQUIRE([LT_AC_PROG_RC])
3436
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3440
# AC_LIBTOOL_LANG_C_CONFIG
3441
# ------------------------
3442
# Ensure that the configuration vars for the C compiler are
3443
# suitably defined. Those variables are subsequently used by
3444
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3445
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3446
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3450
# Source file extension for C test sources.
3453
# Object file extension for compiled C test sources.
3455
_LT_AC_TAGVAR(objext, $1)=$objext
3457
# Code to be used in simple compile tests
3458
lt_simple_compile_test_code="int some_variable = 0;"
3460
# Code to be used in simple link tests
3461
lt_simple_link_test_code='int main(){return(0);}'
3465
# save warnings/boilerplate of simple test code
3466
_LT_COMPILER_BOILERPLATE
3467
_LT_LINKER_BOILERPLATE
3469
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3470
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3471
AC_LIBTOOL_PROG_CC_C_O($1)
3472
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3473
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3474
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3475
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3476
AC_LIBTOOL_SYS_LIB_STRIP
3477
AC_LIBTOOL_DLOPEN_SELF
3479
# Report which library types will actually be built
3480
AC_MSG_CHECKING([if libtool supports shared libraries])
3481
AC_MSG_RESULT([$can_build_shared])
3483
AC_MSG_CHECKING([whether to build shared libraries])
3484
test "$can_build_shared" = "no" && enable_shared=no
3486
# On AIX, shared libraries and static libraries use the same namespace, and
3487
# are all built from PIC.
3490
test "$enable_shared" = yes && enable_static=no
3491
if test -n "$RANLIB"; then
3492
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3493
postinstall_cmds='$RANLIB $lib'
3498
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3499
test "$enable_shared" = yes && enable_static=no
3503
AC_MSG_RESULT([$enable_shared])
3505
AC_MSG_CHECKING([whether to build static libraries])
3506
# Make sure either enable_shared or enable_static is yes.
3507
test "$enable_shared" = yes || enable_static=yes
3508
AC_MSG_RESULT([$enable_static])
3510
AC_LIBTOOL_CONFIG($1)
3514
])# AC_LIBTOOL_LANG_C_CONFIG
3517
# AC_LIBTOOL_LANG_CXX_CONFIG
3518
# --------------------------
3519
# Ensure that the configuration vars for the C compiler are
3520
# suitably defined. Those variables are subsequently used by
3521
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3522
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3523
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3525
AC_REQUIRE([AC_PROG_CXX])
3526
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3528
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3529
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3530
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3531
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3532
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3533
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3534
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3535
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3536
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3537
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3538
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3539
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3540
_LT_AC_TAGVAR(module_cmds, $1)=
3541
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3542
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3543
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3544
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3545
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3546
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3548
# Dependencies to place before and after the object being linked:
3549
_LT_AC_TAGVAR(predep_objects, $1)=
3550
_LT_AC_TAGVAR(postdep_objects, $1)=
3551
_LT_AC_TAGVAR(predeps, $1)=
3552
_LT_AC_TAGVAR(postdeps, $1)=
3553
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3554
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3556
# Source file extension for C++ test sources.
3559
# Object file extension for compiled C++ test sources.
3561
_LT_AC_TAGVAR(objext, $1)=$objext
3563
# Code to be used in simple compile tests
3564
lt_simple_compile_test_code="int some_variable = 0;"
3566
# Code to be used in simple link tests
3567
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3569
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3572
# save warnings/boilerplate of simple test code
3573
_LT_COMPILER_BOILERPLATE
3574
_LT_LINKER_BOILERPLATE
3576
# Allow CC to be a program name with arguments.
3581
lt_save_with_gnu_ld=$with_gnu_ld
3582
lt_save_path_LD=$lt_cv_path_LD
3583
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3584
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3586
$as_unset lt_cv_prog_gnu_ld
3588
if test -n "${lt_cv_path_LDCXX+set}"; then
3589
lt_cv_path_LD=$lt_cv_path_LDCXX
3591
$as_unset lt_cv_path_LD
3593
test -z "${LDCXX+set}" || LD=$LDCXX
3596
_LT_AC_TAGVAR(compiler, $1)=$CC
3597
_LT_CC_BASENAME([$compiler])
3599
# We don't want -fno-exception wen compiling C++ code, so set the
3600
# no_builtin_flag separately
3601
if test "$GXX" = yes; then
3602
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3604
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3607
if test "$GXX" = yes; then
3608
# Set up default GNU C++ configuration
3612
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3613
# archiving commands below assume that GNU ld is being used.
3614
if test "$with_gnu_ld" = yes; then
3615
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3616
_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'
3618
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3619
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3621
# If archive_cmds runs LD, not CC, wlarc should be empty
3622
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3623
# investigate it a little bit more. (MM)
3626
# ancient GNU ld didn't support --whole-archive et. al.
3627
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3628
grep 'no-whole-archive' > /dev/null; then
3629
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3631
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3637
# A generic and very simple default shared library creation
3638
# command for GNU C++ for the case where it uses the native
3639
# linker, instead of GNU ld. If possible, this setting should
3640
# overridden to take advantage of the native linker features on
3641
# the platform it is being used on.
3642
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3645
# Commands to make compiler produce verbose output that lists
3646
# what "hidden" libraries, object files and flags are used when
3647
# linking a shared library.
3648
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3656
# PORTME: fill in a description of your system's C++ link characteristics
3657
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3658
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3661
# FIXME: insert proper C++ library support
3662
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3665
if test "$host_cpu" = ia64; then
3666
# On IA64, the linker does run time linking by default, so we don't
3667
# have to do anything special.
3668
aix_use_runtimelinking=no
3669
exp_sym_flag='-Bexport'
3672
aix_use_runtimelinking=no
3674
# Test if we are trying to use run time linking or normal
3675
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3676
# need to do runtime linking.
3677
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3678
for ld_flag in $LDFLAGS; do
3681
aix_use_runtimelinking=yes
3689
exp_sym_flag='-bexport'
3690
no_entry_flag='-bnoentry'
3693
# When large executables or shared objects are built, AIX ld can
3694
# have problems creating the table of contents. If linking a library
3695
# or program results in "error TOC overflow" add -mminimal-toc to
3696
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3697
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3699
_LT_AC_TAGVAR(archive_cmds, $1)=''
3700
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3701
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3702
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3704
if test "$GXX" = yes; then
3705
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3706
# We only want to do this on AIX 4.2 and lower, the check
3707
# below for broken collect2 doesn't work under 4.3+
3708
collect2name=`${CC} -print-prog-name=collect2`
3709
if test -f "$collect2name" && \
3710
strings "$collect2name" | grep resolve_lib_name >/dev/null
3712
# We have reworked collect2
3715
# We have old collect2
3716
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3717
# It fails to find uninstalled libraries when the uninstalled
3718
# path is not listed in the libpath. Setting hardcode_minus_L
3719
# to unsupported forces relinking
3720
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3721
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3722
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3726
shared_flag='-shared'
3727
if test "$aix_use_runtimelinking" = yes; then
3728
shared_flag="$shared_flag "'${wl}-G'
3732
if test "$host_cpu" = ia64; then
3733
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3734
# chokes on -Wl,-G. The following line is correct:
3737
if test "$aix_use_runtimelinking" = yes; then
3738
shared_flag='${wl}-G'
3740
shared_flag='${wl}-bM:SRE'
3745
# It seems that -bexpall does not export symbols beginning with
3746
# underscore (_), so it is better to generate a list of symbols to export.
3747
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3748
if test "$aix_use_runtimelinking" = yes; then
3749
# Warning - without using the other runtime loading flags (-brtl),
3750
# -berok will link without error, but may produce a broken library.
3751
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3752
# Determine the default libpath from the value encoded in an empty executable.
3753
_LT_AC_SYS_LIBPATH_AIX
3754
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3756
_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"
3758
if test "$host_cpu" = ia64; then
3759
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3760
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3761
_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"
3763
# Determine the default libpath from the value encoded in an empty executable.
3764
_LT_AC_SYS_LIBPATH_AIX
3765
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3766
# Warning - without using the other run time loading flags,
3767
# -berok will link without error, but may produce a broken library.
3768
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3769
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3770
# Exported symbols can be pulled into shared objects from archives
3771
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3772
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3773
# This is similar to how AIX traditionally builds its shared libraries.
3774
_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'
3780
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3781
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3782
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3783
# support --undefined. This deserves some investigation. FIXME
3784
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3786
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3791
case $cc_basename in
3793
# FIXME: insert proper C++ library support
3794
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3799
cygwin* | mingw* | pw32*)
3800
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3801
# as there is no search path for DLLs.
3802
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3803
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3804
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3805
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3807
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3808
_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'
3809
# If the export-symbols file already is a .def file (1st line
3810
# is EXPORTS), use it as is; otherwise, prepend...
3811
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3812
cp $export_symbols $output_objdir/$soname.def;
3814
echo EXPORTS > $output_objdir/$soname.def;
3815
cat $export_symbols >> $output_objdir/$soname.def;
3817
$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'
3819
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3822
darwin* | rhapsody*)
3823
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3824
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3825
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3826
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3827
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3828
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3829
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3830
if test "$GXX" = yes ; then
3831
output_verbose_link_cmd='echo'
3832
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3833
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3834
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3835
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3836
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3837
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3838
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3841
case $cc_basename in
3843
output_verbose_link_cmd='echo'
3844
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3845
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3846
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3847
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3848
_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}'
3851
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3858
case $cc_basename in
3860
# FIXME: insert proper C++ library support
3861
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3864
# Green Hills C++ Compiler
3865
# FIXME: insert proper C++ library support
3866
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3869
# FIXME: insert proper C++ library support
3870
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3875
# C++ shared libraries reported to be fairly broken before switch to ELF
3876
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3879
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3881
freebsd* | dragonfly*)
3882
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3884
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3889
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3890
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3891
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3892
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3893
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3894
# but as the default
3895
# location of the library.
3897
case $cc_basename in
3899
# FIXME: insert proper C++ library support
3900
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3903
_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'
3904
# Commands to make compiler produce verbose output that lists
3905
# what "hidden" libraries, object files and flags are used when
3906
# linking a shared library.
3908
# There doesn't appear to be a way to prevent this compiler from
3909
# explicitly linking system object files so we need to strip them
3910
# from the output so that they don't get included in the library
3912
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'
3915
if test "$GXX" = yes; then
3916
_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'
3918
# FIXME: insert proper C++ library support
3919
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3925
if test $with_gnu_ld = no; then
3926
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3927
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3932
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3938
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3939
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3942
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3943
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3944
# but as the default
3945
# location of the library.
3949
case $cc_basename in
3951
# FIXME: insert proper C++ library support
3952
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3957
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3960
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3963
_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'
3966
# Commands to make compiler produce verbose output that lists
3967
# what "hidden" libraries, object files and flags are used when
3968
# linking a shared library.
3970
# There doesn't appear to be a way to prevent this compiler from
3971
# explicitly linking system object files so we need to strip them
3972
# from the output so that they don't get included in the library
3974
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'
3977
if test "$GXX" = yes; then
3978
if test $with_gnu_ld = no; then
3981
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3984
_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'
3987
_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'
3992
# FIXME: insert proper C++ library support
3993
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3999
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4000
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4001
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4002
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4003
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4004
# Instead, shared libraries are loaded at an image base (0x10000000 by
4005
# default) and relocated if they conflict, which is a slow very memory
4006
# consuming and fragmenting process. To avoid this, we pick a random,
4007
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4008
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4009
_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'
4010
_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'
4013
case $cc_basename in
4016
_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'
4018
# Archives containing C++ object files must be created using
4019
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4020
# necessary to make sure instantiated templates are included
4022
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4025
if test "$GXX" = yes; then
4026
if test "$with_gnu_ld" = no; then
4027
_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'
4029
_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'
4032
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4035
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4036
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4038
linux* | k*bsd*-gnu)
4039
case $cc_basename in
4041
# Kuck and Associates, Inc. (KAI) C++ Compiler
4043
# KCC will only create a shared library if the output file
4044
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4045
# to its proper name (with version) after linking.
4046
_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'
4047
_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'
4048
# Commands to make compiler produce verbose output that lists
4049
# what "hidden" libraries, object files and flags are used when
4050
# linking a shared library.
4052
# There doesn't appear to be a way to prevent this compiler from
4053
# explicitly linking system object files so we need to strip them
4054
# from the output so that they don't get included in the library
4056
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'
4058
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4059
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4061
# Archives containing C++ object files must be created using
4062
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4063
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4068
# version 8.0 and above of icpc choke on multiply defined symbols
4069
# if we add $predep_objects and $postdep_objects, however 7.1 and
4070
# earlier do not add the objects themselves.
4071
case `$CC -V 2>&1` in
4073
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4074
_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'
4076
*) # Version 8.0 or newer
4079
ia64*) tmp_idyn=' -i_dynamic';;
4081
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4082
_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'
4085
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4086
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4087
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4088
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4091
# Portland Group C++ compiler
4092
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4093
_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'
4095
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4096
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4097
_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'
4101
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4102
_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'
4104
runpath_var=LD_RUN_PATH
4105
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4106
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4108
# Commands to make compiler produce verbose output that lists
4109
# what "hidden" libraries, object files and flags are used when
4110
# linking a shared library.
4112
# There doesn't appear to be a way to prevent this compiler from
4113
# explicitly linking system object files so we need to strip them
4114
# from the output so that they don't get included in the library
4116
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'
4119
case `$CC -V 2>&1 | sed 5q` in
4122
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4123
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4124
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4125
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4126
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4128
# Not sure whether something based on
4129
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4131
output_verbose_link_cmd='echo'
4133
# Archives containing C++ object files must be created using
4134
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4135
# necessary to make sure instantiated templates are included
4137
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4144
# FIXME: insert proper C++ library support
4145
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4148
# FIXME: insert proper C++ library support
4149
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4152
case $cc_basename in
4154
# FIXME: insert proper C++ library support
4155
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4158
# FIXME: insert proper C++ library support
4159
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4163
netbsd* | netbsdelf*-gnu)
4164
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4165
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4167
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4168
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4169
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4171
# Workaround some broken pre-1.5 toolchains
4172
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4175
# C++ shared libraries are fairly broken
4176
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4179
if test -f /usr/libexec/ld.so; then
4180
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4181
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4182
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4183
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4184
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4185
_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'
4186
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4187
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4189
output_verbose_link_cmd='echo'
4191
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4195
case $cc_basename in
4197
# Kuck and Associates, Inc. (KAI) C++ Compiler
4199
# KCC will only create a shared library if the output file
4200
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4201
# to its proper name (with version) after linking.
4202
_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'
4204
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4205
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4207
# Archives containing C++ object files must be created using
4208
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4209
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4213
# Rational C++ 2.4.1
4214
# FIXME: insert proper C++ library support
4215
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4218
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4219
_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'
4221
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4222
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4224
# Commands to make compiler produce verbose output that lists
4225
# what "hidden" libraries, object files and flags are used when
4226
# linking a shared library.
4228
# There doesn't appear to be a way to prevent this compiler from
4229
# explicitly linking system object files so we need to strip them
4230
# from the output so that they don't get included in the library
4232
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'
4235
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4236
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4237
_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'
4239
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4240
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4242
# Commands to make compiler produce verbose output that lists
4243
# what "hidden" libraries, object files and flags are used when
4244
# linking a shared library.
4245
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4248
# FIXME: insert proper C++ library support
4249
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4255
case $cc_basename in
4257
# Kuck and Associates, Inc. (KAI) C++ Compiler
4259
# KCC will only create a shared library if the output file
4260
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4261
# to its proper name (with version) after linking.
4262
_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'
4264
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4265
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4267
# Archives containing C++ object files must be created using
4268
# the KAI C++ compiler.
4269
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4272
# Rational C++ 2.4.1
4273
# FIXME: insert proper C++ library support
4274
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4277
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4278
_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'
4279
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4280
echo "-hidden">> $lib.exp~
4281
$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~
4284
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4285
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4287
# Commands to make compiler produce verbose output that lists
4288
# what "hidden" libraries, object files and flags are used when
4289
# linking a shared library.
4291
# There doesn't appear to be a way to prevent this compiler from
4292
# explicitly linking system object files so we need to strip them
4293
# from the output so that they don't get included in the library
4295
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'
4298
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4299
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4300
_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'
4302
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4303
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4305
# Commands to make compiler produce verbose output that lists
4306
# what "hidden" libraries, object files and flags are used when
4307
# linking a shared library.
4308
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4311
# FIXME: insert proper C++ library support
4312
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4318
# FIXME: insert proper C++ library support
4319
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4322
case $cc_basename in
4325
# FIXME: insert proper C++ library support
4326
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4330
# FIXME: insert proper C++ library support
4331
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4334
# FIXME: insert proper C++ library support
4335
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4340
case $cc_basename in
4342
# Sun C++ 4.2, 5.x and Centerline C++
4343
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4344
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4345
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4346
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4347
$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'
4349
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4350
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4352
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4354
# The compiler driver will combine and reorder linker options,
4355
# but understands `-z linker_flag'.
4356
# Supported since Solaris 2.6 (maybe 2.5.1?)
4357
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4360
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4362
output_verbose_link_cmd='echo'
4364
# Archives containing C++ object files must be created using
4365
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4366
# necessary to make sure instantiated templates are included
4368
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4371
# Green Hills C++ Compiler
4372
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4374
# The C++ compiler must be used to create the archive.
4375
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4378
# GNU C++ compiler with Solaris linker
4379
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4380
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4381
if $CC --version | grep -v '^2\.7' > /dev/null; then
4382
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4383
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4384
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4386
# Commands to make compiler produce verbose output that lists
4387
# what "hidden" libraries, object files and flags are used when
4388
# linking a shared library.
4389
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4391
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4393
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4394
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4395
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4397
# Commands to make compiler produce verbose output that lists
4398
# what "hidden" libraries, object files and flags are used when
4399
# linking a shared library.
4400
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4403
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4405
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4407
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4414
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4415
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4416
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4417
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4418
runpath_var='LD_RUN_PATH'
4420
case $cc_basename in
4422
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4423
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4426
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4427
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4431
sysv5* | sco3.2v5* | sco5v6*)
4432
# Note: We can NOT use -z defs as we might desire, because we do not
4433
# link with -lc, and that would cause any symbols used from libc to
4434
# always be unresolved, which means just about no library would
4435
# ever link correctly. If we're not using GNU ld we use -z text
4436
# though, which does catch some bad symbols but isn't as heavy-handed
4438
# For security reasons, it is highly recommended that you always
4439
# use absolute paths for naming shared libraries, and exclude the
4440
# DT_RUNPATH tag from executables and libraries. But doing so
4441
# requires that you compile everything twice, which is a pain.
4442
# So that behaviour is only enabled if SCOABSPATH is set to a
4443
# non-empty value in the environment. Most likely only useful for
4444
# creating official distributions of packages.
4445
# This is a hack until libtool officially supports absolute path
4446
# names for shared libraries.
4447
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4448
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4449
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4450
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4451
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4452
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4453
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4454
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4455
runpath_var='LD_RUN_PATH'
4457
case $cc_basename in
4459
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4460
_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'
4463
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4464
_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'
4469
case $cc_basename in
4471
# NonStop-UX NCC 3.20
4472
# FIXME: insert proper C++ library support
4473
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4476
# FIXME: insert proper C++ library support
4477
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4482
# FIXME: insert proper C++ library support
4483
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4486
# FIXME: insert proper C++ library support
4487
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4490
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4491
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4493
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4494
_LT_AC_TAGVAR(LD, $1)="$LD"
4496
AC_LIBTOOL_POSTDEP_PREDEP($1)
4497
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4498
AC_LIBTOOL_PROG_CC_C_O($1)
4499
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4500
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4501
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4502
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4504
AC_LIBTOOL_CONFIG($1)
4511
with_gnu_ldcxx=$with_gnu_ld
4512
with_gnu_ld=$lt_save_with_gnu_ld
4513
lt_cv_path_LDCXX=$lt_cv_path_LD
4514
lt_cv_path_LD=$lt_save_path_LD
4515
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4516
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4517
])# AC_LIBTOOL_LANG_CXX_CONFIG
4519
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4520
# ------------------------------------
4521
# Figure out "hidden" library dependencies from verbose
4522
# compiler output when linking a shared library.
4523
# Parse the compiler output and extract the necessary
4524
# objects, libraries and library flags.
4525
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4526
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4527
dnl we can't use the lt_simple_compile_test_code here,
4528
dnl because it contains code intended for an executable,
4529
dnl not a library. It's possible we should let each
4530
dnl tag define a new lt_????_link_test_code variable,
4531
dnl but it's only used here...
4532
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4534
void foo (void) { a = 0; }
4536
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4540
Foo (void) { a = 0; }
4545
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4553
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4556
public void bar (void) {
4562
dnl Parse the compiler output and extract the necessary
4563
dnl objects, libraries and library flags.
4564
if AC_TRY_EVAL(ac_compile); then
4565
# Parse the compiler output and extract the necessary
4566
# objects, libraries and library flags.
4568
# Sentinel used to keep track of whether or not we are before
4569
# the conftest object file.
4570
pre_test_object_deps_done=no
4572
# The `*' in the case matches for architectures that use `case' in
4573
# $output_verbose_cmd can trigger glob expansion during the loop
4574
# eval without this substitution.
4575
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4577
for p in `eval $output_verbose_link_cmd`; do
4581
# Some compilers place space between "-{L,R}" and the path.
4584
|| test $p = "-R"; then
4591
if test "$pre_test_object_deps_done" = no; then
4594
# Internal compiler library paths should come after those
4595
# provided the user. The postdeps already come after the
4596
# user supplied libs so there is no need to process them.
4597
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4598
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4600
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4603
# The "-l" case would never come before the object being
4604
# linked, so don't bother handling this case.
4607
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4608
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4610
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4616
# This assumes that the test object file only shows up
4617
# once in the compiler output.
4618
if test "$p" = "conftest.$objext"; then
4619
pre_test_object_deps_done=yes
4623
if test "$pre_test_object_deps_done" = no; then
4624
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4625
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4627
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4630
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4631
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4633
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4638
*) ;; # Ignore the rest.
4646
echo "libtool.m4: error: problem compiling $1 test program"
4649
$rm -f confest.$objext
4651
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4652
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4653
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4656
# PORTME: override above test on systems where it is broken
4660
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4661
# hack all around it, let's just trust "g++" to DTRT.
4662
_LT_AC_TAGVAR(predep_objects,$1)=
4663
_LT_AC_TAGVAR(postdep_objects,$1)=
4664
_LT_AC_TAGVAR(postdeps,$1)=
4668
case `$CC -V 2>&1 | sed 5q` in
4672
# The more standards-conforming stlport4 library is
4673
# incompatible with the Cstd library. Avoid specifying
4674
# it if it's in CXXFLAGS. Ignore libCrun as
4675
# -library=stlport4 depends on it.
4676
case " $CXX $CXXFLAGS " in
4677
*" -library=stlport4 "*)
4678
solaris_use_stlport4=yes
4681
if test "$solaris_use_stlport4" != yes; then
4682
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4689
case $cc_basename in
4691
# The more standards-conforming stlport4 library is
4692
# incompatible with the Cstd library. Avoid specifying
4693
# it if it's in CXXFLAGS. Ignore libCrun as
4694
# -library=stlport4 depends on it.
4695
case " $CXX $CXXFLAGS " in
4696
*" -library=stlport4 "*)
4697
solaris_use_stlport4=yes
4701
# Adding this requires a known-good setup of shared libraries for
4702
# Sun compiler versions before 5.6, else PIC objects from an old
4703
# archive will be linked into the output, leading to subtle bugs.
4704
if test "$solaris_use_stlport4" != yes; then
4705
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4712
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4713
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4715
])# AC_LIBTOOL_POSTDEP_PREDEP
4717
# AC_LIBTOOL_LANG_F77_CONFIG
4718
# --------------------------
4719
# Ensure that the configuration vars for the C compiler are
4720
# suitably defined. Those variables are subsequently used by
4721
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4722
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4723
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4724
[AC_REQUIRE([AC_PROG_F77])
4725
AC_LANG_PUSH(Fortran 77)
4727
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4728
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4729
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4730
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4731
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4732
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4733
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4734
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4735
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4736
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4737
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4738
_LT_AC_TAGVAR(module_cmds, $1)=
4739
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4740
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4741
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4742
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4743
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4744
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4746
# Source file extension for f77 test sources.
4749
# Object file extension for compiled f77 test sources.
4751
_LT_AC_TAGVAR(objext, $1)=$objext
4753
# Code to be used in simple compile tests
4754
lt_simple_compile_test_code="\
4760
# Code to be used in simple link tests
4761
lt_simple_link_test_code="\
4766
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4769
# save warnings/boilerplate of simple test code
4770
_LT_COMPILER_BOILERPLATE
4771
_LT_LINKER_BOILERPLATE
4773
# Allow CC to be a program name with arguments.
4777
_LT_AC_TAGVAR(compiler, $1)=$CC
4778
_LT_CC_BASENAME([$compiler])
4780
AC_MSG_CHECKING([if libtool supports shared libraries])
4781
AC_MSG_RESULT([$can_build_shared])
4783
AC_MSG_CHECKING([whether to build shared libraries])
4784
test "$can_build_shared" = "no" && enable_shared=no
4786
# On AIX, shared libraries and static libraries use the same namespace, and
4787
# are all built from PIC.
4790
test "$enable_shared" = yes && enable_static=no
4791
if test -n "$RANLIB"; then
4792
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4793
postinstall_cmds='$RANLIB $lib'
4797
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4798
test "$enable_shared" = yes && enable_static=no
4802
AC_MSG_RESULT([$enable_shared])
4804
AC_MSG_CHECKING([whether to build static libraries])
4805
# Make sure either enable_shared or enable_static is yes.
4806
test "$enable_shared" = yes || enable_static=yes
4807
AC_MSG_RESULT([$enable_static])
4809
_LT_AC_TAGVAR(GCC, $1)="$G77"
4810
_LT_AC_TAGVAR(LD, $1)="$LD"
4812
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4813
AC_LIBTOOL_PROG_CC_C_O($1)
4814
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4815
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4816
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4817
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4819
AC_LIBTOOL_CONFIG($1)
4823
])# AC_LIBTOOL_LANG_F77_CONFIG
4826
# AC_LIBTOOL_LANG_GCJ_CONFIG
4827
# --------------------------
4828
# Ensure that the configuration vars for the C compiler are
4829
# suitably defined. Those variables are subsequently used by
4830
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4831
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4832
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4835
# Source file extension for Java test sources.
4838
# Object file extension for compiled Java test sources.
4840
_LT_AC_TAGVAR(objext, $1)=$objext
4842
# Code to be used in simple compile tests
4843
lt_simple_compile_test_code="class foo {}"
4845
# Code to be used in simple link tests
4846
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4848
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4851
# save warnings/boilerplate of simple test code
4852
_LT_COMPILER_BOILERPLATE
4853
_LT_LINKER_BOILERPLATE
4855
# Allow CC to be a program name with arguments.
4859
_LT_AC_TAGVAR(compiler, $1)=$CC
4860
_LT_CC_BASENAME([$compiler])
4862
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4863
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4865
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4867
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4868
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4869
AC_LIBTOOL_PROG_CC_C_O($1)
4870
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4871
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4872
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4873
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4875
AC_LIBTOOL_CONFIG($1)
4879
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4882
# AC_LIBTOOL_LANG_RC_CONFIG
4883
# -------------------------
4884
# Ensure that the configuration vars for the Windows resource compiler are
4885
# suitably defined. Those variables are subsequently used by
4886
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4887
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4888
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4891
# Source file extension for RC test sources.
4894
# Object file extension for compiled RC test sources.
4896
_LT_AC_TAGVAR(objext, $1)=$objext
4898
# Code to be used in simple compile tests
4899
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4901
# Code to be used in simple link tests
4902
lt_simple_link_test_code="$lt_simple_compile_test_code"
4904
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4907
# save warnings/boilerplate of simple test code
4908
_LT_COMPILER_BOILERPLATE
4909
_LT_LINKER_BOILERPLATE
4911
# Allow CC to be a program name with arguments.
4915
_LT_AC_TAGVAR(compiler, $1)=$CC
4916
_LT_CC_BASENAME([$compiler])
4917
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4919
AC_LIBTOOL_CONFIG($1)
4923
])# AC_LIBTOOL_LANG_RC_CONFIG
4926
# AC_LIBTOOL_CONFIG([TAGNAME])
4927
# ----------------------------
4928
# If TAGNAME is not passed, then create an initial libtool script
4929
# with a default configuration from the untagged config vars. Otherwise
4930
# add code to config.status for appending the configuration named by
4931
# TAGNAME from the matching tagged config vars.
4932
AC_DEFUN([AC_LIBTOOL_CONFIG],
4933
[# The else clause should only fire when bootstrapping the
4934
# libtool distribution, otherwise you forgot to ship ltmain.sh
4935
# with your package, and you will get complaints that there are
4936
# no rules to generate ltmain.sh.
4937
if test -f "$ltmain"; then
4938
# See if we are running on zsh, and set the options which allow our commands through
4939
# without removal of \ escapes.
4940
if test -n "${ZSH_VERSION+set}" ; then
4941
setopt NO_GLOB_SUBST
4943
# Now quote all the things that may contain metacharacters while being
4944
# careful not to overquote the AC_SUBSTed values. We take copies of the
4945
# variables and quote the copies for generation of the libtool script.
4946
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4948
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4949
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4950
deplibs_check_method reload_flag reload_cmds need_locks \
4951
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4952
lt_cv_sys_global_symbol_to_c_name_address \
4953
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4954
old_postinstall_cmds old_postuninstall_cmds \
4955
_LT_AC_TAGVAR(compiler, $1) \
4956
_LT_AC_TAGVAR(CC, $1) \
4957
_LT_AC_TAGVAR(LD, $1) \
4958
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4959
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4960
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4961
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4962
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4963
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4964
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4965
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4966
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4967
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4968
_LT_AC_TAGVAR(predep_objects, $1) \
4969
_LT_AC_TAGVAR(postdep_objects, $1) \
4970
_LT_AC_TAGVAR(predeps, $1) \
4971
_LT_AC_TAGVAR(postdeps, $1) \
4972
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4973
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4974
_LT_AC_TAGVAR(archive_cmds, $1) \
4975
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4976
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4977
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4978
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4979
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4980
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4981
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4982
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4983
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4984
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4985
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4986
_LT_AC_TAGVAR(module_cmds, $1) \
4987
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4988
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4989
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4990
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4991
_LT_AC_TAGVAR(include_expsyms, $1); do
4994
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4995
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4996
_LT_AC_TAGVAR(archive_cmds, $1) | \
4997
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4998
_LT_AC_TAGVAR(module_cmds, $1) | \
4999
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5000
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5001
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5002
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5003
postinstall_cmds | postuninstall_cmds | \
5004
old_postinstall_cmds | old_postuninstall_cmds | \
5005
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5006
# Double-quote double-evaled strings.
5007
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5010
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5016
*'\[$]0 --fallback-echo"')
5017
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5022
[cfgfile="${ofile}T"
5023
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5025
AC_MSG_NOTICE([creating $ofile])],
5028
cat <<__EOF__ >> "$cfgfile"
5032
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5033
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5034
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5036
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5037
# Free Software Foundation, Inc.
5039
# This file is part of GNU Libtool:
5040
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5042
# This program is free software; you can redistribute it and/or modify
5043
# it under the terms of the GNU General Public License as published by
5044
# the Free Software Foundation; either version 2 of the License, or
5045
# (at your option) any later version.
5047
# This program is distributed in the hope that it will be useful, but
5048
# WITHOUT ANY WARRANTY; without even the implied warranty of
5049
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5050
# General Public License for more details.
5052
# You should have received a copy of the GNU General Public License
5053
# along with this program; if not, write to the Free Software
5054
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5056
# As a special exception to the GNU General Public License, if you
5057
# distribute this file as part of a program that contains a
5058
# configuration script generated by Autoconf, you may include it under
5059
# the same distribution terms that you use for the rest of that program.
5061
# A sed program that does not truncate output.
5064
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5065
Xsed="$SED -e 1s/^X//"
5067
# The HP-UX ksh and POSIX shell print the target directory to stdout
5069
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5071
# The names of the tagged configurations supported by this script.
5074
# ### BEGIN LIBTOOL CONFIG],
5075
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5077
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5079
# Shell to use when invoking shell scripts.
5082
# Whether or not to build shared libraries.
5083
build_libtool_libs=$enable_shared
5085
# Whether or not to build static libraries.
5086
build_old_libs=$enable_static
5088
# Whether or not to add -lc for building shared libraries.
5089
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5091
# Whether or not to disallow shared libs when runtime libs are static
5092
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5094
# Whether or not to optimize for fast installation.
5095
fast_install=$enable_fast_install
5098
host_alias=$host_alias
5103
build_alias=$build_alias
5107
# An echo program that does not interpret backslashes.
5112
AR_FLAGS=$lt_AR_FLAGS
5117
# LTCC compiler flags.
5118
LTCFLAGS=$lt_LTCFLAGS
5120
# A language-specific compiler.
5121
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5123
# Is the compiler the GNU C compiler?
5124
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5129
# The linker used to build libraries.
5130
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5132
# Whether we need hard or soft links.
5135
# A BSD-compatible nm program.
5138
# A symbol stripping program
5141
# Used to examine libraries when file_magic_cmd begins "file"
5142
MAGIC_CMD=$MAGIC_CMD
5144
# Used on cygwin: DLL creation program.
5147
# Used on cygwin: object dumper.
5150
# Used on cygwin: assembler.
5153
# The name of the directory that contains temporary libtool files.
5156
# How to create reloadable object files.
5157
reload_flag=$lt_reload_flag
5158
reload_cmds=$lt_reload_cmds
5160
# How to pass a linker flag through the compiler.
5161
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5163
# Object file suffix (normally "o").
5166
# Old archive suffix (normally "a").
5169
# Shared library suffix (normally ".so").
5170
shrext_cmds='$shrext_cmds'
5172
# Executable file suffix (normally "").
5175
# Additional compiler flags for building library objects.
5176
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5179
# What is the maximum length of a command?
5180
max_cmd_len=$lt_cv_sys_max_cmd_len
5182
# Does compiler simultaneously support -c and -o options?
5183
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5185
# Must we lock files when doing compilation?
5186
need_locks=$lt_need_locks
5188
# Do we need the lib prefix for modules?
5189
need_lib_prefix=$need_lib_prefix
5191
# Do we need a version for libraries?
5192
need_version=$need_version
5194
# Whether dlopen is supported.
5195
dlopen_support=$enable_dlopen
5197
# Whether dlopen of programs is supported.
5198
dlopen_self=$enable_dlopen_self
5200
# Whether dlopen of statically linked programs is supported.
5201
dlopen_self_static=$enable_dlopen_self_static
5203
# Compiler flag to prevent dynamic linking.
5204
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5206
# Compiler flag to turn off builtin functions.
5207
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5209
# Compiler flag to allow reflexive dlopens.
5210
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5212
# Compiler flag to generate shared objects directly from archives.
5213
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5215
# Compiler flag to generate thread-safe objects.
5216
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5218
# Library versioning type.
5219
version_type=$version_type
5221
# Format of library name prefix.
5222
libname_spec=$lt_libname_spec
5224
# List of archive names. First name is the real one, the rest are links.
5225
# The last name is the one that the linker finds with -lNAME.
5226
library_names_spec=$lt_library_names_spec
5228
# The coded name of the library, if different from the real name.
5229
soname_spec=$lt_soname_spec
5231
# Commands used to build and install an old-style archive.
5233
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5234
old_postinstall_cmds=$lt_old_postinstall_cmds
5235
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5237
# Create an old-style archive from a shared archive.
5238
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5240
# Create a temporary old-style archive to link instead of a shared archive.
5241
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5243
# Commands used to build and install a shared archive.
5244
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5245
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5246
postinstall_cmds=$lt_postinstall_cmds
5247
postuninstall_cmds=$lt_postuninstall_cmds
5249
# Commands used to build a loadable module (assumed same as above if empty)
5250
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5251
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5253
# Commands to strip libraries.
5254
old_striplib=$lt_old_striplib
5255
striplib=$lt_striplib
5257
# Dependencies to place before the objects being linked to create a
5259
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5261
# Dependencies to place after the objects being linked to create a
5263
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5265
# Dependencies to place before the objects being linked to create a
5267
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5269
# Dependencies to place after the objects being linked to create a
5271
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5273
# The directories searched by this compiler when creating a shared
5275
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5277
# The library search path used internally by the compiler when linking
5279
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5281
# Method to check whether dependent libraries are shared objects.
5282
deplibs_check_method=$lt_deplibs_check_method
5284
# Command to use when deplibs_check_method == file_magic.
5285
file_magic_cmd=$lt_file_magic_cmd
5287
# Flag that allows shared libraries with undefined symbols to be built.
5288
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5290
# Flag that forces no undefined symbols.
5291
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5293
# Commands used to finish a libtool library installation in a directory.
5294
finish_cmds=$lt_finish_cmds
5296
# Same as above, but a single script fragment to be evaled but not shown.
5297
finish_eval=$lt_finish_eval
5299
# Take the output of nm and produce a listing of raw symbols and C names.
5300
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5302
# Transform the output of nm in a proper C declaration
5303
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5305
# Transform the output of nm in a C name address pair
5306
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5308
# This is the shared library runtime path variable.
5309
runpath_var=$runpath_var
5311
# This is the shared library path variable.
5312
shlibpath_var=$shlibpath_var
5314
# Is shlibpath searched before the hard-coded library search path?
5315
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5317
# How to hardcode a shared library path into an executable.
5318
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5320
# Whether we should hardcode library paths into libraries.
5321
hardcode_into_libs=$hardcode_into_libs
5323
# Flag to hardcode \$libdir into a binary during linking.
5324
# This must work even if \$libdir does not exist.
5325
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5327
# If ld is used when linking, flag to hardcode \$libdir into
5328
# a binary during linking. This must work even if \$libdir does
5330
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5332
# Whether we need a single -rpath flag with a separated argument.
5333
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5335
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5337
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5339
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5341
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5343
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5344
# the resulting binary.
5345
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5347
# Set to yes if building a shared library automatically hardcodes DIR into the library
5348
# and all subsequent libraries and executables linked against it.
5349
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5351
# Variables whose values should be saved in libtool wrapper scripts and
5352
# restored at relink time.
5353
variables_saved_for_relink="$variables_saved_for_relink"
5355
# Whether libtool must link a program against all its dependency libraries.
5356
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5358
# Compile-time system search path for libraries
5359
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5361
# Run-time system search path for libraries
5362
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5364
# Fix the shell variable \$srcfile for the compiler.
5365
fix_srcfile_path=$lt_fix_srcfile_path
5367
# Set to yes if exported symbols are required.
5368
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5370
# The commands to list exported symbols.
5371
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5373
# The commands to extract the exported symbol list from a shared archive.
5374
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5376
# Symbols that should not be listed in the preloaded symbols.
5377
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5379
# Symbols that must always be exported.
5380
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5383
[# ### END LIBTOOL CONFIG],
5384
[# ### END LIBTOOL TAG CONFIG: $tagname])
5391
cat <<\EOF >> "$cfgfile"
5393
# AIX sometimes has problems with the GCC collect2 program. For some
5394
# reason, if we set the COLLECT_NAMES environment variable, the problems
5395
# vanish in a puff of smoke.
5396
if test "X${COLLECT_NAMES+set}" != Xset; then
5398
export COLLECT_NAMES
5404
# We use sed instead of cat because bash on DJGPP gets confused if
5405
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5406
# text mode, it properly converts lines to CR/LF. This bash problem
5407
# is reportedly fixed, but why not run on old versions too?
5408
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5410
mv -f "$cfgfile" "$ofile" || \
5411
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5415
# If there is no Makefile yet, we rely on a make rule to execute
5416
# `config.status --recheck' to rerun these tests and create the
5417
# libtool script then.
5418
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5419
if test -f "$ltmain_in"; then
5420
test -f Makefile && make "$ltmain"
5423
])# AC_LIBTOOL_CONFIG
5426
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5427
# -------------------------------------------
5428
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5429
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5431
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3928
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3929
dnl aclocal-1.4 backwards compatibility:
3930
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3933
# _LT_COMPILER_NO_RTTI([TAGNAME])
3934
# -------------------------------
3935
m4_defun([_LT_COMPILER_NO_RTTI],
3936
[m4_require([_LT_TAG_COMPILER])dnl
3938
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5433
3940
if test "$GCC" = yes; then
5434
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3941
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5436
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3943
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5437
3944
lt_cv_prog_compiler_rtti_exceptions,
5438
3945
[-fno-rtti -fno-exceptions], [],
5439
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3946
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5441
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5444
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5445
# ---------------------------------
5446
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5447
[AC_REQUIRE([AC_CANONICAL_HOST])
5448
AC_REQUIRE([LT_AC_PROG_SED])
5449
AC_REQUIRE([AC_PROG_NM])
5450
AC_REQUIRE([AC_OBJEXT])
3948
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3949
[Compiler flag to turn off builtin functions])
3950
])# _LT_COMPILER_NO_RTTI
3953
# _LT_CMD_GLOBAL_SYMBOLS
3954
# ----------------------
3955
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3956
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3957
AC_REQUIRE([AC_PROG_CC])dnl
3958
AC_REQUIRE([LT_PATH_NM])dnl
3959
AC_REQUIRE([LT_PATH_LD])dnl
3960
m4_require([_LT_DECL_SED])dnl
3961
m4_require([_LT_DECL_EGREP])dnl
3962
m4_require([_LT_TAG_COMPILER])dnl
5451
3964
# Check for command to grab the raw symbol name followed by C symbol from nm.
5452
3965
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5453
3966
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6049
4618
# +Z the default
6052
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4621
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6055
4624
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6056
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4625
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6059
4628
irix5* | irix6* | nonstopux*)
6060
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4629
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6061
4630
# PIC (with -KPIC) is the default.
6062
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6066
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6067
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4631
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6070
4634
linux* | k*bsd*-gnu)
6071
4635
case $cc_basename in
6073
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6074
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6075
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4636
# old Intel for x86_64 which still supported -KPIC.
4638
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4639
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4640
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4642
# icc used to be incompatible with GCC.
4643
# ICC 10 doesn't accept -KPIC any more.
4645
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4646
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4647
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4649
# Lahey Fortran 8.1.
4651
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4652
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4653
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6077
4655
pgcc* | pgf77* | pgf90* | pgf95*)
6078
4656
# Portland Group compilers (*not* the Pentium gcc compiler,
6079
4657
# which looks to be a dead project)
6080
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6081
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6082
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4658
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4659
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4660
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6085
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4663
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6086
4664
# All Alpha code is PIC.
6087
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4665
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4668
# IBM XL C 8.0/Fortran 10.1 on PPC
4669
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4670
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4671
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6090
case `$CC -V 2>&1 | sed 5q` in
4674
case `$CC -V 2>&1 | sed 5q` in
6093
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6094
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6095
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4677
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4678
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4679
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6098
4682
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6099
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6100
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6101
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4683
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4684
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4685
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4693
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4694
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4698
# QNX uses GNU C++, but need to define -shared option too, otherwise
4700
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6108
4703
osf3* | osf4* | osf5*)
6109
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4704
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6110
4705
# All OSF/1 code is PIC.
6111
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4706
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6115
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4710
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6119
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6120
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4714
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4715
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6121
4716
case $cc_basename in
6122
4717
f77* | f90* | f95*)
6123
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4718
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6125
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4720
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6130
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6131
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6132
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4725
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4726
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4727
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6135
4730
sysv4 | sysv4.2uw2* | sysv4.3*)
6136
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6137
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6138
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4731
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4732
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4733
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6142
4737
if test -d /usr/nec ;then
6143
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6144
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4738
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4739
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6148
4743
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6149
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6150
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6151
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4744
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4745
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4746
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6155
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6156
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4750
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4751
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6160
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6161
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4755
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4756
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6165
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4760
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6170
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4766
# For platforms which do not support PIC, -DPIC is meaningless:
4768
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4771
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4774
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4775
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4776
[How to pass a linker flag through the compiler])
6173
4779
# Check to make sure the PIC flag actually works.
6175
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6176
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6177
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6178
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6179
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4781
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4782
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4783
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4784
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4785
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6181
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4787
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6183
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6184
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4789
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4790
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6187
# For platforms which do not support PIC, -DPIC is meaningless:
6189
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6192
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4792
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4793
[Additional compiler flags for building library objects])
6197
4796
# Check to make sure the static flag actually works.
6199
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6200
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6201
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4798
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4799
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4800
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6202
4801
$lt_tmp_static_flag,
6204
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6208
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6209
# ------------------------------------
4803
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4804
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4805
[Compiler flag to prevent dynamic linking])
4806
])# _LT_COMPILER_PIC
4809
# _LT_LINKER_SHLIBS([TAGNAME])
4810
# ----------------------------
6210
4811
# See if the linker supports building shared libraries.
6211
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6212
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4812
m4_defun([_LT_LINKER_SHLIBS],
4813
[AC_REQUIRE([LT_PATH_LD])dnl
4814
AC_REQUIRE([LT_PATH_NM])dnl
4815
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4816
m4_require([_LT_DECL_EGREP])dnl
4817
m4_require([_LT_DECL_SED])dnl
4818
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4819
m4_require([_LT_TAG_COMPILER])dnl
6213
4820
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6215
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4821
m4_if([$1], [CXX], [
4822
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6216
4823
case $host_os in
6218
4825
# If we're using GNU nm, then we don't want the "-C" option.
6219
4826
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6220
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6221
_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'
4827
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4828
_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'
6223
_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'
4830
_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'
6227
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4834
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6230
_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'
4836
cygwin* | mingw* | cegcc*)
4837
_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'
6232
4839
linux* | k*bsd*-gnu)
6233
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
4840
_LT_TAGVAR(link_all_deplibs, $1)=no
6236
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4843
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6239
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4846
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6242
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6243
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6244
_LT_AC_TAGVAR(archive_cmds, $1)=
6245
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6246
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6247
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6248
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6249
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6250
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6251
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6252
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6253
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6254
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6255
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6256
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6257
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6258
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6259
_LT_AC_TAGVAR(module_cmds, $1)=
6260
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6261
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6262
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4849
_LT_TAGVAR(allow_undefined_flag, $1)=
4850
_LT_TAGVAR(always_export_symbols, $1)=no
4851
_LT_TAGVAR(archive_cmds, $1)=
4852
_LT_TAGVAR(archive_expsym_cmds, $1)=
4853
_LT_TAGVAR(compiler_needs_object, $1)=no
4854
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4855
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4856
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4857
_LT_TAGVAR(hardcode_automatic, $1)=no
4858
_LT_TAGVAR(hardcode_direct, $1)=no
4859
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4860
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4861
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4862
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4863
_LT_TAGVAR(hardcode_minus_L, $1)=no
4864
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4865
_LT_TAGVAR(inherit_rpath, $1)=no
4866
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4867
_LT_TAGVAR(module_cmds, $1)=
4868
_LT_TAGVAR(module_expsym_cmds, $1)=
4869
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4870
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4871
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4872
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6263
4873
# include_expsyms should be a list of space-separated symbols to be *always*
6264
4874
# included in the symbol list
6265
_LT_AC_TAGVAR(include_expsyms, $1)=
4875
_LT_TAGVAR(include_expsyms, $1)=
6266
4876
# exclude_expsyms can be an extended regexp of symbols to exclude
6267
4877
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6268
4878
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6269
4879
# as well as any symbol that contains `d'.
6270
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4880
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6271
4881
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6272
4882
# platforms (ab)use it in PIC code, but their linkers get confused if
6273
4883
# the symbol is explicitly referenced. Since portable code cannot
6868
5479
irix5* | irix6* | nonstopux*)
6869
5480
if test "$GCC" = yes; then
6870
_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'
5481
_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'
5482
# Try to use the -exported_symbol ld option, if it does not
5483
# work, assume that -exports_file does not work either and
5484
# implicitly export all symbols.
5485
save_LDFLAGS="$LDFLAGS"
5486
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5487
AC_LINK_IFELSE(int foo(void) {},
5488
_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'
5490
LDFLAGS="$save_LDFLAGS"
6872
_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'
6873
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5492
_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'
5493
_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'
6875
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6876
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6877
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5495
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5496
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5497
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5498
_LT_TAGVAR(inherit_rpath, $1)=yes
5499
_LT_TAGVAR(link_all_deplibs, $1)=yes
6880
5502
netbsd* | netbsdelf*-gnu)
6881
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6882
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5503
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5504
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6884
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5506
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6886
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6887
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6888
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5508
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5509
_LT_TAGVAR(hardcode_direct, $1)=yes
5510
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6892
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6893
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6894
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6895
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6896
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5514
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5515
_LT_TAGVAR(hardcode_direct, $1)=yes
5516
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5517
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5518
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6900
5525
if test -f /usr/libexec/ld.so; then
6901
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6902
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6903
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6904
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6905
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6906
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6907
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5526
_LT_TAGVAR(hardcode_direct, $1)=yes
5527
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5528
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5529
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5530
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5531
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5532
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5533
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6909
5535
case $host_os in
6910
5536
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6911
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6912
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5537
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5538
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6915
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6916
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5541
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5542
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6921
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5547
_LT_TAGVAR(ld_shlibs, $1)=no
6926
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6927
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6928
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6929
_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'
6930
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5552
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5553
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5554
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5555
_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'
5556
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6934
5560
if test "$GCC" = yes; then
6935
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6936
_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'
5561
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5562
_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'
6938
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6939
_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'
5564
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5565
_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'
6941
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6942
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5567
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5568
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5569
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6945
5572
osf4* | osf5*) # as osf3* with the addition of -msym flag
6946
5573
if test "$GCC" = yes; then
6947
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6948
_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'
6949
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5574
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5575
_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'
5576
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6951
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6952
_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'
6953
_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~
6954
$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'
5578
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5579
_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'
5580
_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~
5581
$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'
6956
5583
# Both c and cxx compiler support -rpath directly
6957
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5584
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6959
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5586
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5587
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6963
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5591
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6964
5592
if test "$GCC" = yes; then
6966
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6967
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6968
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5594
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5595
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5596
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6971
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6972
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6973
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5598
case `$CC -V 2>&1` in
5601
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5602
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5603
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5607
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5608
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5609
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6975
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6976
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5613
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5614
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6977
5615
case $host_os in
6978
5616
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6980
5618
# The compiler driver will combine and reorder linker options,
6981
5619
# but understands `-z linker_flag'. GCC discards it without `$wl',
6982
5620
# but is careful enough not to reorder.
6983
# Supported since Solaris 2.6 (maybe 2.5.1?)
5621
# Supported since Solaris 2.6 (maybe 2.5.1?)
6984
5622
if test "$GCC" = yes; then
6985
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5623
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6987
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5625
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6991
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5629
_LT_TAGVAR(link_all_deplibs, $1)=yes
6995
5633
if test "x$host_vendor" = xsequent; then
6996
5634
# Use $CC to link under sequent, because it throws in some extra .o
6997
5635
# files that make .init and .fini sections work.
6998
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5636
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7000
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5638
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7002
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7003
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7004
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7005
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5640
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5641
_LT_TAGVAR(hardcode_direct, $1)=yes
5642
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5643
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7009
5647
case $host_vendor in
7011
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7012
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5649
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5650
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7015
5653
## LD is ld it makes a PLAMLIB
7016
5654
## CC just makes a GrossModule.
7017
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7018
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7019
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5655
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5656
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5657
_LT_TAGVAR(hardcode_direct, $1)=no
7022
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7023
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5660
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5661
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7026
5664
runpath_var='LD_RUN_PATH'
7027
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5665
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7031
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7032
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7033
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5669
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5670
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5671
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7037
5675
if test -d /usr/nec; then
7038
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7039
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5676
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5677
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7040
5678
runpath_var=LD_RUN_PATH
7041
5679
hardcode_runpath_var=yes
7042
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5680
_LT_TAGVAR(ld_shlibs, $1)=yes
7046
5684
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7047
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7048
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7049
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5685
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5686
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5687
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7050
5688
runpath_var='LD_RUN_PATH'
7052
5690
if test "$GCC" = yes; then
7053
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7054
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5691
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5692
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7056
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7057
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5694
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5695
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7126
5779
libobjs=conftest.$ac_objext
7128
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7129
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5781
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5782
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7130
5783
compiler_flags=-v
7131
5784
linker_flags=-v
7133
5786
output_objdir=.
7134
5787
libname=conftest
7135
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7136
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7137
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5788
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5789
_LT_TAGVAR(allow_undefined_flag, $1)=
5790
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7139
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5792
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7141
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5794
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7143
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5796
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7145
5798
cat conftest.err 1>&5
7148
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5801
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7154
])# AC_LIBTOOL_PROG_LD_SHLIBS
7157
# _LT_AC_FILE_LTDLL_C
7158
# -------------------
7159
# Be careful that the start marker always follows a newline.
7160
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7161
# /* ltdll.c starts here */
7162
# #define WIN32_LEAN_AND_MEAN
7163
# #include <windows.h>
7164
# #undef WIN32_LEAN_AND_MEAN
7165
# #include <stdio.h>
7167
# #ifndef __CYGWIN__
7168
# # ifdef __CYGWIN32__
7169
# # define __CYGWIN__ __CYGWIN32__
7173
# #ifdef __cplusplus
7176
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7177
# #ifdef __cplusplus
7182
# #include <cygwin/cygwin_dll.h>
7183
# DECLARE_CYGWIN_DLL( DllMain );
7185
# HINSTANCE __hDllInstance_base;
7188
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7190
# __hDllInstance_base = hInst;
7193
# /* ltdll.c ends here */
7194
])# _LT_AC_FILE_LTDLL_C
7197
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5808
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5809
[Whether or not to add -lc for building shared libraries])
5810
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5811
[enable_shared_with_static_runtimes], [0],
5812
[Whether or not to disallow shared libs when runtime libs are static])
5813
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5814
[Compiler flag to allow reflexive dlopens])
5815
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5816
[Compiler flag to generate shared objects directly from archives])
5817
_LT_TAGDECL([], [compiler_needs_object], [1],
5818
[Whether the compiler copes with passing no objects directly])
5819
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5820
[Create an old-style archive from a shared archive])
5821
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5822
[Create a temporary old-style archive to link instead of a shared archive])
5823
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5824
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5825
_LT_TAGDECL([], [module_cmds], [2],
5826
[Commands used to build a loadable module if different from building
5828
_LT_TAGDECL([], [module_expsym_cmds], [2])
5829
_LT_TAGDECL([], [with_gnu_ld], [1],
5830
[Whether we are building with GNU ld or not])
5831
_LT_TAGDECL([], [allow_undefined_flag], [1],
5832
[Flag that allows shared libraries with undefined symbols to be built])
5833
_LT_TAGDECL([], [no_undefined_flag], [1],
5834
[Flag that enforces no undefined symbols])
5835
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5836
[Flag to hardcode $libdir into a binary during linking.
5837
This must work even if $libdir does not exist])
5838
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5839
[[If ld is used when linking, flag to hardcode $libdir into a binary
5840
during linking. This must work even if $libdir does not exist]])
5841
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5842
[Whether we need a single "-rpath" flag with a separated argument])
5843
_LT_TAGDECL([], [hardcode_direct], [0],
5844
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5845
DIR into the resulting binary])
5846
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5847
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5848
DIR into the resulting binary and the resulting library dependency is
5849
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5850
library is relocated])
5851
_LT_TAGDECL([], [hardcode_minus_L], [0],
5852
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5853
into the resulting binary])
5854
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5855
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5856
into the resulting binary])
5857
_LT_TAGDECL([], [hardcode_automatic], [0],
5858
[Set to "yes" if building a shared library automatically hardcodes DIR
5859
into the library and all subsequent libraries and executables linked
5861
_LT_TAGDECL([], [inherit_rpath], [0],
5862
[Set to yes if linker adds runtime paths of dependent libraries
5863
to runtime path list])
5864
_LT_TAGDECL([], [link_all_deplibs], [0],
5865
[Whether libtool must link a program against all its dependency libraries])
5866
_LT_TAGDECL([], [fix_srcfile_path], [1],
5867
[Fix the shell variable $srcfile for the compiler])
5868
_LT_TAGDECL([], [always_export_symbols], [0],
5869
[Set to "yes" if exported symbols are required])
5870
_LT_TAGDECL([], [export_symbols_cmds], [2],
5871
[The commands to list exported symbols])
5872
_LT_TAGDECL([], [exclude_expsyms], [1],
5873
[Symbols that should not be listed in the preloaded symbols])
5874
_LT_TAGDECL([], [include_expsyms], [1],
5875
[Symbols that must always be exported])
5876
_LT_TAGDECL([], [prelink_cmds], [2],
5877
[Commands necessary for linking programs (against libraries) with templates])
5878
_LT_TAGDECL([], [file_list_spec], [1],
5879
[Specify filename containing input files])
5880
dnl FIXME: Not yet implemented
5881
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5882
dnl [Compiler flag to generate thread safe objects])
5883
])# _LT_LINKER_SHLIBS
5886
# _LT_LANG_C_CONFIG([TAG])
5887
# ------------------------
5888
# Ensure that the configuration variables for a C compiler are suitably
5889
# defined. These variables are subsequently used by _LT_CONFIG to write
5890
# the compiler configuration to `libtool'.
5891
m4_defun([_LT_LANG_C_CONFIG],
5892
[m4_require([_LT_DECL_EGREP])dnl
5896
# Source file extension for C test sources.
5899
# Object file extension for compiled C test sources.
5901
_LT_TAGVAR(objext, $1)=$objext
5903
# Code to be used in simple compile tests
5904
lt_simple_compile_test_code="int some_variable = 0;"
5906
# Code to be used in simple link tests
5907
lt_simple_link_test_code='int main(){return(0);}'
5910
# Save the default compiler, since it gets overwritten when the other
5911
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5912
compiler_DEFAULT=$CC
5914
# save warnings/boilerplate of simple test code
5915
_LT_COMPILER_BOILERPLATE
5916
_LT_LINKER_BOILERPLATE
5918
if test -n "$compiler"; then
5919
_LT_COMPILER_NO_RTTI($1)
5920
_LT_COMPILER_PIC($1)
5921
_LT_COMPILER_C_O($1)
5922
_LT_COMPILER_FILE_LOCKS($1)
5923
_LT_LINKER_SHLIBS($1)
5924
_LT_SYS_DYNAMIC_LINKER($1)
5925
_LT_LINKER_HARDCODE_LIBPATH($1)
5929
# Report which library types will actually be built
5930
AC_MSG_CHECKING([if libtool supports shared libraries])
5931
AC_MSG_RESULT([$can_build_shared])
5933
AC_MSG_CHECKING([whether to build shared libraries])
5934
test "$can_build_shared" = "no" && enable_shared=no
5936
# On AIX, shared libraries and static libraries use the same namespace, and
5937
# are all built from PIC.
5940
test "$enable_shared" = yes && enable_static=no
5941
if test -n "$RANLIB"; then
5942
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5943
postinstall_cmds='$RANLIB $lib'
5948
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5949
test "$enable_shared" = yes && enable_static=no
5953
AC_MSG_RESULT([$enable_shared])
5955
AC_MSG_CHECKING([whether to build static libraries])
5956
# Make sure either enable_shared or enable_static is yes.
5957
test "$enable_shared" = yes || enable_static=yes
5958
AC_MSG_RESULT([$enable_static])
5964
])# _LT_LANG_C_CONFIG
5969
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5970
# compiler, we have our own version here.
5971
m4_defun([_LT_PROG_CXX],
5973
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5975
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5976
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5977
(test "X$CXX" != "Xg++"))) ; then
5980
_lt_caught_CXX_error=yes
5982
popdef([AC_MSG_ERROR])
5985
dnl aclocal-1.4 backwards compatibility:
5986
dnl AC_DEFUN([_LT_PROG_CXX], [])
5989
# _LT_LANG_CXX_CONFIG([TAG])
5990
# --------------------------
5991
# Ensure that the configuration variables for a C++ compiler are suitably
5992
# defined. These variables are subsequently used by _LT_CONFIG to write
5993
# the compiler configuration to `libtool'.
5994
m4_defun([_LT_LANG_CXX_CONFIG],
5995
[AC_REQUIRE([_LT_PROG_CXX])dnl
5996
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5997
m4_require([_LT_DECL_EGREP])dnl
6000
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6001
_LT_TAGVAR(allow_undefined_flag, $1)=
6002
_LT_TAGVAR(always_export_symbols, $1)=no
6003
_LT_TAGVAR(archive_expsym_cmds, $1)=
6004
_LT_TAGVAR(compiler_needs_object, $1)=no
6005
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6006
_LT_TAGVAR(hardcode_direct, $1)=no
6007
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6008
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6009
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6010
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6011
_LT_TAGVAR(hardcode_minus_L, $1)=no
6012
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6013
_LT_TAGVAR(hardcode_automatic, $1)=no
6014
_LT_TAGVAR(inherit_rpath, $1)=no
6015
_LT_TAGVAR(module_cmds, $1)=
6016
_LT_TAGVAR(module_expsym_cmds, $1)=
6017
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6018
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6019
_LT_TAGVAR(no_undefined_flag, $1)=
6020
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6021
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6023
# Source file extension for C++ test sources.
6026
# Object file extension for compiled C++ test sources.
6028
_LT_TAGVAR(objext, $1)=$objext
6030
# No sense in running all these tests if we already determined that
6031
# the CXX compiler isn't working. Some variables (like enable_shared)
6032
# are currently assumed to apply to all compilers on this platform,
6033
# and will be corrupted by setting them based on a non-working compiler.
6034
if test "$_lt_caught_CXX_error" != yes; then
6035
# Code to be used in simple compile tests
6036
lt_simple_compile_test_code="int some_variable = 0;"
6038
# Code to be used in simple link tests
6039
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6041
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6044
# save warnings/boilerplate of simple test code
6045
_LT_COMPILER_BOILERPLATE
6046
_LT_LINKER_BOILERPLATE
6048
# Allow CC to be a program name with arguments.
6053
lt_save_with_gnu_ld=$with_gnu_ld
6054
lt_save_path_LD=$lt_cv_path_LD
6055
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6056
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6058
$as_unset lt_cv_prog_gnu_ld
6060
if test -n "${lt_cv_path_LDCXX+set}"; then
6061
lt_cv_path_LD=$lt_cv_path_LDCXX
6063
$as_unset lt_cv_path_LD
6065
test -z "${LDCXX+set}" || LD=$LDCXX
6068
_LT_TAGVAR(compiler, $1)=$CC
6069
_LT_CC_BASENAME([$compiler])
6071
if test -n "$compiler"; then
6072
# We don't want -fno-exception when compiling C++ code, so set the
6073
# no_builtin_flag separately
6074
if test "$GXX" = yes; then
6075
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6077
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6080
if test "$GXX" = yes; then
6081
# Set up default GNU C++ configuration
6085
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6086
# archiving commands below assume that GNU ld is being used.
6087
if test "$with_gnu_ld" = yes; then
6088
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6089
_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'
6091
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6092
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6094
# If archive_cmds runs LD, not CC, wlarc should be empty
6095
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6096
# investigate it a little bit more. (MM)
6099
# ancient GNU ld didn't support --whole-archive et. al.
6100
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6101
$GREP 'no-whole-archive' > /dev/null; then
6102
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6104
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6110
# A generic and very simple default shared library creation
6111
# command for GNU C++ for the case where it uses the native
6112
# linker, instead of GNU ld. If possible, this setting should
6113
# overridden to take advantage of the native linker features on
6114
# the platform it is being used on.
6115
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6118
# Commands to make compiler produce verbose output that lists
6119
# what "hidden" libraries, object files and flags are used when
6120
# linking a shared library.
6121
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6129
# PORTME: fill in a description of your system's C++ link characteristics
6130
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6131
_LT_TAGVAR(ld_shlibs, $1)=yes
6134
# FIXME: insert proper C++ library support
6135
_LT_TAGVAR(ld_shlibs, $1)=no
6138
if test "$host_cpu" = ia64; then
6139
# On IA64, the linker does run time linking by default, so we don't
6140
# have to do anything special.
6141
aix_use_runtimelinking=no
6142
exp_sym_flag='-Bexport'
6145
aix_use_runtimelinking=no
6147
# Test if we are trying to use run time linking or normal
6148
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6149
# need to do runtime linking.
6150
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6151
for ld_flag in $LDFLAGS; do
6154
aix_use_runtimelinking=yes
6162
exp_sym_flag='-bexport'
6163
no_entry_flag='-bnoentry'
6166
# When large executables or shared objects are built, AIX ld can
6167
# have problems creating the table of contents. If linking a library
6168
# or program results in "error TOC overflow" add -mminimal-toc to
6169
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6170
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6172
_LT_TAGVAR(archive_cmds, $1)=''
6173
_LT_TAGVAR(hardcode_direct, $1)=yes
6174
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6175
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6176
_LT_TAGVAR(link_all_deplibs, $1)=yes
6177
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6179
if test "$GXX" = yes; then
6180
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6181
# We only want to do this on AIX 4.2 and lower, the check
6182
# below for broken collect2 doesn't work under 4.3+
6183
collect2name=`${CC} -print-prog-name=collect2`
6184
if test -f "$collect2name" &&
6185
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6187
# We have reworked collect2
6190
# We have old collect2
6191
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6192
# It fails to find uninstalled libraries when the uninstalled
6193
# path is not listed in the libpath. Setting hardcode_minus_L
6194
# to unsupported forces relinking
6195
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6196
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6197
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6200
shared_flag='-shared'
6201
if test "$aix_use_runtimelinking" = yes; then
6202
shared_flag="$shared_flag "'${wl}-G'
6206
if test "$host_cpu" = ia64; then
6207
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6208
# chokes on -Wl,-G. The following line is correct:
6211
if test "$aix_use_runtimelinking" = yes; then
6212
shared_flag='${wl}-G'
6214
shared_flag='${wl}-bM:SRE'
6219
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6220
# It seems that -bexpall does not export symbols beginning with
6221
# underscore (_), so it is better to generate a list of symbols to
6223
_LT_TAGVAR(always_export_symbols, $1)=yes
6224
if test "$aix_use_runtimelinking" = yes; then
6225
# Warning - without using the other runtime loading flags (-brtl),
6226
# -berok will link without error, but may produce a broken library.
6227
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6228
# Determine the default libpath from the value encoded in an empty
6230
_LT_SYS_MODULE_PATH_AIX
6231
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6233
_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"
6235
if test "$host_cpu" = ia64; then
6236
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6237
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6238
_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"
6240
# Determine the default libpath from the value encoded in an
6242
_LT_SYS_MODULE_PATH_AIX
6243
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6244
# Warning - without using the other run time loading flags,
6245
# -berok will link without error, but may produce a broken library.
6246
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6247
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6248
# Exported symbols can be pulled into shared objects from archives
6249
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6250
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6251
# This is similar to how AIX traditionally builds its shared
6253
_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'
6259
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6260
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6261
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6262
# support --undefined. This deserves some investigation. FIXME
6263
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6265
_LT_TAGVAR(ld_shlibs, $1)=no
6270
case $cc_basename in
6272
# FIXME: insert proper C++ library support
6273
_LT_TAGVAR(ld_shlibs, $1)=no
6278
cygwin* | mingw* | pw32* | cegcc*)
6279
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6280
# as there is no search path for DLLs.
6281
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6282
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6283
_LT_TAGVAR(always_export_symbols, $1)=no
6284
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6286
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6287
_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'
6288
# If the export-symbols file already is a .def file (1st line
6289
# is EXPORTS), use it as is; otherwise, prepend...
6290
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6291
cp $export_symbols $output_objdir/$soname.def;
6293
echo EXPORTS > $output_objdir/$soname.def;
6294
cat $export_symbols >> $output_objdir/$soname.def;
6296
$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'
6298
_LT_TAGVAR(ld_shlibs, $1)=no
6301
darwin* | rhapsody*)
6302
_LT_DARWIN_LINKER_FEATURES($1)
6306
case $cc_basename in
6308
# FIXME: insert proper C++ library support
6309
_LT_TAGVAR(ld_shlibs, $1)=no
6312
# Green Hills C++ Compiler
6313
# FIXME: insert proper C++ library support
6314
_LT_TAGVAR(ld_shlibs, $1)=no
6317
# FIXME: insert proper C++ library support
6318
_LT_TAGVAR(ld_shlibs, $1)=no
6324
# C++ shared libraries reported to be fairly broken before
6326
_LT_TAGVAR(ld_shlibs, $1)=no
6330
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6333
freebsd* | dragonfly*)
6334
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6336
_LT_TAGVAR(ld_shlibs, $1)=yes
6343
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6344
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6345
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6346
_LT_TAGVAR(hardcode_direct, $1)=yes
6347
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6348
# but as the default
6349
# location of the library.
6351
case $cc_basename in
6353
# FIXME: insert proper C++ library support
6354
_LT_TAGVAR(ld_shlibs, $1)=no
6357
_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'
6358
# Commands to make compiler produce verbose output that lists
6359
# what "hidden" libraries, object files and flags are used when
6360
# linking a shared library.
6362
# There doesn't appear to be a way to prevent this compiler from
6363
# explicitly linking system object files so we need to strip them
6364
# from the output so that they don't get included in the library
6366
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'
6369
if test "$GXX" = yes; then
6370
_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'
6372
# FIXME: insert proper C++ library support
6373
_LT_TAGVAR(ld_shlibs, $1)=no
6380
if test $with_gnu_ld = no; then
6381
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6382
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6388
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6394
_LT_TAGVAR(hardcode_direct, $1)=no
6395
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6398
_LT_TAGVAR(hardcode_direct, $1)=yes
6399
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6400
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6401
# but as the default
6402
# location of the library.
6406
case $cc_basename in
6408
# FIXME: insert proper C++ library support
6409
_LT_TAGVAR(ld_shlibs, $1)=no
6414
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6417
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6420
_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'
6423
# Commands to make compiler produce verbose output that lists
6424
# what "hidden" libraries, object files and flags are used when
6425
# linking a shared library.
6427
# There doesn't appear to be a way to prevent this compiler from
6428
# explicitly linking system object files so we need to strip them
6429
# from the output so that they don't get included in the library
6431
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'
6434
if test "$GXX" = yes; then
6435
if test $with_gnu_ld = no; then
6438
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6441
_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'
6444
_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'
6449
# FIXME: insert proper C++ library support
6450
_LT_TAGVAR(ld_shlibs, $1)=no
6457
_LT_TAGVAR(hardcode_direct, $1)=no
6458
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6459
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6460
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6461
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6462
# Instead, shared libraries are loaded at an image base (0x10000000 by
6463
# default) and relocated if they conflict, which is a slow very memory
6464
# consuming and fragmenting process. To avoid this, we pick a random,
6465
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6466
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6467
_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'
6468
_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'
6471
case $cc_basename in
6474
_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'
6476
# Archives containing C++ object files must be created using
6477
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6478
# necessary to make sure instantiated templates are included
6480
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6483
if test "$GXX" = yes; then
6484
if test "$with_gnu_ld" = no; then
6485
_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'
6487
_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'
6490
_LT_TAGVAR(link_all_deplibs, $1)=yes
6493
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6494
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6495
_LT_TAGVAR(inherit_rpath, $1)=yes
6498
linux* | k*bsd*-gnu)
6499
case $cc_basename in
6501
# Kuck and Associates, Inc. (KAI) C++ Compiler
6503
# KCC will only create a shared library if the output file
6504
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6505
# to its proper name (with version) after linking.
6506
_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'
6507
_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'
6508
# Commands to make compiler produce verbose output that lists
6509
# what "hidden" libraries, object files and flags are used when
6510
# linking a shared library.
6512
# There doesn't appear to be a way to prevent this compiler from
6513
# explicitly linking system object files so we need to strip them
6514
# from the output so that they don't get included in the library
6516
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'
6518
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6519
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6521
# Archives containing C++ object files must be created using
6522
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6523
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6528
# version 8.0 and above of icpc choke on multiply defined symbols
6529
# if we add $predep_objects and $postdep_objects, however 7.1 and
6530
# earlier do not add the objects themselves.
6531
case `$CC -V 2>&1` in
6533
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6534
_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'
6536
*) # Version 8.0 or newer
6539
ia64*) tmp_idyn=' -i_dynamic';;
6541
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6542
_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'
6545
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6546
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6547
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6548
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6551
# Portland Group C++ compiler
6553
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6554
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6556
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6557
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6558
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6560
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6561
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6563
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6565
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6566
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6567
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6569
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6570
$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'
6572
*) # Version 6 will use weak symbols
6573
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6574
_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'
6578
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6579
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6580
_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'
6584
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6585
_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'
6587
runpath_var=LD_RUN_PATH
6588
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6589
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6591
# Commands to make compiler produce verbose output that lists
6592
# what "hidden" libraries, object files and flags are used when
6593
# linking a shared library.
6595
# There doesn't appear to be a way to prevent this compiler from
6596
# explicitly linking system object files so we need to strip them
6597
# from the output so that they don't get included in the library
6599
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'
6602
# IBM XL 8.0 on PPC, with GNU ld
6603
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6604
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6605
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6606
if test "x$supports_anon_versioning" = xyes; then
6607
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6608
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6609
echo "local: *; };" >> $output_objdir/$libname.ver~
6610
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6614
case `$CC -V 2>&1 | sed 5q` in
6617
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6618
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6619
_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'
6620
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6621
_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'
6622
_LT_TAGVAR(compiler_needs_object, $1)=yes
6624
# Not sure whether something based on
6625
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6627
output_verbose_link_cmd='echo'
6629
# Archives containing C++ object files must be created using
6630
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6631
# necessary to make sure instantiated templates are included
6633
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6641
# FIXME: insert proper C++ library support
6642
_LT_TAGVAR(ld_shlibs, $1)=no
6646
# FIXME: insert proper C++ library support
6647
_LT_TAGVAR(ld_shlibs, $1)=no
6651
case $cc_basename in
6653
# FIXME: insert proper C++ library support
6654
_LT_TAGVAR(ld_shlibs, $1)=no
6657
# FIXME: insert proper C++ library support
6658
_LT_TAGVAR(ld_shlibs, $1)=no
6664
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6665
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6667
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6668
_LT_TAGVAR(hardcode_direct, $1)=yes
6669
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6671
# Workaround some broken pre-1.5 toolchains
6672
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6676
_LT_TAGVAR(ld_shlibs, $1)=yes
6680
# C++ shared libraries are fairly broken
6681
_LT_TAGVAR(ld_shlibs, $1)=no
6685
if test -f /usr/libexec/ld.so; then
6686
_LT_TAGVAR(hardcode_direct, $1)=yes
6687
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6688
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6689
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6690
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6691
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6692
_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'
6693
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6694
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6696
output_verbose_link_cmd=echo
6698
_LT_TAGVAR(ld_shlibs, $1)=no
6702
osf3* | osf4* | osf5*)
6703
case $cc_basename in
6705
# Kuck and Associates, Inc. (KAI) C++ Compiler
6707
# KCC will only create a shared library if the output file
6708
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6709
# to its proper name (with version) after linking.
6710
_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'
6712
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6713
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6715
# Archives containing C++ object files must be created using
6716
# the KAI C++ compiler.
6718
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6719
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6723
# Rational C++ 2.4.1
6724
# FIXME: insert proper C++ library support
6725
_LT_TAGVAR(ld_shlibs, $1)=no
6730
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6731
_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'
6732
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6735
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6736
_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'
6737
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6738
echo "-hidden">> $lib.exp~
6739
$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~
6741
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6745
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6747
# Commands to make compiler produce verbose output that lists
6748
# what "hidden" libraries, object files and flags are used when
6749
# linking a shared library.
6751
# There doesn't appear to be a way to prevent this compiler from
6752
# explicitly linking system object files so we need to strip them
6753
# from the output so that they don't get included in the library
6755
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'
6758
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6759
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6762
_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'
6765
_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'
6769
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6770
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6772
# Commands to make compiler produce verbose output that lists
6773
# what "hidden" libraries, object files and flags are used when
6774
# linking a shared library.
6775
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6778
# FIXME: insert proper C++ library support
6779
_LT_TAGVAR(ld_shlibs, $1)=no
6786
# FIXME: insert proper C++ library support
6787
_LT_TAGVAR(ld_shlibs, $1)=no
6791
case $cc_basename in
6794
# FIXME: insert proper C++ library support
6795
_LT_TAGVAR(ld_shlibs, $1)=no
6799
# FIXME: insert proper C++ library support
6800
_LT_TAGVAR(ld_shlibs, $1)=no
6803
# FIXME: insert proper C++ library support
6804
_LT_TAGVAR(ld_shlibs, $1)=no
6810
case $cc_basename in
6812
# Sun C++ 4.2, 5.x and Centerline C++
6813
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6814
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6815
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6816
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6817
$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'
6819
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6820
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6822
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6824
# The compiler driver will combine and reorder linker options,
6825
# but understands `-z linker_flag'.
6826
# Supported since Solaris 2.6 (maybe 2.5.1?)
6827
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6830
_LT_TAGVAR(link_all_deplibs, $1)=yes
6832
output_verbose_link_cmd='echo'
6834
# Archives containing C++ object files must be created using
6835
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6836
# necessary to make sure instantiated templates are included
6838
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6841
# Green Hills C++ Compiler
6842
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6844
# The C++ compiler must be used to create the archive.
6845
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6848
# GNU C++ compiler with Solaris linker
6849
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6850
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6851
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6852
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6853
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6854
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6856
# Commands to make compiler produce verbose output that lists
6857
# what "hidden" libraries, object files and flags are used when
6858
# linking a shared library.
6859
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6861
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6863
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6864
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6865
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6867
# Commands to make compiler produce verbose output that lists
6868
# what "hidden" libraries, object files and flags are used when
6869
# linking a shared library.
6870
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6873
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6875
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6877
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6885
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6886
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6887
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6888
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6889
runpath_var='LD_RUN_PATH'
6891
case $cc_basename in
6893
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6894
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6897
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6898
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6903
sysv5* | sco3.2v5* | sco5v6*)
6904
# Note: We can NOT use -z defs as we might desire, because we do not
6905
# link with -lc, and that would cause any symbols used from libc to
6906
# always be unresolved, which means just about no library would
6907
# ever link correctly. If we're not using GNU ld we use -z text
6908
# though, which does catch some bad symbols but isn't as heavy-handed
6910
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6911
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6912
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6913
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6914
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6915
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6916
_LT_TAGVAR(link_all_deplibs, $1)=yes
6917
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6918
runpath_var='LD_RUN_PATH'
6920
case $cc_basename in
6922
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6923
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6926
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6927
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6933
case $cc_basename in
6935
# NonStop-UX NCC 3.20
6936
# FIXME: insert proper C++ library support
6937
_LT_TAGVAR(ld_shlibs, $1)=no
6940
# FIXME: insert proper C++ library support
6941
_LT_TAGVAR(ld_shlibs, $1)=no
6947
# FIXME: insert proper C++ library support
6948
_LT_TAGVAR(ld_shlibs, $1)=no
6952
# FIXME: insert proper C++ library support
6953
_LT_TAGVAR(ld_shlibs, $1)=no
6957
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6958
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6960
_LT_TAGVAR(GCC, $1)="$GXX"
6961
_LT_TAGVAR(LD, $1)="$LD"
6964
## There is no encapsulation within the following macros, do not change
6965
## the running order or otherwise move them around unless you know exactly
6966
## what you are doing...
6967
_LT_SYS_HIDDEN_LIBDEPS($1)
6968
_LT_COMPILER_PIC($1)
6969
_LT_COMPILER_C_O($1)
6970
_LT_COMPILER_FILE_LOCKS($1)
6971
_LT_LINKER_SHLIBS($1)
6972
_LT_SYS_DYNAMIC_LINKER($1)
6973
_LT_LINKER_HARDCODE_LIBPATH($1)
6976
fi # test -n "$compiler"
6982
with_gnu_ld=$lt_save_with_gnu_ld
6983
lt_cv_path_LDCXX=$lt_cv_path_LD
6984
lt_cv_path_LD=$lt_save_path_LD
6985
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6986
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6987
fi # test "$_lt_caught_CXX_error" != yes
6990
])# _LT_LANG_CXX_CONFIG
6993
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7198
6994
# ---------------------------------
7199
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7203
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7204
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7205
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7206
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7207
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7208
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7209
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7211
# This is just to silence aclocal about the macro not being used
7212
ifelse([AC_DISABLE_FAST_INSTALL])
7214
AC_DEFUN([LT_AC_PROG_GCJ],
7215
[AC_CHECK_TOOL(GCJ, gcj, no)
7216
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7220
AC_DEFUN([LT_AC_PROG_RC],
7221
[AC_CHECK_TOOL(RC, windres, no)
7225
# Cheap backport of AS_EXECUTABLE_P and required macros
7226
# from Autoconf 2.59; we should not use $as_executable_p directly.
7230
m4_ifndef([_AS_TEST_PREPARE],
7231
[m4_defun([_AS_TEST_PREPARE],
7232
[if test -x / >/dev/null 2>&1; then
7233
as_executable_p='test -x'
6995
# Figure out "hidden" library dependencies from verbose
6996
# compiler output when linking a shared library.
6997
# Parse the compiler output and extract the necessary
6998
# objects, libraries and library flags.
6999
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7000
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7001
# Dependencies to place before and after the object being linked:
7002
_LT_TAGVAR(predep_objects, $1)=
7003
_LT_TAGVAR(postdep_objects, $1)=
7004
_LT_TAGVAR(predeps, $1)=
7005
_LT_TAGVAR(postdeps, $1)=
7006
_LT_TAGVAR(compiler_lib_search_path, $1)=
7008
dnl we can't use the lt_simple_compile_test_code here,
7009
dnl because it contains code intended for an executable,
7010
dnl not a library. It's possible we should let each
7011
dnl tag define a new lt_????_link_test_code variable,
7012
dnl but it's only used here...
7013
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7015
void foo (void) { a = 0; }
7017
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7021
Foo (void) { a = 0; }
7026
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7034
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7042
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7045
public void bar (void) {
7051
dnl Parse the compiler output and extract the necessary
7052
dnl objects, libraries and library flags.
7053
if AC_TRY_EVAL(ac_compile); then
7054
# Parse the compiler output and extract the necessary
7055
# objects, libraries and library flags.
7057
# Sentinel used to keep track of whether or not we are before
7058
# the conftest object file.
7059
pre_test_object_deps_done=no
7061
for p in `eval "$output_verbose_link_cmd"`; do
7065
# Some compilers place space between "-{L,R}" and the path.
7067
if test $p = "-L" ||
7068
test $p = "-R"; then
7075
if test "$pre_test_object_deps_done" = no; then
7078
# Internal compiler library paths should come after those
7079
# provided the user. The postdeps already come after the
7080
# user supplied libs so there is no need to process them.
7081
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7082
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7084
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7087
# The "-l" case would never come before the object being
7088
# linked, so don't bother handling this case.
7091
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7092
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7094
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7100
# This assumes that the test object file only shows up
7101
# once in the compiler output.
7102
if test "$p" = "conftest.$objext"; then
7103
pre_test_object_deps_done=yes
7107
if test "$pre_test_object_deps_done" = no; then
7108
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7109
_LT_TAGVAR(predep_objects, $1)="$p"
7111
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7114
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7115
_LT_TAGVAR(postdep_objects, $1)="$p"
7117
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7122
*) ;; # Ignore the rest.
7235
as_executable_p='test -f'
7237
])])# _AS_TEST_PREPARE
7241
# Check whether a file is executable.
7242
m4_ifndef([AS_EXECUTABLE_P],
7243
[m4_defun([AS_EXECUTABLE_P],
7244
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7245
$as_executable_p $1[]dnl
7246
])])# AS_EXECUTABLE_P
7130
echo "libtool.m4: error: problem compiling $1 test program"
7133
$RM -f confest.$objext
7135
# PORTME: override above test on systems where it is broken
7139
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7140
# hack all around it, let's just trust "g++" to DTRT.
7141
_LT_TAGVAR(predep_objects,$1)=
7142
_LT_TAGVAR(postdep_objects,$1)=
7143
_LT_TAGVAR(postdeps,$1)=
7147
case `$CC -V 2>&1 | sed 5q` in
7151
# The more standards-conforming stlport4 library is
7152
# incompatible with the Cstd library. Avoid specifying
7153
# it if it's in CXXFLAGS. Ignore libCrun as
7154
# -library=stlport4 depends on it.
7155
case " $CXX $CXXFLAGS " in
7156
*" -library=stlport4 "*)
7157
solaris_use_stlport4=yes
7161
if test "$solaris_use_stlport4" != yes; then
7162
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7169
case $cc_basename in
7171
# The more standards-conforming stlport4 library is
7172
# incompatible with the Cstd library. Avoid specifying
7173
# it if it's in CXXFLAGS. Ignore libCrun as
7174
# -library=stlport4 depends on it.
7175
case " $CXX $CXXFLAGS " in
7176
*" -library=stlport4 "*)
7177
solaris_use_stlport4=yes
7181
# Adding this requires a known-good setup of shared libraries for
7182
# Sun compiler versions before 5.6, else PIC objects from an old
7183
# archive will be linked into the output, leading to subtle bugs.
7184
if test "$solaris_use_stlport4" != yes; then
7185
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7193
case " $_LT_TAGVAR(postdeps, $1) " in
7194
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7196
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7197
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7198
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7200
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7201
[The directories searched by this compiler when creating a shared library])
7202
_LT_TAGDECL([], [predep_objects], [1],
7203
[Dependencies to place before and after the objects being linked to
7204
create a shared library])
7205
_LT_TAGDECL([], [postdep_objects], [1])
7206
_LT_TAGDECL([], [predeps], [1])
7207
_LT_TAGDECL([], [postdeps], [1])
7208
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7209
[The library search path used internally by the compiler when linking
7211
])# _LT_SYS_HIDDEN_LIBDEPS
7216
# Since AC_PROG_F77 is broken, in that it returns the empty string
7217
# if there is no fortran compiler, we have our own version here.
7218
m4_defun([_LT_PROG_F77],
7220
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7222
if test -z "$F77" || test "X$F77" = "Xno"; then
7225
popdef([AC_MSG_ERROR])
7228
dnl aclocal-1.4 backwards compatibility:
7229
dnl AC_DEFUN([_LT_PROG_F77], [])
7232
# _LT_LANG_F77_CONFIG([TAG])
7233
# --------------------------
7234
# Ensure that the configuration variables for a Fortran 77 compiler are
7235
# suitably defined. These variables are subsequently used by _LT_CONFIG
7236
# to write the compiler configuration to `libtool'.
7237
m4_defun([_LT_LANG_F77_CONFIG],
7238
[AC_REQUIRE([_LT_PROG_F77])dnl
7239
AC_LANG_PUSH(Fortran 77)
7241
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7242
_LT_TAGVAR(allow_undefined_flag, $1)=
7243
_LT_TAGVAR(always_export_symbols, $1)=no
7244
_LT_TAGVAR(archive_expsym_cmds, $1)=
7245
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7246
_LT_TAGVAR(hardcode_direct, $1)=no
7247
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7248
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7249
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7250
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7251
_LT_TAGVAR(hardcode_minus_L, $1)=no
7252
_LT_TAGVAR(hardcode_automatic, $1)=no
7253
_LT_TAGVAR(inherit_rpath, $1)=no
7254
_LT_TAGVAR(module_cmds, $1)=
7255
_LT_TAGVAR(module_expsym_cmds, $1)=
7256
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7257
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7258
_LT_TAGVAR(no_undefined_flag, $1)=
7259
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7260
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7262
# Source file extension for f77 test sources.
7265
# Object file extension for compiled f77 test sources.
7267
_LT_TAGVAR(objext, $1)=$objext
7269
# No sense in running all these tests if we already determined that
7270
# the F77 compiler isn't working. Some variables (like enable_shared)
7271
# are currently assumed to apply to all compilers on this platform,
7272
# and will be corrupted by setting them based on a non-working compiler.
7273
if test "$_lt_disable_F77" != yes; then
7274
# Code to be used in simple compile tests
7275
lt_simple_compile_test_code="\
7281
# Code to be used in simple link tests
7282
lt_simple_link_test_code="\
7287
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7290
# save warnings/boilerplate of simple test code
7291
_LT_COMPILER_BOILERPLATE
7292
_LT_LINKER_BOILERPLATE
7294
# Allow CC to be a program name with arguments.
7299
_LT_TAGVAR(compiler, $1)=$CC
7300
_LT_CC_BASENAME([$compiler])
7302
if test -n "$compiler"; then
7303
AC_MSG_CHECKING([if libtool supports shared libraries])
7304
AC_MSG_RESULT([$can_build_shared])
7306
AC_MSG_CHECKING([whether to build shared libraries])
7307
test "$can_build_shared" = "no" && enable_shared=no
7309
# On AIX, shared libraries and static libraries use the same namespace, and
7310
# are all built from PIC.
7313
test "$enable_shared" = yes && enable_static=no
7314
if test -n "$RANLIB"; then
7315
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7316
postinstall_cmds='$RANLIB $lib'
7320
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7321
test "$enable_shared" = yes && enable_static=no
7325
AC_MSG_RESULT([$enable_shared])
7327
AC_MSG_CHECKING([whether to build static libraries])
7328
# Make sure either enable_shared or enable_static is yes.
7329
test "$enable_shared" = yes || enable_static=yes
7330
AC_MSG_RESULT([$enable_static])
7332
_LT_TAGVAR(GCC, $1)="$G77"
7333
_LT_TAGVAR(LD, $1)="$LD"
7336
## There is no encapsulation within the following macros, do not change
7337
## the running order or otherwise move them around unless you know exactly
7338
## what you are doing...
7339
_LT_COMPILER_PIC($1)
7340
_LT_COMPILER_C_O($1)
7341
_LT_COMPILER_FILE_LOCKS($1)
7342
_LT_LINKER_SHLIBS($1)
7343
_LT_SYS_DYNAMIC_LINKER($1)
7344
_LT_LINKER_HARDCODE_LIBPATH($1)
7347
fi # test -n "$compiler"
7351
fi # test "$_lt_disable_F77" != yes
7354
])# _LT_LANG_F77_CONFIG
7359
# Since AC_PROG_FC is broken, in that it returns the empty string
7360
# if there is no fortran compiler, we have our own version here.
7361
m4_defun([_LT_PROG_FC],
7363
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7365
if test -z "$FC" || test "X$FC" = "Xno"; then
7368
popdef([AC_MSG_ERROR])
7371
dnl aclocal-1.4 backwards compatibility:
7372
dnl AC_DEFUN([_LT_PROG_FC], [])
7375
# _LT_LANG_FC_CONFIG([TAG])
7376
# -------------------------
7377
# Ensure that the configuration variables for a Fortran compiler are
7378
# suitably defined. These variables are subsequently used by _LT_CONFIG
7379
# to write the compiler configuration to `libtool'.
7380
m4_defun([_LT_LANG_FC_CONFIG],
7381
[AC_REQUIRE([_LT_PROG_FC])dnl
7382
AC_LANG_PUSH(Fortran)
7384
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7385
_LT_TAGVAR(allow_undefined_flag, $1)=
7386
_LT_TAGVAR(always_export_symbols, $1)=no
7387
_LT_TAGVAR(archive_expsym_cmds, $1)=
7388
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7389
_LT_TAGVAR(hardcode_direct, $1)=no
7390
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7391
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7392
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7393
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7394
_LT_TAGVAR(hardcode_minus_L, $1)=no
7395
_LT_TAGVAR(hardcode_automatic, $1)=no
7396
_LT_TAGVAR(inherit_rpath, $1)=no
7397
_LT_TAGVAR(module_cmds, $1)=
7398
_LT_TAGVAR(module_expsym_cmds, $1)=
7399
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7400
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7401
_LT_TAGVAR(no_undefined_flag, $1)=
7402
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7403
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7405
# Source file extension for fc test sources.
7406
ac_ext=${ac_fc_srcext-f}
7408
# Object file extension for compiled fc test sources.
7410
_LT_TAGVAR(objext, $1)=$objext
7412
# No sense in running all these tests if we already determined that
7413
# the FC compiler isn't working. Some variables (like enable_shared)
7414
# are currently assumed to apply to all compilers on this platform,
7415
# and will be corrupted by setting them based on a non-working compiler.
7416
if test "$_lt_disable_FC" != yes; then
7417
# Code to be used in simple compile tests
7418
lt_simple_compile_test_code="\
7424
# Code to be used in simple link tests
7425
lt_simple_link_test_code="\
7430
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7433
# save warnings/boilerplate of simple test code
7434
_LT_COMPILER_BOILERPLATE
7435
_LT_LINKER_BOILERPLATE
7437
# Allow CC to be a program name with arguments.
7442
GCC=$ac_cv_fc_compiler_gnu
7444
_LT_TAGVAR(compiler, $1)=$CC
7445
_LT_CC_BASENAME([$compiler])
7447
if test -n "$compiler"; then
7448
AC_MSG_CHECKING([if libtool supports shared libraries])
7449
AC_MSG_RESULT([$can_build_shared])
7451
AC_MSG_CHECKING([whether to build shared libraries])
7452
test "$can_build_shared" = "no" && enable_shared=no
7454
# On AIX, shared libraries and static libraries use the same namespace, and
7455
# are all built from PIC.
7458
test "$enable_shared" = yes && enable_static=no
7459
if test -n "$RANLIB"; then
7460
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7461
postinstall_cmds='$RANLIB $lib'
7465
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7466
test "$enable_shared" = yes && enable_static=no
7470
AC_MSG_RESULT([$enable_shared])
7472
AC_MSG_CHECKING([whether to build static libraries])
7473
# Make sure either enable_shared or enable_static is yes.
7474
test "$enable_shared" = yes || enable_static=yes
7475
AC_MSG_RESULT([$enable_static])
7477
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7478
_LT_TAGVAR(LD, $1)="$LD"
7481
## There is no encapsulation within the following macros, do not change
7482
## the running order or otherwise move them around unless you know exactly
7483
## what you are doing...
7484
_LT_SYS_HIDDEN_LIBDEPS($1)
7485
_LT_COMPILER_PIC($1)
7486
_LT_COMPILER_C_O($1)
7487
_LT_COMPILER_FILE_LOCKS($1)
7488
_LT_LINKER_SHLIBS($1)
7489
_LT_SYS_DYNAMIC_LINKER($1)
7490
_LT_LINKER_HARDCODE_LIBPATH($1)
7493
fi # test -n "$compiler"
7497
fi # test "$_lt_disable_FC" != yes
7500
])# _LT_LANG_FC_CONFIG
7503
# _LT_LANG_GCJ_CONFIG([TAG])
7504
# --------------------------
7505
# Ensure that the configuration variables for the GNU Java Compiler compiler
7506
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7507
# to write the compiler configuration to `libtool'.
7508
m4_defun([_LT_LANG_GCJ_CONFIG],
7509
[AC_REQUIRE([LT_PROG_GCJ])dnl
7512
# Source file extension for Java test sources.
7515
# Object file extension for compiled Java test sources.
7517
_LT_TAGVAR(objext, $1)=$objext
7519
# Code to be used in simple compile tests
7520
lt_simple_compile_test_code="class foo {}"
7522
# Code to be used in simple link tests
7523
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7525
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7528
# save warnings/boilerplate of simple test code
7529
_LT_COMPILER_BOILERPLATE
7530
_LT_LINKER_BOILERPLATE
7532
# Allow CC to be a program name with arguments.
7538
_LT_TAGVAR(compiler, $1)=$CC
7539
_LT_TAGVAR(LD, $1)="$LD"
7540
_LT_CC_BASENAME([$compiler])
7542
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7543
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7545
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7547
if test -n "$compiler"; then
7548
_LT_COMPILER_NO_RTTI($1)
7549
_LT_COMPILER_PIC($1)
7550
_LT_COMPILER_C_O($1)
7551
_LT_COMPILER_FILE_LOCKS($1)
7552
_LT_LINKER_SHLIBS($1)
7553
_LT_LINKER_HARDCODE_LIBPATH($1)
7562
])# _LT_LANG_GCJ_CONFIG
7565
# _LT_LANG_RC_CONFIG([TAG])
7566
# -------------------------
7567
# Ensure that the configuration variables for the Windows resource compiler
7568
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7569
# to write the compiler configuration to `libtool'.
7570
m4_defun([_LT_LANG_RC_CONFIG],
7571
[AC_REQUIRE([LT_PROG_RC])dnl
7574
# Source file extension for RC test sources.
7577
# Object file extension for compiled RC test sources.
7579
_LT_TAGVAR(objext, $1)=$objext
7581
# Code to be used in simple compile tests
7582
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7584
# Code to be used in simple link tests
7585
lt_simple_link_test_code="$lt_simple_compile_test_code"
7587
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7590
# save warnings/boilerplate of simple test code
7591
_LT_COMPILER_BOILERPLATE
7592
_LT_LINKER_BOILERPLATE
7594
# Allow CC to be a program name with arguments.
7600
_LT_TAGVAR(compiler, $1)=$CC
7601
_LT_CC_BASENAME([$compiler])
7602
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7604
if test -n "$compiler"; then
7612
])# _LT_LANG_RC_CONFIG
7617
AC_DEFUN([LT_PROG_GCJ],
7618
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7619
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7620
[AC_CHECK_TOOL(GCJ, gcj,)
7621
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7622
AC_SUBST(GCJFLAGS)])])[]dnl
7626
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7627
dnl aclocal-1.4 backwards compatibility:
7628
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7633
AC_DEFUN([LT_PROG_RC],
7634
[AC_CHECK_TOOL(RC, windres,)
7638
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7639
dnl aclocal-1.4 backwards compatibility:
7640
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7645
# If we don't have a new enough Autoconf to choose the best grep
7646
# available, choose the one first in the user's PATH.
7647
m4_defun([_LT_DECL_EGREP],
7648
[AC_REQUIRE([AC_PROG_EGREP])dnl
7649
AC_REQUIRE([AC_PROG_FGREP])dnl
7650
test -z "$GREP" && GREP=grep
7651
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7652
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7653
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7654
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7661
# If we don't have a new enough Autoconf to choose the best objdump
7662
# available, choose the one first in the user's PATH.
7663
m4_defun([_LT_DECL_OBJDUMP],
7664
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7665
test -z "$OBJDUMP" && OBJDUMP=objdump
7666
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7673
# Check for a fully-functional sed program, that truncates
7674
# as few characters as possible. Prefer GNU sed if found.
7675
m4_defun([_LT_DECL_SED],
7677
test -z "$SED" && SED=sed
7678
Xsed="$SED -e 1s/^X//"
7679
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7680
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7681
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7684
m4_ifndef([AC_PROG_SED], [
7248
7685
# NOTE: This macro has been submitted for inclusion into #
7249
7686
# GNU Autoconf as AC_PROG_SED. When it is available in #
7250
7687
# a released version of Autoconf we should remove this #
7251
7688
# macro and use it instead. #
7254
# Check for a fully-functional sed program, that truncates
7255
# as few characters as possible. Prefer GNU sed if found.
7256
AC_DEFUN([LT_AC_PROG_SED],
7690
m4_defun([AC_PROG_SED],
7257
7691
[AC_MSG_CHECKING([for a sed that does not truncate output])
7258
7692
AC_CACHE_VAL(lt_cv_path_SED,
7259
7693
[# Loop through the user's path and test for sed and gsed.
7306
7740
SED=$lt_cv_path_SED
7307
7741
AC_SUBST([SED])
7308
7742
AC_MSG_RESULT([$SED])
7747
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7748
dnl aclocal-1.4 backwards compatibility:
7749
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7752
# _LT_CHECK_SHELL_FEATURES
7753
# ------------------------
7754
# Find out whether the shell is Bourne or XSI compatible,
7755
# or has some other useful features.
7756
m4_defun([_LT_CHECK_SHELL_FEATURES],
7757
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7758
# Try some XSI features
7761
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7763
&& eval 'test $(( 1 + 1 )) -eq 2 \
7764
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7766
AC_MSG_RESULT([$xsi_shell])
7767
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7769
AC_MSG_CHECKING([whether the shell understands "+="])
7771
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7773
&& lt_shell_append=yes
7774
AC_MSG_RESULT([$lt_shell_append])
7775
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7777
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7782
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7784
# test EBCDIC or ASCII
7785
case `echo X|tr X '\101'` in
7786
A) # ASCII based system
7787
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7788
lt_SP2NL='tr \040 \012'
7789
lt_NL2SP='tr \015\012 \040\040'
7791
*) # EBCDIC based system
7792
lt_SP2NL='tr \100 \n'
7793
lt_NL2SP='tr \r\n \100\100'
7796
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7797
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7798
])# _LT_CHECK_SHELL_FEATURES
7801
# _LT_PROG_XSI_SHELLFNS
7802
# ---------------------
7803
# Bourne and XSI compatible variants of some useful shell functions.
7804
m4_defun([_LT_PROG_XSI_SHELLFNS],
7807
cat << \_LT_EOF >> "$cfgfile"
7809
# func_dirname file append nondir_replacement
7810
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7811
# otherwise set result to NONDIR_REPLACEMENT.
7815
*/*) func_dirname_result="${1%/*}${2}" ;;
7816
* ) func_dirname_result="${3}" ;;
7820
# func_basename file
7823
func_basename_result="${1##*/}"
7826
# func_dirname_and_basename file append nondir_replacement
7827
# perform func_basename and func_dirname in a single function
7829
# dirname: Compute the dirname of FILE. If nonempty,
7830
# add APPEND to the result, otherwise set result
7831
# to NONDIR_REPLACEMENT.
7832
# value returned in "$func_dirname_result"
7833
# basename: Compute filename of FILE.
7834
# value retuned in "$func_basename_result"
7835
# Implementation must be kept synchronized with func_dirname
7836
# and func_basename. For efficiency, we do not delegate to
7837
# those functions but instead duplicate the functionality here.
7838
func_dirname_and_basename ()
7841
*/*) func_dirname_result="${1%/*}${2}" ;;
7842
* ) func_dirname_result="${3}" ;;
7844
func_basename_result="${1##*/}"
7847
# func_stripname prefix suffix name
7848
# strip PREFIX and SUFFIX off of NAME.
7849
# PREFIX and SUFFIX must not contain globbing or regex special
7850
# characters, hashes, percent signs, but SUFFIX may contain a leading
7851
# dot (in which case that matches only a dot).
7854
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7855
# positional parameters, so assign one to ordinary parameter first.
7856
func_stripname_result=${3}
7857
func_stripname_result=${func_stripname_result#"${1}"}
7858
func_stripname_result=${func_stripname_result%"${2}"}
7864
func_opt_split_opt=${1%%=*}
7865
func_opt_split_arg=${1#*=}
7872
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7873
*) func_lo2o_result=${1} ;;
7877
# func_xform libobj-or-source
7880
func_xform_result=${1%.*}.lo
7883
# func_arith arithmetic-term...
7886
func_arith_result=$(( $[*] ))
7890
# STRING may not start with a hyphen.
7893
func_len_result=${#1}
7898
*) # Bourne compatible functions.
7899
cat << \_LT_EOF >> "$cfgfile"
7901
# func_dirname file append nondir_replacement
7902
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7903
# otherwise set result to NONDIR_REPLACEMENT.
7906
# Extract subdirectory from the argument.
7907
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7908
if test "X$func_dirname_result" = "X${1}"; then
7909
func_dirname_result="${3}"
7911
func_dirname_result="$func_dirname_result${2}"
7915
# func_basename file
7918
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7921
dnl func_dirname_and_basename
7922
dnl A portable version of this function is already defined in general.m4sh
7923
dnl so there is no need for it here.
7925
# func_stripname prefix suffix name
7926
# strip PREFIX and SUFFIX off of NAME.
7927
# PREFIX and SUFFIX must not contain globbing or regex special
7928
# characters, hashes, percent signs, but SUFFIX may contain a leading
7929
# dot (in which case that matches only a dot).
7930
# func_strip_suffix prefix name
7934
.*) func_stripname_result=`$ECHO "X${3}" \
7935
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7936
*) func_stripname_result=`$ECHO "X${3}" \
7937
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7942
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7943
my_sed_long_arg='1s/^-[[^=]]*=//'
7948
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7949
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7955
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7958
# func_xform libobj-or-source
7961
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7964
# func_arith arithmetic-term...
7967
func_arith_result=`expr "$[@]"`
7971
# STRING may not start with a hyphen.
7974
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7980
case $lt_shell_append in
7982
cat << \_LT_EOF >> "$cfgfile"
7984
# func_append var value
7985
# Append VALUE to the end of shell variable VAR.
7993
cat << \_LT_EOF >> "$cfgfile"
7995
# func_append var value
7996
# Append VALUE to the end of shell variable VAR.
7999
eval "$[1]=\$$[1]\$[2]"
8007
# Helper functions for option handling. -*- Autoconf -*-
8009
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8010
# Written by Gary V. Vaughan, 2004
8012
# This file is free software; the Free Software Foundation gives
8013
# unlimited permission to copy and/or distribute it, with or without
8014
# modifications, as long as this notice is preserved.
8016
# serial 6 ltoptions.m4
8018
# This is to help aclocal find these macros, as it can't see m4_define.
8019
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8022
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8023
# ------------------------------------------
8024
m4_define([_LT_MANGLE_OPTION],
8025
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8028
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8029
# ---------------------------------------
8030
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8031
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8033
m4_define([_LT_SET_OPTION],
8034
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8035
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8036
_LT_MANGLE_DEFUN([$1], [$2]),
8037
[m4_warning([Unknown $1 option `$2'])])[]dnl
8041
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8042
# ------------------------------------------------------------
8043
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8044
m4_define([_LT_IF_OPTION],
8045
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8048
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8049
# -------------------------------------------------------
8050
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8052
m4_define([_LT_UNLESS_OPTIONS],
8053
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8054
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8055
[m4_define([$0_found])])])[]dnl
8056
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8061
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8062
# ----------------------------------------
8063
# OPTION-LIST is a space-separated list of Libtool options associated
8064
# with MACRO-NAME. If any OPTION has a matching handler declared with
8065
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8066
# the unknown option and exit.
8067
m4_defun([_LT_SET_OPTIONS],
8069
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8070
[_LT_SET_OPTION([$1], _LT_Option)])
8072
m4_if([$1],[LT_INIT],[
8074
dnl Simply set some default values (i.e off) if boolean options were not
8076
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8078
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8081
dnl If no reference was made to various pairs of opposing options, then
8082
dnl we run the default mode handler for the pair. For example, if neither
8083
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8084
dnl archives by default:
8085
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8086
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8087
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8088
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8089
[_LT_ENABLE_FAST_INSTALL])
8095
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8096
# -----------------------------------------
8097
m4_define([_LT_MANGLE_DEFUN],
8098
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8101
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8102
# -----------------------------------------------
8103
m4_define([LT_OPTION_DEFINE],
8104
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8105
])# LT_OPTION_DEFINE
8110
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8113
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8114
[_LT_SET_OPTION([LT_INIT], [dlopen])
8115
AC_DIAGNOSE([obsolete],
8116
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8117
put the `dlopen' option into LT_INIT's first parameter.])
8120
dnl aclocal-1.4 backwards compatibility:
8121
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8126
# Declare package support for building win32 dll's.
8127
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8128
[enable_win32_dll=yes
8131
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8132
AC_CHECK_TOOL(AS, as, false)
8133
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8134
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8138
test -z "$AS" && AS=as
8139
_LT_DECL([], [AS], [0], [Assembler program])dnl
8141
test -z "$DLLTOOL" && DLLTOOL=dlltool
8142
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8144
test -z "$OBJDUMP" && OBJDUMP=objdump
8145
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8148
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8149
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8150
_LT_SET_OPTION([LT_INIT], [win32-dll])
8151
AC_DIAGNOSE([obsolete],
8152
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8153
put the `win32-dll' option into LT_INIT's first parameter.])
8156
dnl aclocal-1.4 backwards compatibility:
8157
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8160
# _LT_ENABLE_SHARED([DEFAULT])
8161
# ----------------------------
8162
# implement the --enable-shared flag, and supports the `shared' and
8163
# `disable-shared' LT_INIT options.
8164
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8165
m4_define([_LT_ENABLE_SHARED],
8166
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8167
AC_ARG_ENABLE([shared],
8168
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8169
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8170
[p=${PACKAGE-default}
8172
yes) enable_shared=yes ;;
8173
no) enable_shared=no ;;
8176
# Look at the argument we got. We use all the common list separators.
8177
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8178
for pkg in $enableval; do
8180
if test "X$pkg" = "X$p"; then
8187
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8189
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8190
[Whether or not to build shared libraries])
8191
])# _LT_ENABLE_SHARED
8193
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8194
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8197
AC_DEFUN([AC_ENABLE_SHARED],
8198
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8201
AC_DEFUN([AC_DISABLE_SHARED],
8202
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8205
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8206
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8208
dnl aclocal-1.4 backwards compatibility:
8209
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8210
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8214
# _LT_ENABLE_STATIC([DEFAULT])
8215
# ----------------------------
8216
# implement the --enable-static flag, and support the `static' and
8217
# `disable-static' LT_INIT options.
8218
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8219
m4_define([_LT_ENABLE_STATIC],
8220
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8221
AC_ARG_ENABLE([static],
8222
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8223
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8224
[p=${PACKAGE-default}
8226
yes) enable_static=yes ;;
8227
no) enable_static=no ;;
8230
# Look at the argument we got. We use all the common list separators.
8231
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8232
for pkg in $enableval; do
8234
if test "X$pkg" = "X$p"; then
8241
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8243
_LT_DECL([build_old_libs], [enable_static], [0],
8244
[Whether or not to build static libraries])
8245
])# _LT_ENABLE_STATIC
8247
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8248
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8251
AC_DEFUN([AC_ENABLE_STATIC],
8252
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8255
AC_DEFUN([AC_DISABLE_STATIC],
8256
[_LT_SET_OPTION([LT_INIT], [disable-static])
8259
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8260
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8262
dnl aclocal-1.4 backwards compatibility:
8263
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8264
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8268
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8269
# ----------------------------------
8270
# implement the --enable-fast-install flag, and support the `fast-install'
8271
# and `disable-fast-install' LT_INIT options.
8272
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8273
m4_define([_LT_ENABLE_FAST_INSTALL],
8274
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8275
AC_ARG_ENABLE([fast-install],
8276
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8277
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8278
[p=${PACKAGE-default}
8280
yes) enable_fast_install=yes ;;
8281
no) enable_fast_install=no ;;
8283
enable_fast_install=no
8284
# Look at the argument we got. We use all the common list separators.
8285
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8286
for pkg in $enableval; do
8288
if test "X$pkg" = "X$p"; then
8289
enable_fast_install=yes
8295
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8297
_LT_DECL([fast_install], [enable_fast_install], [0],
8298
[Whether or not to optimize for fast installation])dnl
8299
])# _LT_ENABLE_FAST_INSTALL
8301
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8302
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8305
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8306
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8307
AC_DIAGNOSE([obsolete],
8308
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8309
the `fast-install' option into LT_INIT's first parameter.])
8312
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8313
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8314
AC_DIAGNOSE([obsolete],
8315
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8316
the `disable-fast-install' option into LT_INIT's first parameter.])
8319
dnl aclocal-1.4 backwards compatibility:
8320
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8321
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8324
# _LT_WITH_PIC([MODE])
8325
# --------------------
8326
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8328
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8329
m4_define([_LT_WITH_PIC],
8331
[AS_HELP_STRING([--with-pic],
8332
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8333
[pic_mode="$withval"],
8336
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8338
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8341
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8342
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8345
AU_DEFUN([AC_LIBTOOL_PICMODE],
8346
[_LT_SET_OPTION([LT_INIT], [pic-only])
8347
AC_DIAGNOSE([obsolete],
8348
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8349
put the `pic-only' option into LT_INIT's first parameter.])
8352
dnl aclocal-1.4 backwards compatibility:
8353
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8356
m4_define([_LTDL_MODE], [])
8357
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8358
[m4_define([_LTDL_MODE], [nonrecursive])])
8359
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8360
[m4_define([_LTDL_MODE], [recursive])])
8361
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8362
[m4_define([_LTDL_MODE], [subproject])])
8364
m4_define([_LTDL_TYPE], [])
8365
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8366
[m4_define([_LTDL_TYPE], [installable])])
8367
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8368
[m4_define([_LTDL_TYPE], [convenience])])
8370
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8372
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8373
# Written by Gary V. Vaughan, 2004
8375
# This file is free software; the Free Software Foundation gives
8376
# unlimited permission to copy and/or distribute it, with or without
8377
# modifications, as long as this notice is preserved.
8379
# serial 6 ltsugar.m4
8381
# This is to help aclocal find these macros, as it can't see m4_define.
8382
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8385
# lt_join(SEP, ARG1, [ARG2...])
8386
# -----------------------------
8387
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8388
# associated separator.
8389
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8390
# versions in m4sugar had bugs.
8391
m4_define([lt_join],
8392
[m4_if([$#], [1], [],
8394
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8395
m4_define([_lt_join],
8396
[m4_if([$#$2], [2], [],
8397
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8403
# Manipulate m4 lists.
8404
# These macros are necessary as long as will still need to support
8405
# Autoconf-2.59 which quotes differently.
8406
m4_define([lt_car], [[$1]])
8408
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8410
[m4_dquote(m4_shift($@))])])
8411
m4_define([lt_unquote], $1)
8414
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8415
# ------------------------------------------
8416
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8417
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8418
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8419
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8420
# than defined and empty).
8422
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8423
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8424
m4_define([lt_append],
8426
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8430
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8431
# ----------------------------------------------------------
8432
# Produce a SEP delimited list of all paired combinations of elements of
8433
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8434
# has the form PREFIXmINFIXSUFFIXn.
8435
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8436
m4_define([lt_combine],
8437
[m4_if(m4_eval([$# > 3]), [1],
8438
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8439
[[m4_foreach([_Lt_prefix], [$2],
8440
[m4_foreach([_Lt_suffix],
8441
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8442
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8445
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8446
# -----------------------------------------------------------------------
8447
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8448
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8449
m4_define([lt_if_append_uniq],
8451
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8452
[lt_append([$1], [$2], [$3])$4],
8454
[lt_append([$1], [$2], [$3])$4])])
8457
# lt_dict_add(DICT, KEY, VALUE)
8458
# -----------------------------
8459
m4_define([lt_dict_add],
8460
[m4_define([$1($2)], [$3])])
8463
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8464
# --------------------------------------------
8465
m4_define([lt_dict_add_subkey],
8466
[m4_define([$1($2:$3)], [$4])])
8469
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8470
# ----------------------------------
8471
m4_define([lt_dict_fetch],
8473
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8474
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8477
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8478
# -----------------------------------------------------------------
8479
m4_define([lt_if_dict_fetch],
8480
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8485
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8486
# --------------------------------------------------------------
8487
m4_define([lt_dict_filter],
8488
[m4_if([$5], [], [],
8489
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8490
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8491
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8494
# ltversion.m4 -- version numbers -*- Autoconf -*-
8496
# Copyright (C) 2004 Free Software Foundation, Inc.
8497
# Written by Scott James Remnant, 2004
8499
# This file is free software; the Free Software Foundation gives
8500
# unlimited permission to copy and/or distribute it, with or without
8501
# modifications, as long as this notice is preserved.
8503
# Generated from ltversion.in.
8505
# serial 3012 ltversion.m4
8506
# This file is part of GNU Libtool
8508
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8509
m4_define([LT_PACKAGE_REVISION], [1.3012])
8511
AC_DEFUN([LTVERSION_VERSION],
8512
[macro_version='2.2.6'
8513
macro_revision='1.3012'
8514
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8515
_LT_DECL(, macro_revision, 0)
8518
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8520
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8521
# Written by Scott James Remnant, 2004.
8523
# This file is free software; the Free Software Foundation gives
8524
# unlimited permission to copy and/or distribute it, with or without
8525
# modifications, as long as this notice is preserved.
8527
# serial 4 lt~obsolete.m4
8529
# These exist entirely to fool aclocal when bootstrapping libtool.
8531
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8532
# which have later been changed to m4_define as they aren't part of the
8533
# exported API, or moved to Autoconf or Automake where they belong.
8535
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8536
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8537
# using a macro with the same name in our local m4/libtool.m4 it'll
8538
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8539
# and doesn't know about Autoconf macros at all.)
8541
# So we provide this file, which has a silly filename so it's always
8542
# included after everything else. This provides aclocal with the
8543
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8544
# because those macros already exist, or will be overwritten later.
8545
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8547
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8548
# Yes, that means every name once taken will need to remain here until
8549
# we give up compatibility with versions before 1.7, at which point
8550
# we need to keep only those names which we still refer to.
8552
# This is to help aclocal find these macros, as it can't see m4_define.
8553
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8555
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8556
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8557
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8558
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8559
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8560
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8561
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8562
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8563
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8564
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8565
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8566
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8567
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8568
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8569
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8570
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8571
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8572
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8573
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8574
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8575
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8576
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8577
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8578
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8579
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8580
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8581
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8582
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8583
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8584
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8585
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8586
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8587
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8588
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8589
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8590
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8591
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8592
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8593
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8594
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8595
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8596
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8597
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8598
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8599
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8600
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8601
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8602
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8603
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8604
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8605
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8606
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8607
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8608
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8609
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8611
# nls.m4 serial 3 (gettext-0.15)
8612
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8613
dnl This file is free software; the Free Software Foundation
8614
dnl gives unlimited permission to copy and/or distribute it,
8615
dnl with or without modifications, as long as this notice is preserved.
8617
dnl This file can can be used in projects which are not available under
8618
dnl the GNU General Public License or the GNU Library General Public
8619
dnl License but which still want to provide support for the GNU gettext
8621
dnl Please note that the actual code of the GNU gettext library is covered
8622
dnl by the GNU Library General Public License, and the rest of the GNU
8623
dnl gettext package package is covered by the GNU General Public License.
8624
dnl They are *not* in the public domain.
8627
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8628
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8634
AC_MSG_CHECKING([whether NLS is requested])
8635
dnl Default is enabled NLS
8637
[ --disable-nls do not use Native Language Support],
8638
USE_NLS=$enableval, USE_NLS=yes)
8639
AC_MSG_RESULT($USE_NLS)
7311
8643
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-