1027
1212
# Sed substitution that helps us do robust quoting. It backslashifies
1028
1213
# metacharacters that are still active within double-quoted strings.
1029
Xsed='sed -e 1s/^X//'
1030
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1214
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1032
1216
# Same as above, but do not quote variable references.
1033
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1217
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1035
1219
# Sed substitution to delay expansion of an escaped shell variable in a
1036
1220
# double_quote_subst'ed string.
1037
1221
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1223
# Sed substitution to delay expansion of an escaped single quote.
1224
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1039
1226
# Sed substitution to avoid accidental globbing in evaled expressions
1040
1227
no_glob_subst='s/\*/\\\*/g'
1045
1229
# Global variables:
1046
default_ofile=libtool
1047
1231
can_build_shared=yes
1049
1233
# All known linkers require a `.a' archive for static linking (except MSVC,
1050
1234
# which needs '.lib').
1052
ltmain="$ac_aux_dir/ltmain.sh"
1053
ofile="$default_ofile"
1054
1237
with_gnu_ld="$lt_cv_prog_gnu_ld"
1056
AC_CHECK_TOOL(AR, ar, false)
1057
AC_CHECK_TOOL(RANLIB, ranlib, :)
1058
AC_CHECK_TOOL(STRIP, strip, :)
1061
1240
old_CFLAGS="$CFLAGS"
1063
1242
# Set sane defaults for various variables
1064
test -z "$AR" && AR=ar
1065
test -z "$AR_FLAGS" && AR_FLAGS=cru
1066
test -z "$AS" && AS=as
1067
1243
test -z "$CC" && CC=cc
1068
1244
test -z "$LTCC" && LTCC=$CC
1069
1245
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1070
test -z "$DLLTOOL" && DLLTOOL=dlltool
1071
1246
test -z "$LD" && LD=ld
1072
test -z "$LN_S" && LN_S="ln -s"
1073
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1074
test -z "$NM" && NM=nm
1075
test -z "$SED" && SED=sed
1076
test -z "$OBJDUMP" && OBJDUMP=objdump
1077
test -z "$RANLIB" && RANLIB=:
1078
test -z "$STRIP" && STRIP=:
1079
1247
test -z "$ac_objext" && ac_objext=o
1081
# Determine commands to create old-style static archives.
1082
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1083
old_postinstall_cmds='chmod 644 $oldlib'
1084
old_postuninstall_cmds=
1086
if test -n "$RANLIB"; then
1089
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1092
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1095
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1098
1249
_LT_CC_BASENAME([$compiler])
1100
1251
# Only perform the check for file, if the check method requires it
1252
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1101
1253
case $deplibs_check_method in
1103
1255
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1109
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1110
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1111
enable_win32_dll=yes, enable_win32_dll=no)
1113
AC_ARG_ENABLE([libtool-lock],
1114
[AC_HELP_STRING([--disable-libtool-lock],
1115
[avoid locking (might break parallel builds)])])
1116
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1119
[AC_HELP_STRING([--with-pic],
1120
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1121
[pic_mode="$withval"],
1123
test -z "$pic_mode" && pic_mode=default
1125
1261
# Use C for the default configuration in the libtool script
1127
AC_LIBTOOL_LANG_C_CONFIG
1129
])# AC_LIBTOOL_SETUP
1132
# _LT_AC_SYS_COMPILER
1262
LT_SUPPORTED_TAG([CC])
1264
_LT_LANG_DEFAULT_CONFIG
1271
# Note that this code is called both from `configure', and `config.status'
1272
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1273
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1274
# so we pass a copy along to make sure it has a sensible value anyway.
1275
m4_defun([_LT_PROG_LTMAIN],
1276
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1277
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1278
ltmain="$ac_aux_dir/ltmain.sh"
1283
# So that we can recreate a full libtool script including additional
1284
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1285
# in macros and then make a single call at the end using the `libtool'
1289
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1290
# ----------------------------------------
1291
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1292
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1294
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1299
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1302
# _LT_CONFIG_LIBTOOL([COMMANDS])
1303
# ------------------------------
1304
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1305
m4_define([_LT_CONFIG_LIBTOOL],
1307
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1312
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1315
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1316
# -----------------------------------------------------
1317
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1318
[_LT_CONFIG_LIBTOOL([$1])
1319
_LT_CONFIG_LIBTOOL_INIT([$2])
1323
# _LT_FORMAT_COMMENT([COMMENT])
1324
# -----------------------------
1325
# Add leading comment marks to the start of each line, and a trailing
1326
# full-stop to the whole comment if one is not present already.
1327
m4_define([_LT_FORMAT_COMMENT],
1329
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1330
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1337
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1338
# -------------------------------------------------------------------
1339
# CONFIGNAME is the name given to the value in the libtool script.
1340
# VARNAME is the (base) name used in the configure script.
1341
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1342
# VARNAME. Any other value will be used directly.
1343
m4_define([_LT_DECL],
1344
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1345
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1346
[m4_ifval([$1], [$1], [$2])])
1347
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1349
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1350
lt_dict_add_subkey([lt_decl_dict], [$2],
1351
[tagged?], [m4_ifval([$5], [yes], [no])])])
1355
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1356
# --------------------------------------------------------
1357
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1360
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1361
# ------------------------------------------------
1362
m4_define([lt_decl_tag_varnames],
1363
[_lt_decl_filter([tagged?], [yes], $@)])
1366
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1367
# ---------------------------------------------------------
1368
m4_define([_lt_decl_filter],
1370
[0], [m4_fatal([$0: too few arguments: $#])],
1371
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1372
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1373
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1374
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1378
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1379
# --------------------------------------------------
1380
m4_define([lt_decl_quote_varnames],
1381
[_lt_decl_filter([value], [1], $@)])
1384
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1385
# ---------------------------------------------------
1386
m4_define([lt_decl_dquote_varnames],
1387
[_lt_decl_filter([value], [2], $@)])
1390
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1391
# ---------------------------------------------------
1392
m4_define([lt_decl_varnames_tagged],
1393
[m4_assert([$# <= 2])dnl
1394
_$0(m4_quote(m4_default([$1], [[, ]])),
1395
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1396
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1397
m4_define([_lt_decl_varnames_tagged],
1398
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1401
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1402
# ------------------------------------------------
1403
m4_define([lt_decl_all_varnames],
1404
[_$0(m4_quote(m4_default([$1], [[, ]])),
1406
m4_quote(lt_decl_varnames),
1407
m4_quote(m4_shift($@))))[]dnl
1409
m4_define([_lt_decl_all_varnames],
1410
[lt_join($@, lt_decl_varnames_tagged([$1],
1411
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1415
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1416
# ------------------------------------
1417
# Quote a variable value, and forward it to `config.status' so that its
1418
# declaration there will have the same value as in `configure'. VARNAME
1419
# must have a single quote delimited value for this to work.
1420
m4_define([_LT_CONFIG_STATUS_DECLARE],
1421
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1424
# _LT_CONFIG_STATUS_DECLARATIONS
1425
# ------------------------------
1426
# We delimit libtool config variables with single quotes, so when
1427
# we write them to config.status, we have to be sure to quote all
1428
# embedded single quotes properly. In configure, this macro expands
1429
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1431
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1432
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1433
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1434
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1439
# Output comment and list of tags supported by the script
1440
m4_defun([_LT_LIBTOOL_TAGS],
1441
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1442
available_tags="_LT_TAGS"dnl
1446
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1447
# -----------------------------------
1448
# Extract the dictionary values for VARNAME (optionally with TAG) and
1449
# expand to a commented shell variable setting:
1451
# # Some comment about what VAR is for.
1452
# visible_name=$lt_internal_name
1453
m4_define([_LT_LIBTOOL_DECLARE],
1454
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1455
[description])))[]dnl
1456
m4_pushdef([_libtool_name],
1457
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1458
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1459
[0], [_libtool_name=[$]$1],
1460
[1], [_libtool_name=$lt_[]$1],
1461
[2], [_libtool_name=$lt_[]$1],
1462
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1463
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1467
# _LT_LIBTOOL_CONFIG_VARS
1468
# -----------------------
1469
# Produce commented declarations of non-tagged libtool config variables
1470
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1471
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1472
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1473
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1474
[m4_foreach([_lt_var],
1475
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1476
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1479
# _LT_LIBTOOL_TAG_VARS(TAG)
1480
# -------------------------
1481
m4_define([_LT_LIBTOOL_TAG_VARS],
1482
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1483
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1486
# _LT_TAGVAR(VARNAME, [TAGNAME])
1487
# ------------------------------
1488
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1491
# _LT_CONFIG_COMMANDS
1133
1492
# -------------------
1134
AC_DEFUN([_LT_AC_SYS_COMPILER],
1493
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1494
# variables for single and double quote escaping we saved from calls
1495
# to _LT_DECL, we can put quote escaped variables declarations
1496
# into `config.status', and then the shell code to quote escape them in
1497
# for loops in `config.status'. Finally, any additional code accumulated
1498
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1499
m4_defun([_LT_CONFIG_COMMANDS],
1500
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1501
dnl If the libtool generation code has been placed in $CONFIG_LT,
1502
dnl instead of duplicating it all over again into config.status,
1503
dnl then we will have config.status run $CONFIG_LT later, so it
1504
dnl needs to know what name is stored there:
1505
[AC_CONFIG_COMMANDS([libtool],
1506
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1507
dnl If the libtool generation code is destined for config.status,
1508
dnl expand the accumulated commands and init code now:
1509
[AC_CONFIG_COMMANDS([libtool],
1510
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1511
])#_LT_CONFIG_COMMANDS
1515
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1518
# The HP-UX ksh and POSIX shell print the target directory to stdout
1520
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1522
sed_quote_subst='$sed_quote_subst'
1523
double_quote_subst='$double_quote_subst'
1524
delay_variable_subst='$delay_variable_subst'
1525
_LT_CONFIG_STATUS_DECLARATIONS
1527
LTCFLAGS='$LTCFLAGS'
1528
compiler='$compiler_DEFAULT'
1530
# Quote evaled strings.
1531
for var in lt_decl_all_varnames([[ \
1532
]], lt_decl_quote_varnames); do
1533
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1534
*[[\\\\\\\`\\"\\\$]]*)
1535
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1538
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1543
# Double-quote double-evaled strings.
1544
for var in lt_decl_all_varnames([[ \
1545
]], lt_decl_dquote_varnames); do
1546
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1547
*[[\\\\\\\`\\"\\\$]]*)
1548
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1551
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1556
# Fix-up fallback echo if it was mangled by the above quoting rules.
1558
*'\\\[$]0 --fallback-echo"')dnl "
1559
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1563
_LT_OUTPUT_LIBTOOL_INIT
1569
# This macro allows early generation of the libtool script (before
1570
# AC_OUTPUT is called), incase it is used in configure for compilation
1572
AC_DEFUN([LT_OUTPUT],
1573
[: ${CONFIG_LT=./config.lt}
1574
AC_MSG_NOTICE([creating $CONFIG_LT])
1575
cat >"$CONFIG_LT" <<_LTEOF
1577
# Generated by $as_me.
1578
# Run this file to recreate a libtool stub with the current configuration.
1581
SHELL=\${CONFIG_SHELL-$SHELL}
1584
cat >>"$CONFIG_LT" <<\_LTEOF
1588
exec AS_MESSAGE_FD>&1
1589
exec AS_MESSAGE_LOG_FD>>config.log
1592
AS_BOX([Running $as_me.])
1593
} >&AS_MESSAGE_LOG_FD
1596
\`$as_me' creates a local libtool stub from the current configuration,
1597
for use in further configure time tests before the real libtool is
1600
Usage: $[0] [[OPTIONS]]
1602
-h, --help print this help, then exit
1603
-V, --version print version number, then exit
1604
-q, --quiet do not print progress messages
1605
-d, --debug don't remove temporary files
1607
Report bugs to <bug-libtool@gnu.org>."
1610
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1611
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1612
configured by $[0], generated by m4_PACKAGE_STRING.
1614
Copyright (C) 2008 Free Software Foundation, Inc.
1615
This config.lt script is free software; the Free Software Foundation
1616
gives unlimited permision to copy, distribute and modify it."
1618
while test $[#] != 0
1621
--version | --v* | -V )
1622
echo "$lt_cl_version"; exit 0 ;;
1623
--help | --h* | -h )
1624
echo "$lt_cl_help"; exit 0 ;;
1625
--debug | --d* | -d )
1627
--quiet | --q* | --silent | --s* | -q )
1630
-*) AC_MSG_ERROR([unrecognized option: $[1]
1631
Try \`$[0] --help' for more information.]) ;;
1633
*) AC_MSG_ERROR([unrecognized argument: $[1]
1634
Try \`$[0] --help' for more information.]) ;;
1639
if $lt_cl_silent; then
1640
exec AS_MESSAGE_FD>/dev/null
1644
cat >>"$CONFIG_LT" <<_LTEOF
1645
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1648
cat >>"$CONFIG_LT" <<\_LTEOF
1649
AC_MSG_NOTICE([creating $ofile])
1650
_LT_OUTPUT_LIBTOOL_COMMANDS
1653
chmod +x "$CONFIG_LT"
1655
# configure is writing to config.log, but config.lt does its own redirection,
1656
# appending to config.log, which fails on DOS, as config.log is still kept
1657
# open by configure. Here we exec the FD to /dev/null, effectively closing
1658
# config.log, so it can be properly (re)opened and appended to by config.lt.
1659
if test "$no_create" != yes; then
1661
test "$silent" = yes &&
1662
lt_config_lt_args="$lt_config_lt_args --quiet"
1663
exec AS_MESSAGE_LOG_FD>/dev/null
1664
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1665
exec AS_MESSAGE_LOG_FD>>config.log
1666
$lt_cl_success || AS_EXIT(1)
1673
# If TAG is the built-in tag, create an initial libtool script with a
1674
# default configuration from the untagged config vars. Otherwise add code
1675
# to config.status for appending the configuration named by TAG from the
1676
# matching tagged config vars.
1677
m4_defun([_LT_CONFIG],
1678
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1679
_LT_CONFIG_SAVE_COMMANDS([
1680
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1681
m4_if(_LT_TAG, [C], [
1682
# See if we are running on zsh, and set the options which allow our
1683
# commands through without removal of \ escapes.
1684
if test -n "${ZSH_VERSION+set}" ; then
1685
setopt NO_GLOB_SUBST
1689
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1692
cat <<_LT_EOF >> "$cfgfile"
1695
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1696
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1697
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1698
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1703
# ### BEGIN LIBTOOL CONFIG
1704
_LT_LIBTOOL_CONFIG_VARS
1705
_LT_LIBTOOL_TAG_VARS
1706
# ### END LIBTOOL CONFIG
1712
cat <<\_LT_EOF >> "$cfgfile"
1713
# AIX sometimes has problems with the GCC collect2 program. For some
1714
# reason, if we set the COLLECT_NAMES environment variable, the problems
1715
# vanish in a puff of smoke.
1716
if test "X${COLLECT_NAMES+set}" != Xset; then
1718
export COLLECT_NAMES
1726
# We use sed instead of cat because bash on DJGPP gets confused if
1727
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1728
# text mode, it properly converts lines to CR/LF. This bash problem
1729
# is reportedly fixed, but why not run on old versions too?
1730
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1731
|| (rm -f "$cfgfile"; exit 1)
1733
_LT_PROG_XSI_SHELLFNS
1735
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1736
|| (rm -f "$cfgfile"; exit 1)
1738
mv -f "$cfgfile" "$ofile" ||
1739
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1742
[cat <<_LT_EOF >> "$ofile"
1744
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1745
dnl in a comment (ie after a #).
1746
# ### BEGIN LIBTOOL TAG CONFIG: $1
1747
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1748
# ### END LIBTOOL TAG CONFIG: $1
1755
TIMESTAMP='$TIMESTAMP'
1757
ofile='$ofile'], [])
1758
])dnl /_LT_CONFIG_SAVE_COMMANDS
1762
# LT_SUPPORTED_TAG(TAG)
1763
# ---------------------
1764
# Trace this macro to discover what tags are supported by the libtool
1765
# --tag option, using:
1766
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1767
AC_DEFUN([LT_SUPPORTED_TAG], [])
1770
# C support is built-in for now
1771
m4_define([_LT_LANG_C_enabled], [])
1772
m4_define([_LT_TAGS], [])
1777
# Enable libtool support for the given language if not already enabled.
1779
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1782
[C++], [_LT_LANG(CXX)],
1783
[Java], [_LT_LANG(GCJ)],
1784
[Fortran 77], [_LT_LANG(F77)],
1785
[Fortran], [_LT_LANG(FC)],
1786
[Windows Resource], [_LT_LANG(RC)],
1787
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1789
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1793
# _LT_LANG(LANGNAME)
1794
# ------------------
1795
m4_defun([_LT_LANG],
1796
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1797
[LT_SUPPORTED_TAG([$1])dnl
1798
m4_append([_LT_TAGS], [$1 ])dnl
1799
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1800
_LT_LANG_$1_CONFIG($1)])dnl
1804
# _LT_LANG_DEFAULT_CONFIG
1805
# -----------------------
1806
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1807
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1809
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1811
AC_PROVIDE_IFELSE([AC_PROG_F77],
1813
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1815
AC_PROVIDE_IFELSE([AC_PROG_FC],
1817
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1819
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1820
dnl pulling things in needlessly.
1821
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1823
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1825
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1827
[m4_ifdef([AC_PROG_GCJ],
1828
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1829
m4_ifdef([A][M_PROG_GCJ],
1830
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1831
m4_ifdef([LT_PROG_GCJ],
1832
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1834
AC_PROVIDE_IFELSE([LT_PROG_RC],
1836
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1837
])# _LT_LANG_DEFAULT_CONFIG
1840
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1841
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1842
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1843
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1844
dnl aclocal-1.4 backwards compatibility:
1845
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1846
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1847
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1848
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1853
m4_defun([_LT_TAG_COMPILER],
1135
1854
[AC_REQUIRE([AC_PROG_CC])dnl
1856
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1857
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1858
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1859
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1137
1861
# If no C compiler was specified, use CC.
1138
1862
LTCC=${LTCC-"$CC"}
3430
4277
AC_CHECK_LIB(m, cos, LIBM="-lm")
3436
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3437
# -----------------------------------
3438
# sets LIBLTDL to the link flags for the libltdl convenience library and
3439
# LTDLINCL to the include flags for the libltdl header and adds
3440
# --enable-ltdl-convenience to the configure arguments. Note that
3441
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3442
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3443
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3444
# (note the single quotes!). If your package is not flat and you're not
3445
# using automake, define top_builddir and top_srcdir appropriately in
3447
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3448
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3449
case $enable_ltdl_convenience in
3450
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3451
"") enable_ltdl_convenience=yes
3452
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3454
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3455
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3456
# For backwards non-gettext consistent compatibility...
3458
])# AC_LIBLTDL_CONVENIENCE
3461
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3462
# -----------------------------------
3463
# sets LIBLTDL to the link flags for the libltdl installable library and
3464
# LTDLINCL to the include flags for the libltdl header and adds
3465
# --enable-ltdl-install to the configure arguments. Note that
3466
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3467
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3468
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3469
# '${top_srcdir}/' (note the single quotes!). If your package is not
3470
# flat and you're not using automake, define top_builddir and top_srcdir
3471
# appropriately in the Makefiles.
3472
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3473
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3474
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3475
AC_CHECK_LIB(ltdl, lt_dlinit,
3476
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3477
[if test x"$enable_ltdl_install" = xno; then
3478
AC_MSG_WARN([libltdl not installed, but installation disabled])
3480
enable_ltdl_install=yes
3483
if test x"$enable_ltdl_install" = x"yes"; then
3484
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3485
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3486
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3488
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3492
# For backwards non-gettext consistent compatibility...
3494
])# AC_LIBLTDL_INSTALLABLE
3499
# enable support for C++ libraries
3500
AC_DEFUN([AC_LIBTOOL_CXX],
3501
[AC_REQUIRE([_LT_AC_LANG_CXX])
3507
AC_DEFUN([_LT_AC_LANG_CXX],
3508
[AC_REQUIRE([AC_PROG_CXX])
3509
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3510
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3513
# _LT_AC_PROG_CXXCPP
3514
# ------------------
3515
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3517
AC_REQUIRE([AC_PROG_CXX])
3518
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3519
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3520
(test "X$CXX" != "Xg++"))) ; then
3523
])# _LT_AC_PROG_CXXCPP
3527
# enable support for Fortran 77 libraries
3528
AC_DEFUN([AC_LIBTOOL_F77],
3529
[AC_REQUIRE([_LT_AC_LANG_F77])
3535
AC_DEFUN([_LT_AC_LANG_F77],
3536
[AC_REQUIRE([AC_PROG_F77])
3537
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3543
# enable support for GCJ libraries
3544
AC_DEFUN([AC_LIBTOOL_GCJ],
3545
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3551
AC_DEFUN([_LT_AC_LANG_GCJ],
3552
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3553
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3554
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3555
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3556
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3557
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3558
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3564
# enable support for Windows resource files
3565
AC_DEFUN([AC_LIBTOOL_RC],
3566
[AC_REQUIRE([LT_AC_PROG_RC])
3567
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3571
# AC_LIBTOOL_LANG_C_CONFIG
3572
# ------------------------
3573
# Ensure that the configuration vars for the C compiler are
3574
# suitably defined. Those variables are subsequently used by
3575
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3576
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3577
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3581
# Source file extension for C test sources.
3584
# Object file extension for compiled C test sources.
3586
_LT_AC_TAGVAR(objext, $1)=$objext
3588
# Code to be used in simple compile tests
3589
lt_simple_compile_test_code="int some_variable = 0;\n"
3591
# Code to be used in simple link tests
3592
lt_simple_link_test_code='int main(){return(0);}\n'
3596
# save warnings/boilerplate of simple test code
3597
_LT_COMPILER_BOILERPLATE
3598
_LT_LINKER_BOILERPLATE
3600
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3601
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3602
AC_LIBTOOL_PROG_CC_C_O($1)
3603
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3604
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3605
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3606
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3607
AC_LIBTOOL_SYS_LIB_STRIP
3608
AC_LIBTOOL_DLOPEN_SELF
3610
# Report which library types will actually be built
3611
AC_MSG_CHECKING([if libtool supports shared libraries])
3612
AC_MSG_RESULT([$can_build_shared])
3614
AC_MSG_CHECKING([whether to build shared libraries])
3615
test "$can_build_shared" = "no" && enable_shared=no
3617
# On AIX, shared libraries and static libraries use the same namespace, and
3618
# are all built from PIC.
3621
test "$enable_shared" = yes && enable_static=no
3622
if test -n "$RANLIB"; then
3623
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3624
postinstall_cmds='$RANLIB $lib'
3629
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3630
test "$enable_shared" = yes && enable_static=no
3634
AC_MSG_RESULT([$enable_shared])
3636
AC_MSG_CHECKING([whether to build static libraries])
3637
# Make sure either enable_shared or enable_static is yes.
3638
test "$enable_shared" = yes || enable_static=yes
3639
AC_MSG_RESULT([$enable_static])
3641
AC_LIBTOOL_CONFIG($1)
3645
])# AC_LIBTOOL_LANG_C_CONFIG
3648
# AC_LIBTOOL_LANG_CXX_CONFIG
3649
# --------------------------
3650
# Ensure that the configuration vars for the C compiler are
3651
# suitably defined. Those variables are subsequently used by
3652
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3653
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3654
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3656
AC_REQUIRE([AC_PROG_CXX])
3657
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3659
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3660
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3661
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3662
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3663
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3664
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3665
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3666
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3667
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3668
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3669
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3670
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3671
_LT_AC_TAGVAR(module_cmds, $1)=
3672
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3673
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3674
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3675
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3676
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3677
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3679
# Dependencies to place before and after the object being linked:
3680
_LT_AC_TAGVAR(predep_objects, $1)=
3681
_LT_AC_TAGVAR(postdep_objects, $1)=
3682
_LT_AC_TAGVAR(predeps, $1)=
3683
_LT_AC_TAGVAR(postdeps, $1)=
3684
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3686
# Source file extension for C++ test sources.
3689
# Object file extension for compiled C++ test sources.
3691
_LT_AC_TAGVAR(objext, $1)=$objext
3693
# Code to be used in simple compile tests
3694
lt_simple_compile_test_code="int some_variable = 0;\n"
3696
# Code to be used in simple link tests
3697
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3699
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3702
# save warnings/boilerplate of simple test code
3703
_LT_COMPILER_BOILERPLATE
3704
_LT_LINKER_BOILERPLATE
3706
# Allow CC to be a program name with arguments.
3711
lt_save_with_gnu_ld=$with_gnu_ld
3712
lt_save_path_LD=$lt_cv_path_LD
3713
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3714
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3716
$as_unset lt_cv_prog_gnu_ld
3718
if test -n "${lt_cv_path_LDCXX+set}"; then
3719
lt_cv_path_LD=$lt_cv_path_LDCXX
3721
$as_unset lt_cv_path_LD
3723
test -z "${LDCXX+set}" || LD=$LDCXX
3726
_LT_AC_TAGVAR(compiler, $1)=$CC
3727
_LT_CC_BASENAME([$compiler])
3729
# We don't want -fno-exception wen compiling C++ code, so set the
3730
# no_builtin_flag separately
3731
if test "$GXX" = yes; then
3732
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3734
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3737
if test "$GXX" = yes; then
3738
# Set up default GNU C++ configuration
3742
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3743
# archiving commands below assume that GNU ld is being used.
3744
if test "$with_gnu_ld" = yes; then
3745
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3746
_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'
3748
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3749
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3751
# If archive_cmds runs LD, not CC, wlarc should be empty
3752
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3753
# investigate it a little bit more. (MM)
3756
# ancient GNU ld didn't support --whole-archive et. al.
3757
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3758
grep 'no-whole-archive' > /dev/null; then
3759
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3761
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3767
# A generic and very simple default shared library creation
3768
# command for GNU C++ for the case where it uses the native
3769
# linker, instead of GNU ld. If possible, this setting should
3770
# overridden to take advantage of the native linker features on
3771
# the platform it is being used on.
3772
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3775
# Commands to make compiler produce verbose output that lists
3776
# what "hidden" libraries, object files and flags are used when
3777
# linking a shared library.
3778
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3786
# PORTME: fill in a description of your system's C++ link characteristics
3787
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3788
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3791
# FIXME: insert proper C++ library support
3792
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3795
if test "$host_cpu" = ia64; then
3796
# On IA64, the linker does run time linking by default, so we don't
3797
# have to do anything special.
3798
aix_use_runtimelinking=no
3799
exp_sym_flag='-Bexport'
3802
aix_use_runtimelinking=no
3804
# Test if we are trying to use run time linking or normal
3805
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3806
# need to do runtime linking.
3807
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3808
for ld_flag in $LDFLAGS; do
3811
aix_use_runtimelinking=yes
3819
exp_sym_flag='-bexport'
3820
no_entry_flag='-bnoentry'
3823
# When large executables or shared objects are built, AIX ld can
3824
# have problems creating the table of contents. If linking a library
3825
# or program results in "error TOC overflow" add -mminimal-toc to
3826
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3827
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3829
_LT_AC_TAGVAR(archive_cmds, $1)=''
3830
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3831
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3832
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3834
if test "$GXX" = yes; then
3835
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3836
# We only want to do this on AIX 4.2 and lower, the check
3837
# below for broken collect2 doesn't work under 4.3+
3838
collect2name=`${CC} -print-prog-name=collect2`
3839
if test -f "$collect2name" && \
3840
strings "$collect2name" | grep resolve_lib_name >/dev/null
3842
# We have reworked collect2
3843
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3845
# We have old collect2
3846
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3847
# It fails to find uninstalled libraries when the uninstalled
3848
# path is not listed in the libpath. Setting hardcode_minus_L
3849
# to unsupported forces relinking
3850
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3851
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3852
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3856
shared_flag='-shared'
3857
if test "$aix_use_runtimelinking" = yes; then
3858
shared_flag="$shared_flag "'${wl}-G'
3862
if test "$host_cpu" = ia64; then
3863
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3864
# chokes on -Wl,-G. The following line is correct:
3867
if test "$aix_use_runtimelinking" = yes; then
3868
shared_flag='${wl}-G'
3870
shared_flag='${wl}-bM:SRE'
3875
# It seems that -bexpall does not export symbols beginning with
3876
# underscore (_), so it is better to generate a list of symbols to export.
3877
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3878
if test "$aix_use_runtimelinking" = yes; then
3879
# Warning - without using the other runtime loading flags (-brtl),
3880
# -berok will link without error, but may produce a broken library.
3881
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3882
# Determine the default libpath from the value encoded in an empty executable.
3883
_LT_AC_SYS_LIBPATH_AIX
3884
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3886
_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"
3888
if test "$host_cpu" = ia64; then
3889
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3890
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3891
_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"
3893
# Determine the default libpath from the value encoded in an empty executable.
3894
_LT_AC_SYS_LIBPATH_AIX
3895
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3896
# Warning - without using the other run time loading flags,
3897
# -berok will link without error, but may produce a broken library.
3898
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3899
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3900
# Exported symbols can be pulled into shared objects from archives
3901
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3902
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3903
# This is similar to how AIX traditionally builds its shared libraries.
3904
_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'
3910
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3911
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3912
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3913
# support --undefined. This deserves some investigation. FIXME
3914
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3916
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3921
case $cc_basename in
3923
# FIXME: insert proper C++ library support
3924
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3929
cygwin* | mingw* | pw32*)
3930
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3931
# as there is no search path for DLLs.
3932
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3933
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3934
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3935
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3937
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3938
_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'
3939
# If the export-symbols file already is a .def file (1st line
3940
# is EXPORTS), use it as is; otherwise, prepend...
3941
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3942
cp $export_symbols $output_objdir/$soname.def;
3944
echo EXPORTS > $output_objdir/$soname.def;
3945
cat $export_symbols >> $output_objdir/$soname.def;
3947
$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'
3949
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3952
darwin* | rhapsody*)
3954
rhapsody* | darwin1.[[012]])
3955
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3958
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3959
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3961
case ${MACOSX_DEPLOYMENT_TARGET} in
3963
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3966
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3972
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3973
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3974
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3975
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3976
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3977
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3979
if test "$GXX" = yes ; then
3980
lt_int_apple_cc_single_mod=no
3981
output_verbose_link_cmd='echo'
3982
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3983
lt_int_apple_cc_single_mod=yes
3985
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3986
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3988
_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'
3990
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3991
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3992
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3993
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3995
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3997
_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}'
3999
case $cc_basename in
4001
output_verbose_link_cmd='echo'
4002
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
4003
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4004
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4005
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4006
_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}'
4009
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4016
case $cc_basename in
4018
# FIXME: insert proper C++ library support
4019
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4022
# Green Hills C++ Compiler
4023
# FIXME: insert proper C++ library support
4024
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4027
# FIXME: insert proper C++ library support
4028
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4033
# C++ shared libraries reported to be fairly broken before switch to ELF
4034
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4037
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4039
freebsd* | kfreebsd*-gnu | dragonfly*)
4040
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4042
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4047
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4048
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4049
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4050
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4051
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4052
# but as the default
4053
# location of the library.
4055
case $cc_basename in
4057
# FIXME: insert proper C++ library support
4058
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4061
_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'
4062
# Commands to make compiler produce verbose output that lists
4063
# what "hidden" libraries, object files and flags are used when
4064
# linking a shared library.
4066
# There doesn't appear to be a way to prevent this compiler from
4067
# explicitly linking system object files so we need to strip them
4068
# from the output so that they don't get included in the library
4070
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'
4073
if test "$GXX" = yes; then
4074
_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'
4076
# FIXME: insert proper C++ library support
4077
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4083
if test $with_gnu_ld = no; then
4084
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4085
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4089
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4092
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4098
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4099
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4102
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4103
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4104
# but as the default
4105
# location of the library.
4109
case $cc_basename in
4111
# FIXME: insert proper C++ library support
4112
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4117
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4120
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4123
_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'
4126
# Commands to make compiler produce verbose output that lists
4127
# what "hidden" libraries, object files and flags are used when
4128
# linking a shared library.
4130
# There doesn't appear to be a way to prevent this compiler from
4131
# explicitly linking system object files so we need to strip them
4132
# from the output so that they don't get included in the library
4134
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'
4137
if test "$GXX" = yes; then
4138
if test $with_gnu_ld = no; then
4141
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4144
_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'
4147
_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'
4152
# FIXME: insert proper C++ library support
4153
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4159
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4160
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4161
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4162
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4163
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4164
# Instead, shared libraries are loaded at an image base (0x10000000 by
4165
# default) and relocated if they conflict, which is a slow very memory
4166
# consuming and fragmenting process. To avoid this, we pick a random,
4167
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4168
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4169
_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'
4170
_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'
4173
case $cc_basename in
4176
_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'
4178
# Archives containing C++ object files must be created using
4179
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4180
# necessary to make sure instantiated templates are included
4182
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4185
if test "$GXX" = yes; then
4186
if test "$with_gnu_ld" = no; then
4187
_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'
4189
_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'
4192
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4195
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4196
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4199
case $cc_basename in
4201
# Kuck and Associates, Inc. (KAI) C++ Compiler
4203
# KCC will only create a shared library if the output file
4204
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4205
# to its proper name (with version) after linking.
4206
_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'
4207
_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'
4208
# Commands to make compiler produce verbose output that lists
4209
# what "hidden" libraries, object files and flags are used when
4210
# linking a shared library.
4212
# There doesn't appear to be a way to prevent this compiler from
4213
# explicitly linking system object files so we need to strip them
4214
# from the output so that they don't get included in the library
4216
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'
4218
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4219
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4221
# Archives containing C++ object files must be created using
4222
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4223
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4228
# version 8.0 and above of icpc choke on multiply defined symbols
4229
# if we add $predep_objects and $postdep_objects, however 7.1 and
4230
# earlier do not add the objects themselves.
4231
case `$CC -V 2>&1` in
4233
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4234
_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'
4236
*) # Version 8.0 or newer
4239
ia64*) tmp_idyn=' -i_dynamic';;
4241
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4242
_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'
4245
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4246
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4247
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4248
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4251
# Portland Group C++ compiler
4252
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4253
_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'
4255
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4256
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4257
_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'
4261
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4262
_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'
4264
runpath_var=LD_RUN_PATH
4265
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4266
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4268
# Commands to make compiler produce verbose output that lists
4269
# what "hidden" libraries, object files and flags are used when
4270
# linking a shared library.
4272
# There doesn't appear to be a way to prevent this compiler from
4273
# explicitly linking system object files so we need to strip them
4274
# from the output so that they don't get included in the library
4276
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'
4281
# FIXME: insert proper C++ library support
4282
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4285
# FIXME: insert proper C++ library support
4286
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4289
case $cc_basename in
4291
# FIXME: insert proper C++ library support
4292
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4295
# FIXME: insert proper C++ library support
4296
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4301
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4302
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4304
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4305
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4306
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4308
# Workaround some broken pre-1.5 toolchains
4309
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4312
# C++ shared libraries are fairly broken
4313
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4316
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4317
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4318
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4319
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4320
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4321
_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'
4322
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4323
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4325
output_verbose_link_cmd='echo'
4328
case $cc_basename in
4330
# Kuck and Associates, Inc. (KAI) C++ Compiler
4332
# KCC will only create a shared library if the output file
4333
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4334
# to its proper name (with version) after linking.
4335
_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'
4337
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4338
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4340
# Archives containing C++ object files must be created using
4341
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4342
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4346
# Rational C++ 2.4.1
4347
# FIXME: insert proper C++ library support
4348
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4351
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4352
_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'
4354
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4355
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4357
# Commands to make compiler produce verbose output that lists
4358
# what "hidden" libraries, object files and flags are used when
4359
# linking a shared library.
4361
# There doesn't appear to be a way to prevent this compiler from
4362
# explicitly linking system object files so we need to strip them
4363
# from the output so that they don't get included in the library
4365
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'
4368
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4369
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4370
_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'
4372
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4373
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4375
# Commands to make compiler produce verbose output that lists
4376
# what "hidden" libraries, object files and flags are used when
4377
# linking a shared library.
4378
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4381
# FIXME: insert proper C++ library support
4382
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4388
case $cc_basename in
4390
# Kuck and Associates, Inc. (KAI) C++ Compiler
4392
# KCC will only create a shared library if the output file
4393
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4394
# to its proper name (with version) after linking.
4395
_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'
4397
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4398
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4400
# Archives containing C++ object files must be created using
4401
# the KAI C++ compiler.
4402
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4405
# Rational C++ 2.4.1
4406
# FIXME: insert proper C++ library support
4407
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4410
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4411
_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'
4412
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4413
echo "-hidden">> $lib.exp~
4414
$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~
4417
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4418
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4420
# Commands to make compiler produce verbose output that lists
4421
# what "hidden" libraries, object files and flags are used when
4422
# linking a shared library.
4424
# There doesn't appear to be a way to prevent this compiler from
4425
# explicitly linking system object files so we need to strip them
4426
# from the output so that they don't get included in the library
4428
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'
4431
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4432
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4433
_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'
4435
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4436
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4438
# Commands to make compiler produce verbose output that lists
4439
# what "hidden" libraries, object files and flags are used when
4440
# linking a shared library.
4441
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4444
# FIXME: insert proper C++ library support
4445
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4451
# FIXME: insert proper C++ library support
4452
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4455
case $cc_basename in
4458
# FIXME: insert proper C++ library support
4459
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4463
# FIXME: insert proper C++ library support
4464
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4467
# FIXME: insert proper C++ library support
4468
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4473
case $cc_basename in
4475
# Sun C++ 4.2, 5.x and Centerline C++
4476
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4477
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4478
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4479
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4480
$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'
4482
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4483
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4485
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4487
# The C++ compiler is used as linker so we must use $wl
4488
# flag to pass the commands to the underlying system
4489
# linker. We must also pass each convience library through
4490
# to the system linker between allextract/defaultextract.
4491
# The C++ compiler will combine linker options so we
4492
# cannot just pass the convience library names through
4494
# Supported since Solaris 2.6 (maybe 2.5.1?)
4495
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4498
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4500
output_verbose_link_cmd='echo'
4502
# Archives containing C++ object files must be created using
4503
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4504
# necessary to make sure instantiated templates are included
4506
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4509
# Green Hills C++ Compiler
4510
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4512
# The C++ compiler must be used to create the archive.
4513
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4516
# GNU C++ compiler with Solaris linker
4517
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4518
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4519
if $CC --version | grep -v '^2\.7' > /dev/null; then
4520
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4521
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4522
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4524
# Commands to make compiler produce verbose output that lists
4525
# what "hidden" libraries, object files and flags are used when
4526
# linking a shared library.
4527
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4529
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4531
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4532
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4533
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4535
# Commands to make compiler produce verbose output that lists
4536
# what "hidden" libraries, object files and flags are used when
4537
# linking a shared library.
4538
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4541
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4546
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4547
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4548
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4549
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4550
runpath_var='LD_RUN_PATH'
4552
case $cc_basename in
4554
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4555
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4558
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4559
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4563
sysv5* | sco3.2v5* | sco5v6*)
4564
# Note: We can NOT use -z defs as we might desire, because we do not
4565
# link with -lc, and that would cause any symbols used from libc to
4566
# always be unresolved, which means just about no library would
4567
# ever link correctly. If we're not using GNU ld we use -z text
4568
# though, which does catch some bad symbols but isn't as heavy-handed
4570
# For security reasons, it is highly recommended that you always
4571
# use absolute paths for naming shared libraries, and exclude the
4572
# DT_RUNPATH tag from executables and libraries. But doing so
4573
# requires that you compile everything twice, which is a pain.
4574
# So that behaviour is only enabled if SCOABSPATH is set to a
4575
# non-empty value in the environment. Most likely only useful for
4576
# creating official distributions of packages.
4577
# This is a hack until libtool officially supports absolute path
4578
# names for shared libraries.
4579
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4580
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4581
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4582
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4583
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4584
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4585
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4586
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4587
runpath_var='LD_RUN_PATH'
4589
case $cc_basename in
4591
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4592
_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'
4595
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4596
_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'
4601
case $cc_basename in
4603
# NonStop-UX NCC 3.20
4604
# FIXME: insert proper C++ library support
4605
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4608
# FIXME: insert proper C++ library support
4609
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4614
# FIXME: insert proper C++ library support
4615
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4618
# FIXME: insert proper C++ library support
4619
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4622
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4623
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4625
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4626
_LT_AC_TAGVAR(LD, $1)="$LD"
4628
AC_LIBTOOL_POSTDEP_PREDEP($1)
4629
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4630
AC_LIBTOOL_PROG_CC_C_O($1)
4631
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4632
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4633
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4634
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4636
AC_LIBTOOL_CONFIG($1)
4643
with_gnu_ldcxx=$with_gnu_ld
4644
with_gnu_ld=$lt_save_with_gnu_ld
4645
lt_cv_path_LDCXX=$lt_cv_path_LD
4646
lt_cv_path_LD=$lt_save_path_LD
4647
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4648
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4649
])# AC_LIBTOOL_LANG_CXX_CONFIG
4651
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4652
# ------------------------------------
4653
# Figure out "hidden" library dependencies from verbose
4654
# compiler output when linking a shared library.
4655
# Parse the compiler output and extract the necessary
4656
# objects, libraries and library flags.
4657
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4658
dnl we can't use the lt_simple_compile_test_code here,
4659
dnl because it contains code intended for an executable,
4660
dnl not a library. It's possible we should let each
4661
dnl tag define a new lt_????_link_test_code variable,
4662
dnl but it's only used here...
4663
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4665
void foo (void) { a = 0; }
4667
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4671
Foo (void) { a = 0; }
4676
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4684
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4687
public void bar (void) {
4693
dnl Parse the compiler output and extract the necessary
4694
dnl objects, libraries and library flags.
4695
if AC_TRY_EVAL(ac_compile); then
4696
# Parse the compiler output and extract the necessary
4697
# objects, libraries and library flags.
4699
# Sentinel used to keep track of whether or not we are before
4700
# the conftest object file.
4701
pre_test_object_deps_done=no
4703
# The `*' in the case matches for architectures that use `case' in
4704
# $output_verbose_cmd can trigger glob expansion during the loop
4705
# eval without this substitution.
4706
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4708
for p in `eval $output_verbose_link_cmd`; do
4712
# Some compilers place space between "-{L,R}" and the path.
4715
|| test $p = "-R"; then
4722
if test "$pre_test_object_deps_done" = no; then
4725
# Internal compiler library paths should come after those
4726
# provided the user. The postdeps already come after the
4727
# user supplied libs so there is no need to process them.
4728
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4729
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4731
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4734
# The "-l" case would never come before the object being
4735
# linked, so don't bother handling this case.
4738
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4739
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4741
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4747
# This assumes that the test object file only shows up
4748
# once in the compiler output.
4749
if test "$p" = "conftest.$objext"; then
4750
pre_test_object_deps_done=yes
4754
if test "$pre_test_object_deps_done" = no; then
4755
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4756
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4758
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4761
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4762
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4764
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4769
*) ;; # Ignore the rest.
4777
echo "libtool.m4: error: problem compiling $1 test program"
4780
$rm -f confest.$objext
4782
# PORTME: override above test on systems where it is broken
4786
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4787
# hack all around it, let's just trust "g++" to DTRT.
4788
_LT_AC_TAGVAR(predep_objects,$1)=
4789
_LT_AC_TAGVAR(postdep_objects,$1)=
4790
_LT_AC_TAGVAR(postdeps,$1)=
4794
case $cc_basename in
4796
# Adding this requires a known-good setup of shared libraries for
4797
# Sun compiler versions before 5.6, else PIC objects from an old
4798
# archive will be linked into the output, leading to subtle bugs.
4799
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4806
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4807
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4809
])# AC_LIBTOOL_POSTDEP_PREDEP
4811
# AC_LIBTOOL_LANG_F77_CONFIG
4812
# --------------------------
4813
# Ensure that the configuration vars for the C compiler are
4814
# suitably defined. Those variables are subsequently used by
4815
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4816
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4817
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4818
[AC_REQUIRE([AC_PROG_F77])
4819
AC_LANG_PUSH(Fortran 77)
4821
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4822
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4823
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4824
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4825
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4826
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4827
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4828
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4829
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4830
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4831
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4832
_LT_AC_TAGVAR(module_cmds, $1)=
4833
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4834
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4835
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4836
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4837
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4838
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4840
# Source file extension for f77 test sources.
4843
# Object file extension for compiled f77 test sources.
4845
_LT_AC_TAGVAR(objext, $1)=$objext
4847
# Code to be used in simple compile tests
4848
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4850
# Code to be used in simple link tests
4851
lt_simple_link_test_code=" program t\n end\n"
4853
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4856
# save warnings/boilerplate of simple test code
4857
_LT_COMPILER_BOILERPLATE
4858
_LT_LINKER_BOILERPLATE
4860
# Allow CC to be a program name with arguments.
4864
_LT_AC_TAGVAR(compiler, $1)=$CC
4865
_LT_CC_BASENAME([$compiler])
4867
AC_MSG_CHECKING([if libtool supports shared libraries])
4868
AC_MSG_RESULT([$can_build_shared])
4870
AC_MSG_CHECKING([whether to build shared libraries])
4871
test "$can_build_shared" = "no" && enable_shared=no
4873
# On AIX, shared libraries and static libraries use the same namespace, and
4874
# are all built from PIC.
4877
test "$enable_shared" = yes && enable_static=no
4878
if test -n "$RANLIB"; then
4879
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4880
postinstall_cmds='$RANLIB $lib'
4884
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4885
test "$enable_shared" = yes && enable_static=no
4889
AC_MSG_RESULT([$enable_shared])
4891
AC_MSG_CHECKING([whether to build static libraries])
4892
# Make sure either enable_shared or enable_static is yes.
4893
test "$enable_shared" = yes || enable_static=yes
4894
AC_MSG_RESULT([$enable_static])
4896
_LT_AC_TAGVAR(GCC, $1)="$G77"
4897
_LT_AC_TAGVAR(LD, $1)="$LD"
4899
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4900
AC_LIBTOOL_PROG_CC_C_O($1)
4901
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4902
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4903
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4904
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4906
AC_LIBTOOL_CONFIG($1)
4910
])# AC_LIBTOOL_LANG_F77_CONFIG
4913
# AC_LIBTOOL_LANG_GCJ_CONFIG
4914
# --------------------------
4915
# Ensure that the configuration vars for the C compiler are
4916
# suitably defined. Those variables are subsequently used by
4917
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4918
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4919
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4922
# Source file extension for Java test sources.
4925
# Object file extension for compiled Java test sources.
4927
_LT_AC_TAGVAR(objext, $1)=$objext
4929
# Code to be used in simple compile tests
4930
lt_simple_compile_test_code="class foo {}\n"
4932
# Code to be used in simple link tests
4933
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4935
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4938
# save warnings/boilerplate of simple test code
4939
_LT_COMPILER_BOILERPLATE
4940
_LT_LINKER_BOILERPLATE
4942
# Allow CC to be a program name with arguments.
4946
_LT_AC_TAGVAR(compiler, $1)=$CC
4947
_LT_CC_BASENAME([$compiler])
4949
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4950
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4952
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4954
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4955
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4956
AC_LIBTOOL_PROG_CC_C_O($1)
4957
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4958
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4959
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4960
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4962
AC_LIBTOOL_CONFIG($1)
4966
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4969
# AC_LIBTOOL_LANG_RC_CONFIG
4970
# -------------------------
4971
# Ensure that the configuration vars for the Windows resource compiler are
4972
# suitably defined. Those variables are subsequently used by
4973
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4974
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4975
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4978
# Source file extension for RC test sources.
4981
# Object file extension for compiled RC test sources.
4983
_LT_AC_TAGVAR(objext, $1)=$objext
4985
# Code to be used in simple compile tests
4986
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4988
# Code to be used in simple link tests
4989
lt_simple_link_test_code="$lt_simple_compile_test_code"
4991
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4994
# save warnings/boilerplate of simple test code
4995
_LT_COMPILER_BOILERPLATE
4996
_LT_LINKER_BOILERPLATE
4998
# Allow CC to be a program name with arguments.
5002
_LT_AC_TAGVAR(compiler, $1)=$CC
5003
_LT_CC_BASENAME([$compiler])
5004
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5006
AC_LIBTOOL_CONFIG($1)
5010
])# AC_LIBTOOL_LANG_RC_CONFIG
5013
# AC_LIBTOOL_CONFIG([TAGNAME])
5014
# ----------------------------
5015
# If TAGNAME is not passed, then create an initial libtool script
5016
# with a default configuration from the untagged config vars. Otherwise
5017
# add code to config.status for appending the configuration named by
5018
# TAGNAME from the matching tagged config vars.
5019
AC_DEFUN([AC_LIBTOOL_CONFIG],
5020
[# The else clause should only fire when bootstrapping the
5021
# libtool distribution, otherwise you forgot to ship ltmain.sh
5022
# with your package, and you will get complaints that there are
5023
# no rules to generate ltmain.sh.
5024
if test -f "$ltmain"; then
5025
# See if we are running on zsh, and set the options which allow our commands through
5026
# without removal of \ escapes.
5027
if test -n "${ZSH_VERSION+set}" ; then
5028
setopt NO_GLOB_SUBST
5030
# Now quote all the things that may contain metacharacters while being
5031
# careful not to overquote the AC_SUBSTed values. We take copies of the
5032
# variables and quote the copies for generation of the libtool script.
5033
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5035
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5036
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5037
deplibs_check_method reload_flag reload_cmds need_locks \
5038
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5039
lt_cv_sys_global_symbol_to_c_name_address \
5040
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5041
old_postinstall_cmds old_postuninstall_cmds \
5042
_LT_AC_TAGVAR(compiler, $1) \
5043
_LT_AC_TAGVAR(CC, $1) \
5044
_LT_AC_TAGVAR(LD, $1) \
5045
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5046
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5047
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5048
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5049
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5050
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5051
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5052
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5053
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5054
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5055
_LT_AC_TAGVAR(predep_objects, $1) \
5056
_LT_AC_TAGVAR(postdep_objects, $1) \
5057
_LT_AC_TAGVAR(predeps, $1) \
5058
_LT_AC_TAGVAR(postdeps, $1) \
5059
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5060
_LT_AC_TAGVAR(archive_cmds, $1) \
5061
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5062
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5063
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5064
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5065
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5066
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5067
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5068
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5069
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5070
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5071
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5072
_LT_AC_TAGVAR(module_cmds, $1) \
5073
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5074
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5075
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5076
_LT_AC_TAGVAR(include_expsyms, $1); do
5079
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5080
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5081
_LT_AC_TAGVAR(archive_cmds, $1) | \
5082
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5083
_LT_AC_TAGVAR(module_cmds, $1) | \
5084
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5085
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5086
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5087
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5088
postinstall_cmds | postuninstall_cmds | \
5089
old_postinstall_cmds | old_postuninstall_cmds | \
5090
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5091
# Double-quote double-evaled strings.
5092
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5095
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5101
*'\[$]0 --fallback-echo"')
5102
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5107
[cfgfile="${ofile}T"
5108
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5110
AC_MSG_NOTICE([creating $ofile])],
5113
cat <<__EOF__ >> "$cfgfile"
5117
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5118
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5119
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5121
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5122
# Free Software Foundation, Inc.
5124
# This file is part of GNU Libtool:
5125
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5127
# This program is free software; you can redistribute it and/or modify
5128
# it under the terms of the GNU General Public License as published by
5129
# the Free Software Foundation; either version 2 of the License, or
5130
# (at your option) any later version.
5132
# This program is distributed in the hope that it will be useful, but
5133
# WITHOUT ANY WARRANTY; without even the implied warranty of
5134
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5135
# General Public License for more details.
5137
# You should have received a copy of the GNU General Public License
5138
# along with this program; if not, write to the Free Software
5139
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5141
# As a special exception to the GNU General Public License, if you
5142
# distribute this file as part of a program that contains a
5143
# configuration script generated by Autoconf, you may include it under
5144
# the same distribution terms that you use for the rest of that program.
5146
# A sed program that does not truncate output.
5149
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5150
Xsed="$SED -e 1s/^X//"
5152
# The HP-UX ksh and POSIX shell print the target directory to stdout
5154
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5156
# The names of the tagged configurations supported by this script.
5159
# ### BEGIN LIBTOOL CONFIG],
5160
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5162
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5164
# Shell to use when invoking shell scripts.
5167
# Whether or not to build shared libraries.
5168
build_libtool_libs=$enable_shared
5170
# Whether or not to build static libraries.
5171
build_old_libs=$enable_static
5173
# Whether or not to add -lc for building shared libraries.
5174
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5176
# Whether or not to disallow shared libs when runtime libs are static
5177
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5179
# Whether or not to optimize for fast installation.
5180
fast_install=$enable_fast_install
5183
host_alias=$host_alias
5188
build_alias=$build_alias
5192
# An echo program that does not interpret backslashes.
5197
AR_FLAGS=$lt_AR_FLAGS
5202
# LTCC compiler flags.
5203
LTCFLAGS=$lt_LTCFLAGS
5205
# A language-specific compiler.
5206
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5208
# Is the compiler the GNU C compiler?
5209
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5214
# The linker used to build libraries.
5215
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5217
# Whether we need hard or soft links.
5220
# A BSD-compatible nm program.
5223
# A symbol stripping program
5226
# Used to examine libraries when file_magic_cmd begins "file"
5227
MAGIC_CMD=$MAGIC_CMD
5229
# Used on cygwin: DLL creation program.
5232
# Used on cygwin: object dumper.
5235
# Used on cygwin: assembler.
5238
# The name of the directory that contains temporary libtool files.
5241
# How to create reloadable object files.
5242
reload_flag=$lt_reload_flag
5243
reload_cmds=$lt_reload_cmds
5245
# How to pass a linker flag through the compiler.
5246
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5248
# Object file suffix (normally "o").
5251
# Old archive suffix (normally "a").
5254
# Shared library suffix (normally ".so").
5255
shrext_cmds='$shrext_cmds'
5257
# Executable file suffix (normally "").
5260
# Additional compiler flags for building library objects.
5261
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5264
# What is the maximum length of a command?
5265
max_cmd_len=$lt_cv_sys_max_cmd_len
5267
# Does compiler simultaneously support -c and -o options?
5268
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5270
# Must we lock files when doing compilation?
5271
need_locks=$lt_need_locks
5273
# Do we need the lib prefix for modules?
5274
need_lib_prefix=$need_lib_prefix
5276
# Do we need a version for libraries?
5277
need_version=$need_version
5279
# Whether dlopen is supported.
5280
dlopen_support=$enable_dlopen
5282
# Whether dlopen of programs is supported.
5283
dlopen_self=$enable_dlopen_self
5285
# Whether dlopen of statically linked programs is supported.
5286
dlopen_self_static=$enable_dlopen_self_static
5288
# Compiler flag to prevent dynamic linking.
5289
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5291
# Compiler flag to turn off builtin functions.
5292
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5294
# Compiler flag to allow reflexive dlopens.
5295
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5297
# Compiler flag to generate shared objects directly from archives.
5298
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5300
# Compiler flag to generate thread-safe objects.
5301
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5303
# Library versioning type.
5304
version_type=$version_type
5306
# Format of library name prefix.
5307
libname_spec=$lt_libname_spec
5309
# List of archive names. First name is the real one, the rest are links.
5310
# The last name is the one that the linker finds with -lNAME.
5311
library_names_spec=$lt_library_names_spec
5313
# The coded name of the library, if different from the real name.
5314
soname_spec=$lt_soname_spec
5316
# Commands used to build and install an old-style archive.
5318
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5319
old_postinstall_cmds=$lt_old_postinstall_cmds
5320
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5322
# Create an old-style archive from a shared archive.
5323
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5325
# Create a temporary old-style archive to link instead of a shared archive.
5326
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5328
# Commands used to build and install a shared archive.
5329
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5330
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5331
postinstall_cmds=$lt_postinstall_cmds
5332
postuninstall_cmds=$lt_postuninstall_cmds
5334
# Commands used to build a loadable module (assumed same as above if empty)
5335
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5336
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5338
# Commands to strip libraries.
5339
old_striplib=$lt_old_striplib
5340
striplib=$lt_striplib
5342
# Dependencies to place before the objects being linked to create a
5344
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5346
# Dependencies to place after the objects being linked to create a
5348
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5350
# Dependencies to place before the objects being linked to create a
5352
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5354
# Dependencies to place after the objects being linked to create a
5356
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5358
# The library search path used internally by the compiler when linking
5360
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5362
# Method to check whether dependent libraries are shared objects.
5363
deplibs_check_method=$lt_deplibs_check_method
5365
# Command to use when deplibs_check_method == file_magic.
5366
file_magic_cmd=$lt_file_magic_cmd
5368
# Flag that allows shared libraries with undefined symbols to be built.
5369
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5371
# Flag that forces no undefined symbols.
5372
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5374
# Commands used to finish a libtool library installation in a directory.
5375
finish_cmds=$lt_finish_cmds
5377
# Same as above, but a single script fragment to be evaled but not shown.
5378
finish_eval=$lt_finish_eval
5380
# Take the output of nm and produce a listing of raw symbols and C names.
5381
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5383
# Transform the output of nm in a proper C declaration
5384
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5386
# Transform the output of nm in a C name address pair
5387
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5389
# This is the shared library runtime path variable.
5390
runpath_var=$runpath_var
5392
# This is the shared library path variable.
5393
shlibpath_var=$shlibpath_var
5395
# Is shlibpath searched before the hard-coded library search path?
5396
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5398
# How to hardcode a shared library path into an executable.
5399
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5401
# Whether we should hardcode library paths into libraries.
5402
hardcode_into_libs=$hardcode_into_libs
5404
# Flag to hardcode \$libdir into a binary during linking.
5405
# This must work even if \$libdir does not exist.
5406
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5408
# If ld is used when linking, flag to hardcode \$libdir into
5409
# a binary during linking. This must work even if \$libdir does
5411
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5413
# Whether we need a single -rpath flag with a separated argument.
5414
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5416
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5418
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5420
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5422
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5424
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5425
# the resulting binary.
5426
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5428
# Set to yes if building a shared library automatically hardcodes DIR into the library
5429
# and all subsequent libraries and executables linked against it.
5430
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5432
# Variables whose values should be saved in libtool wrapper scripts and
5433
# restored at relink time.
5434
variables_saved_for_relink="$variables_saved_for_relink"
5436
# Whether libtool must link a program against all its dependency libraries.
5437
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5439
# Compile-time system search path for libraries
5440
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5442
# Run-time system search path for libraries
5443
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5445
# Fix the shell variable \$srcfile for the compiler.
5446
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5448
# Set to yes if exported symbols are required.
5449
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5451
# The commands to list exported symbols.
5452
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5454
# The commands to extract the exported symbol list from a shared archive.
5455
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5457
# Symbols that should not be listed in the preloaded symbols.
5458
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5460
# Symbols that must always be exported.
5461
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5464
[# ### END LIBTOOL CONFIG],
5465
[# ### END LIBTOOL TAG CONFIG: $tagname])
5472
cat <<\EOF >> "$cfgfile"
5474
# AIX sometimes has problems with the GCC collect2 program. For some
5475
# reason, if we set the COLLECT_NAMES environment variable, the problems
5476
# vanish in a puff of smoke.
5477
if test "X${COLLECT_NAMES+set}" != Xset; then
5479
export COLLECT_NAMES
5485
# We use sed instead of cat because bash on DJGPP gets confused if
5486
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5487
# text mode, it properly converts lines to CR/LF. This bash problem
5488
# is reportedly fixed, but why not run on old versions too?
5489
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5491
mv -f "$cfgfile" "$ofile" || \
5492
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5496
# If there is no Makefile yet, we rely on a make rule to execute
5497
# `config.status --recheck' to rerun these tests and create the
5498
# libtool script then.
5499
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5500
if test -f "$ltmain_in"; then
5501
test -f Makefile && make "$ltmain"
5504
])# AC_LIBTOOL_CONFIG
5507
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5508
# -------------------------------------------
5509
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5510
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5512
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4284
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4285
dnl aclocal-1.4 backwards compatibility:
4286
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4289
# _LT_COMPILER_NO_RTTI([TAGNAME])
4290
# -------------------------------
4291
m4_defun([_LT_COMPILER_NO_RTTI],
4292
[m4_require([_LT_TAG_COMPILER])dnl
4294
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5514
4296
if test "$GCC" = yes; then
5515
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4297
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5517
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4299
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5518
4300
lt_cv_prog_compiler_rtti_exceptions,
5519
4301
[-fno-rtti -fno-exceptions], [],
5520
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4302
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5522
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5525
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5526
# ---------------------------------
5527
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5528
[AC_REQUIRE([AC_CANONICAL_HOST])
5529
AC_REQUIRE([AC_PROG_NM])
5530
AC_REQUIRE([AC_OBJEXT])
4304
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4305
[Compiler flag to turn off builtin functions])
4306
])# _LT_COMPILER_NO_RTTI
4309
# _LT_CMD_GLOBAL_SYMBOLS
4310
# ----------------------
4311
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4312
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4313
AC_REQUIRE([AC_PROG_CC])dnl
4314
AC_REQUIRE([LT_PATH_NM])dnl
4315
AC_REQUIRE([LT_PATH_LD])dnl
4316
m4_require([_LT_DECL_SED])dnl
4317
m4_require([_LT_DECL_EGREP])dnl
4318
m4_require([_LT_TAG_COMPILER])dnl
5531
4320
# Check for command to grab the raw symbol name followed by C symbol from nm.
5532
4321
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5533
4322
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6114
4974
# +Z the default
6117
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4977
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6120
4980
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6121
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4981
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6124
4984
irix5* | irix6* | nonstopux*)
6125
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4985
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6126
4986
# PIC (with -KPIC) is the default.
6127
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6131
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6132
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4987
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4990
linux* | k*bsd*-gnu)
6136
4991
case $cc_basename in
6138
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6139
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6140
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4992
# old Intel for x86_64 which still supported -KPIC.
4994
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4995
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4996
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4998
# icc used to be incompatible with GCC.
4999
# ICC 10 doesn't accept -KPIC any more.
5001
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5002
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5003
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5005
# Lahey Fortran 8.1.
5007
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5008
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5009
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6142
5011
pgcc* | pgf77* | pgf90* | pgf95*)
6143
5012
# Portland Group compilers (*not* the Pentium gcc compiler,
6144
5013
# which looks to be a dead project)
6145
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6146
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6147
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5014
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5015
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5016
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6150
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5019
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6151
5020
# All Alpha code is PIC.
6152
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5021
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5024
# IBM XL C 8.0/Fortran 10.1 on PPC
5025
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5026
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5027
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5030
case `$CC -V 2>&1 | sed 5q` in
5033
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5034
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5035
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5038
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5039
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5040
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5041
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5049
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5050
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5054
# QNX uses GNU C++, but need to define -shared option too, otherwise
5056
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6157
5059
osf3* | osf4* | osf5*)
6158
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5060
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6159
5061
# All OSF/1 code is PIC.
6160
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5062
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5066
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6164
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6165
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5070
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5071
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6166
5072
case $cc_basename in
6167
5073
f77* | f90* | f95*)
6168
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5074
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6170
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5076
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6175
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6176
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6177
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5081
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5082
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5083
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6180
5086
sysv4 | sysv4.2uw2* | sysv4.3*)
6181
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6182
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6183
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5087
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5088
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5089
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6187
5093
if test -d /usr/nec ;then
6188
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6189
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5094
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5095
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6193
5099
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6194
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6195
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6196
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5100
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5101
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5102
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6200
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6201
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5106
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5107
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6205
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6206
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5111
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5112
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6210
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5116
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6215
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5122
# For platforms which do not support PIC, -DPIC is meaningless:
5124
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5127
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5130
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5131
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5132
[How to pass a linker flag through the compiler])
6218
5135
# Check to make sure the PIC flag actually works.
6220
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6221
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6222
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6223
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6224
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5137
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5138
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5139
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5140
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5141
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6226
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5143
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6228
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6229
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5145
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5146
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6232
# For platforms which do not support PIC, -DPIC is meaningless:
6234
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6237
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5148
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5149
[Additional compiler flags for building library objects])
6242
5152
# Check to make sure the static flag actually works.
6244
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6245
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6246
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5154
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5155
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5156
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6247
5157
$lt_tmp_static_flag,
6249
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6253
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6254
# ------------------------------------
5159
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5160
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5161
[Compiler flag to prevent dynamic linking])
5162
])# _LT_COMPILER_PIC
5165
# _LT_LINKER_SHLIBS([TAGNAME])
5166
# ----------------------------
6255
5167
# See if the linker supports building shared libraries.
6256
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6257
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6259
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5168
m4_defun([_LT_LINKER_SHLIBS],
5169
[AC_REQUIRE([LT_PATH_LD])dnl
5170
AC_REQUIRE([LT_PATH_NM])dnl
5171
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5172
m4_require([_LT_DECL_EGREP])dnl
5173
m4_require([_LT_DECL_SED])dnl
5174
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5175
m4_require([_LT_TAG_COMPILER])dnl
5176
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5177
m4_if([$1], [CXX], [
5178
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6260
5179
case $host_os in
6262
5181
# If we're using GNU nm, then we don't want the "-C" option.
6263
5182
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6264
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6265
_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'
5183
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5184
_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'
6267
_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'
5186
_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'
6271
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5190
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6274
_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'
5192
cygwin* | mingw* | cegcc*)
5193
_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'
6277
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5196
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5199
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6282
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6283
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6284
_LT_AC_TAGVAR(archive_cmds, $1)=
6285
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6286
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6287
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6288
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6289
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6290
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6291
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6292
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6293
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6294
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6295
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6296
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6297
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6298
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6299
_LT_AC_TAGVAR(module_cmds, $1)=
6300
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6301
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6302
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5202
_LT_TAGVAR(allow_undefined_flag, $1)=
5203
_LT_TAGVAR(always_export_symbols, $1)=no
5204
_LT_TAGVAR(archive_cmds, $1)=
5205
_LT_TAGVAR(archive_expsym_cmds, $1)=
5206
_LT_TAGVAR(compiler_needs_object, $1)=no
5207
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5208
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5209
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5210
_LT_TAGVAR(hardcode_automatic, $1)=no
5211
_LT_TAGVAR(hardcode_direct, $1)=no
5212
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5213
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5214
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5215
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5216
_LT_TAGVAR(hardcode_minus_L, $1)=no
5217
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5218
_LT_TAGVAR(inherit_rpath, $1)=no
5219
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5220
_LT_TAGVAR(module_cmds, $1)=
5221
_LT_TAGVAR(module_expsym_cmds, $1)=
5222
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5223
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5224
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5225
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6303
5226
# include_expsyms should be a list of space-separated symbols to be *always*
6304
5227
# included in the symbol list
6305
_LT_AC_TAGVAR(include_expsyms, $1)=
5228
_LT_TAGVAR(include_expsyms, $1)=
6306
5229
# exclude_expsyms can be an extended regexp of symbols to exclude
6307
5230
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6308
5231
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6309
5232
# as well as any symbol that contains `d'.
6310
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5233
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6311
5234
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6312
5235
# platforms (ab)use it in PIC code, but their linkers get confused if
6313
5236
# the symbol is explicitly referenced. Since portable code cannot
6314
5237
# rely on this symbol name, it's probably fine to never include it in
6315
5238
# preloaded symbol tables.
5239
# Exclude shared library initialization/finalization symbols.
5240
dnl Note also adjust exclude_expsyms for C++ above.
6316
5241
extract_expsyms_cmds=
6317
# Just being paranoid about ensuring that cc_basename is set.
6318
_LT_CC_BASENAME([$compiler])
6319
5243
case $host_os in
6320
cygwin* | mingw* | pw32*)
5244
cygwin* | mingw* | pw32* | cegcc*)
6321
5245
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6322
5246
# When not using gcc, we currently assume that we are using
6323
5247
# Microsoft Visual C++.
6897
5831
irix5* | irix6* | nonstopux*)
6898
5832
if test "$GCC" = yes; then
6899
_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'
5833
_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'
5834
# Try to use the -exported_symbol ld option, if it does not
5835
# work, assume that -exports_file does not work either and
5836
# implicitly export all symbols.
5837
save_LDFLAGS="$LDFLAGS"
5838
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5839
AC_LINK_IFELSE(int foo(void) {},
5840
_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'
5842
LDFLAGS="$save_LDFLAGS"
6901
_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'
6902
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5844
_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'
5845
_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'
6904
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6905
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6906
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5847
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5848
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5849
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5850
_LT_TAGVAR(inherit_rpath, $1)=yes
5851
_LT_TAGVAR(link_all_deplibs, $1)=yes
6910
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6911
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5855
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5856
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6913
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5858
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6915
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6916
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6917
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5860
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5861
_LT_TAGVAR(hardcode_direct, $1)=yes
5862
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6921
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6923
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6924
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6925
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5866
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5867
_LT_TAGVAR(hardcode_direct, $1)=yes
5868
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5869
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5870
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6929
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6930
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6931
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6932
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6933
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6934
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6935
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5877
if test -f /usr/libexec/ld.so; then
5878
_LT_TAGVAR(hardcode_direct, $1)=yes
5879
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5880
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5881
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5882
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5883
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5884
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5885
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5888
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5889
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5890
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5893
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5894
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6938
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6939
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6940
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6943
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6944
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5899
_LT_TAGVAR(ld_shlibs, $1)=no
6951
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6952
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6953
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6954
_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'
6955
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5904
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5905
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5906
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5907
_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'
5908
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6959
5912
if test "$GCC" = yes; then
6960
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6961
_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'
5913
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5914
_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'
6963
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6964
_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'
5916
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5917
_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'
6966
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6967
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5919
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5920
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5921
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6970
5924
osf4* | osf5*) # as osf3* with the addition of -msym flag
6971
5925
if test "$GCC" = yes; then
6972
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6973
_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'
6974
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5926
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5927
_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'
5928
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6976
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6977
_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'
6978
_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~
6979
$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'
5930
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5931
_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'
5932
_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~
5933
$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'
6981
5935
# Both c and cxx compiler support -rpath directly
6982
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5936
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6984
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5938
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5939
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6988
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5943
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6989
5944
if test "$GCC" = yes; then
6991
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6992
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6993
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5946
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5947
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5948
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6996
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6997
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6998
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5950
case `$CC -V 2>&1` in
5953
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5954
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5955
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5959
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5960
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5961
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7000
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7001
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5965
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5966
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7002
5967
case $host_os in
7003
5968
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7005
# The compiler driver will combine linker options so we
7006
# cannot just pass the convience library names through
7007
# without $wl, iff we do not link with $LD.
7008
# Luckily, gcc supports the same syntax we need for Sun Studio.
7009
# Supported since Solaris 2.6 (maybe 2.5.1?)
7012
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7014
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
5970
# The compiler driver will combine and reorder linker options,
5971
# but understands `-z linker_flag'. GCC discards it without `$wl',
5972
# but is careful enough not to reorder.
5973
# Supported since Solaris 2.6 (maybe 2.5.1?)
5974
if test "$GCC" = yes; then
5975
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5977
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7017
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5981
_LT_TAGVAR(link_all_deplibs, $1)=yes
7021
5985
if test "x$host_vendor" = xsequent; then
7022
5986
# Use $CC to link under sequent, because it throws in some extra .o
7023
5987
# files that make .init and .fini sections work.
7024
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5988
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7026
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5990
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7028
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7029
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7030
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7031
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5992
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5993
_LT_TAGVAR(hardcode_direct, $1)=yes
5994
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5995
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7035
5999
case $host_vendor in
7037
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7038
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6001
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6002
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7041
6005
## LD is ld it makes a PLAMLIB
7042
6006
## CC just makes a GrossModule.
7043
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7044
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7045
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6007
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6008
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6009
_LT_TAGVAR(hardcode_direct, $1)=no
7048
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7049
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6012
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6013
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7052
6016
runpath_var='LD_RUN_PATH'
7053
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6017
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7057
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7058
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7059
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6021
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6022
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6023
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7063
6027
if test -d /usr/nec; then
7064
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7065
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6028
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6029
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7066
6030
runpath_var=LD_RUN_PATH
7067
6031
hardcode_runpath_var=yes
7068
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6032
_LT_TAGVAR(ld_shlibs, $1)=yes
7072
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7073
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7074
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7075
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6036
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6037
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6038
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6039
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7076
6040
runpath_var='LD_RUN_PATH'
7078
6042
if test "$GCC" = yes; then
7079
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7080
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6043
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6044
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7082
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7083
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6046
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6047
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7143
6122
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7144
6123
# to ld, don't add -lc before -lgcc.
7145
6124
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7147
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6126
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7149
6128
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7150
6129
soname=conftest
7152
6131
libobjs=conftest.$ac_objext
7154
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7155
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6133
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6134
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7156
6135
compiler_flags=-v
7157
6136
linker_flags=-v
7159
6138
output_objdir=.
7160
6139
libname=conftest
7161
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7162
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7163
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6140
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6141
_LT_TAGVAR(allow_undefined_flag, $1)=
6142
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7165
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6144
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7167
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6146
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7169
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6148
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7171
6150
cat conftest.err 1>&5
7174
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6153
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7180
])# AC_LIBTOOL_PROG_LD_SHLIBS
7183
# _LT_AC_FILE_LTDLL_C
7184
# -------------------
7185
# Be careful that the start marker always follows a newline.
7186
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7187
# /* ltdll.c starts here */
7188
# #define WIN32_LEAN_AND_MEAN
7189
# #include <windows.h>
7190
# #undef WIN32_LEAN_AND_MEAN
7191
# #include <stdio.h>
7193
# #ifndef __CYGWIN__
7194
# # ifdef __CYGWIN32__
7195
# # define __CYGWIN__ __CYGWIN32__
7199
# #ifdef __cplusplus
7202
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7203
# #ifdef __cplusplus
7208
# #include <cygwin/cygwin_dll.h>
7209
# DECLARE_CYGWIN_DLL( DllMain );
7211
# HINSTANCE __hDllInstance_base;
7214
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7216
# __hDllInstance_base = hInst;
7219
# /* ltdll.c ends here */
7220
])# _LT_AC_FILE_LTDLL_C
7223
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6160
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6161
[Whether or not to add -lc for building shared libraries])
6162
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6163
[enable_shared_with_static_runtimes], [0],
6164
[Whether or not to disallow shared libs when runtime libs are static])
6165
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6166
[Compiler flag to allow reflexive dlopens])
6167
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6168
[Compiler flag to generate shared objects directly from archives])
6169
_LT_TAGDECL([], [compiler_needs_object], [1],
6170
[Whether the compiler copes with passing no objects directly])
6171
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6172
[Create an old-style archive from a shared archive])
6173
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6174
[Create a temporary old-style archive to link instead of a shared archive])
6175
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6176
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6177
_LT_TAGDECL([], [module_cmds], [2],
6178
[Commands used to build a loadable module if different from building
6180
_LT_TAGDECL([], [module_expsym_cmds], [2])
6181
_LT_TAGDECL([], [with_gnu_ld], [1],
6182
[Whether we are building with GNU ld or not])
6183
_LT_TAGDECL([], [allow_undefined_flag], [1],
6184
[Flag that allows shared libraries with undefined symbols to be built])
6185
_LT_TAGDECL([], [no_undefined_flag], [1],
6186
[Flag that enforces no undefined symbols])
6187
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6188
[Flag to hardcode $libdir into a binary during linking.
6189
This must work even if $libdir does not exist])
6190
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6191
[[If ld is used when linking, flag to hardcode $libdir into a binary
6192
during linking. This must work even if $libdir does not exist]])
6193
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6194
[Whether we need a single "-rpath" flag with a separated argument])
6195
_LT_TAGDECL([], [hardcode_direct], [0],
6196
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6197
DIR into the resulting binary])
6198
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6199
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6200
DIR into the resulting binary and the resulting library dependency is
6201
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6202
library is relocated])
6203
_LT_TAGDECL([], [hardcode_minus_L], [0],
6204
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6205
into the resulting binary])
6206
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6207
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6208
into the resulting binary])
6209
_LT_TAGDECL([], [hardcode_automatic], [0],
6210
[Set to "yes" if building a shared library automatically hardcodes DIR
6211
into the library and all subsequent libraries and executables linked
6213
_LT_TAGDECL([], [inherit_rpath], [0],
6214
[Set to yes if linker adds runtime paths of dependent libraries
6215
to runtime path list])
6216
_LT_TAGDECL([], [link_all_deplibs], [0],
6217
[Whether libtool must link a program against all its dependency libraries])
6218
_LT_TAGDECL([], [fix_srcfile_path], [1],
6219
[Fix the shell variable $srcfile for the compiler])
6220
_LT_TAGDECL([], [always_export_symbols], [0],
6221
[Set to "yes" if exported symbols are required])
6222
_LT_TAGDECL([], [export_symbols_cmds], [2],
6223
[The commands to list exported symbols])
6224
_LT_TAGDECL([], [exclude_expsyms], [1],
6225
[Symbols that should not be listed in the preloaded symbols])
6226
_LT_TAGDECL([], [include_expsyms], [1],
6227
[Symbols that must always be exported])
6228
_LT_TAGDECL([], [prelink_cmds], [2],
6229
[Commands necessary for linking programs (against libraries) with templates])
6230
_LT_TAGDECL([], [file_list_spec], [1],
6231
[Specify filename containing input files])
6232
dnl FIXME: Not yet implemented
6233
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6234
dnl [Compiler flag to generate thread safe objects])
6235
])# _LT_LINKER_SHLIBS
6238
# _LT_LANG_C_CONFIG([TAG])
6239
# ------------------------
6240
# Ensure that the configuration variables for a C compiler are suitably
6241
# defined. These variables are subsequently used by _LT_CONFIG to write
6242
# the compiler configuration to `libtool'.
6243
m4_defun([_LT_LANG_C_CONFIG],
6244
[m4_require([_LT_DECL_EGREP])dnl
6248
# Source file extension for C test sources.
6251
# Object file extension for compiled C test sources.
6253
_LT_TAGVAR(objext, $1)=$objext
6255
# Code to be used in simple compile tests
6256
lt_simple_compile_test_code="int some_variable = 0;"
6258
# Code to be used in simple link tests
6259
lt_simple_link_test_code='int main(){return(0);}'
6262
# Save the default compiler, since it gets overwritten when the other
6263
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6264
compiler_DEFAULT=$CC
6266
# save warnings/boilerplate of simple test code
6267
_LT_COMPILER_BOILERPLATE
6268
_LT_LINKER_BOILERPLATE
6270
if test -n "$compiler"; then
6271
_LT_COMPILER_NO_RTTI($1)
6272
_LT_COMPILER_PIC($1)
6273
_LT_COMPILER_C_O($1)
6274
_LT_COMPILER_FILE_LOCKS($1)
6275
_LT_LINKER_SHLIBS($1)
6276
_LT_SYS_DYNAMIC_LINKER($1)
6277
_LT_LINKER_HARDCODE_LIBPATH($1)
6281
# Report which library types will actually be built
6282
AC_MSG_CHECKING([if libtool supports shared libraries])
6283
AC_MSG_RESULT([$can_build_shared])
6285
AC_MSG_CHECKING([whether to build shared libraries])
6286
test "$can_build_shared" = "no" && enable_shared=no
6288
# On AIX, shared libraries and static libraries use the same namespace, and
6289
# are all built from PIC.
6292
test "$enable_shared" = yes && enable_static=no
6293
if test -n "$RANLIB"; then
6294
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6295
postinstall_cmds='$RANLIB $lib'
6300
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6301
test "$enable_shared" = yes && enable_static=no
6305
AC_MSG_RESULT([$enable_shared])
6307
AC_MSG_CHECKING([whether to build static libraries])
6308
# Make sure either enable_shared or enable_static is yes.
6309
test "$enable_shared" = yes || enable_static=yes
6310
AC_MSG_RESULT([$enable_static])
6316
])# _LT_LANG_C_CONFIG
6321
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6322
# compiler, we have our own version here.
6323
m4_defun([_LT_PROG_CXX],
6325
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6327
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6328
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6329
(test "X$CXX" != "Xg++"))) ; then
6332
_lt_caught_CXX_error=yes
6334
popdef([AC_MSG_ERROR])
6337
dnl aclocal-1.4 backwards compatibility:
6338
dnl AC_DEFUN([_LT_PROG_CXX], [])
6341
# _LT_LANG_CXX_CONFIG([TAG])
6342
# --------------------------
6343
# Ensure that the configuration variables for a C++ compiler are suitably
6344
# defined. These variables are subsequently used by _LT_CONFIG to write
6345
# the compiler configuration to `libtool'.
6346
m4_defun([_LT_LANG_CXX_CONFIG],
6347
[AC_REQUIRE([_LT_PROG_CXX])dnl
6348
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6349
m4_require([_LT_DECL_EGREP])dnl
6352
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6353
_LT_TAGVAR(allow_undefined_flag, $1)=
6354
_LT_TAGVAR(always_export_symbols, $1)=no
6355
_LT_TAGVAR(archive_expsym_cmds, $1)=
6356
_LT_TAGVAR(compiler_needs_object, $1)=no
6357
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6358
_LT_TAGVAR(hardcode_direct, $1)=no
6359
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6360
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6361
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6362
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6363
_LT_TAGVAR(hardcode_minus_L, $1)=no
6364
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6365
_LT_TAGVAR(hardcode_automatic, $1)=no
6366
_LT_TAGVAR(inherit_rpath, $1)=no
6367
_LT_TAGVAR(module_cmds, $1)=
6368
_LT_TAGVAR(module_expsym_cmds, $1)=
6369
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6370
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6371
_LT_TAGVAR(no_undefined_flag, $1)=
6372
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6373
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6375
# Source file extension for C++ test sources.
6378
# Object file extension for compiled C++ test sources.
6380
_LT_TAGVAR(objext, $1)=$objext
6382
# No sense in running all these tests if we already determined that
6383
# the CXX compiler isn't working. Some variables (like enable_shared)
6384
# are currently assumed to apply to all compilers on this platform,
6385
# and will be corrupted by setting them based on a non-working compiler.
6386
if test "$_lt_caught_CXX_error" != yes; then
6387
# Code to be used in simple compile tests
6388
lt_simple_compile_test_code="int some_variable = 0;"
6390
# Code to be used in simple link tests
6391
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6393
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6396
# save warnings/boilerplate of simple test code
6397
_LT_COMPILER_BOILERPLATE
6398
_LT_LINKER_BOILERPLATE
6400
# Allow CC to be a program name with arguments.
6405
lt_save_with_gnu_ld=$with_gnu_ld
6406
lt_save_path_LD=$lt_cv_path_LD
6407
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6408
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6410
$as_unset lt_cv_prog_gnu_ld
6412
if test -n "${lt_cv_path_LDCXX+set}"; then
6413
lt_cv_path_LD=$lt_cv_path_LDCXX
6415
$as_unset lt_cv_path_LD
6417
test -z "${LDCXX+set}" || LD=$LDCXX
6420
_LT_TAGVAR(compiler, $1)=$CC
6421
_LT_CC_BASENAME([$compiler])
6423
if test -n "$compiler"; then
6424
# We don't want -fno-exception when compiling C++ code, so set the
6425
# no_builtin_flag separately
6426
if test "$GXX" = yes; then
6427
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6429
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6432
if test "$GXX" = yes; then
6433
# Set up default GNU C++ configuration
6437
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6438
# archiving commands below assume that GNU ld is being used.
6439
if test "$with_gnu_ld" = yes; then
6440
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6441
_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'
6443
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6444
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6446
# If archive_cmds runs LD, not CC, wlarc should be empty
6447
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6448
# investigate it a little bit more. (MM)
6451
# ancient GNU ld didn't support --whole-archive et. al.
6452
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6453
$GREP 'no-whole-archive' > /dev/null; then
6454
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6456
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6462
# A generic and very simple default shared library creation
6463
# command for GNU C++ for the case where it uses the native
6464
# linker, instead of GNU ld. If possible, this setting should
6465
# overridden to take advantage of the native linker features on
6466
# the platform it is being used on.
6467
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6470
# Commands to make compiler produce verbose output that lists
6471
# what "hidden" libraries, object files and flags are used when
6472
# linking a shared library.
6473
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6481
# PORTME: fill in a description of your system's C++ link characteristics
6482
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6483
_LT_TAGVAR(ld_shlibs, $1)=yes
6486
# FIXME: insert proper C++ library support
6487
_LT_TAGVAR(ld_shlibs, $1)=no
6490
if test "$host_cpu" = ia64; then
6491
# On IA64, the linker does run time linking by default, so we don't
6492
# have to do anything special.
6493
aix_use_runtimelinking=no
6494
exp_sym_flag='-Bexport'
6497
aix_use_runtimelinking=no
6499
# Test if we are trying to use run time linking or normal
6500
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6501
# need to do runtime linking.
6502
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6503
for ld_flag in $LDFLAGS; do
6506
aix_use_runtimelinking=yes
6514
exp_sym_flag='-bexport'
6515
no_entry_flag='-bnoentry'
6518
# When large executables or shared objects are built, AIX ld can
6519
# have problems creating the table of contents. If linking a library
6520
# or program results in "error TOC overflow" add -mminimal-toc to
6521
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6522
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6524
_LT_TAGVAR(archive_cmds, $1)=''
6525
_LT_TAGVAR(hardcode_direct, $1)=yes
6526
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6527
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6528
_LT_TAGVAR(link_all_deplibs, $1)=yes
6529
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6531
if test "$GXX" = yes; then
6532
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6533
# We only want to do this on AIX 4.2 and lower, the check
6534
# below for broken collect2 doesn't work under 4.3+
6535
collect2name=`${CC} -print-prog-name=collect2`
6536
if test -f "$collect2name" &&
6537
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6539
# We have reworked collect2
6542
# We have old collect2
6543
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6544
# It fails to find uninstalled libraries when the uninstalled
6545
# path is not listed in the libpath. Setting hardcode_minus_L
6546
# to unsupported forces relinking
6547
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6548
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6549
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6552
shared_flag='-shared'
6553
if test "$aix_use_runtimelinking" = yes; then
6554
shared_flag="$shared_flag "'${wl}-G'
6558
if test "$host_cpu" = ia64; then
6559
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6560
# chokes on -Wl,-G. The following line is correct:
6563
if test "$aix_use_runtimelinking" = yes; then
6564
shared_flag='${wl}-G'
6566
shared_flag='${wl}-bM:SRE'
6571
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6572
# It seems that -bexpall does not export symbols beginning with
6573
# underscore (_), so it is better to generate a list of symbols to
6575
_LT_TAGVAR(always_export_symbols, $1)=yes
6576
if test "$aix_use_runtimelinking" = yes; then
6577
# Warning - without using the other runtime loading flags (-brtl),
6578
# -berok will link without error, but may produce a broken library.
6579
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6580
# Determine the default libpath from the value encoded in an empty
6582
_LT_SYS_MODULE_PATH_AIX
6583
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6585
_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"
6587
if test "$host_cpu" = ia64; then
6588
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6589
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6590
_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"
6592
# Determine the default libpath from the value encoded in an
6594
_LT_SYS_MODULE_PATH_AIX
6595
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6596
# Warning - without using the other run time loading flags,
6597
# -berok will link without error, but may produce a broken library.
6598
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6599
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6600
# Exported symbols can be pulled into shared objects from archives
6601
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6602
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6603
# This is similar to how AIX traditionally builds its shared
6605
_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'
6611
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6612
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6613
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6614
# support --undefined. This deserves some investigation. FIXME
6615
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6617
_LT_TAGVAR(ld_shlibs, $1)=no
6622
case $cc_basename in
6624
# FIXME: insert proper C++ library support
6625
_LT_TAGVAR(ld_shlibs, $1)=no
6630
cygwin* | mingw* | pw32* | cegcc*)
6631
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6632
# as there is no search path for DLLs.
6633
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6634
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6635
_LT_TAGVAR(always_export_symbols, $1)=no
6636
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6638
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6639
_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'
6640
# If the export-symbols file already is a .def file (1st line
6641
# is EXPORTS), use it as is; otherwise, prepend...
6642
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6643
cp $export_symbols $output_objdir/$soname.def;
6645
echo EXPORTS > $output_objdir/$soname.def;
6646
cat $export_symbols >> $output_objdir/$soname.def;
6648
$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'
6650
_LT_TAGVAR(ld_shlibs, $1)=no
6653
darwin* | rhapsody*)
6654
_LT_DARWIN_LINKER_FEATURES($1)
6658
case $cc_basename in
6660
# FIXME: insert proper C++ library support
6661
_LT_TAGVAR(ld_shlibs, $1)=no
6664
# Green Hills C++ Compiler
6665
# FIXME: insert proper C++ library support
6666
_LT_TAGVAR(ld_shlibs, $1)=no
6669
# FIXME: insert proper C++ library support
6670
_LT_TAGVAR(ld_shlibs, $1)=no
6676
# C++ shared libraries reported to be fairly broken before
6678
_LT_TAGVAR(ld_shlibs, $1)=no
6682
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6685
freebsd* | dragonfly*)
6686
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6688
_LT_TAGVAR(ld_shlibs, $1)=yes
6695
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6696
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6697
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6698
_LT_TAGVAR(hardcode_direct, $1)=yes
6699
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6700
# but as the default
6701
# location of the library.
6703
case $cc_basename in
6705
# FIXME: insert proper C++ library support
6706
_LT_TAGVAR(ld_shlibs, $1)=no
6709
_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'
6710
# Commands to make compiler produce verbose output that lists
6711
# what "hidden" libraries, object files and flags are used when
6712
# linking a shared library.
6714
# There doesn't appear to be a way to prevent this compiler from
6715
# explicitly linking system object files so we need to strip them
6716
# from the output so that they don't get included in the library
6718
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'
6721
if test "$GXX" = yes; then
6722
_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'
6724
# FIXME: insert proper C++ library support
6725
_LT_TAGVAR(ld_shlibs, $1)=no
6732
if test $with_gnu_ld = no; then
6733
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6734
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6740
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6746
_LT_TAGVAR(hardcode_direct, $1)=no
6747
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6750
_LT_TAGVAR(hardcode_direct, $1)=yes
6751
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6752
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6753
# but as the default
6754
# location of the library.
6758
case $cc_basename in
6760
# FIXME: insert proper C++ library support
6761
_LT_TAGVAR(ld_shlibs, $1)=no
6766
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6769
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6772
_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'
6775
# Commands to make compiler produce verbose output that lists
6776
# what "hidden" libraries, object files and flags are used when
6777
# linking a shared library.
6779
# There doesn't appear to be a way to prevent this compiler from
6780
# explicitly linking system object files so we need to strip them
6781
# from the output so that they don't get included in the library
6783
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $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'
6786
if test "$GXX" = yes; then
6787
if test $with_gnu_ld = no; then
6790
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6793
_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'
6796
_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'
6801
# FIXME: insert proper C++ library support
6802
_LT_TAGVAR(ld_shlibs, $1)=no
6809
_LT_TAGVAR(hardcode_direct, $1)=no
6810
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6811
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6812
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6813
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6814
# Instead, shared libraries are loaded at an image base (0x10000000 by
6815
# default) and relocated if they conflict, which is a slow very memory
6816
# consuming and fragmenting process. To avoid this, we pick a random,
6817
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6818
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6819
_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'
6820
_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'
6823
case $cc_basename in
6826
_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'
6828
# Archives containing C++ object files must be created using
6829
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6830
# necessary to make sure instantiated templates are included
6832
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6835
if test "$GXX" = yes; then
6836
if test "$with_gnu_ld" = no; then
6837
_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'
6839
_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'
6842
_LT_TAGVAR(link_all_deplibs, $1)=yes
6845
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6846
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6847
_LT_TAGVAR(inherit_rpath, $1)=yes
6850
linux* | k*bsd*-gnu)
6851
case $cc_basename in
6853
# Kuck and Associates, Inc. (KAI) C++ Compiler
6855
# KCC will only create a shared library if the output file
6856
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6857
# to its proper name (with version) after linking.
6858
_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'
6859
_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'
6860
# Commands to make compiler produce verbose output that lists
6861
# what "hidden" libraries, object files and flags are used when
6862
# linking a shared library.
6864
# There doesn't appear to be a way to prevent this compiler from
6865
# explicitly linking system object files so we need to strip them
6866
# from the output so that they don't get included in the library
6868
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'
6870
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6871
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6873
# Archives containing C++ object files must be created using
6874
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6875
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6880
# version 8.0 and above of icpc choke on multiply defined symbols
6881
# if we add $predep_objects and $postdep_objects, however 7.1 and
6882
# earlier do not add the objects themselves.
6883
case `$CC -V 2>&1` in
6885
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6886
_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'
6888
*) # Version 8.0 or newer
6891
ia64*) tmp_idyn=' -i_dynamic';;
6893
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6894
_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'
6897
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6898
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6899
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6900
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6903
# Portland Group C++ compiler
6905
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6906
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6908
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6909
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6910
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6912
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6913
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6915
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6917
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6918
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6919
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6921
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6922
$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'
6924
*) # Version 6 will use weak symbols
6925
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6926
_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'
6930
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6931
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6932
_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'
6936
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6937
_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'
6939
runpath_var=LD_RUN_PATH
6940
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6941
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6943
# Commands to make compiler produce verbose output that lists
6944
# what "hidden" libraries, object files and flags are used when
6945
# linking a shared library.
6947
# There doesn't appear to be a way to prevent this compiler from
6948
# explicitly linking system object files so we need to strip them
6949
# from the output so that they don't get included in the library
6951
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'
6954
# IBM XL 8.0 on PPC, with GNU ld
6955
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6956
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6957
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6958
if test "x$supports_anon_versioning" = xyes; then
6959
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6960
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6961
echo "local: *; };" >> $output_objdir/$libname.ver~
6962
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6966
case `$CC -V 2>&1 | sed 5q` in
6969
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6970
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6971
_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'
6972
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6973
_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'
6974
_LT_TAGVAR(compiler_needs_object, $1)=yes
6976
# Not sure whether something based on
6977
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6979
output_verbose_link_cmd='echo'
6981
# Archives containing C++ object files must be created using
6982
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6983
# necessary to make sure instantiated templates are included
6985
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6993
# FIXME: insert proper C++ library support
6994
_LT_TAGVAR(ld_shlibs, $1)=no
6998
# FIXME: insert proper C++ library support
6999
_LT_TAGVAR(ld_shlibs, $1)=no
7003
case $cc_basename in
7005
# FIXME: insert proper C++ library support
7006
_LT_TAGVAR(ld_shlibs, $1)=no
7009
# FIXME: insert proper C++ library support
7010
_LT_TAGVAR(ld_shlibs, $1)=no
7016
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7017
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7019
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7020
_LT_TAGVAR(hardcode_direct, $1)=yes
7021
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7023
# Workaround some broken pre-1.5 toolchains
7024
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7028
_LT_TAGVAR(ld_shlibs, $1)=yes
7032
# C++ shared libraries are fairly broken
7033
_LT_TAGVAR(ld_shlibs, $1)=no
7037
if test -f /usr/libexec/ld.so; then
7038
_LT_TAGVAR(hardcode_direct, $1)=yes
7039
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7040
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7041
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7042
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7043
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7044
_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'
7045
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7046
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7048
output_verbose_link_cmd=echo
7050
_LT_TAGVAR(ld_shlibs, $1)=no
7054
osf3* | osf4* | osf5*)
7055
case $cc_basename in
7057
# Kuck and Associates, Inc. (KAI) C++ Compiler
7059
# KCC will only create a shared library if the output file
7060
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7061
# to its proper name (with version) after linking.
7062
_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'
7064
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7065
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7067
# Archives containing C++ object files must be created using
7068
# the KAI C++ compiler.
7070
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7071
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7075
# Rational C++ 2.4.1
7076
# FIXME: insert proper C++ library support
7077
_LT_TAGVAR(ld_shlibs, $1)=no
7082
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7083
_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'
7084
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7087
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7088
_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'
7089
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7090
echo "-hidden">> $lib.exp~
7091
$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~
7093
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7097
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7099
# Commands to make compiler produce verbose output that lists
7100
# what "hidden" libraries, object files and flags are used when
7101
# linking a shared library.
7103
# There doesn't appear to be a way to prevent this compiler from
7104
# explicitly linking system object files so we need to strip them
7105
# from the output so that they don't get included in the library
7107
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'
7110
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7111
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7114
_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'
7117
_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'
7121
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7122
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7124
# Commands to make compiler produce verbose output that lists
7125
# what "hidden" libraries, object files and flags are used when
7126
# linking a shared library.
7127
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7130
# FIXME: insert proper C++ library support
7131
_LT_TAGVAR(ld_shlibs, $1)=no
7138
# FIXME: insert proper C++ library support
7139
_LT_TAGVAR(ld_shlibs, $1)=no
7143
case $cc_basename in
7146
# FIXME: insert proper C++ library support
7147
_LT_TAGVAR(ld_shlibs, $1)=no
7151
# FIXME: insert proper C++ library support
7152
_LT_TAGVAR(ld_shlibs, $1)=no
7155
# FIXME: insert proper C++ library support
7156
_LT_TAGVAR(ld_shlibs, $1)=no
7162
case $cc_basename in
7164
# Sun C++ 4.2, 5.x and Centerline C++
7165
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7166
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7167
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7168
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7169
$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'
7171
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7172
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7174
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7176
# The compiler driver will combine and reorder linker options,
7177
# but understands `-z linker_flag'.
7178
# Supported since Solaris 2.6 (maybe 2.5.1?)
7179
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7182
_LT_TAGVAR(link_all_deplibs, $1)=yes
7184
output_verbose_link_cmd='echo'
7186
# Archives containing C++ object files must be created using
7187
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7188
# necessary to make sure instantiated templates are included
7190
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7193
# Green Hills C++ Compiler
7194
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7196
# The C++ compiler must be used to create the archive.
7197
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7200
# GNU C++ compiler with Solaris linker
7201
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7202
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7203
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7204
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7205
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7206
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7208
# Commands to make compiler produce verbose output that lists
7209
# what "hidden" libraries, object files and flags are used when
7210
# linking a shared library.
7211
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7213
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7215
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7216
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7217
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7219
# Commands to make compiler produce verbose output that lists
7220
# what "hidden" libraries, object files and flags are used when
7221
# linking a shared library.
7222
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7225
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7227
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7229
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7237
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7238
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7239
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7240
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7241
runpath_var='LD_RUN_PATH'
7243
case $cc_basename in
7245
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7246
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7249
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7250
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7255
sysv5* | sco3.2v5* | sco5v6*)
7256
# Note: We can NOT use -z defs as we might desire, because we do not
7257
# link with -lc, and that would cause any symbols used from libc to
7258
# always be unresolved, which means just about no library would
7259
# ever link correctly. If we're not using GNU ld we use -z text
7260
# though, which does catch some bad symbols but isn't as heavy-handed
7262
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7263
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7264
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7265
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7266
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7267
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7268
_LT_TAGVAR(link_all_deplibs, $1)=yes
7269
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7270
runpath_var='LD_RUN_PATH'
7272
case $cc_basename in
7274
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7275
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7278
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7279
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7285
case $cc_basename in
7287
# NonStop-UX NCC 3.20
7288
# FIXME: insert proper C++ library support
7289
_LT_TAGVAR(ld_shlibs, $1)=no
7292
# FIXME: insert proper C++ library support
7293
_LT_TAGVAR(ld_shlibs, $1)=no
7299
# FIXME: insert proper C++ library support
7300
_LT_TAGVAR(ld_shlibs, $1)=no
7304
# FIXME: insert proper C++ library support
7305
_LT_TAGVAR(ld_shlibs, $1)=no
7309
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7310
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7312
_LT_TAGVAR(GCC, $1)="$GXX"
7313
_LT_TAGVAR(LD, $1)="$LD"
7316
## There is no encapsulation within the following macros, do not change
7317
## the running order or otherwise move them around unless you know exactly
7318
## what you are doing...
7319
_LT_SYS_HIDDEN_LIBDEPS($1)
7320
_LT_COMPILER_PIC($1)
7321
_LT_COMPILER_C_O($1)
7322
_LT_COMPILER_FILE_LOCKS($1)
7323
_LT_LINKER_SHLIBS($1)
7324
_LT_SYS_DYNAMIC_LINKER($1)
7325
_LT_LINKER_HARDCODE_LIBPATH($1)
7328
fi # test -n "$compiler"
7334
with_gnu_ld=$lt_save_with_gnu_ld
7335
lt_cv_path_LDCXX=$lt_cv_path_LD
7336
lt_cv_path_LD=$lt_save_path_LD
7337
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7338
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7339
fi # test "$_lt_caught_CXX_error" != yes
7342
])# _LT_LANG_CXX_CONFIG
7345
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7224
7346
# ---------------------------------
7225
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7229
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7230
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7231
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7232
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7233
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7234
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7235
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7237
# This is just to silence aclocal about the macro not being used
7238
ifelse([AC_DISABLE_FAST_INSTALL])
7240
AC_DEFUN([LT_AC_PROG_GCJ],
7241
[AC_CHECK_TOOL(GCJ, gcj, no)
7242
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7246
AC_DEFUN([LT_AC_PROG_RC],
7247
[AC_CHECK_TOOL(RC, windres, no)
7347
# Figure out "hidden" library dependencies from verbose
7348
# compiler output when linking a shared library.
7349
# Parse the compiler output and extract the necessary
7350
# objects, libraries and library flags.
7351
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7352
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7353
# Dependencies to place before and after the object being linked:
7354
_LT_TAGVAR(predep_objects, $1)=
7355
_LT_TAGVAR(postdep_objects, $1)=
7356
_LT_TAGVAR(predeps, $1)=
7357
_LT_TAGVAR(postdeps, $1)=
7358
_LT_TAGVAR(compiler_lib_search_path, $1)=
7360
dnl we can't use the lt_simple_compile_test_code here,
7361
dnl because it contains code intended for an executable,
7362
dnl not a library. It's possible we should let each
7363
dnl tag define a new lt_????_link_test_code variable,
7364
dnl but it's only used here...
7365
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7367
void foo (void) { a = 0; }
7369
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7373
Foo (void) { a = 0; }
7378
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7386
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7394
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7397
public void bar (void) {
7403
dnl Parse the compiler output and extract the necessary
7404
dnl objects, libraries and library flags.
7405
if AC_TRY_EVAL(ac_compile); then
7406
# Parse the compiler output and extract the necessary
7407
# objects, libraries and library flags.
7409
# Sentinel used to keep track of whether or not we are before
7410
# the conftest object file.
7411
pre_test_object_deps_done=no
7413
for p in `eval "$output_verbose_link_cmd"`; do
7417
# Some compilers place space between "-{L,R}" and the path.
7419
if test $p = "-L" ||
7420
test $p = "-R"; then
7427
if test "$pre_test_object_deps_done" = no; then
7430
# Internal compiler library paths should come after those
7431
# provided the user. The postdeps already come after the
7432
# user supplied libs so there is no need to process them.
7433
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7434
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7436
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7439
# The "-l" case would never come before the object being
7440
# linked, so don't bother handling this case.
7443
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7444
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7446
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7452
# This assumes that the test object file only shows up
7453
# once in the compiler output.
7454
if test "$p" = "conftest.$objext"; then
7455
pre_test_object_deps_done=yes
7459
if test "$pre_test_object_deps_done" = no; then
7460
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7461
_LT_TAGVAR(predep_objects, $1)="$p"
7463
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7466
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7467
_LT_TAGVAR(postdep_objects, $1)="$p"
7469
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7474
*) ;; # Ignore the rest.
7482
echo "libtool.m4: error: problem compiling $1 test program"
7485
$RM -f confest.$objext
7487
# PORTME: override above test on systems where it is broken
7491
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7492
# hack all around it, let's just trust "g++" to DTRT.
7493
_LT_TAGVAR(predep_objects,$1)=
7494
_LT_TAGVAR(postdep_objects,$1)=
7495
_LT_TAGVAR(postdeps,$1)=
7499
case `$CC -V 2>&1 | sed 5q` in
7503
# The more standards-conforming stlport4 library is
7504
# incompatible with the Cstd library. Avoid specifying
7505
# it if it's in CXXFLAGS. Ignore libCrun as
7506
# -library=stlport4 depends on it.
7507
case " $CXX $CXXFLAGS " in
7508
*" -library=stlport4 "*)
7509
solaris_use_stlport4=yes
7513
if test "$solaris_use_stlport4" != yes; then
7514
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7521
case $cc_basename in
7523
# The more standards-conforming stlport4 library is
7524
# incompatible with the Cstd library. Avoid specifying
7525
# it if it's in CXXFLAGS. Ignore libCrun as
7526
# -library=stlport4 depends on it.
7527
case " $CXX $CXXFLAGS " in
7528
*" -library=stlport4 "*)
7529
solaris_use_stlport4=yes
7533
# Adding this requires a known-good setup of shared libraries for
7534
# Sun compiler versions before 5.6, else PIC objects from an old
7535
# archive will be linked into the output, leading to subtle bugs.
7536
if test "$solaris_use_stlport4" != yes; then
7537
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7545
case " $_LT_TAGVAR(postdeps, $1) " in
7546
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7548
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7549
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7550
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7552
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7553
[The directories searched by this compiler when creating a shared library])
7554
_LT_TAGDECL([], [predep_objects], [1],
7555
[Dependencies to place before and after the objects being linked to
7556
create a shared library])
7557
_LT_TAGDECL([], [postdep_objects], [1])
7558
_LT_TAGDECL([], [predeps], [1])
7559
_LT_TAGDECL([], [postdeps], [1])
7560
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7561
[The library search path used internally by the compiler when linking
7563
])# _LT_SYS_HIDDEN_LIBDEPS
7568
# Since AC_PROG_F77 is broken, in that it returns the empty string
7569
# if there is no fortran compiler, we have our own version here.
7570
m4_defun([_LT_PROG_F77],
7572
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7574
if test -z "$F77" || test "X$F77" = "Xno"; then
7577
popdef([AC_MSG_ERROR])
7580
dnl aclocal-1.4 backwards compatibility:
7581
dnl AC_DEFUN([_LT_PROG_F77], [])
7584
# _LT_LANG_F77_CONFIG([TAG])
7585
# --------------------------
7586
# Ensure that the configuration variables for a Fortran 77 compiler are
7587
# suitably defined. These variables are subsequently used by _LT_CONFIG
7588
# to write the compiler configuration to `libtool'.
7589
m4_defun([_LT_LANG_F77_CONFIG],
7590
[AC_REQUIRE([_LT_PROG_F77])dnl
7591
AC_LANG_PUSH(Fortran 77)
7593
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7594
_LT_TAGVAR(allow_undefined_flag, $1)=
7595
_LT_TAGVAR(always_export_symbols, $1)=no
7596
_LT_TAGVAR(archive_expsym_cmds, $1)=
7597
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7598
_LT_TAGVAR(hardcode_direct, $1)=no
7599
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7600
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7601
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7602
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7603
_LT_TAGVAR(hardcode_minus_L, $1)=no
7604
_LT_TAGVAR(hardcode_automatic, $1)=no
7605
_LT_TAGVAR(inherit_rpath, $1)=no
7606
_LT_TAGVAR(module_cmds, $1)=
7607
_LT_TAGVAR(module_expsym_cmds, $1)=
7608
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7609
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7610
_LT_TAGVAR(no_undefined_flag, $1)=
7611
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7612
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7614
# Source file extension for f77 test sources.
7617
# Object file extension for compiled f77 test sources.
7619
_LT_TAGVAR(objext, $1)=$objext
7621
# No sense in running all these tests if we already determined that
7622
# the F77 compiler isn't working. Some variables (like enable_shared)
7623
# are currently assumed to apply to all compilers on this platform,
7624
# and will be corrupted by setting them based on a non-working compiler.
7625
if test "$_lt_disable_F77" != yes; then
7626
# Code to be used in simple compile tests
7627
lt_simple_compile_test_code="\
7633
# Code to be used in simple link tests
7634
lt_simple_link_test_code="\
7639
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7642
# save warnings/boilerplate of simple test code
7643
_LT_COMPILER_BOILERPLATE
7644
_LT_LINKER_BOILERPLATE
7646
# Allow CC to be a program name with arguments.
7651
_LT_TAGVAR(compiler, $1)=$CC
7652
_LT_CC_BASENAME([$compiler])
7654
if test -n "$compiler"; then
7655
AC_MSG_CHECKING([if libtool supports shared libraries])
7656
AC_MSG_RESULT([$can_build_shared])
7658
AC_MSG_CHECKING([whether to build shared libraries])
7659
test "$can_build_shared" = "no" && enable_shared=no
7661
# On AIX, shared libraries and static libraries use the same namespace, and
7662
# are all built from PIC.
7665
test "$enable_shared" = yes && enable_static=no
7666
if test -n "$RANLIB"; then
7667
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7668
postinstall_cmds='$RANLIB $lib'
7672
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7673
test "$enable_shared" = yes && enable_static=no
7677
AC_MSG_RESULT([$enable_shared])
7679
AC_MSG_CHECKING([whether to build static libraries])
7680
# Make sure either enable_shared or enable_static is yes.
7681
test "$enable_shared" = yes || enable_static=yes
7682
AC_MSG_RESULT([$enable_static])
7684
_LT_TAGVAR(GCC, $1)="$G77"
7685
_LT_TAGVAR(LD, $1)="$LD"
7688
## There is no encapsulation within the following macros, do not change
7689
## the running order or otherwise move them around unless you know exactly
7690
## what you are doing...
7691
_LT_COMPILER_PIC($1)
7692
_LT_COMPILER_C_O($1)
7693
_LT_COMPILER_FILE_LOCKS($1)
7694
_LT_LINKER_SHLIBS($1)
7695
_LT_SYS_DYNAMIC_LINKER($1)
7696
_LT_LINKER_HARDCODE_LIBPATH($1)
7699
fi # test -n "$compiler"
7703
fi # test "$_lt_disable_F77" != yes
7706
])# _LT_LANG_F77_CONFIG
7711
# Since AC_PROG_FC is broken, in that it returns the empty string
7712
# if there is no fortran compiler, we have our own version here.
7713
m4_defun([_LT_PROG_FC],
7715
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7717
if test -z "$FC" || test "X$FC" = "Xno"; then
7720
popdef([AC_MSG_ERROR])
7723
dnl aclocal-1.4 backwards compatibility:
7724
dnl AC_DEFUN([_LT_PROG_FC], [])
7727
# _LT_LANG_FC_CONFIG([TAG])
7728
# -------------------------
7729
# Ensure that the configuration variables for a Fortran compiler are
7730
# suitably defined. These variables are subsequently used by _LT_CONFIG
7731
# to write the compiler configuration to `libtool'.
7732
m4_defun([_LT_LANG_FC_CONFIG],
7733
[AC_REQUIRE([_LT_PROG_FC])dnl
7734
AC_LANG_PUSH(Fortran)
7736
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7737
_LT_TAGVAR(allow_undefined_flag, $1)=
7738
_LT_TAGVAR(always_export_symbols, $1)=no
7739
_LT_TAGVAR(archive_expsym_cmds, $1)=
7740
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7741
_LT_TAGVAR(hardcode_direct, $1)=no
7742
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7743
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7744
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7745
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7746
_LT_TAGVAR(hardcode_minus_L, $1)=no
7747
_LT_TAGVAR(hardcode_automatic, $1)=no
7748
_LT_TAGVAR(inherit_rpath, $1)=no
7749
_LT_TAGVAR(module_cmds, $1)=
7750
_LT_TAGVAR(module_expsym_cmds, $1)=
7751
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7752
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7753
_LT_TAGVAR(no_undefined_flag, $1)=
7754
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7755
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7757
# Source file extension for fc test sources.
7758
ac_ext=${ac_fc_srcext-f}
7760
# Object file extension for compiled fc test sources.
7762
_LT_TAGVAR(objext, $1)=$objext
7764
# No sense in running all these tests if we already determined that
7765
# the FC compiler isn't working. Some variables (like enable_shared)
7766
# are currently assumed to apply to all compilers on this platform,
7767
# and will be corrupted by setting them based on a non-working compiler.
7768
if test "$_lt_disable_FC" != yes; then
7769
# Code to be used in simple compile tests
7770
lt_simple_compile_test_code="\
7776
# Code to be used in simple link tests
7777
lt_simple_link_test_code="\
7782
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7785
# save warnings/boilerplate of simple test code
7786
_LT_COMPILER_BOILERPLATE
7787
_LT_LINKER_BOILERPLATE
7789
# Allow CC to be a program name with arguments.
7794
GCC=$ac_cv_fc_compiler_gnu
7796
_LT_TAGVAR(compiler, $1)=$CC
7797
_LT_CC_BASENAME([$compiler])
7799
if test -n "$compiler"; then
7800
AC_MSG_CHECKING([if libtool supports shared libraries])
7801
AC_MSG_RESULT([$can_build_shared])
7803
AC_MSG_CHECKING([whether to build shared libraries])
7804
test "$can_build_shared" = "no" && enable_shared=no
7806
# On AIX, shared libraries and static libraries use the same namespace, and
7807
# are all built from PIC.
7810
test "$enable_shared" = yes && enable_static=no
7811
if test -n "$RANLIB"; then
7812
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7813
postinstall_cmds='$RANLIB $lib'
7817
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7818
test "$enable_shared" = yes && enable_static=no
7822
AC_MSG_RESULT([$enable_shared])
7824
AC_MSG_CHECKING([whether to build static libraries])
7825
# Make sure either enable_shared or enable_static is yes.
7826
test "$enable_shared" = yes || enable_static=yes
7827
AC_MSG_RESULT([$enable_static])
7829
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7830
_LT_TAGVAR(LD, $1)="$LD"
7833
## There is no encapsulation within the following macros, do not change
7834
## the running order or otherwise move them around unless you know exactly
7835
## what you are doing...
7836
_LT_SYS_HIDDEN_LIBDEPS($1)
7837
_LT_COMPILER_PIC($1)
7838
_LT_COMPILER_C_O($1)
7839
_LT_COMPILER_FILE_LOCKS($1)
7840
_LT_LINKER_SHLIBS($1)
7841
_LT_SYS_DYNAMIC_LINKER($1)
7842
_LT_LINKER_HARDCODE_LIBPATH($1)
7845
fi # test -n "$compiler"
7849
fi # test "$_lt_disable_FC" != yes
7852
])# _LT_LANG_FC_CONFIG
7855
# _LT_LANG_GCJ_CONFIG([TAG])
7856
# --------------------------
7857
# Ensure that the configuration variables for the GNU Java Compiler compiler
7858
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7859
# to write the compiler configuration to `libtool'.
7860
m4_defun([_LT_LANG_GCJ_CONFIG],
7861
[AC_REQUIRE([LT_PROG_GCJ])dnl
7864
# Source file extension for Java test sources.
7867
# Object file extension for compiled Java test sources.
7869
_LT_TAGVAR(objext, $1)=$objext
7871
# Code to be used in simple compile tests
7872
lt_simple_compile_test_code="class foo {}"
7874
# Code to be used in simple link tests
7875
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7877
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7880
# save warnings/boilerplate of simple test code
7881
_LT_COMPILER_BOILERPLATE
7882
_LT_LINKER_BOILERPLATE
7884
# Allow CC to be a program name with arguments.
7890
_LT_TAGVAR(compiler, $1)=$CC
7891
_LT_TAGVAR(LD, $1)="$LD"
7892
_LT_CC_BASENAME([$compiler])
7894
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7895
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7897
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7899
if test -n "$compiler"; then
7900
_LT_COMPILER_NO_RTTI($1)
7901
_LT_COMPILER_PIC($1)
7902
_LT_COMPILER_C_O($1)
7903
_LT_COMPILER_FILE_LOCKS($1)
7904
_LT_LINKER_SHLIBS($1)
7905
_LT_LINKER_HARDCODE_LIBPATH($1)
7914
])# _LT_LANG_GCJ_CONFIG
7917
# _LT_LANG_RC_CONFIG([TAG])
7918
# -------------------------
7919
# Ensure that the configuration variables for the Windows resource compiler
7920
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7921
# to write the compiler configuration to `libtool'.
7922
m4_defun([_LT_LANG_RC_CONFIG],
7923
[AC_REQUIRE([LT_PROG_RC])dnl
7926
# Source file extension for RC test sources.
7929
# Object file extension for compiled RC test sources.
7931
_LT_TAGVAR(objext, $1)=$objext
7933
# Code to be used in simple compile tests
7934
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7936
# Code to be used in simple link tests
7937
lt_simple_link_test_code="$lt_simple_compile_test_code"
7939
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7942
# save warnings/boilerplate of simple test code
7943
_LT_COMPILER_BOILERPLATE
7944
_LT_LINKER_BOILERPLATE
7946
# Allow CC to be a program name with arguments.
7952
_LT_TAGVAR(compiler, $1)=$CC
7953
_LT_CC_BASENAME([$compiler])
7954
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7956
if test -n "$compiler"; then
7964
])# _LT_LANG_RC_CONFIG
7969
AC_DEFUN([LT_PROG_GCJ],
7970
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7971
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7972
[AC_CHECK_TOOL(GCJ, gcj,)
7973
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7974
AC_SUBST(GCJFLAGS)])])[]dnl
7978
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7979
dnl aclocal-1.4 backwards compatibility:
7980
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7985
AC_DEFUN([LT_PROG_RC],
7986
[AC_CHECK_TOOL(RC, windres,)
7990
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7991
dnl aclocal-1.4 backwards compatibility:
7992
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7997
# If we don't have a new enough Autoconf to choose the best grep
7998
# available, choose the one first in the user's PATH.
7999
m4_defun([_LT_DECL_EGREP],
8000
[AC_REQUIRE([AC_PROG_EGREP])dnl
8001
AC_REQUIRE([AC_PROG_FGREP])dnl
8002
test -z "$GREP" && GREP=grep
8003
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8004
_LT_DECL([], [EGREP], [1], [An ERE matcher])
8005
_LT_DECL([], [FGREP], [1], [A literal string matcher])
8006
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8013
# If we don't have a new enough Autoconf to choose the best objdump
8014
# available, choose the one first in the user's PATH.
8015
m4_defun([_LT_DECL_OBJDUMP],
8016
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8017
test -z "$OBJDUMP" && OBJDUMP=objdump
8018
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8025
# Check for a fully-functional sed program, that truncates
8026
# as few characters as possible. Prefer GNU sed if found.
8027
m4_defun([_LT_DECL_SED],
8029
test -z "$SED" && SED=sed
8030
Xsed="$SED -e 1s/^X//"
8031
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8032
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8033
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
8036
m4_ifndef([AC_PROG_SED], [
7250
8037
# NOTE: This macro has been submitted for inclusion into #
7251
8038
# GNU Autoconf as AC_PROG_SED. When it is available in #
7252
8039
# a released version of Autoconf we should remove this #
7253
8040
# macro and use it instead. #
7256
# Check for a fully-functional sed program, that truncates
7257
# as few characters as possible. Prefer GNU sed if found.
7258
AC_DEFUN([LT_AC_PROG_SED],
8042
m4_defun([AC_PROG_SED],
7259
8043
[AC_MSG_CHECKING([for a sed that does not truncate output])
7260
8044
AC_CACHE_VAL(lt_cv_path_SED,
7261
8045
[# Loop through the user's path and test for sed and gsed.
7307
8092
SED=$lt_cv_path_SED
7308
8094
AC_MSG_RESULT([$SED])
8099
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8100
dnl aclocal-1.4 backwards compatibility:
8101
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8104
# _LT_CHECK_SHELL_FEATURES
8105
# ------------------------
8106
# Find out whether the shell is Bourne or XSI compatible,
8107
# or has some other useful features.
8108
m4_defun([_LT_CHECK_SHELL_FEATURES],
8109
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8110
# Try some XSI features
8113
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8115
&& eval 'test $(( 1 + 1 )) -eq 2 \
8116
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8118
AC_MSG_RESULT([$xsi_shell])
8119
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8121
AC_MSG_CHECKING([whether the shell understands "+="])
8123
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8125
&& lt_shell_append=yes
8126
AC_MSG_RESULT([$lt_shell_append])
8127
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8129
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8134
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8136
# test EBCDIC or ASCII
8137
case `echo X|tr X '\101'` in
8138
A) # ASCII based system
8139
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8140
lt_SP2NL='tr \040 \012'
8141
lt_NL2SP='tr \015\012 \040\040'
8143
*) # EBCDIC based system
8144
lt_SP2NL='tr \100 \n'
8145
lt_NL2SP='tr \r\n \100\100'
8148
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8149
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8150
])# _LT_CHECK_SHELL_FEATURES
8153
# _LT_PROG_XSI_SHELLFNS
8154
# ---------------------
8155
# Bourne and XSI compatible variants of some useful shell functions.
8156
m4_defun([_LT_PROG_XSI_SHELLFNS],
8159
cat << \_LT_EOF >> "$cfgfile"
8161
# func_dirname file append nondir_replacement
8162
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8163
# otherwise set result to NONDIR_REPLACEMENT.
8167
*/*) func_dirname_result="${1%/*}${2}" ;;
8168
* ) func_dirname_result="${3}" ;;
8172
# func_basename file
8175
func_basename_result="${1##*/}"
8178
# func_dirname_and_basename file append nondir_replacement
8179
# perform func_basename and func_dirname in a single function
8181
# dirname: Compute the dirname of FILE. If nonempty,
8182
# add APPEND to the result, otherwise set result
8183
# to NONDIR_REPLACEMENT.
8184
# value returned in "$func_dirname_result"
8185
# basename: Compute filename of FILE.
8186
# value retuned in "$func_basename_result"
8187
# Implementation must be kept synchronized with func_dirname
8188
# and func_basename. For efficiency, we do not delegate to
8189
# those functions but instead duplicate the functionality here.
8190
func_dirname_and_basename ()
8193
*/*) func_dirname_result="${1%/*}${2}" ;;
8194
* ) func_dirname_result="${3}" ;;
8196
func_basename_result="${1##*/}"
8199
# func_stripname prefix suffix name
8200
# strip PREFIX and SUFFIX off of NAME.
8201
# PREFIX and SUFFIX must not contain globbing or regex special
8202
# characters, hashes, percent signs, but SUFFIX may contain a leading
8203
# dot (in which case that matches only a dot).
8206
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8207
# positional parameters, so assign one to ordinary parameter first.
8208
func_stripname_result=${3}
8209
func_stripname_result=${func_stripname_result#"${1}"}
8210
func_stripname_result=${func_stripname_result%"${2}"}
8216
func_opt_split_opt=${1%%=*}
8217
func_opt_split_arg=${1#*=}
8224
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8225
*) func_lo2o_result=${1} ;;
8229
# func_xform libobj-or-source
8232
func_xform_result=${1%.*}.lo
8235
# func_arith arithmetic-term...
8238
func_arith_result=$(( $[*] ))
8242
# STRING may not start with a hyphen.
8245
func_len_result=${#1}
8250
*) # Bourne compatible functions.
8251
cat << \_LT_EOF >> "$cfgfile"
8253
# func_dirname file append nondir_replacement
8254
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8255
# otherwise set result to NONDIR_REPLACEMENT.
8258
# Extract subdirectory from the argument.
8259
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8260
if test "X$func_dirname_result" = "X${1}"; then
8261
func_dirname_result="${3}"
8263
func_dirname_result="$func_dirname_result${2}"
8267
# func_basename file
8270
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8273
dnl func_dirname_and_basename
8274
dnl A portable version of this function is already defined in general.m4sh
8275
dnl so there is no need for it here.
8277
# func_stripname prefix suffix name
8278
# strip PREFIX and SUFFIX off of NAME.
8279
# PREFIX and SUFFIX must not contain globbing or regex special
8280
# characters, hashes, percent signs, but SUFFIX may contain a leading
8281
# dot (in which case that matches only a dot).
8282
# func_strip_suffix prefix name
8286
.*) func_stripname_result=`$ECHO "X${3}" \
8287
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8288
*) func_stripname_result=`$ECHO "X${3}" \
8289
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8294
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8295
my_sed_long_arg='1s/^-[[^=]]*=//'
8300
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8301
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8307
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8310
# func_xform libobj-or-source
8313
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8316
# func_arith arithmetic-term...
8319
func_arith_result=`expr "$[@]"`
8323
# STRING may not start with a hyphen.
8326
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8332
case $lt_shell_append in
8334
cat << \_LT_EOF >> "$cfgfile"
8336
# func_append var value
8337
# Append VALUE to the end of shell variable VAR.
8345
cat << \_LT_EOF >> "$cfgfile"
8347
# func_append var value
8348
# Append VALUE to the end of shell variable VAR.
8351
eval "$[1]=\$$[1]\$[2]"
8359
# Helper functions for option handling. -*- Autoconf -*-
8361
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8362
# Written by Gary V. Vaughan, 2004
8364
# This file is free software; the Free Software Foundation gives
8365
# unlimited permission to copy and/or distribute it, with or without
8366
# modifications, as long as this notice is preserved.
8368
# serial 6 ltoptions.m4
8370
# This is to help aclocal find these macros, as it can't see m4_define.
8371
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8374
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8375
# ------------------------------------------
8376
m4_define([_LT_MANGLE_OPTION],
8377
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8380
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8381
# ---------------------------------------
8382
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8383
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8385
m4_define([_LT_SET_OPTION],
8386
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8387
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8388
_LT_MANGLE_DEFUN([$1], [$2]),
8389
[m4_warning([Unknown $1 option `$2'])])[]dnl
8393
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8394
# ------------------------------------------------------------
8395
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8396
m4_define([_LT_IF_OPTION],
8397
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8400
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8401
# -------------------------------------------------------
8402
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8404
m4_define([_LT_UNLESS_OPTIONS],
8405
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8406
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8407
[m4_define([$0_found])])])[]dnl
8408
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8413
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8414
# ----------------------------------------
8415
# OPTION-LIST is a space-separated list of Libtool options associated
8416
# with MACRO-NAME. If any OPTION has a matching handler declared with
8417
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8418
# the unknown option and exit.
8419
m4_defun([_LT_SET_OPTIONS],
8421
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8422
[_LT_SET_OPTION([$1], _LT_Option)])
8424
m4_if([$1],[LT_INIT],[
8426
dnl Simply set some default values (i.e off) if boolean options were not
8428
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8430
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8433
dnl If no reference was made to various pairs of opposing options, then
8434
dnl we run the default mode handler for the pair. For example, if neither
8435
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8436
dnl archives by default:
8437
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8438
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8439
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8440
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8441
[_LT_ENABLE_FAST_INSTALL])
8447
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8448
# -----------------------------------------
8449
m4_define([_LT_MANGLE_DEFUN],
8450
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8453
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8454
# -----------------------------------------------
8455
m4_define([LT_OPTION_DEFINE],
8456
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8457
])# LT_OPTION_DEFINE
8462
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8465
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8466
[_LT_SET_OPTION([LT_INIT], [dlopen])
8467
AC_DIAGNOSE([obsolete],
8468
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8469
put the `dlopen' option into LT_INIT's first parameter.])
8472
dnl aclocal-1.4 backwards compatibility:
8473
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8478
# Declare package support for building win32 dll's.
8479
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8480
[enable_win32_dll=yes
8483
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8484
AC_CHECK_TOOL(AS, as, false)
8485
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8486
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8490
test -z "$AS" && AS=as
8491
_LT_DECL([], [AS], [0], [Assembler program])dnl
8493
test -z "$DLLTOOL" && DLLTOOL=dlltool
8494
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8496
test -z "$OBJDUMP" && OBJDUMP=objdump
8497
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8500
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8501
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8502
_LT_SET_OPTION([LT_INIT], [win32-dll])
8503
AC_DIAGNOSE([obsolete],
8504
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8505
put the `win32-dll' option into LT_INIT's first parameter.])
8508
dnl aclocal-1.4 backwards compatibility:
8509
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8512
# _LT_ENABLE_SHARED([DEFAULT])
8513
# ----------------------------
8514
# implement the --enable-shared flag, and supports the `shared' and
8515
# `disable-shared' LT_INIT options.
8516
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8517
m4_define([_LT_ENABLE_SHARED],
8518
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8519
AC_ARG_ENABLE([shared],
8520
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8521
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8522
[p=${PACKAGE-default}
8524
yes) enable_shared=yes ;;
8525
no) enable_shared=no ;;
8528
# Look at the argument we got. We use all the common list separators.
8529
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8530
for pkg in $enableval; do
8532
if test "X$pkg" = "X$p"; then
8539
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8541
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8542
[Whether or not to build shared libraries])
8543
])# _LT_ENABLE_SHARED
8545
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8546
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8549
AC_DEFUN([AC_ENABLE_SHARED],
8550
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8553
AC_DEFUN([AC_DISABLE_SHARED],
8554
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8557
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8558
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8560
dnl aclocal-1.4 backwards compatibility:
8561
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8562
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8566
# _LT_ENABLE_STATIC([DEFAULT])
8567
# ----------------------------
8568
# implement the --enable-static flag, and support the `static' and
8569
# `disable-static' LT_INIT options.
8570
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8571
m4_define([_LT_ENABLE_STATIC],
8572
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8573
AC_ARG_ENABLE([static],
8574
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8575
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8576
[p=${PACKAGE-default}
8578
yes) enable_static=yes ;;
8579
no) enable_static=no ;;
8582
# Look at the argument we got. We use all the common list separators.
8583
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8584
for pkg in $enableval; do
8586
if test "X$pkg" = "X$p"; then
8593
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8595
_LT_DECL([build_old_libs], [enable_static], [0],
8596
[Whether or not to build static libraries])
8597
])# _LT_ENABLE_STATIC
8599
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8600
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8603
AC_DEFUN([AC_ENABLE_STATIC],
8604
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8607
AC_DEFUN([AC_DISABLE_STATIC],
8608
[_LT_SET_OPTION([LT_INIT], [disable-static])
8611
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8612
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8614
dnl aclocal-1.4 backwards compatibility:
8615
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8616
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8620
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8621
# ----------------------------------
8622
# implement the --enable-fast-install flag, and support the `fast-install'
8623
# and `disable-fast-install' LT_INIT options.
8624
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8625
m4_define([_LT_ENABLE_FAST_INSTALL],
8626
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8627
AC_ARG_ENABLE([fast-install],
8628
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8629
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8630
[p=${PACKAGE-default}
8632
yes) enable_fast_install=yes ;;
8633
no) enable_fast_install=no ;;
8635
enable_fast_install=no
8636
# Look at the argument we got. We use all the common list separators.
8637
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8638
for pkg in $enableval; do
8640
if test "X$pkg" = "X$p"; then
8641
enable_fast_install=yes
8647
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8649
_LT_DECL([fast_install], [enable_fast_install], [0],
8650
[Whether or not to optimize for fast installation])dnl
8651
])# _LT_ENABLE_FAST_INSTALL
8653
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8654
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8657
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8658
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8659
AC_DIAGNOSE([obsolete],
8660
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8661
the `fast-install' option into LT_INIT's first parameter.])
8664
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8665
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8666
AC_DIAGNOSE([obsolete],
8667
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8668
the `disable-fast-install' option into LT_INIT's first parameter.])
8671
dnl aclocal-1.4 backwards compatibility:
8672
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8673
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8676
# _LT_WITH_PIC([MODE])
8677
# --------------------
8678
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8680
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8681
m4_define([_LT_WITH_PIC],
8683
[AS_HELP_STRING([--with-pic],
8684
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8685
[pic_mode="$withval"],
8688
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8690
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8693
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8694
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8697
AU_DEFUN([AC_LIBTOOL_PICMODE],
8698
[_LT_SET_OPTION([LT_INIT], [pic-only])
8699
AC_DIAGNOSE([obsolete],
8700
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8701
put the `pic-only' option into LT_INIT's first parameter.])
8704
dnl aclocal-1.4 backwards compatibility:
8705
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8708
m4_define([_LTDL_MODE], [])
8709
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8710
[m4_define([_LTDL_MODE], [nonrecursive])])
8711
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8712
[m4_define([_LTDL_MODE], [recursive])])
8713
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8714
[m4_define([_LTDL_MODE], [subproject])])
8716
m4_define([_LTDL_TYPE], [])
8717
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8718
[m4_define([_LTDL_TYPE], [installable])])
8719
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8720
[m4_define([_LTDL_TYPE], [convenience])])
8722
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8724
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8725
# Written by Gary V. Vaughan, 2004
8727
# This file is free software; the Free Software Foundation gives
8728
# unlimited permission to copy and/or distribute it, with or without
8729
# modifications, as long as this notice is preserved.
8731
# serial 6 ltsugar.m4
8733
# This is to help aclocal find these macros, as it can't see m4_define.
8734
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8737
# lt_join(SEP, ARG1, [ARG2...])
8738
# -----------------------------
8739
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8740
# associated separator.
8741
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8742
# versions in m4sugar had bugs.
8743
m4_define([lt_join],
8744
[m4_if([$#], [1], [],
8746
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8747
m4_define([_lt_join],
8748
[m4_if([$#$2], [2], [],
8749
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8755
# Manipulate m4 lists.
8756
# These macros are necessary as long as will still need to support
8757
# Autoconf-2.59 which quotes differently.
8758
m4_define([lt_car], [[$1]])
8760
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8762
[m4_dquote(m4_shift($@))])])
8763
m4_define([lt_unquote], $1)
8766
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8767
# ------------------------------------------
8768
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8769
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8770
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8771
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8772
# than defined and empty).
8774
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8775
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8776
m4_define([lt_append],
8778
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8782
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8783
# ----------------------------------------------------------
8784
# Produce a SEP delimited list of all paired combinations of elements of
8785
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8786
# has the form PREFIXmINFIXSUFFIXn.
8787
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8788
m4_define([lt_combine],
8789
[m4_if(m4_eval([$# > 3]), [1],
8790
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8791
[[m4_foreach([_Lt_prefix], [$2],
8792
[m4_foreach([_Lt_suffix],
8793
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8794
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8797
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8798
# -----------------------------------------------------------------------
8799
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8800
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8801
m4_define([lt_if_append_uniq],
8803
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8804
[lt_append([$1], [$2], [$3])$4],
8806
[lt_append([$1], [$2], [$3])$4])])
8809
# lt_dict_add(DICT, KEY, VALUE)
8810
# -----------------------------
8811
m4_define([lt_dict_add],
8812
[m4_define([$1($2)], [$3])])
8815
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8816
# --------------------------------------------
8817
m4_define([lt_dict_add_subkey],
8818
[m4_define([$1($2:$3)], [$4])])
8821
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8822
# ----------------------------------
8823
m4_define([lt_dict_fetch],
8825
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8826
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8829
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8830
# -----------------------------------------------------------------
8831
m4_define([lt_if_dict_fetch],
8832
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8837
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8838
# --------------------------------------------------------------
8839
m4_define([lt_dict_filter],
8840
[m4_if([$5], [], [],
8841
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8842
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8843
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8846
# ltversion.m4 -- version numbers -*- Autoconf -*-
8848
# Copyright (C) 2004 Free Software Foundation, Inc.
8849
# Written by Scott James Remnant, 2004
8851
# This file is free software; the Free Software Foundation gives
8852
# unlimited permission to copy and/or distribute it, with or without
8853
# modifications, as long as this notice is preserved.
8855
# Generated from ltversion.in.
8857
# serial 3012 ltversion.m4
8858
# This file is part of GNU Libtool
8860
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8861
m4_define([LT_PACKAGE_REVISION], [1.3012])
8863
AC_DEFUN([LTVERSION_VERSION],
8864
[macro_version='2.2.6'
8865
macro_revision='1.3012'
8866
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8867
_LT_DECL(, macro_revision, 0)
8870
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8872
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8873
# Written by Scott James Remnant, 2004.
8875
# This file is free software; the Free Software Foundation gives
8876
# unlimited permission to copy and/or distribute it, with or without
8877
# modifications, as long as this notice is preserved.
8879
# serial 4 lt~obsolete.m4
8881
# These exist entirely to fool aclocal when bootstrapping libtool.
8883
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8884
# which have later been changed to m4_define as they aren't part of the
8885
# exported API, or moved to Autoconf or Automake where they belong.
8887
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8888
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8889
# using a macro with the same name in our local m4/libtool.m4 it'll
8890
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8891
# and doesn't know about Autoconf macros at all.)
8893
# So we provide this file, which has a silly filename so it's always
8894
# included after everything else. This provides aclocal with the
8895
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8896
# because those macros already exist, or will be overwritten later.
8897
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8899
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8900
# Yes, that means every name once taken will need to remain here until
8901
# we give up compatibility with versions before 1.7, at which point
8902
# we need to keep only those names which we still refer to.
8904
# This is to help aclocal find these macros, as it can't see m4_define.
8905
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8907
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8908
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8909
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8910
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8911
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8912
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8913
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8914
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8915
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8916
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8917
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8918
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8919
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8920
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8921
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8922
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8923
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8924
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8925
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8926
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8927
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8928
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8929
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8930
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8931
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8932
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8933
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8934
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8935
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8936
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8937
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8938
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8939
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8940
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8941
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8942
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8943
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8944
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8945
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8946
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8947
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8948
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8949
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8950
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8951
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8952
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8953
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8954
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8955
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8956
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8957
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8958
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8959
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8960
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8961
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7311
8963
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-