1001
1081
AC_SUBST([am__untar])
1002
1082
]) # _AM_PROG_TAR
1004
m4_include([scripts/c_std.m4])
1005
m4_include([scripts/cxx.m4])
1006
m4_include([scripts/cxx_std.m4])
1007
m4_include([scripts/dk-feature.m4])
1008
m4_include([scripts/dk-warn.m4])
1009
m4_include([scripts/docgen.m4])
1010
m4_include([scripts/macros.m4])
1011
m4_include([scripts/reduced.m4])
1012
m4_include([scripts/sun.m4])
1014
dnl Some macros needed for autoconf
1018
AC_DEFUN([GLIBMM_CV_PERL_VERSION],[glibmm_cv_perl_version_[]m4_translit([$1],[.${}],[____])])
1021
AC_DEFUN([GLIBMM_CHECK_PERL],
1023
glibmm_perl_result=no
1025
AC_PATH_PROGS([PERL_PATH], [perl perl5], [not found])
1027
if test "x$PERL_PATH" != "xnot found"; then
1030
[whether Perl is new enough],
1031
GLIBMM_CV_PERL_VERSION([$1]),
1033
]GLIBMM_CV_PERL_VERSION([$1])[=no
1034
"$PERL_PATH" -e "require v$1; exit 0;" >/dev/null 2>&1 && ]GLIBMM_CV_PERL_VERSION([$1])[=yes
1036
test "x${GLIBMM_CV_PERL_VERSION([$1])}" = xyes && glibmm_perl_result=yes
1040
# Make sure we have something sensible, even if it doesn't work.
1045
if test "x$glibmm_perl_result" = xno && test "x$USE_MAINTAINER_MODE" = xyes; then
1048
*** Perl >= ]$1[ is required for building $PACKAGE in maintainer-mode.
1053
AC_SUBST([PERL_PATH])
1057
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1059
# serial 52 AC_PROG_LIBTOOL
1062
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1063
# -----------------------------------------------------------
1064
# If this macro is not defined by Autoconf, define it here.
1065
m4_ifdef([AC_PROVIDE_IFELSE],
1067
[m4_define([AC_PROVIDE_IFELSE],
1068
[m4_ifdef([AC_PROVIDE_$1],
1074
AC_DEFUN([AC_PROG_LIBTOOL],
1075
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1076
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1077
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1078
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1080
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1082
dnl And a similar setup for Fortran 77 support
1083
AC_PROVIDE_IFELSE([AC_PROG_F77],
1085
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1088
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1089
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1090
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1091
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1093
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1095
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1097
[ifdef([AC_PROG_GCJ],
1098
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1099
ifdef([A][M_PROG_GCJ],
1100
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1101
ifdef([LT_AC_PROG_GCJ],
1102
[define([LT_AC_PROG_GCJ],
1103
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1104
])])# AC_PROG_LIBTOOL
1109
AC_DEFUN([_AC_PROG_LIBTOOL],
1110
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1111
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1112
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1113
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1115
# This can be used to rebuild libtool when needed
1116
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1118
# Always use our own libtool.
1119
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1120
AC_SUBST(LIBTOOL)dnl
1122
# Prevent multiple expansion
1123
define([AC_PROG_LIBTOOL], [])
1124
])# _AC_PROG_LIBTOOL
1129
AC_DEFUN([AC_LIBTOOL_SETUP],
1131
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1132
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1133
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1134
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1135
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1136
AC_REQUIRE([AC_PROG_CC])dnl
1137
AC_REQUIRE([AC_PROG_LD])dnl
1138
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1139
AC_REQUIRE([AC_PROG_NM])dnl
1141
AC_REQUIRE([AC_PROG_LN_S])dnl
1142
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1143
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1144
AC_REQUIRE([AC_OBJEXT])dnl
1145
AC_REQUIRE([AC_EXEEXT])dnl
1147
AC_LIBTOOL_SYS_MAX_CMD_LEN
1148
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1151
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1152
_LT_AC_PROG_ECHO_BACKSLASH
1156
# AIX sometimes has problems with the GCC collect2 program. For some
1157
# reason, if we set the COLLECT_NAMES environment variable, the problems
1158
# vanish in a puff of smoke.
1159
if test "X${COLLECT_NAMES+set}" != Xset; then
1161
export COLLECT_NAMES
1166
# Sed substitution that helps us do robust quoting. It backslashifies
1167
# metacharacters that are still active within double-quoted strings.
1168
Xsed='sed -e 1s/^X//'
1169
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1171
# Same as above, but do not quote variable references.
1172
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1174
# Sed substitution to delay expansion of an escaped shell variable in a
1175
# double_quote_subst'ed string.
1176
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1178
# Sed substitution to avoid accidental globbing in evaled expressions
1179
no_glob_subst='s/\*/\\\*/g'
1185
default_ofile=libtool
1186
can_build_shared=yes
1188
# All known linkers require a `.a' archive for static linking (except MSVC,
1189
# which needs '.lib').
1191
ltmain="$ac_aux_dir/ltmain.sh"
1192
ofile="$default_ofile"
1193
with_gnu_ld="$lt_cv_prog_gnu_ld"
1195
AC_CHECK_TOOL(AR, ar, false)
1196
AC_CHECK_TOOL(RANLIB, ranlib, :)
1197
AC_CHECK_TOOL(STRIP, strip, :)
1200
old_CFLAGS="$CFLAGS"
1202
# Set sane defaults for various variables
1203
test -z "$AR" && AR=ar
1204
test -z "$AR_FLAGS" && AR_FLAGS=cru
1205
test -z "$AS" && AS=as
1206
test -z "$CC" && CC=cc
1207
test -z "$LTCC" && LTCC=$CC
1208
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1209
test -z "$DLLTOOL" && DLLTOOL=dlltool
1210
test -z "$LD" && LD=ld
1211
test -z "$LN_S" && LN_S="ln -s"
1212
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1213
test -z "$NM" && NM=nm
1214
test -z "$SED" && SED=sed
1215
test -z "$OBJDUMP" && OBJDUMP=objdump
1216
test -z "$RANLIB" && RANLIB=:
1217
test -z "$STRIP" && STRIP=:
1218
test -z "$ac_objext" && ac_objext=o
1220
# Determine commands to create old-style static archives.
1221
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1222
old_postinstall_cmds='chmod 644 $oldlib'
1223
old_postuninstall_cmds=
1225
if test -n "$RANLIB"; then
1228
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1231
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1234
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1237
_LT_CC_BASENAME([$compiler])
1239
# Only perform the check for file, if the check method requires it
1240
case $deplibs_check_method in
1242
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1248
_LT_REQUIRED_DARWIN_CHECKS
1250
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1251
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1252
enable_win32_dll=yes, enable_win32_dll=no)
1254
AC_ARG_ENABLE([libtool-lock],
1255
[AC_HELP_STRING([--disable-libtool-lock],
1256
[avoid locking (might break parallel builds)])])
1257
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1260
[AC_HELP_STRING([--with-pic],
1261
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1262
[pic_mode="$withval"],
1264
test -z "$pic_mode" && pic_mode=default
1266
# Use C for the default configuration in the libtool script
1268
AC_LIBTOOL_LANG_C_CONFIG
1270
])# AC_LIBTOOL_SETUP
1273
# _LT_AC_SYS_COMPILER
1274
# -------------------
1275
AC_DEFUN([_LT_AC_SYS_COMPILER],
1276
[AC_REQUIRE([AC_PROG_CC])dnl
1278
# If no C compiler was specified, use CC.
1281
# If no C compiler flags were specified, use CFLAGS.
1282
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1284
# Allow CC to be a program name with arguments.
1286
])# _LT_AC_SYS_COMPILER
1289
# _LT_CC_BASENAME(CC)
1290
# -------------------
1291
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1292
AC_DEFUN([_LT_CC_BASENAME],
1293
[for cc_temp in $1""; do
1295
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1296
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1301
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1305
# _LT_COMPILER_BOILERPLATE
1306
# ------------------------
1307
# Check for compiler boilerplate output or warnings with
1308
# the simple compiler test code.
1309
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1310
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1311
ac_outfile=conftest.$ac_objext
1312
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1313
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1314
_lt_compiler_boilerplate=`cat conftest.err`
1316
])# _LT_COMPILER_BOILERPLATE
1319
# _LT_LINKER_BOILERPLATE
1320
# ----------------------
1321
# Check for linker boilerplate output or warnings with
1322
# the simple link test code.
1323
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1324
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1325
ac_outfile=conftest.$ac_objext
1326
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1327
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1328
_lt_linker_boilerplate=`cat conftest.err`
1330
])# _LT_LINKER_BOILERPLATE
1332
# _LT_REQUIRED_DARWIN_CHECKS
1333
# --------------------------
1334
# Check for some things on darwin
1335
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
1337
rhapsody* | darwin*)
1338
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1339
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1341
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1342
[lt_cv_apple_cc_single_mod=no
1343
if test -z "${LT_MULTI_MODULE}"; then
1344
# By default we will add the -single_module flag. You can override
1345
# by either setting the environment variable LT_MULTI_MODULE
1346
# non-empty at configure time, or by adding -multi_module to the
1348
echo "int foo(void){return 1;}" > conftest.c
1349
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1350
-dynamiclib ${wl}-single_module conftest.c
1351
if test -f libconftest.dylib; then
1352
lt_cv_apple_cc_single_mod=yes
1353
rm -rf libconftest.dylib*
1357
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1358
[lt_cv_ld_exported_symbols_list],
1359
[lt_cv_ld_exported_symbols_list=no
1360
save_LDFLAGS=$LDFLAGS
1361
echo "_main" > conftest.sym
1362
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1363
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1364
[lt_cv_ld_exported_symbols_list=yes],
1365
[lt_cv_ld_exported_symbols_list=no])
1366
LDFLAGS="$save_LDFLAGS"
1369
rhapsody* | darwin1.[[0123]])
1370
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1372
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1374
# if running on 10.5 or later, the deployment target defaults
1375
# to the OS version, if on x86, and 10.4, the deployment
1376
# target defaults to 10.4. Don't you love it?
1377
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1378
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1379
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1381
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1383
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1387
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1388
_lt_dar_single_mod='$single_module'
1390
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1391
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1393
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
1395
if test "$DSYMUTIL" != ":"; then
1396
_lt_dsymutil="~$DSYMUTIL \$lib || :"
1404
# _LT_AC_SYS_LIBPATH_AIX
1405
# ----------------------
1406
# Links a minimal program and checks the executable
1407
# for the system default hardcoded library path. In most cases,
1408
# this is /usr/lib:/lib, but when the MPI compilers are used
1409
# the location of the communication and MPI libs are included too.
1410
# If we don't find anything, use the default library path according
1411
# to the aix ld manual.
1412
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1413
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1414
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1415
lt_aix_libpath_sed='
1416
/Import File Strings/,/^$/ {
1422
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1423
# Check for a 64-bit object if we didn't find anything.
1424
if test -z "$aix_libpath"; then
1425
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1427
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1428
])# _LT_AC_SYS_LIBPATH_AIX
1431
# _LT_AC_SHELL_INIT(ARG)
1432
# ----------------------
1433
AC_DEFUN([_LT_AC_SHELL_INIT],
1434
[ifdef([AC_DIVERSION_NOTICE],
1435
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1436
[AC_DIVERT_PUSH(NOTICE)])
1439
])# _LT_AC_SHELL_INIT
1442
# _LT_AC_PROG_ECHO_BACKSLASH
1443
# --------------------------
1444
# Add some code to the start of the generated configure script which
1445
# will find an echo command which doesn't interpret backslashes.
1446
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1447
[_LT_AC_SHELL_INIT([
1448
# Check that we are running under the correct shell.
1449
SHELL=${CONFIG_SHELL-/bin/sh}
1453
# Remove one level of quotation (which was required for Make).
1454
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1459
if test "X[$]1" = X--no-reexec; then
1460
# Discard the --no-reexec flag, and continue.
1462
elif test "X[$]1" = X--fallback-echo; then
1463
# Avoid inline document here, it may be left over
1465
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1466
# Yippee, $echo works!
1469
# Restart under the correct shell.
1470
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1473
if test "X[$]1" = X--fallback-echo; then
1474
# used as fallback echo
1482
# The HP-UX ksh and POSIX shell print the target directory to stdout
1484
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1486
if test -z "$ECHO"; then
1487
if test "X${echo_test_string+set}" != Xset; then
1488
# find a string as large as possible, as long as the shell can cope with it
1489
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1490
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1491
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1492
echo_test_string=`eval $cmd` &&
1493
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1500
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1501
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1502
test "X$echo_testing_string" = "X$echo_test_string"; then
1505
# The Solaris, AIX, and Digital Unix default echo programs unquote
1506
# backslashes. This makes it impossible to quote backslashes using
1507
# echo "$something" | sed 's/\\/\\\\/g'
1509
# So, first we look for a working echo in the user's PATH.
1511
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1512
for dir in $PATH /usr/ucb; do
1514
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1515
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1516
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1517
test "X$echo_testing_string" = "X$echo_test_string"; then
1524
if test "X$echo" = Xecho; then
1525
# We didn't find a better echo, so look for alternatives.
1526
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1527
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1528
test "X$echo_testing_string" = "X$echo_test_string"; then
1529
# This shell has a builtin print -r that does the trick.
1531
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1532
test "X$CONFIG_SHELL" != X/bin/ksh; then
1533
# If we have ksh, try running configure again with it.
1534
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1535
export ORIGINAL_CONFIG_SHELL
1536
CONFIG_SHELL=/bin/ksh
1538
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1542
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1543
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1544
test "X$echo_testing_string" = "X$echo_test_string"; then
1545
# Cool, printf works
1547
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1548
test "X$echo_testing_string" = 'X\t' &&
1549
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1550
test "X$echo_testing_string" = "X$echo_test_string"; then
1551
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1553
SHELL="$CONFIG_SHELL"
1555
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1556
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1557
test "X$echo_testing_string" = 'X\t' &&
1558
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1559
test "X$echo_testing_string" = "X$echo_test_string"; then
1560
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1562
# maybe with a smaller string...
1565
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1566
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1573
if test "$prev" != 'sed 50q "[$]0"'; then
1574
echo_test_string=`eval $prev`
1575
export echo_test_string
1576
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1578
# Oops. We lost completely, so just stick with echo.
1587
# Copy echo and quote the copy suitably for passing to libtool from
1588
# the Makefile, instead of quoting the original, which is used later.
1590
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1591
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1595
])])# _LT_AC_PROG_ECHO_BACKSLASH
1600
AC_DEFUN([_LT_AC_LOCK],
1601
[AC_ARG_ENABLE([libtool-lock],
1602
[AC_HELP_STRING([--disable-libtool-lock],
1603
[avoid locking (might break parallel builds)])])
1604
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1606
# Some flags need to be propagated to the compiler or linker for good
1610
# Find out which ABI we are using.
1611
echo 'int i;' > conftest.$ac_ext
1612
if AC_TRY_EVAL(ac_compile); then
1613
case `/usr/bin/file conftest.$ac_objext` in
1625
# Find out which ABI we are using.
1626
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1627
if AC_TRY_EVAL(ac_compile); then
1628
if test "$lt_cv_prog_gnu_ld" = yes; then
1629
case `/usr/bin/file conftest.$ac_objext` in
1631
LD="${LD-ld} -melf32bsmip"
1634
LD="${LD-ld} -melf32bmipn32"
1637
LD="${LD-ld} -melf64bmip"
1641
case `/usr/bin/file conftest.$ac_objext` in
1657
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1658
s390*-*linux*|sparc*-*linux*)
1659
# Find out which ABI we are using.
1660
echo 'int i;' > conftest.$ac_ext
1661
if AC_TRY_EVAL(ac_compile); then
1662
case `/usr/bin/file conftest.o` in
1665
x86_64-*kfreebsd*-gnu)
1666
LD="${LD-ld} -m elf_i386_fbsd"
1669
LD="${LD-ld} -m elf_i386"
1671
ppc64-*linux*|powerpc64-*linux*)
1672
LD="${LD-ld} -m elf32ppclinux"
1675
LD="${LD-ld} -m elf_s390"
1678
LD="${LD-ld} -m elf32_sparc"
1685
x86_64-*kfreebsd*-gnu)
1686
LD="${LD-ld} -m elf_x86_64_fbsd"
1689
LD="${LD-ld} -m elf_x86_64"
1691
ppc*-*linux*|powerpc*-*linux*)
1692
LD="${LD-ld} -m elf64ppc"
1695
LD="${LD-ld} -m elf64_s390"
1698
LD="${LD-ld} -m elf64_sparc"
1708
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1709
SAVE_CFLAGS="$CFLAGS"
1710
CFLAGS="$CFLAGS -belf"
1711
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1713
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1715
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1716
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1717
CFLAGS="$SAVE_CFLAGS"
1721
# Find out which ABI we are using.
1722
echo 'int i;' > conftest.$ac_ext
1723
if AC_TRY_EVAL(ac_compile); then
1724
case `/usr/bin/file conftest.o` in
1726
case $lt_cv_prog_gnu_ld in
1727
yes*) LD="${LD-ld} -m elf64_sparc" ;;
1729
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1740
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1741
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1742
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1743
AC_CHECK_TOOL(AS, as, false)
1744
AC_CHECK_TOOL(OBJDUMP, objdump, false)
1749
need_locks="$enable_libtool_lock"
1754
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1755
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1756
# ----------------------------------------------------------------
1757
# Check whether the given compiler option works
1758
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1759
[AC_REQUIRE([LT_AC_PROG_SED])
1760
AC_CACHE_CHECK([$1], [$2],
1762
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1763
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1764
lt_compiler_flag="$3"
1765
# Insert the option either (1) after the last *FLAGS variable, or
1766
# (2) before a word containing "conftest.", or (3) at the end.
1767
# Note that $ac_compile itself does not contain backslashes and begins
1768
# with a dollar sign (not a hyphen), so the echo should work correctly.
1769
# The option is referenced via a variable to avoid confusing sed.
1770
lt_compile=`echo "$ac_compile" | $SED \
1771
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1772
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1773
-e 's:$: $lt_compiler_flag:'`
1774
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1775
(eval "$lt_compile" 2>conftest.err)
1777
cat conftest.err >&AS_MESSAGE_LOG_FD
1778
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1779
if (exit $ac_status) && test -s "$ac_outfile"; then
1780
# The compiler can only warn and ignore the option if not recognized
1781
# So say no if there are warnings other than the usual output.
1782
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1783
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1784
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1791
if test x"[$]$2" = xyes; then
1792
ifelse([$5], , :, [$5])
1794
ifelse([$6], , :, [$6])
1796
])# AC_LIBTOOL_COMPILER_OPTION
1799
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1800
# [ACTION-SUCCESS], [ACTION-FAILURE])
1801
# ------------------------------------------------------------
1802
# Check whether the given compiler option works
1803
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1804
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1805
AC_CACHE_CHECK([$1], [$2],
1807
save_LDFLAGS="$LDFLAGS"
1808
LDFLAGS="$LDFLAGS $3"
1809
echo "$lt_simple_link_test_code" > conftest.$ac_ext
1810
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1811
# The linker can only warn and ignore the option if not recognized
1812
# So say no if there are warnings
1813
if test -s conftest.err; then
1814
# Append any errors to the config.log.
1815
cat conftest.err 1>&AS_MESSAGE_LOG_FD
1816
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1817
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1818
if diff conftest.exp conftest.er2 >/dev/null; then
1826
LDFLAGS="$save_LDFLAGS"
1829
if test x"[$]$2" = xyes; then
1830
ifelse([$4], , :, [$4])
1832
ifelse([$5], , :, [$5])
1834
])# AC_LIBTOOL_LINKER_OPTION
1837
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1838
# --------------------------
1839
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1840
[# find the maximum length of command line arguments
1841
AC_MSG_CHECKING([the maximum length of command line arguments])
1842
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1848
# On DJGPP, this test can blow up pretty badly due to problems in libc
1849
# (any single argument exceeding 2000 bytes causes a buffer overrun
1850
# during glob expansion). Even if it were fixed, the result of this
1851
# check would be larger than it should be.
1852
lt_cv_sys_max_cmd_len=12288; # 12K is about right
1856
# Under GNU Hurd, this test is not required because there is
1857
# no limit to the length of command line arguments.
1858
# Libtool will interpret -1 as no limit whatsoever
1859
lt_cv_sys_max_cmd_len=-1;
1863
# On Win9x/ME, this test blows up -- it succeeds, but takes
1864
# about 5 minutes as the teststring grows exponentially.
1865
# Worse, since 9x/ME are not pre-emptively multitasking,
1866
# you end up with a "frozen" computer, even though with patience
1867
# the test eventually succeeds (with a max line length of 256k).
1868
# Instead, let's just punt: use the minimum linelength reported by
1869
# all of the supported platforms: 8192 (on NT/2K/XP).
1870
lt_cv_sys_max_cmd_len=8192;
1874
# On AmigaOS with pdksh, this test takes hours, literally.
1875
# So we just punt and use a minimum line length of 8192.
1876
lt_cv_sys_max_cmd_len=8192;
1879
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1880
# This has been around since 386BSD, at least. Likely further.
1881
if test -x /sbin/sysctl; then
1882
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1883
elif test -x /usr/sbin/sysctl; then
1884
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1886
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1888
# And add a safety zone
1889
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1890
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1894
# We know the value 262144 and hardcode it with a safety zone (like BSD)
1895
lt_cv_sys_max_cmd_len=196608
1899
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1900
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1901
# nice to cause kernel panics so lets avoid the loop below.
1902
# First set a reasonable default.
1903
lt_cv_sys_max_cmd_len=16384
1905
if test -x /sbin/sysconfig; then
1906
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1907
*1*) lt_cv_sys_max_cmd_len=-1 ;;
1912
lt_cv_sys_max_cmd_len=102400
1914
sysv5* | sco5v6* | sysv4.2uw2*)
1915
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1916
if test -n "$kargmax"; then
1917
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1919
lt_cv_sys_max_cmd_len=32768
1923
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1924
if test -n "$lt_cv_sys_max_cmd_len"; then
1925
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1926
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1928
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1929
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1930
= "XX$teststring") >/dev/null 2>&1 &&
1931
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1932
lt_cv_sys_max_cmd_len=$new_result &&
1933
test $i != 17 # 1/2 MB should be enough
1936
teststring=$teststring$teststring
1939
# Add a significant safety factor because C++ compilers can tack on massive
1940
# amounts of additional arguments before passing them to the linker.
1941
# It appears as though 1/2 is a usable value.
1942
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1947
if test -n $lt_cv_sys_max_cmd_len ; then
1948
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1952
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1955
# _LT_AC_CHECK_DLFCN
1956
# ------------------
1957
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1958
[AC_CHECK_HEADERS(dlfcn.h)dnl
1959
])# _LT_AC_CHECK_DLFCN
1962
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1963
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1964
# ---------------------------------------------------------------------
1965
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1966
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1967
if test "$cross_compiling" = yes; then :
1970
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1971
lt_status=$lt_dlunknown
1972
cat > conftest.$ac_ext <<EOF
1973
[#line __oline__ "configure"
1974
#include "confdefs.h"
1983
# define LT_DLGLOBAL RTLD_GLOBAL
1986
# define LT_DLGLOBAL DL_GLOBAL
1988
# define LT_DLGLOBAL 0
1992
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1993
find out it does not work in some platform. */
1994
#ifndef LT_DLLAZY_OR_NOW
1996
# define LT_DLLAZY_OR_NOW RTLD_LAZY
1999
# define LT_DLLAZY_OR_NOW DL_LAZY
2002
# define LT_DLLAZY_OR_NOW RTLD_NOW
2005
# define LT_DLLAZY_OR_NOW DL_NOW
2007
# define LT_DLLAZY_OR_NOW 0
2015
extern "C" void exit (int);
2018
void fnord() { int i=42;}
2021
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2022
int status = $lt_dlunknown;
2026
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2027
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2028
/* dlclose (self); */
2036
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2037
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2040
x$lt_dlno_uscore) $1 ;;
2041
x$lt_dlneed_uscore) $2 ;;
2042
x$lt_dlunknown|x*) $3 ;;
2045
# compilation failed
2050
])# _LT_AC_TRY_DLOPEN_SELF
2053
# AC_LIBTOOL_DLOPEN_SELF
2054
# ----------------------
2055
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2056
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2057
if test "x$enable_dlopen" != xyes; then
2058
enable_dlopen=unknown
2059
enable_dlopen_self=unknown
2060
enable_dlopen_self_static=unknown
2067
lt_cv_dlopen="load_add_on"
2069
lt_cv_dlopen_self=yes
2073
lt_cv_dlopen="LoadLibrary"
2078
lt_cv_dlopen="dlopen"
2083
# if libdl is installed we need to link against it
2084
AC_CHECK_LIB([dl], [dlopen],
2085
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2088
lt_cv_dlopen_self=yes
2093
AC_CHECK_FUNC([shl_load],
2094
[lt_cv_dlopen="shl_load"],
2095
[AC_CHECK_LIB([dld], [shl_load],
2096
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2097
[AC_CHECK_FUNC([dlopen],
2098
[lt_cv_dlopen="dlopen"],
2099
[AC_CHECK_LIB([dl], [dlopen],
2100
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2101
[AC_CHECK_LIB([svld], [dlopen],
2102
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2103
[AC_CHECK_LIB([dld], [dld_link],
2104
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2113
if test "x$lt_cv_dlopen" != xno; then
2119
case $lt_cv_dlopen in
2121
save_CPPFLAGS="$CPPFLAGS"
2122
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2124
save_LDFLAGS="$LDFLAGS"
2125
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2128
LIBS="$lt_cv_dlopen_libs $LIBS"
2130
AC_CACHE_CHECK([whether a program can dlopen itself],
2131
lt_cv_dlopen_self, [dnl
2132
_LT_AC_TRY_DLOPEN_SELF(
2133
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2134
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2137
if test "x$lt_cv_dlopen_self" = xyes; then
2138
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2139
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2140
lt_cv_dlopen_self_static, [dnl
2141
_LT_AC_TRY_DLOPEN_SELF(
2142
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2143
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2147
CPPFLAGS="$save_CPPFLAGS"
2148
LDFLAGS="$save_LDFLAGS"
2153
case $lt_cv_dlopen_self in
2154
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2155
*) enable_dlopen_self=unknown ;;
2158
case $lt_cv_dlopen_self_static in
2159
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2160
*) enable_dlopen_self_static=unknown ;;
2163
])# AC_LIBTOOL_DLOPEN_SELF
2166
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2167
# ---------------------------------
2168
# Check to see if options -c and -o are simultaneously supported by compiler
2169
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2170
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2171
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2172
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2173
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2174
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2175
$rm -r conftest 2>/dev/null
2179
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2181
lt_compiler_flag="-o out/conftest2.$ac_objext"
2182
# Insert the option either (1) after the last *FLAGS variable, or
2183
# (2) before a word containing "conftest.", or (3) at the end.
2184
# Note that $ac_compile itself does not contain backslashes and begins
2185
# with a dollar sign (not a hyphen), so the echo should work correctly.
2186
lt_compile=`echo "$ac_compile" | $SED \
2187
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2188
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2189
-e 's:$: $lt_compiler_flag:'`
2190
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2191
(eval "$lt_compile" 2>out/conftest.err)
2193
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2194
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2195
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2197
# The compiler can only warn and ignore the option if not recognized
2198
# So say no if there are warnings
2199
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2200
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2201
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2202
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2205
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2207
# SGI C++ compiler will create directory out/ii_files/ for
2208
# template instantiation
2209
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2210
$rm out/* && rmdir out
2215
])# AC_LIBTOOL_PROG_CC_C_O
2218
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2219
# -----------------------------------------
2220
# Check to see if we can do hard links to lock some files if needed
2221
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2222
[AC_REQUIRE([_LT_AC_LOCK])dnl
2224
hard_links="nottested"
2225
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2226
# do not overwrite the value of need_locks provided by the user
2227
AC_MSG_CHECKING([if we can lock with hard links])
2230
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2232
ln conftest.a conftest.b 2>&5 || hard_links=no
2233
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2234
AC_MSG_RESULT([$hard_links])
2235
if test "$hard_links" = no; then
2236
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2242
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2247
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2248
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2249
[rm -f .libs 2>/dev/null
2250
mkdir .libs 2>/dev/null
2251
if test -d .libs; then
2254
# MS-DOS does not allow filenames that begin with a dot.
2257
rmdir .libs 2>/dev/null])
2258
objdir=$lt_cv_objdir
2259
])# AC_LIBTOOL_OBJDIR
2262
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2263
# ----------------------------------------------
2264
# Check hardcoding attributes.
2265
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2266
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2267
_LT_AC_TAGVAR(hardcode_action, $1)=
2268
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2269
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2270
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2272
# We can hardcode non-existant directories.
2273
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2274
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2275
# have to relink, otherwise we might link with an installed library
2276
# when we should be linking with a yet-to-be-installed one
2277
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2278
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2279
# Linking always hardcodes the temporary library directory.
2280
_LT_AC_TAGVAR(hardcode_action, $1)=relink
2282
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2283
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
2286
# We cannot hardcode anything, or else we can only hardcode existing
2288
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2290
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2292
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2293
# Fast installation is not supported
2294
enable_fast_install=no
2295
elif test "$shlibpath_overrides_runpath" = yes ||
2296
test "$enable_shared" = no; then
2297
# Fast installation is not necessary
2298
enable_fast_install=needless
2300
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2303
# AC_LIBTOOL_SYS_LIB_STRIP
2304
# ------------------------
2305
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2308
AC_MSG_CHECKING([whether stripping libraries is possible])
2309
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2310
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2311
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2312
AC_MSG_RESULT([yes])
2314
# FIXME - insert some real tests, host_os isn't really good enough
2317
if test -n "$STRIP" ; then
2318
striplib="$STRIP -x"
2319
old_striplib="$STRIP -S"
2320
AC_MSG_RESULT([yes])
2330
])# AC_LIBTOOL_SYS_LIB_STRIP
2333
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2334
# -----------------------------
2335
# PORTME Fill in your ld.so characteristics
2336
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2337
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2338
AC_MSG_CHECKING([dynamic linker characteristics])
2340
libname_spec='lib$name'
2348
shlibpath_overrides_runpath=unknown
2350
dynamic_linker="$host_os ld.so"
2351
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2353
if test "$GCC" = yes; then
2355
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2356
*) lt_awk_arg="/^libraries:/" ;;
2358
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2359
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2360
# if the path contains ";" then we assume it to be the separator
2361
# otherwise default to the standard path separator (i.e. ":") - it is
2362
# assumed that no part of a normal pathname contains ";" but that should
2363
# okay in the real world where ";" in dirpaths is itself problematic.
2364
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2366
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2368
# Ok, now we have the path, separated by spaces, we can step through it
2369
# and add multilib dir if necessary.
2370
lt_tmp_lt_search_path_spec=
2371
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2372
for lt_sys_path in $lt_search_path_spec; do
2373
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2374
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2376
test -d "$lt_sys_path" && \
2377
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2380
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2381
BEGIN {RS=" "; FS="/|\n";} {
2384
for (lt_i = NF; lt_i > 0; lt_i--) {
2385
if ($lt_i != "" && $lt_i != ".") {
2386
if ($lt_i == "..") {
2389
if (lt_count == 0) {
2390
lt_foo="/" $lt_i lt_foo;
2397
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2398
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2400
sys_lib_search_path_spec=`echo $lt_search_path_spec`
2402
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2404
need_lib_prefix=unknown
2405
hardcode_into_libs=no
2407
# when you set need_version to no, make sure it does not cause -set_version
2408
# flags to be left without arguments
2409
need_version=unknown
2414
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2415
shlibpath_var=LIBPATH
2417
# AIX 3 has no versioning support, so we append a major version to the name.
2418
soname_spec='${libname}${release}${shared_ext}$major'
2425
hardcode_into_libs=yes
2426
if test "$host_cpu" = ia64; then
2427
# AIX 5 supports IA64
2428
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2429
shlibpath_var=LD_LIBRARY_PATH
2431
# With GCC up to 2.95.x, collect2 would create an import file
2432
# for dependence libraries. The import file would start with
2433
# the line `#! .'. This would cause the generated library to
2434
# depend on `.', always an invalid library. This was fixed in
2435
# development snapshots of GCC prior to 3.0.
2437
aix4 | aix4.[[01]] | aix4.[[01]].*)
2438
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2440
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2447
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2448
# soname into executable. Probably we can add versioning support to
2449
# collect2, so additional links can be useful in future.
2450
if test "$aix_use_runtimelinking" = yes; then
2451
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2452
# instead of lib<name>.a to let people know that these are not
2453
# typical AIX shared libraries.
2454
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2456
# We preserve .a as extension for shared libraries through AIX4.2
2457
# and later when we are not doing run time linking.
2458
library_names_spec='${libname}${release}.a $libname.a'
2459
soname_spec='${libname}${release}${shared_ext}$major'
2461
shlibpath_var=LIBPATH
2466
library_names_spec='$libname.ixlibrary $libname.a'
2467
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2468
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2472
library_names_spec='${libname}${shared_ext}'
2473
dynamic_linker="$host_os ld.so"
2474
shlibpath_var=LIBRARY_PATH
2480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2481
soname_spec='${libname}${release}${shared_ext}$major'
2482
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2483
shlibpath_var=LD_LIBRARY_PATH
2484
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2485
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2486
# the default ld.so.conf also contains /usr/contrib/lib and
2487
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2488
# libtool to hard-code these into programs
2491
cygwin* | mingw* | pw32*)
2492
version_type=windows
2497
case $GCC,$host_os in
2498
yes,cygwin* | yes,mingw* | yes,pw32*)
2499
library_names_spec='$libname.dll.a'
2500
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2501
postinstall_cmds='base_file=`basename \${file}`~
2502
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2503
dldir=$destdir/`dirname \$dlpath`~
2504
test -d \$dldir || mkdir -p \$dldir~
2505
$install_prog $dir/$dlname \$dldir/$dlname~
2506
chmod a+x \$dldir/$dlname'
2507
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2508
dlpath=$dir/\$dldll~
2510
shlibpath_overrides_runpath=yes
2514
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2515
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2516
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2519
# MinGW DLLs use traditional 'lib' prefix
2520
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2521
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2522
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2523
# It is most probably a Windows format PATH printed by
2524
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2525
# path with ; separators, and with drive letters. We can handle the
2526
# drive letters (cygwin fileutils understands them), so leave them,
2527
# especially as we might pass files found there to a mingw objdump,
2528
# which wouldn't understand a cygwinified path. Ahh.
2529
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2531
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2535
# pw32 DLLs use 'pw' prefix rather than 'lib'
2536
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2542
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2545
dynamic_linker='Win32 ld.exe'
2546
# FIXME: first we should search . and the directory the executable is in
2550
darwin* | rhapsody*)
2551
dynamic_linker="$host_os dyld"
2555
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2556
soname_spec='${libname}${release}${major}$shared_ext'
2557
shlibpath_overrides_runpath=yes
2558
shlibpath_var=DYLD_LIBRARY_PATH
2559
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2561
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2562
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2570
soname_spec='${libname}${release}${shared_ext}$major'
2571
shlibpath_var=LD_LIBRARY_PATH
2578
freebsd* | dragonfly*)
2579
# DragonFly does not have aout. When/if they implement a new
2580
# versioning mechanism, adjust this.
2581
if test -x /usr/bin/objformat; then
2582
objformat=`/usr/bin/objformat`
2585
freebsd[[123]]*) objformat=aout ;;
2589
version_type=freebsd-$objformat
2590
case $version_type in
2592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2597
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2601
shlibpath_var=LD_LIBRARY_PATH
2604
shlibpath_overrides_runpath=yes
2606
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2607
shlibpath_overrides_runpath=yes
2608
hardcode_into_libs=yes
2610
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2611
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2612
shlibpath_overrides_runpath=no
2613
hardcode_into_libs=yes
2615
*) # from 4.6 on, and DragonFly
2616
shlibpath_overrides_runpath=yes
2617
hardcode_into_libs=yes
2626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2627
soname_spec='${libname}${release}${shared_ext}$major'
2628
shlibpath_var=LD_LIBRARY_PATH
2629
hardcode_into_libs=yes
2632
hpux9* | hpux10* | hpux11*)
2633
# Give a soname corresponding to the major version so that dld.sl refuses to
2634
# link against other versions.
2641
hardcode_into_libs=yes
2642
dynamic_linker="$host_os dld.so"
2643
shlibpath_var=LD_LIBRARY_PATH
2644
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2646
soname_spec='${libname}${release}${shared_ext}$major'
2647
if test "X$HPUX_IA64_MODE" = X32; then
2648
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2650
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2652
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2656
hardcode_into_libs=yes
2657
dynamic_linker="$host_os dld.sl"
2658
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2659
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2661
soname_spec='${libname}${release}${shared_ext}$major'
2662
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2663
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2667
dynamic_linker="$host_os dld.sl"
2668
shlibpath_var=SHLIB_PATH
2669
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2671
soname_spec='${libname}${release}${shared_ext}$major'
2674
# HP-UX runs *really* slowly unless shared libraries are mode 555.
2675
postinstall_cmds='chmod 555 $lib'
2682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2683
soname_spec='${libname}${release}${shared_ext}$major'
2684
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2685
shlibpath_var=LD_LIBRARY_PATH
2686
shlibpath_overrides_runpath=no
2687
hardcode_into_libs=yes
2690
irix5* | irix6* | nonstopux*)
2692
nonstopux*) version_type=nonstopux ;;
2694
if test "$lt_cv_prog_gnu_ld" = yes; then
2702
soname_spec='${libname}${release}${shared_ext}$major'
2703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2705
irix5* | nonstopux*)
2709
case $LD in # libtool.m4 will add one of these switches to LD
2710
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2711
libsuff= shlibsuff= libmagic=32-bit;;
2712
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2713
libsuff=32 shlibsuff=N32 libmagic=N32;;
2714
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2715
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2716
*) libsuff= shlibsuff= libmagic=never-match;;
2720
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2721
shlibpath_overrides_runpath=no
2722
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2723
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2724
hardcode_into_libs=yes
2727
# No shared lib support for Linux oldld, aout, or coff.
2728
linux*oldld* | linux*aout* | linux*coff*)
2732
# This must be Linux ELF.
2733
linux* | k*bsd*-gnu)
2737
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2738
soname_spec='${libname}${release}${shared_ext}$major'
2739
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2740
shlibpath_var=LD_LIBRARY_PATH
2741
shlibpath_overrides_runpath=no
2742
# This implies no fast_install, which is unacceptable.
2743
# Some rework will be needed to allow for fast_install
2744
# before this can be enabled.
2745
hardcode_into_libs=yes
2746
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2747
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2749
# Append ld.so.conf contents to the search path
2750
if test -f /etc/ld.so.conf; then
2751
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2752
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2755
# We used to test for /lib/ld.so.1 and disable shared libraries on
2756
# powerpc, because MkLinux only supported shared libraries with the
2757
# GNU dynamic linker. Since this was broken with cross compilers,
2758
# most powerpc-linux boxes support dynamic linking these days and
2759
# people can always --disable-shared, the test was removed, and we
2760
# assume the GNU/Linux dynamic linker is in use.
2761
dynamic_linker='GNU/Linux ld.so'
2768
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2770
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2771
dynamic_linker='NetBSD (a.out) ld.so'
2773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2774
soname_spec='${libname}${release}${shared_ext}$major'
2775
dynamic_linker='NetBSD ld.elf_so'
2777
shlibpath_var=LD_LIBRARY_PATH
2778
shlibpath_overrides_runpath=yes
2779
hardcode_into_libs=yes
2784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2785
shlibpath_var=LD_LIBRARY_PATH
2786
shlibpath_overrides_runpath=yes
2793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2794
soname_spec='${libname}${release}${shared_ext}$major'
2795
shlibpath_var=LD_LIBRARY_PATH
2796
shlibpath_overrides_runpath=yes
2801
sys_lib_dlsearch_path_spec="/usr/lib"
2803
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2805
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2806
*) need_version=no ;;
2808
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2809
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2810
shlibpath_var=LD_LIBRARY_PATH
2811
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2813
openbsd2.[[89]] | openbsd2.[[89]].*)
2814
shlibpath_overrides_runpath=no
2817
shlibpath_overrides_runpath=yes
2821
shlibpath_overrides_runpath=yes
2826
libname_spec='$name'
2829
library_names_spec='$libname${shared_ext} $libname.a'
2830
dynamic_linker='OS/2 ld.exe'
2831
shlibpath_var=LIBPATH
2834
osf3* | osf4* | osf5*)
2838
soname_spec='${libname}${release}${shared_ext}$major'
2839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2840
shlibpath_var=LD_LIBRARY_PATH
2841
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2842
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2853
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2854
soname_spec='${libname}${release}${shared_ext}$major'
2855
shlibpath_var=LD_LIBRARY_PATH
2856
shlibpath_overrides_runpath=yes
2857
hardcode_into_libs=yes
2858
# ldd complains unless libraries are executable
2859
postinstall_cmds='chmod +x $lib'
2864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2865
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2866
shlibpath_var=LD_LIBRARY_PATH
2867
shlibpath_overrides_runpath=yes
2868
if test "$with_gnu_ld" = yes; then
2876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2877
soname_spec='${libname}${release}${shared_ext}$major'
2878
shlibpath_var=LD_LIBRARY_PATH
2879
case $host_vendor in
2881
shlibpath_overrides_runpath=no
2883
export_dynamic_flag_spec='${wl}-Blargedynsym'
2884
runpath_var=LD_RUN_PATH
2892
shlibpath_overrides_runpath=no
2893
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2899
if test -d /usr/nec ;then
2901
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2902
soname_spec='$libname${shared_ext}.$major'
2903
shlibpath_var=LD_LIBRARY_PATH
2907
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2908
version_type=freebsd-elf
2911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2912
soname_spec='${libname}${release}${shared_ext}$major'
2913
shlibpath_var=LD_LIBRARY_PATH
2914
hardcode_into_libs=yes
2915
if test "$with_gnu_ld" = yes; then
2916
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2917
shlibpath_overrides_runpath=no
2919
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2920
shlibpath_overrides_runpath=yes
2923
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2927
sys_lib_dlsearch_path_spec='/usr/lib'
2932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2933
soname_spec='${libname}${release}${shared_ext}$major'
2934
shlibpath_var=LD_LIBRARY_PATH
2941
AC_MSG_RESULT([$dynamic_linker])
2942
test "$dynamic_linker" = no && can_build_shared=no
2944
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2945
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2946
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2947
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2948
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2949
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2951
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2952
if test "$GCC" = yes; then
2953
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2955
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2960
AC_DEFUN([_LT_AC_TAGCONFIG],
2961
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2963
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2964
[include additional configurations @<:@automatic@:>@])],
2965
[tagnames="$withval"])
2967
if test -f "$ltmain" && test -n "$tagnames"; then
2968
if test ! -f "${ofile}"; then
2969
AC_MSG_WARN([output file `$ofile' does not exist])
2972
if test -z "$LTCC"; then
2973
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2974
if test -z "$LTCC"; then
2975
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2977
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2980
if test -z "$LTCFLAGS"; then
2981
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2984
# Extract list of available tagged configurations in $ofile.
2985
# Note that this assumes the entire list is on one line.
2986
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2988
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2989
for tagname in $tagnames; do
2991
# Check whether tagname contains only valid characters
2992
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2994
*) AC_MSG_ERROR([invalid tag name: $tagname])
2998
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3000
AC_MSG_ERROR([tag name \"$tagname\" already exists])
3003
# Update the list of available tags.
3004
if test -n "$tagname"; then
3005
echo appending configuration tag \"$tagname\" to $ofile
3009
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3010
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3011
(test "X$CXX" != "Xg++"))) ; then
3012
AC_LIBTOOL_LANG_CXX_CONFIG
3019
if test -n "$F77" && test "X$F77" != "Xno"; then
3020
AC_LIBTOOL_LANG_F77_CONFIG
3027
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3028
AC_LIBTOOL_LANG_GCJ_CONFIG
3035
AC_LIBTOOL_LANG_RC_CONFIG
3039
AC_MSG_ERROR([Unsupported tag name: $tagname])
3043
# Append the new tag name to the list of available tags.
3044
if test -n "$tagname" ; then
3045
available_tags="$available_tags $tagname"
3051
# Now substitute the updated list of available tags.
3052
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3053
mv "${ofile}T" "$ofile"
3057
AC_MSG_ERROR([unable to update list of available tagged configurations.])
3060
])# _LT_AC_TAGCONFIG
3065
# enable checks for dlopen support
3066
AC_DEFUN([AC_LIBTOOL_DLOPEN],
3067
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3068
])# AC_LIBTOOL_DLOPEN
3071
# AC_LIBTOOL_WIN32_DLL
3072
# --------------------
3073
# declare package support for building win32 DLLs
3074
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3075
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3076
])# AC_LIBTOOL_WIN32_DLL
3079
# AC_ENABLE_SHARED([DEFAULT])
3080
# ---------------------------
3081
# implement the --enable-shared flag
3082
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3083
AC_DEFUN([AC_ENABLE_SHARED],
3084
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3085
AC_ARG_ENABLE([shared],
3086
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3087
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3088
[p=${PACKAGE-default}
3090
yes) enable_shared=yes ;;
3091
no) enable_shared=no ;;
3094
# Look at the argument we got. We use all the common list separators.
3095
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3096
for pkg in $enableval; do
3098
if test "X$pkg" = "X$p"; then
3105
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3106
])# AC_ENABLE_SHARED
3111
# set the default shared flag to --disable-shared
3112
AC_DEFUN([AC_DISABLE_SHARED],
3113
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3114
AC_ENABLE_SHARED(no)
3115
])# AC_DISABLE_SHARED
3118
# AC_ENABLE_STATIC([DEFAULT])
3119
# ---------------------------
3120
# implement the --enable-static flag
3121
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3122
AC_DEFUN([AC_ENABLE_STATIC],
3123
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3124
AC_ARG_ENABLE([static],
3125
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3126
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3127
[p=${PACKAGE-default}
3129
yes) enable_static=yes ;;
3130
no) enable_static=no ;;
3133
# Look at the argument we got. We use all the common list separators.
3134
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3135
for pkg in $enableval; do
3137
if test "X$pkg" = "X$p"; then
3144
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
3145
])# AC_ENABLE_STATIC
3150
# set the default static flag to --disable-static
3151
AC_DEFUN([AC_DISABLE_STATIC],
3152
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3153
AC_ENABLE_STATIC(no)
3154
])# AC_DISABLE_STATIC
3157
# AC_ENABLE_FAST_INSTALL([DEFAULT])
3158
# ---------------------------------
3159
# implement the --enable-fast-install flag
3160
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3161
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3162
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3163
AC_ARG_ENABLE([fast-install],
3164
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3165
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3166
[p=${PACKAGE-default}
3168
yes) enable_fast_install=yes ;;
3169
no) enable_fast_install=no ;;
3171
enable_fast_install=no
3172
# Look at the argument we got. We use all the common list separators.
3173
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3174
for pkg in $enableval; do
3176
if test "X$pkg" = "X$p"; then
3177
enable_fast_install=yes
3183
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3184
])# AC_ENABLE_FAST_INSTALL
3187
# AC_DISABLE_FAST_INSTALL
3188
# -----------------------
3189
# set the default to --disable-fast-install
3190
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3191
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3192
AC_ENABLE_FAST_INSTALL(no)
3193
])# AC_DISABLE_FAST_INSTALL
3196
# AC_LIBTOOL_PICMODE([MODE])
3197
# --------------------------
3198
# implement the --with-pic flag
3199
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3200
AC_DEFUN([AC_LIBTOOL_PICMODE],
3201
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3202
pic_mode=ifelse($#,1,$1,default)
3203
])# AC_LIBTOOL_PICMODE
3208
# This is predefined starting with Autoconf 2.54, so this conditional
3209
# definition can be removed once we require Autoconf 2.54 or later.
3210
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3211
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3212
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3213
then ac_cv_prog_egrep='grep -E'
3214
else ac_cv_prog_egrep='egrep'
3216
EGREP=$ac_cv_prog_egrep
3221
# AC_PATH_TOOL_PREFIX
3222
# -------------------
3223
# find a file program which can recognize shared library
3224
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3225
[AC_REQUIRE([AC_PROG_EGREP])dnl
3226
AC_MSG_CHECKING([for $1])
3227
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3229
[[\\/*] | ?:[\\/]*])
3230
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3233
lt_save_MAGIC_CMD="$MAGIC_CMD"
3234
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3235
dnl $ac_dummy forces splitting on constant user-supplied paths.
3236
dnl POSIX.2 word splitting is done only on the output of word expansions,
3237
dnl not every word. This closes a longstanding sh security hole.
3238
ac_dummy="ifelse([$2], , $PATH, [$2])"
3239
for ac_dir in $ac_dummy; do
3241
test -z "$ac_dir" && ac_dir=.
3242
if test -f $ac_dir/$1; then
3243
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3244
if test -n "$file_magic_test_file"; then
3245
case $deplibs_check_method in
3247
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3248
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3249
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3250
$EGREP "$file_magic_regex" > /dev/null; then
3255
*** Warning: the command libtool uses to detect shared libraries,
3256
*** $file_magic_cmd, produces output that libtool cannot recognize.
3257
*** The result is that libtool may fail to recognize shared libraries
3258
*** as such. This will affect the creation of libtool libraries that
3259
*** depend on shared libraries, but programs linked with such libtool
3260
*** libraries will work regardless of this problem. Nevertheless, you
3261
*** may want to report the problem to your system manager and/or to
3262
*** bug-libtool@gnu.org
3272
MAGIC_CMD="$lt_save_MAGIC_CMD"
3275
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3276
if test -n "$MAGIC_CMD"; then
3277
AC_MSG_RESULT($MAGIC_CMD)
3281
])# AC_PATH_TOOL_PREFIX
3286
# find a file program which can recognize a shared library
3287
AC_DEFUN([AC_PATH_MAGIC],
3288
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3289
if test -z "$lt_cv_path_MAGIC_CMD"; then
3290
if test -n "$ac_tool_prefix"; then
3291
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3301
# find the pathname to the GNU or non-GNU linker
3302
AC_DEFUN([AC_PROG_LD],
3303
[AC_ARG_WITH([gnu-ld],
3304
[AC_HELP_STRING([--with-gnu-ld],
3305
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3306
[test "$withval" = no || with_gnu_ld=yes],
3308
AC_REQUIRE([LT_AC_PROG_SED])dnl
3309
AC_REQUIRE([AC_PROG_CC])dnl
3310
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3311
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3313
if test "$GCC" = yes; then
3314
# Check if gcc -print-prog-name=ld gives a path.
3315
AC_MSG_CHECKING([for ld used by $CC])
3318
# gcc leaves a trailing carriage return which upsets mingw
3319
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3321
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324
# Accept absolute paths.
3325
[[\\/]]* | ?:[[\\/]]*)
3326
re_direlt='/[[^/]][[^/]]*/\.\./'
3327
# Canonicalize the pathname of ld
3328
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3329
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3330
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3332
test -z "$LD" && LD="$ac_prog"
3335
# If it fails, then pretend we aren't using GCC.
3339
# If it is relative, then search for the first ld in PATH.
3343
elif test "$with_gnu_ld" = yes; then
3344
AC_MSG_CHECKING([for GNU ld])
3346
AC_MSG_CHECKING([for non-GNU ld])
3348
AC_CACHE_VAL(lt_cv_path_LD,
3349
[if test -z "$LD"; then
3350
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3351
for ac_dir in $PATH; do
3353
test -z "$ac_dir" && ac_dir=.
3354
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3355
lt_cv_path_LD="$ac_dir/$ac_prog"
3356
# Check to see if the program is GNU ld. I'd rather use --version,
3357
# but apparently some variants of GNU ld only accept -v.
3358
# Break only if it was the GNU/non-GNU ld that we prefer.
3359
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3360
*GNU* | *'with BFD'*)
3361
test "$with_gnu_ld" != no && break
3364
test "$with_gnu_ld" != yes && break
3371
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3374
if test -n "$LD"; then
3379
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3386
AC_DEFUN([AC_PROG_LD_GNU],
3387
[AC_REQUIRE([AC_PROG_EGREP])dnl
3388
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3389
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3390
case `$LD -v 2>&1 </dev/null` in
3391
*GNU* | *'with BFD'*)
3392
lt_cv_prog_gnu_ld=yes
3395
lt_cv_prog_gnu_ld=no
3398
with_gnu_ld=$lt_cv_prog_gnu_ld
3402
# AC_PROG_LD_RELOAD_FLAG
3403
# ----------------------
3404
# find reload flag for linker
3405
# -- PORTME Some linkers may need a different reload flag.
3406
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3407
[AC_CACHE_CHECK([for $LD option to reload object files],
3408
lt_cv_ld_reload_flag,
3409
[lt_cv_ld_reload_flag='-r'])
3410
reload_flag=$lt_cv_ld_reload_flag
3411
case $reload_flag in
3413
*) reload_flag=" $reload_flag" ;;
3415
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3418
if test "$GCC" = yes; then
3419
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3421
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3425
])# AC_PROG_LD_RELOAD_FLAG
3428
# AC_DEPLIBS_CHECK_METHOD
3429
# -----------------------
3430
# how to check for library dependencies
3431
# -- PORTME fill in with the dynamic library characteristics
3432
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3433
[AC_CACHE_CHECK([how to recognize dependent libraries],
3434
lt_cv_deplibs_check_method,
3435
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3436
lt_cv_file_magic_test_file=
3437
lt_cv_deplibs_check_method='unknown'
3438
# Need to set the preceding variable on all platforms that support
3439
# interlibrary dependencies.
3440
# 'none' -- dependencies not supported.
3441
# `unknown' -- same as none, but documents that we really don't know.
3442
# 'pass_all' -- all dependencies passed with no checks.
3443
# 'test_compile' -- check by making test program.
3444
# 'file_magic [[regex]]' -- check by looking for files in library path
3445
# which responds to the $file_magic_cmd with a given extended regex.
3446
# If you have `file' or equivalent on your system and you're not sure
3447
# whether `pass_all' will *always* work, you probably want this one.
3451
lt_cv_deplibs_check_method=pass_all
3455
lt_cv_deplibs_check_method=pass_all
3459
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3460
lt_cv_file_magic_cmd='/usr/bin/file -L'
3461
lt_cv_file_magic_test_file=/shlib/libc.so
3465
# func_win32_libid is a shell function defined in ltmain.sh
3466
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3467
lt_cv_file_magic_cmd='func_win32_libid'
3471
# Base MSYS/MinGW do not provide the 'file' command needed by
3472
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3473
# unless we find 'file', for example because we are cross-compiling.
3474
if ( file / ) >/dev/null 2>&1; then
3475
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3476
lt_cv_file_magic_cmd='func_win32_libid'
3478
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3479
lt_cv_file_magic_cmd='$OBJDUMP -f'
3483
darwin* | rhapsody*)
3484
lt_cv_deplibs_check_method=pass_all
3487
freebsd* | dragonfly*)
3488
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3491
# Not sure whether the presence of OpenBSD here was a mistake.
3492
# Let's accept both of them until this is cleared up.
3493
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3494
lt_cv_file_magic_cmd=/usr/bin/file
3495
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3499
lt_cv_deplibs_check_method=pass_all
3504
lt_cv_deplibs_check_method=pass_all
3507
hpux10.20* | hpux11*)
3508
lt_cv_file_magic_cmd=/usr/bin/file
3511
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3512
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3515
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3516
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3519
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3520
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3526
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3527
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3530
irix5* | irix6* | nonstopux*)
3532
*-32|*"-32 ") libmagic=32-bit;;
3533
*-n32|*"-n32 ") libmagic=N32;;
3534
*-64|*"-64 ") libmagic=64-bit;;
3535
*) libmagic=never-match;;
3537
lt_cv_deplibs_check_method=pass_all
3540
# This must be Linux ELF.
3541
linux* | k*bsd*-gnu)
3542
lt_cv_deplibs_check_method=pass_all
3546
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3547
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3549
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3554
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3555
lt_cv_file_magic_cmd=/usr/bin/file
3556
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3560
lt_cv_deplibs_check_method=unknown
3564
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3565
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3567
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3571
osf3* | osf4* | osf5*)
3572
lt_cv_deplibs_check_method=pass_all
3576
lt_cv_deplibs_check_method=pass_all
3580
lt_cv_deplibs_check_method=pass_all
3584
case $host_vendor in
3586
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3587
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3590
lt_cv_deplibs_check_method=pass_all
3593
lt_cv_file_magic_cmd='/bin/file'
3594
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3597
lt_cv_file_magic_cmd='/bin/file'
3598
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3599
lt_cv_file_magic_test_file=/lib/libc.so
3602
lt_cv_deplibs_check_method=pass_all
3605
lt_cv_deplibs_check_method=pass_all
3610
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3611
lt_cv_deplibs_check_method=pass_all
3615
file_magic_cmd=$lt_cv_file_magic_cmd
3616
deplibs_check_method=$lt_cv_deplibs_check_method
3617
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3618
])# AC_DEPLIBS_CHECK_METHOD
3623
# find the pathname to a BSD-compatible name lister
3624
AC_DEFUN([AC_PROG_NM],
3625
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3626
[if test -n "$NM"; then
3627
# Let the user override the test.
3630
lt_nm_to_check="${ac_tool_prefix}nm"
3631
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3632
lt_nm_to_check="$lt_nm_to_check nm"
3634
for lt_tmp_nm in $lt_nm_to_check; do
3635
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3636
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3638
test -z "$ac_dir" && ac_dir=.
3639
tmp_nm="$ac_dir/$lt_tmp_nm"
3640
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3641
# Check to see if the nm accepts a BSD-compat flag.
3642
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3643
# nm: unknown option "B" ignored
3644
# Tru64's nm complains that /dev/null is an invalid object file
3645
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3646
*/dev/null* | *'Invalid file or object type'*)
3647
lt_cv_path_NM="$tmp_nm -B"
3651
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3653
lt_cv_path_NM="$tmp_nm -p"
3657
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3658
continue # so that we can try to find one that supports BSD flags
3667
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3675
# check for math library
3676
AC_DEFUN([AC_CHECK_LIBM],
3677
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3680
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3681
# These system don't have libm, or don't need it
3684
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3685
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3688
AC_CHECK_LIB(m, cos, LIBM="-lm")
3694
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3695
# -----------------------------------
3696
# sets LIBLTDL to the link flags for the libltdl convenience library and
3697
# LTDLINCL to the include flags for the libltdl header and adds
3698
# --enable-ltdl-convenience to the configure arguments. Note that
3699
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3700
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3701
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3702
# (note the single quotes!). If your package is not flat and you're not
3703
# using automake, define top_builddir and top_srcdir appropriately in
3705
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3706
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3707
case $enable_ltdl_convenience in
3708
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3709
"") enable_ltdl_convenience=yes
3710
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3712
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3713
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3714
# For backwards non-gettext consistent compatibility...
3716
])# AC_LIBLTDL_CONVENIENCE
3719
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3720
# -----------------------------------
3721
# sets LIBLTDL to the link flags for the libltdl installable library and
3722
# LTDLINCL to the include flags for the libltdl header and adds
3723
# --enable-ltdl-install to the configure arguments. Note that
3724
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3725
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3726
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3727
# '${top_srcdir}/' (note the single quotes!). If your package is not
3728
# flat and you're not using automake, define top_builddir and top_srcdir
3729
# appropriately in the Makefiles.
3730
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3731
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3732
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3733
AC_CHECK_LIB(ltdl, lt_dlinit,
3734
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3735
[if test x"$enable_ltdl_install" = xno; then
3736
AC_MSG_WARN([libltdl not installed, but installation disabled])
3738
enable_ltdl_install=yes
3741
if test x"$enable_ltdl_install" = x"yes"; then
3742
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3743
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3744
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3746
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3750
# For backwards non-gettext consistent compatibility...
3752
])# AC_LIBLTDL_INSTALLABLE
3757
# enable support for C++ libraries
3758
AC_DEFUN([AC_LIBTOOL_CXX],
3759
[AC_REQUIRE([_LT_AC_LANG_CXX])
3765
AC_DEFUN([_LT_AC_LANG_CXX],
3766
[AC_REQUIRE([AC_PROG_CXX])
3767
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3768
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3771
# _LT_AC_PROG_CXXCPP
3772
# ------------------
3773
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3775
AC_REQUIRE([AC_PROG_CXX])
3776
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3777
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3778
(test "X$CXX" != "Xg++"))) ; then
3781
])# _LT_AC_PROG_CXXCPP
3785
# enable support for Fortran 77 libraries
3786
AC_DEFUN([AC_LIBTOOL_F77],
3787
[AC_REQUIRE([_LT_AC_LANG_F77])
3793
AC_DEFUN([_LT_AC_LANG_F77],
3794
[AC_REQUIRE([AC_PROG_F77])
3795
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3801
# enable support for GCJ libraries
3802
AC_DEFUN([AC_LIBTOOL_GCJ],
3803
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3809
AC_DEFUN([_LT_AC_LANG_GCJ],
3810
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3811
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3812
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3813
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3814
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3815
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3816
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3822
# enable support for Windows resource files
3823
AC_DEFUN([AC_LIBTOOL_RC],
3824
[AC_REQUIRE([LT_AC_PROG_RC])
3825
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3829
# AC_LIBTOOL_LANG_C_CONFIG
3830
# ------------------------
3831
# Ensure that the configuration vars for the C compiler are
3832
# suitably defined. Those variables are subsequently used by
3833
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3834
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3835
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3839
# Source file extension for C test sources.
3842
# Object file extension for compiled C test sources.
3844
_LT_AC_TAGVAR(objext, $1)=$objext
3846
# Code to be used in simple compile tests
3847
lt_simple_compile_test_code="int some_variable = 0;"
3849
# Code to be used in simple link tests
3850
lt_simple_link_test_code='int main(){return(0);}'
3854
# save warnings/boilerplate of simple test code
3855
_LT_COMPILER_BOILERPLATE
3856
_LT_LINKER_BOILERPLATE
3858
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3859
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3860
AC_LIBTOOL_PROG_CC_C_O($1)
3861
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3862
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3863
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3864
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3865
AC_LIBTOOL_SYS_LIB_STRIP
3866
AC_LIBTOOL_DLOPEN_SELF
3868
# Report which library types will actually be built
3869
AC_MSG_CHECKING([if libtool supports shared libraries])
3870
AC_MSG_RESULT([$can_build_shared])
3872
AC_MSG_CHECKING([whether to build shared libraries])
3873
test "$can_build_shared" = "no" && enable_shared=no
3875
# On AIX, shared libraries and static libraries use the same namespace, and
3876
# are all built from PIC.
3879
test "$enable_shared" = yes && enable_static=no
3880
if test -n "$RANLIB"; then
3881
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3882
postinstall_cmds='$RANLIB $lib'
3887
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3888
test "$enable_shared" = yes && enable_static=no
3892
AC_MSG_RESULT([$enable_shared])
3894
AC_MSG_CHECKING([whether to build static libraries])
3895
# Make sure either enable_shared or enable_static is yes.
3896
test "$enable_shared" = yes || enable_static=yes
3897
AC_MSG_RESULT([$enable_static])
3899
AC_LIBTOOL_CONFIG($1)
3903
])# AC_LIBTOOL_LANG_C_CONFIG
3906
# AC_LIBTOOL_LANG_CXX_CONFIG
3907
# --------------------------
3908
# Ensure that the configuration vars for the C compiler are
3909
# suitably defined. Those variables are subsequently used by
3910
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3911
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3912
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3914
AC_REQUIRE([AC_PROG_CXX])
3915
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3917
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3918
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3919
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3920
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3921
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3922
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3923
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3924
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3925
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3926
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3927
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3928
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3929
_LT_AC_TAGVAR(module_cmds, $1)=
3930
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3931
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3932
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3933
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3934
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3935
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3937
# Dependencies to place before and after the object being linked:
3938
_LT_AC_TAGVAR(predep_objects, $1)=
3939
_LT_AC_TAGVAR(postdep_objects, $1)=
3940
_LT_AC_TAGVAR(predeps, $1)=
3941
_LT_AC_TAGVAR(postdeps, $1)=
3942
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3943
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3945
# Source file extension for C++ test sources.
3948
# Object file extension for compiled C++ test sources.
3950
_LT_AC_TAGVAR(objext, $1)=$objext
3952
# Code to be used in simple compile tests
3953
lt_simple_compile_test_code="int some_variable = 0;"
3955
# Code to be used in simple link tests
3956
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3958
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3961
# save warnings/boilerplate of simple test code
3962
_LT_COMPILER_BOILERPLATE
3963
_LT_LINKER_BOILERPLATE
3965
# Allow CC to be a program name with arguments.
3970
lt_save_with_gnu_ld=$with_gnu_ld
3971
lt_save_path_LD=$lt_cv_path_LD
3972
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3973
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3975
$as_unset lt_cv_prog_gnu_ld
3977
if test -n "${lt_cv_path_LDCXX+set}"; then
3978
lt_cv_path_LD=$lt_cv_path_LDCXX
3980
$as_unset lt_cv_path_LD
3982
test -z "${LDCXX+set}" || LD=$LDCXX
3985
_LT_AC_TAGVAR(compiler, $1)=$CC
3986
_LT_CC_BASENAME([$compiler])
3988
# We don't want -fno-exception wen compiling C++ code, so set the
3989
# no_builtin_flag separately
3990
if test "$GXX" = yes; then
3991
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3993
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3996
if test "$GXX" = yes; then
3997
# Set up default GNU C++ configuration
4001
# Check if GNU C++ uses GNU ld as the underlying linker, since the
4002
# archiving commands below assume that GNU ld is being used.
4003
if test "$with_gnu_ld" = yes; then
4004
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4005
_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'
4007
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4008
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4010
# If archive_cmds runs LD, not CC, wlarc should be empty
4011
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4012
# investigate it a little bit more. (MM)
4015
# ancient GNU ld didn't support --whole-archive et. al.
4016
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4017
grep 'no-whole-archive' > /dev/null; then
4018
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4020
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4026
# A generic and very simple default shared library creation
4027
# command for GNU C++ for the case where it uses the native
4028
# linker, instead of GNU ld. If possible, this setting should
4029
# overridden to take advantage of the native linker features on
4030
# the platform it is being used on.
4031
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4034
# Commands to make compiler produce verbose output that lists
4035
# what "hidden" libraries, object files and flags are used when
4036
# linking a shared library.
4037
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4045
# PORTME: fill in a description of your system's C++ link characteristics
4046
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4047
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4050
# FIXME: insert proper C++ library support
4051
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4054
if test "$host_cpu" = ia64; then
4055
# On IA64, the linker does run time linking by default, so we don't
4056
# have to do anything special.
4057
aix_use_runtimelinking=no
4058
exp_sym_flag='-Bexport'
4061
aix_use_runtimelinking=no
4063
# Test if we are trying to use run time linking or normal
4064
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4065
# need to do runtime linking.
4066
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4067
for ld_flag in $LDFLAGS; do
4070
aix_use_runtimelinking=yes
4078
exp_sym_flag='-bexport'
4079
no_entry_flag='-bnoentry'
4082
# When large executables or shared objects are built, AIX ld can
4083
# have problems creating the table of contents. If linking a library
4084
# or program results in "error TOC overflow" add -mminimal-toc to
4085
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4086
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4088
_LT_AC_TAGVAR(archive_cmds, $1)=''
4089
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4090
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4091
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4093
if test "$GXX" = yes; then
4094
case $host_os in aix4.[[012]]|aix4.[[012]].*)
4095
# We only want to do this on AIX 4.2 and lower, the check
4096
# below for broken collect2 doesn't work under 4.3+
4097
collect2name=`${CC} -print-prog-name=collect2`
4098
if test -f "$collect2name" && \
4099
strings "$collect2name" | grep resolve_lib_name >/dev/null
4101
# We have reworked collect2
4104
# We have old collect2
4105
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4106
# It fails to find uninstalled libraries when the uninstalled
4107
# path is not listed in the libpath. Setting hardcode_minus_L
4108
# to unsupported forces relinking
4109
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4110
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4111
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4115
shared_flag='-shared'
4116
if test "$aix_use_runtimelinking" = yes; then
4117
shared_flag="$shared_flag "'${wl}-G'
4121
if test "$host_cpu" = ia64; then
4122
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4123
# chokes on -Wl,-G. The following line is correct:
4126
if test "$aix_use_runtimelinking" = yes; then
4127
shared_flag='${wl}-G'
4129
shared_flag='${wl}-bM:SRE'
4134
# It seems that -bexpall does not export symbols beginning with
4135
# underscore (_), so it is better to generate a list of symbols to export.
4136
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4137
if test "$aix_use_runtimelinking" = yes; then
4138
# Warning - without using the other runtime loading flags (-brtl),
4139
# -berok will link without error, but may produce a broken library.
4140
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4141
# Determine the default libpath from the value encoded in an empty executable.
4142
_LT_AC_SYS_LIBPATH_AIX
4143
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4145
_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"
4147
if test "$host_cpu" = ia64; then
4148
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4149
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4150
_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"
4152
# Determine the default libpath from the value encoded in an empty executable.
4153
_LT_AC_SYS_LIBPATH_AIX
4154
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4155
# Warning - without using the other run time loading flags,
4156
# -berok will link without error, but may produce a broken library.
4157
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4158
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4159
# Exported symbols can be pulled into shared objects from archives
4160
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4161
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4162
# This is similar to how AIX traditionally builds its shared libraries.
4163
_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'
4169
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4170
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4171
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4172
# support --undefined. This deserves some investigation. FIXME
4173
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4175
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4180
case $cc_basename in
4182
# FIXME: insert proper C++ library support
4183
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4188
cygwin* | mingw* | pw32*)
4189
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4190
# as there is no search path for DLLs.
4191
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4192
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4193
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4194
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4196
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4197
_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'
4198
# If the export-symbols file already is a .def file (1st line
4199
# is EXPORTS), use it as is; otherwise, prepend...
4200
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4201
cp $export_symbols $output_objdir/$soname.def;
4203
echo EXPORTS > $output_objdir/$soname.def;
4204
cat $export_symbols >> $output_objdir/$soname.def;
4206
$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'
4208
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4211
darwin* | rhapsody*)
4212
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4213
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4214
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4215
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4216
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4217
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4218
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
4219
if test "$GXX" = yes ; then
4220
output_verbose_link_cmd='echo'
4221
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
4222
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4223
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
4224
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
4225
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
4226
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
4227
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
4230
case $cc_basename in
4232
output_verbose_link_cmd='echo'
4233
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
4234
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4235
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4236
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4237
_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}'
4240
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4247
case $cc_basename in
4249
# FIXME: insert proper C++ library support
4250
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4253
# Green Hills C++ Compiler
4254
# FIXME: insert proper C++ library support
4255
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4258
# FIXME: insert proper C++ library support
4259
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4264
# C++ shared libraries reported to be fairly broken before switch to ELF
4265
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4268
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4270
freebsd* | dragonfly*)
4271
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4273
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4278
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4279
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4280
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4281
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4282
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4283
# but as the default
4284
# location of the library.
4286
case $cc_basename in
4288
# FIXME: insert proper C++ library support
4289
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4292
_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'
4293
# Commands to make compiler produce verbose output that lists
4294
# what "hidden" libraries, object files and flags are used when
4295
# linking a shared library.
4297
# There doesn't appear to be a way to prevent this compiler from
4298
# explicitly linking system object files so we need to strip them
4299
# from the output so that they don't get included in the library
4301
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'
4304
if test "$GXX" = yes; then
4305
_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'
4307
# FIXME: insert proper C++ library support
4308
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4314
if test $with_gnu_ld = no; then
4315
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4316
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4321
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4327
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4328
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4331
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4332
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4333
# but as the default
4334
# location of the library.
4338
case $cc_basename in
4340
# FIXME: insert proper C++ library support
4341
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4346
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4349
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4352
_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'
4355
# Commands to make compiler produce verbose output that lists
4356
# what "hidden" libraries, object files and flags are used when
4357
# linking a shared library.
4359
# There doesn't appear to be a way to prevent this compiler from
4360
# explicitly linking system object files so we need to strip them
4361
# from the output so that they don't get included in the library
4363
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'
4366
if test "$GXX" = yes; then
4367
if test $with_gnu_ld = no; then
4370
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4373
_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'
4376
_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'
4381
# FIXME: insert proper C++ library support
4382
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4388
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4389
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4390
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4391
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4392
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4393
# Instead, shared libraries are loaded at an image base (0x10000000 by
4394
# default) and relocated if they conflict, which is a slow very memory
4395
# consuming and fragmenting process. To avoid this, we pick a random,
4396
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4397
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4398
_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'
4399
_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'
4402
case $cc_basename in
4405
_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'
4407
# Archives containing C++ object files must be created using
4408
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4409
# necessary to make sure instantiated templates are included
4411
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4414
if test "$GXX" = yes; then
4415
if test "$with_gnu_ld" = no; then
4416
_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'
4418
_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'
4421
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4424
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4425
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4427
linux* | k*bsd*-gnu)
4428
case $cc_basename in
4430
# Kuck and Associates, Inc. (KAI) C++ Compiler
4432
# KCC will only create a shared library if the output file
4433
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4434
# to its proper name (with version) after linking.
4435
_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'
4436
_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'
4437
# Commands to make compiler produce verbose output that lists
4438
# what "hidden" libraries, object files and flags are used when
4439
# linking a shared library.
4441
# There doesn't appear to be a way to prevent this compiler from
4442
# explicitly linking system object files so we need to strip them
4443
# from the output so that they don't get included in the library
4445
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'
4447
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4448
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4450
# Archives containing C++ object files must be created using
4451
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4452
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4457
# version 8.0 and above of icpc choke on multiply defined symbols
4458
# if we add $predep_objects and $postdep_objects, however 7.1 and
4459
# earlier do not add the objects themselves.
4460
case `$CC -V 2>&1` in
4462
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4463
_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'
4465
*) # Version 8.0 or newer
4468
ia64*) tmp_idyn=' -i_dynamic';;
4470
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4471
_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'
4474
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4475
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4476
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4477
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4480
# Portland Group C++ compiler
4481
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4482
_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'
4484
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4485
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4486
_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'
4490
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4491
_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'
4493
runpath_var=LD_RUN_PATH
4494
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4495
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4497
# Commands to make compiler produce verbose output that lists
4498
# what "hidden" libraries, object files and flags are used when
4499
# linking a shared library.
4501
# There doesn't appear to be a way to prevent this compiler from
4502
# explicitly linking system object files so we need to strip them
4503
# from the output so that they don't get included in the library
4505
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'
4508
case `$CC -V 2>&1 | sed 5q` in
4511
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4512
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4513
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4514
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4515
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4517
# Not sure whether something based on
4518
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4520
output_verbose_link_cmd='echo'
4522
# Archives containing C++ object files must be created using
4523
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4524
# necessary to make sure instantiated templates are included
4526
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4533
# FIXME: insert proper C++ library support
4534
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4537
# FIXME: insert proper C++ library support
4538
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4541
case $cc_basename in
4543
# FIXME: insert proper C++ library support
4544
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4547
# FIXME: insert proper C++ library support
4548
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4553
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4554
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4556
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4557
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4558
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4560
# Workaround some broken pre-1.5 toolchains
4561
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4564
# C++ shared libraries are fairly broken
4565
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4568
if test -f /usr/libexec/ld.so; then
4569
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4570
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4571
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4572
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4573
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4574
_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'
4575
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4576
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4578
output_verbose_link_cmd='echo'
4580
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4584
case $cc_basename in
4586
# Kuck and Associates, Inc. (KAI) C++ Compiler
4588
# KCC will only create a shared library if the output file
4589
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4590
# to its proper name (with version) after linking.
4591
_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'
4593
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4594
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4596
# Archives containing C++ object files must be created using
4597
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4598
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4602
# Rational C++ 2.4.1
4603
# FIXME: insert proper C++ library support
4604
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4607
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4608
_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'
4610
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4611
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4613
# Commands to make compiler produce verbose output that lists
4614
# what "hidden" libraries, object files and flags are used when
4615
# linking a shared library.
4617
# There doesn't appear to be a way to prevent this compiler from
4618
# explicitly linking system object files so we need to strip them
4619
# from the output so that they don't get included in the library
4621
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'
4624
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4625
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4626
_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'
4628
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4629
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4631
# Commands to make compiler produce verbose output that lists
4632
# what "hidden" libraries, object files and flags are used when
4633
# linking a shared library.
4634
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4637
# FIXME: insert proper C++ library support
4638
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4644
case $cc_basename in
4646
# Kuck and Associates, Inc. (KAI) C++ Compiler
4648
# KCC will only create a shared library if the output file
4649
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4650
# to its proper name (with version) after linking.
4651
_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'
4653
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4654
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4656
# Archives containing C++ object files must be created using
4657
# the KAI C++ compiler.
4658
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4661
# Rational C++ 2.4.1
4662
# FIXME: insert proper C++ library support
4663
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4666
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4667
_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'
4668
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4669
echo "-hidden">> $lib.exp~
4670
$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~
4673
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4674
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4676
# Commands to make compiler produce verbose output that lists
4677
# what "hidden" libraries, object files and flags are used when
4678
# linking a shared library.
4680
# There doesn't appear to be a way to prevent this compiler from
4681
# explicitly linking system object files so we need to strip them
4682
# from the output so that they don't get included in the library
4684
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'
4687
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4688
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4689
_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'
4691
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4692
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4694
# Commands to make compiler produce verbose output that lists
4695
# what "hidden" libraries, object files and flags are used when
4696
# linking a shared library.
4697
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4700
# FIXME: insert proper C++ library support
4701
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4707
# FIXME: insert proper C++ library support
4708
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4711
case $cc_basename in
4714
# FIXME: insert proper C++ library support
4715
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4719
# FIXME: insert proper C++ library support
4720
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4723
# FIXME: insert proper C++ library support
4724
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4729
case $cc_basename in
4731
# Sun C++ 4.2, 5.x and Centerline C++
4732
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4733
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4734
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4735
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4736
$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'
4738
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4739
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4741
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4743
# The compiler driver will combine and reorder linker options,
4744
# but understands `-z linker_flag'.
4745
# Supported since Solaris 2.6 (maybe 2.5.1?)
4746
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4749
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4751
output_verbose_link_cmd='echo'
4753
# Archives containing C++ object files must be created using
4754
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4755
# necessary to make sure instantiated templates are included
4757
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4760
# Green Hills C++ Compiler
4761
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4763
# The C++ compiler must be used to create the archive.
4764
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4767
# GNU C++ compiler with Solaris linker
4768
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4769
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4770
if $CC --version | grep -v '^2\.7' > /dev/null; then
4771
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4772
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4773
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4775
# Commands to make compiler produce verbose output that lists
4776
# what "hidden" libraries, object files and flags are used when
4777
# linking a shared library.
4778
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4780
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4782
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4783
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4784
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4786
# Commands to make compiler produce verbose output that lists
4787
# what "hidden" libraries, object files and flags are used when
4788
# linking a shared library.
4789
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4792
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4794
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4796
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4803
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4804
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4805
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4806
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4807
runpath_var='LD_RUN_PATH'
4809
case $cc_basename in
4811
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4812
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4815
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4816
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4820
sysv5* | sco3.2v5* | sco5v6*)
4821
# Note: We can NOT use -z defs as we might desire, because we do not
4822
# link with -lc, and that would cause any symbols used from libc to
4823
# always be unresolved, which means just about no library would
4824
# ever link correctly. If we're not using GNU ld we use -z text
4825
# though, which does catch some bad symbols but isn't as heavy-handed
4827
# For security reasons, it is highly recommended that you always
4828
# use absolute paths for naming shared libraries, and exclude the
4829
# DT_RUNPATH tag from executables and libraries. But doing so
4830
# requires that you compile everything twice, which is a pain.
4831
# So that behaviour is only enabled if SCOABSPATH is set to a
4832
# non-empty value in the environment. Most likely only useful for
4833
# creating official distributions of packages.
4834
# This is a hack until libtool officially supports absolute path
4835
# names for shared libraries.
4836
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4837
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4838
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4839
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4840
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4841
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4842
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4843
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4844
runpath_var='LD_RUN_PATH'
4846
case $cc_basename in
4848
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4849
_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'
4852
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4853
_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'
4858
case $cc_basename in
4860
# NonStop-UX NCC 3.20
4861
# FIXME: insert proper C++ library support
4862
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4865
# FIXME: insert proper C++ library support
4866
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4871
# FIXME: insert proper C++ library support
4872
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4875
# FIXME: insert proper C++ library support
4876
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4879
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4880
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4882
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4883
_LT_AC_TAGVAR(LD, $1)="$LD"
4885
AC_LIBTOOL_POSTDEP_PREDEP($1)
4886
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4887
AC_LIBTOOL_PROG_CC_C_O($1)
4888
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4889
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4890
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4891
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4893
AC_LIBTOOL_CONFIG($1)
4900
with_gnu_ldcxx=$with_gnu_ld
4901
with_gnu_ld=$lt_save_with_gnu_ld
4902
lt_cv_path_LDCXX=$lt_cv_path_LD
4903
lt_cv_path_LD=$lt_save_path_LD
4904
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4905
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4906
])# AC_LIBTOOL_LANG_CXX_CONFIG
4908
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4909
# ------------------------------------
4910
# Figure out "hidden" library dependencies from verbose
4911
# compiler output when linking a shared library.
4912
# Parse the compiler output and extract the necessary
4913
# objects, libraries and library flags.
4914
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4915
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4916
dnl we can't use the lt_simple_compile_test_code here,
4917
dnl because it contains code intended for an executable,
4918
dnl not a library. It's possible we should let each
4919
dnl tag define a new lt_????_link_test_code variable,
4920
dnl but it's only used here...
4921
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4923
void foo (void) { a = 0; }
4925
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4929
Foo (void) { a = 0; }
4934
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4942
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4945
public void bar (void) {
4951
dnl Parse the compiler output and extract the necessary
4952
dnl objects, libraries and library flags.
4953
if AC_TRY_EVAL(ac_compile); then
4954
# Parse the compiler output and extract the necessary
4955
# objects, libraries and library flags.
4957
# Sentinel used to keep track of whether or not we are before
4958
# the conftest object file.
4959
pre_test_object_deps_done=no
4961
# The `*' in the case matches for architectures that use `case' in
4962
# $output_verbose_cmd can trigger glob expansion during the loop
4963
# eval without this substitution.
4964
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4966
for p in `eval $output_verbose_link_cmd`; do
4970
# Some compilers place space between "-{L,R}" and the path.
4973
|| test $p = "-R"; then
4980
if test "$pre_test_object_deps_done" = no; then
4983
# Internal compiler library paths should come after those
4984
# provided the user. The postdeps already come after the
4985
# user supplied libs so there is no need to process them.
4986
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4987
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4989
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4992
# The "-l" case would never come before the object being
4993
# linked, so don't bother handling this case.
4996
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4997
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4999
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5005
# This assumes that the test object file only shows up
5006
# once in the compiler output.
5007
if test "$p" = "conftest.$objext"; then
5008
pre_test_object_deps_done=yes
5012
if test "$pre_test_object_deps_done" = no; then
5013
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5014
_LT_AC_TAGVAR(predep_objects, $1)="$p"
5016
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5019
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5020
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
5022
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5027
*) ;; # Ignore the rest.
5035
echo "libtool.m4: error: problem compiling $1 test program"
5038
$rm -f confest.$objext
5040
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
5041
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5042
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
5045
# PORTME: override above test on systems where it is broken
5049
# Interix 3.5 installs completely hosed .la files for C++, so rather than
5050
# hack all around it, let's just trust "g++" to DTRT.
5051
_LT_AC_TAGVAR(predep_objects,$1)=
5052
_LT_AC_TAGVAR(postdep_objects,$1)=
5053
_LT_AC_TAGVAR(postdeps,$1)=
5057
case `$CC -V 2>&1 | sed 5q` in
5061
# The more standards-conforming stlport4 library is
5062
# incompatible with the Cstd library. Avoid specifying
5063
# it if it's in CXXFLAGS. Ignore libCrun as
5064
# -library=stlport4 depends on it.
5065
case " $CXX $CXXFLAGS " in
5066
*" -library=stlport4 "*)
5067
solaris_use_stlport4=yes
5070
if test "$solaris_use_stlport4" != yes; then
5071
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5078
case $cc_basename in
5080
# The more standards-conforming stlport4 library is
5081
# incompatible with the Cstd library. Avoid specifying
5082
# it if it's in CXXFLAGS. Ignore libCrun as
5083
# -library=stlport4 depends on it.
5084
case " $CXX $CXXFLAGS " in
5085
*" -library=stlport4 "*)
5086
solaris_use_stlport4=yes
5090
# Adding this requires a known-good setup of shared libraries for
5091
# Sun compiler versions before 5.6, else PIC objects from an old
5092
# archive will be linked into the output, leading to subtle bugs.
5093
if test "$solaris_use_stlport4" != yes; then
5094
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5101
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5102
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5104
])# AC_LIBTOOL_POSTDEP_PREDEP
5106
# AC_LIBTOOL_LANG_F77_CONFIG
5107
# --------------------------
5108
# Ensure that the configuration vars for the C compiler are
5109
# suitably defined. Those variables are subsequently used by
5110
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5111
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5112
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5113
[AC_REQUIRE([AC_PROG_F77])
5114
AC_LANG_PUSH(Fortran 77)
5116
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5117
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5118
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5119
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5120
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5121
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5122
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5123
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5124
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5125
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5126
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5127
_LT_AC_TAGVAR(module_cmds, $1)=
5128
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5129
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5130
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5131
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5132
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5133
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5135
# Source file extension for f77 test sources.
5138
# Object file extension for compiled f77 test sources.
5140
_LT_AC_TAGVAR(objext, $1)=$objext
5142
# Code to be used in simple compile tests
5143
lt_simple_compile_test_code="\
5149
# Code to be used in simple link tests
5150
lt_simple_link_test_code="\
5155
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5158
# save warnings/boilerplate of simple test code
5159
_LT_COMPILER_BOILERPLATE
5160
_LT_LINKER_BOILERPLATE
5162
# Allow CC to be a program name with arguments.
5166
_LT_AC_TAGVAR(compiler, $1)=$CC
5167
_LT_CC_BASENAME([$compiler])
5169
AC_MSG_CHECKING([if libtool supports shared libraries])
5170
AC_MSG_RESULT([$can_build_shared])
5172
AC_MSG_CHECKING([whether to build shared libraries])
5173
test "$can_build_shared" = "no" && enable_shared=no
5175
# On AIX, shared libraries and static libraries use the same namespace, and
5176
# are all built from PIC.
5179
test "$enable_shared" = yes && enable_static=no
5180
if test -n "$RANLIB"; then
5181
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5182
postinstall_cmds='$RANLIB $lib'
5186
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5187
test "$enable_shared" = yes && enable_static=no
5191
AC_MSG_RESULT([$enable_shared])
5193
AC_MSG_CHECKING([whether to build static libraries])
5194
# Make sure either enable_shared or enable_static is yes.
5195
test "$enable_shared" = yes || enable_static=yes
5196
AC_MSG_RESULT([$enable_static])
5198
_LT_AC_TAGVAR(GCC, $1)="$G77"
5199
_LT_AC_TAGVAR(LD, $1)="$LD"
5201
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5202
AC_LIBTOOL_PROG_CC_C_O($1)
5203
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5204
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5205
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5206
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5208
AC_LIBTOOL_CONFIG($1)
5212
])# AC_LIBTOOL_LANG_F77_CONFIG
5215
# AC_LIBTOOL_LANG_GCJ_CONFIG
5216
# --------------------------
5217
# Ensure that the configuration vars for the C compiler are
5218
# suitably defined. Those variables are subsequently used by
5219
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5220
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5221
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5224
# Source file extension for Java test sources.
5227
# Object file extension for compiled Java test sources.
5229
_LT_AC_TAGVAR(objext, $1)=$objext
5231
# Code to be used in simple compile tests
5232
lt_simple_compile_test_code="class foo {}"
5234
# Code to be used in simple link tests
5235
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
5237
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5240
# save warnings/boilerplate of simple test code
5241
_LT_COMPILER_BOILERPLATE
5242
_LT_LINKER_BOILERPLATE
5244
# Allow CC to be a program name with arguments.
5248
_LT_AC_TAGVAR(compiler, $1)=$CC
5249
_LT_CC_BASENAME([$compiler])
5251
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5252
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5254
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5256
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5257
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5258
AC_LIBTOOL_PROG_CC_C_O($1)
5259
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5260
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5261
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5262
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5264
AC_LIBTOOL_CONFIG($1)
5268
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5271
# AC_LIBTOOL_LANG_RC_CONFIG
5272
# -------------------------
5273
# Ensure that the configuration vars for the Windows resource compiler are
5274
# suitably defined. Those variables are subsequently used by
5275
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5276
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5277
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5280
# Source file extension for RC test sources.
5283
# Object file extension for compiled RC test sources.
5285
_LT_AC_TAGVAR(objext, $1)=$objext
5287
# Code to be used in simple compile tests
5288
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5290
# Code to be used in simple link tests
5291
lt_simple_link_test_code="$lt_simple_compile_test_code"
5293
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5296
# save warnings/boilerplate of simple test code
5297
_LT_COMPILER_BOILERPLATE
5298
_LT_LINKER_BOILERPLATE
5300
# Allow CC to be a program name with arguments.
5304
_LT_AC_TAGVAR(compiler, $1)=$CC
5305
_LT_CC_BASENAME([$compiler])
5306
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5308
AC_LIBTOOL_CONFIG($1)
5312
])# AC_LIBTOOL_LANG_RC_CONFIG
5315
# AC_LIBTOOL_CONFIG([TAGNAME])
5316
# ----------------------------
5317
# If TAGNAME is not passed, then create an initial libtool script
5318
# with a default configuration from the untagged config vars. Otherwise
5319
# add code to config.status for appending the configuration named by
5320
# TAGNAME from the matching tagged config vars.
5321
AC_DEFUN([AC_LIBTOOL_CONFIG],
5322
[# The else clause should only fire when bootstrapping the
5323
# libtool distribution, otherwise you forgot to ship ltmain.sh
5324
# with your package, and you will get complaints that there are
5325
# no rules to generate ltmain.sh.
5326
if test -f "$ltmain"; then
5327
# See if we are running on zsh, and set the options which allow our commands through
5328
# without removal of \ escapes.
5329
if test -n "${ZSH_VERSION+set}" ; then
5330
setopt NO_GLOB_SUBST
5332
# Now quote all the things that may contain metacharacters while being
5333
# careful not to overquote the AC_SUBSTed values. We take copies of the
5334
# variables and quote the copies for generation of the libtool script.
5335
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5337
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5338
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5339
deplibs_check_method reload_flag reload_cmds need_locks \
5340
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5341
lt_cv_sys_global_symbol_to_c_name_address \
5342
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5343
old_postinstall_cmds old_postuninstall_cmds \
5344
_LT_AC_TAGVAR(compiler, $1) \
5345
_LT_AC_TAGVAR(CC, $1) \
5346
_LT_AC_TAGVAR(LD, $1) \
5347
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5348
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5349
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5350
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5351
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5352
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5353
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5354
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5355
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5356
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5357
_LT_AC_TAGVAR(predep_objects, $1) \
5358
_LT_AC_TAGVAR(postdep_objects, $1) \
5359
_LT_AC_TAGVAR(predeps, $1) \
5360
_LT_AC_TAGVAR(postdeps, $1) \
5361
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5362
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5363
_LT_AC_TAGVAR(archive_cmds, $1) \
5364
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5365
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5366
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5367
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5368
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5369
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5370
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5371
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5372
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5373
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5374
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5375
_LT_AC_TAGVAR(module_cmds, $1) \
5376
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5377
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5378
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
5379
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5380
_LT_AC_TAGVAR(include_expsyms, $1); do
5383
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5384
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5385
_LT_AC_TAGVAR(archive_cmds, $1) | \
5386
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5387
_LT_AC_TAGVAR(module_cmds, $1) | \
5388
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5389
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5390
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5391
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5392
postinstall_cmds | postuninstall_cmds | \
5393
old_postinstall_cmds | old_postuninstall_cmds | \
5394
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5395
# Double-quote double-evaled strings.
5396
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5399
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5405
*'\[$]0 --fallback-echo"')
5406
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5411
[cfgfile="${ofile}T"
5412
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5414
AC_MSG_NOTICE([creating $ofile])],
5417
cat <<__EOF__ >> "$cfgfile"
5421
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5422
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5423
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5425
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5426
# Free Software Foundation, Inc.
5428
# This file is part of GNU Libtool:
5429
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5431
# This program is free software; you can redistribute it and/or modify
5432
# it under the terms of the GNU General Public License as published by
5433
# the Free Software Foundation; either version 2 of the License, or
5434
# (at your option) any later version.
5436
# This program is distributed in the hope that it will be useful, but
5437
# WITHOUT ANY WARRANTY; without even the implied warranty of
5438
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5439
# General Public License for more details.
5441
# You should have received a copy of the GNU General Public License
5442
# along with this program; if not, write to the Free Software
5443
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5445
# As a special exception to the GNU General Public License, if you
5446
# distribute this file as part of a program that contains a
5447
# configuration script generated by Autoconf, you may include it under
5448
# the same distribution terms that you use for the rest of that program.
5450
# A sed program that does not truncate output.
5453
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5454
Xsed="$SED -e 1s/^X//"
5456
# The HP-UX ksh and POSIX shell print the target directory to stdout
5458
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5460
# The names of the tagged configurations supported by this script.
5463
# ### BEGIN LIBTOOL CONFIG],
5464
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5466
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5468
# Shell to use when invoking shell scripts.
5471
# Whether or not to build shared libraries.
5472
build_libtool_libs=$enable_shared
5474
# Whether or not to build static libraries.
5475
build_old_libs=$enable_static
5477
# Whether or not to add -lc for building shared libraries.
5478
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5480
# Whether or not to disallow shared libs when runtime libs are static
5481
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5483
# Whether or not to optimize for fast installation.
5484
fast_install=$enable_fast_install
5487
host_alias=$host_alias
5492
build_alias=$build_alias
5496
# An echo program that does not interpret backslashes.
5501
AR_FLAGS=$lt_AR_FLAGS
5506
# LTCC compiler flags.
5507
LTCFLAGS=$lt_LTCFLAGS
5509
# A language-specific compiler.
5510
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5512
# Is the compiler the GNU C compiler?
5513
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5518
# The linker used to build libraries.
5519
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5521
# Whether we need hard or soft links.
5524
# A BSD-compatible nm program.
5527
# A symbol stripping program
5530
# Used to examine libraries when file_magic_cmd begins "file"
5531
MAGIC_CMD=$MAGIC_CMD
5533
# Used on cygwin: DLL creation program.
5536
# Used on cygwin: object dumper.
5539
# Used on cygwin: assembler.
5542
# The name of the directory that contains temporary libtool files.
5545
# How to create reloadable object files.
5546
reload_flag=$lt_reload_flag
5547
reload_cmds=$lt_reload_cmds
5549
# How to pass a linker flag through the compiler.
5550
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5552
# Object file suffix (normally "o").
5555
# Old archive suffix (normally "a").
5558
# Shared library suffix (normally ".so").
5559
shrext_cmds='$shrext_cmds'
5561
# Executable file suffix (normally "").
5564
# Additional compiler flags for building library objects.
5565
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5568
# What is the maximum length of a command?
5569
max_cmd_len=$lt_cv_sys_max_cmd_len
5571
# Does compiler simultaneously support -c and -o options?
5572
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5574
# Must we lock files when doing compilation?
5575
need_locks=$lt_need_locks
5577
# Do we need the lib prefix for modules?
5578
need_lib_prefix=$need_lib_prefix
5580
# Do we need a version for libraries?
5581
need_version=$need_version
5583
# Whether dlopen is supported.
5584
dlopen_support=$enable_dlopen
5586
# Whether dlopen of programs is supported.
5587
dlopen_self=$enable_dlopen_self
5589
# Whether dlopen of statically linked programs is supported.
5590
dlopen_self_static=$enable_dlopen_self_static
5592
# Compiler flag to prevent dynamic linking.
5593
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5595
# Compiler flag to turn off builtin functions.
5596
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5598
# Compiler flag to allow reflexive dlopens.
5599
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5601
# Compiler flag to generate shared objects directly from archives.
5602
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5604
# Compiler flag to generate thread-safe objects.
5605
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5607
# Library versioning type.
5608
version_type=$version_type
5610
# Format of library name prefix.
5611
libname_spec=$lt_libname_spec
5613
# List of archive names. First name is the real one, the rest are links.
5614
# The last name is the one that the linker finds with -lNAME.
5615
library_names_spec=$lt_library_names_spec
5617
# The coded name of the library, if different from the real name.
5618
soname_spec=$lt_soname_spec
5620
# Commands used to build and install an old-style archive.
5622
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5623
old_postinstall_cmds=$lt_old_postinstall_cmds
5624
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5626
# Create an old-style archive from a shared archive.
5627
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5629
# Create a temporary old-style archive to link instead of a shared archive.
5630
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5632
# Commands used to build and install a shared archive.
5633
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5634
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5635
postinstall_cmds=$lt_postinstall_cmds
5636
postuninstall_cmds=$lt_postuninstall_cmds
5638
# Commands used to build a loadable module (assumed same as above if empty)
5639
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5640
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5642
# Commands to strip libraries.
5643
old_striplib=$lt_old_striplib
5644
striplib=$lt_striplib
5646
# Dependencies to place before the objects being linked to create a
5648
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5650
# Dependencies to place after the objects being linked to create a
5652
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5654
# Dependencies to place before the objects being linked to create a
5656
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5658
# Dependencies to place after the objects being linked to create a
5660
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5662
# The directories searched by this compiler when creating a shared
5664
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5666
# The library search path used internally by the compiler when linking
5668
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5670
# Method to check whether dependent libraries are shared objects.
5671
deplibs_check_method=$lt_deplibs_check_method
5673
# Command to use when deplibs_check_method == file_magic.
5674
file_magic_cmd=$lt_file_magic_cmd
5676
# Flag that allows shared libraries with undefined symbols to be built.
5677
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5679
# Flag that forces no undefined symbols.
5680
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5682
# Commands used to finish a libtool library installation in a directory.
5683
finish_cmds=$lt_finish_cmds
5685
# Same as above, but a single script fragment to be evaled but not shown.
5686
finish_eval=$lt_finish_eval
5688
# Take the output of nm and produce a listing of raw symbols and C names.
5689
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5691
# Transform the output of nm in a proper C declaration
5692
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5694
# Transform the output of nm in a C name address pair
5695
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5697
# This is the shared library runtime path variable.
5698
runpath_var=$runpath_var
5700
# This is the shared library path variable.
5701
shlibpath_var=$shlibpath_var
5703
# Is shlibpath searched before the hard-coded library search path?
5704
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5706
# How to hardcode a shared library path into an executable.
5707
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5709
# Whether we should hardcode library paths into libraries.
5710
hardcode_into_libs=$hardcode_into_libs
5712
# Flag to hardcode \$libdir into a binary during linking.
5713
# This must work even if \$libdir does not exist.
5714
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5716
# If ld is used when linking, flag to hardcode \$libdir into
5717
# a binary during linking. This must work even if \$libdir does
5719
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5721
# Whether we need a single -rpath flag with a separated argument.
5722
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5724
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5726
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5728
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5730
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5732
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5733
# the resulting binary.
5734
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5736
# Set to yes if building a shared library automatically hardcodes DIR into the library
5737
# and all subsequent libraries and executables linked against it.
5738
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5740
# Variables whose values should be saved in libtool wrapper scripts and
5741
# restored at relink time.
5742
variables_saved_for_relink="$variables_saved_for_relink"
5744
# Whether libtool must link a program against all its dependency libraries.
5745
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5747
# Compile-time system search path for libraries
5748
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5750
# Run-time system search path for libraries
5751
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5753
# Fix the shell variable \$srcfile for the compiler.
5754
fix_srcfile_path=$lt_fix_srcfile_path
5756
# Set to yes if exported symbols are required.
5757
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5759
# The commands to list exported symbols.
5760
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5762
# The commands to extract the exported symbol list from a shared archive.
5763
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5765
# Symbols that should not be listed in the preloaded symbols.
5766
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5768
# Symbols that must always be exported.
5769
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5772
[# ### END LIBTOOL CONFIG],
5773
[# ### END LIBTOOL TAG CONFIG: $tagname])
5780
cat <<\EOF >> "$cfgfile"
5782
# AIX sometimes has problems with the GCC collect2 program. For some
5783
# reason, if we set the COLLECT_NAMES environment variable, the problems
5784
# vanish in a puff of smoke.
5785
if test "X${COLLECT_NAMES+set}" != Xset; then
5787
export COLLECT_NAMES
5793
# We use sed instead of cat because bash on DJGPP gets confused if
5794
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5795
# text mode, it properly converts lines to CR/LF. This bash problem
5796
# is reportedly fixed, but why not run on old versions too?
5797
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5799
mv -f "$cfgfile" "$ofile" || \
5800
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5804
# If there is no Makefile yet, we rely on a make rule to execute
5805
# `config.status --recheck' to rerun these tests and create the
5806
# libtool script then.
5807
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5808
if test -f "$ltmain_in"; then
5809
test -f Makefile && make "$ltmain"
5812
])# AC_LIBTOOL_CONFIG
5815
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5816
# -------------------------------------------
5817
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5818
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5820
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5822
if test "$GCC" = yes; then
5823
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5825
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5826
lt_cv_prog_compiler_rtti_exceptions,
5827
[-fno-rtti -fno-exceptions], [],
5828
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5830
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5833
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5834
# ---------------------------------
5835
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5836
[AC_REQUIRE([AC_CANONICAL_HOST])
5837
AC_REQUIRE([LT_AC_PROG_SED])
5838
AC_REQUIRE([AC_PROG_NM])
5839
AC_REQUIRE([AC_OBJEXT])
5840
# Check for command to grab the raw symbol name followed by C symbol from nm.
5841
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5842
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5844
# These are sane defaults that work on at least a few old systems.
5845
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5847
# Character class describing NM global symbol codes.
5848
symcode='[[BCDEGRST]]'
5850
# Regexp to match symbols that can be accessed directly from C.
5851
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5853
# Transform an extracted symbol line into a proper C declaration
5854
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5856
# Transform an extracted symbol line into symbol name and symbol address
5857
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5859
# Define system-specific variables.
5864
cygwin* | mingw* | pw32*)
5865
symcode='[[ABCDGISTW]]'
5867
hpux*) # Its linker distinguishes data from code symbols
5868
if test "$host_cpu" = ia64; then
5869
symcode='[[ABCDEGRST]]'
5871
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5872
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5874
linux* | k*bsd*-gnu)
5875
if test "$host_cpu" = ia64; then
5876
symcode='[[ABCDGIRSTW]]'
5877
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5878
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5882
symcode='[[BCDEGRST]]'
5885
symcode='[[BCDEGQRST]]'
5896
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5900
symcode='[[DFNSTU]]'
5904
# Handle CRLF in mingw tool chain
5908
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5912
# If we're using GNU nm, then use its standard symbol codes.
5913
case `$NM -V 2>&1` in
5914
*GNU* | *'with BFD'*)
5915
symcode='[[ABCDGIRSTW]]' ;;
5918
# Try without a prefix undercore, then with it.
5919
for ac_symprfx in "" "_"; do
5921
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5922
symxfrm="\\1 $ac_symprfx\\2 \\2"
5924
# Write the raw and C identifiers.
5925
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5927
# Check to see that the pipe works correctly.
5931
cat > conftest.$ac_ext <<EOF
5936
void nm_test_func(){}
5940
int main(){nm_test_var='a';nm_test_func();return(0);}
5943
if AC_TRY_EVAL(ac_compile); then
5944
# Now try to grab the symbols.
5946
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5947
# Try sorting and uniquifying the output.
5948
if sort "$nlist" | uniq > "$nlist"T; then
5949
mv -f "$nlist"T "$nlist"
5954
# Make sure that we snagged all the symbols we need.
5955
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5956
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5957
cat <<EOF > conftest.$ac_ext
5963
# Now generate the symbol file.
5964
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5966
cat <<EOF >> conftest.$ac_ext
5967
#if defined (__STDC__) && __STDC__
5968
# define lt_ptr_t void *
5970
# define lt_ptr_t char *
5974
/* The mapping between symbol names and symbols. */
5979
lt_preloaded_symbols[[]] =
5982
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5983
cat <<\EOF >> conftest.$ac_ext
5991
# Now try linking the two files.
5992
mv conftest.$ac_objext conftstm.$ac_objext
5993
lt_save_LIBS="$LIBS"
5994
lt_save_CFLAGS="$CFLAGS"
5995
LIBS="conftstm.$ac_objext"
5996
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5997
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6000
LIBS="$lt_save_LIBS"
6001
CFLAGS="$lt_save_CFLAGS"
6003
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6006
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6009
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6012
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6013
cat conftest.$ac_ext >&5
6015
rm -rf conftest* conftst*
6017
# Do not use the global_symbol_pipe unless it works.
6018
if test "$pipe_works" = yes; then
6021
lt_cv_sys_global_symbol_pipe=
6025
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6026
lt_cv_sys_global_symbol_to_cdecl=
6028
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6029
AC_MSG_RESULT(failed)
6033
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6036
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6037
# ---------------------------------------
6038
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6039
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6040
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6041
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6043
AC_MSG_CHECKING([for $compiler option to produce PIC])
6045
# C++ specific cases for pic, static, wl, etc.
6046
if test "$GXX" = yes; then
6047
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6048
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6052
# All AIX code is PIC.
6053
if test "$host_cpu" = ia64; then
6054
# AIX 5 now supports IA64 processor
6055
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6059
# FIXME: we need at least 68020 code to build shared libraries, but
6060
# adding the `-m68020' flag to GCC prevents building anything better,
6062
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6064
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6065
# PIC is the default for these OSes.
6067
mingw* | cygwin* | os2* | pw32*)
6068
# This hack is so that the source file can tell whether it is being
6069
# built for inclusion in a dll (and should export symbols for example).
6070
# Although the cygwin gcc ignores -fPIC, still need this for old-style
6071
# (--disable-auto-import) libraries
6072
m4_if([$1], [GCJ], [],
6073
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6075
darwin* | rhapsody*)
6076
# PIC is the default on this platform
6077
# Common symbols not allowed in MH_DYLIB files
6078
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6081
# DJGPP does not support shared libraries at all
6082
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6085
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6086
# Instead, we relocate shared libraries at runtime.
6089
if test -d /usr/nec; then
6090
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6094
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6100
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6105
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6111
# All AIX code is PIC.
6112
if test "$host_cpu" = ia64; then
6113
# AIX 5 now supports IA64 processor
6114
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6116
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6120
case $cc_basename in
6122
# Green Hills C++ Compiler
6123
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
6128
# PIC is the default on this platform
6129
# Common symbols not allowed in MH_DYLIB files
6130
case $cc_basename in
6132
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6133
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6138
case $cc_basename in
6140
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6143
# Green Hills C++ Compiler
6144
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6150
freebsd* | dragonfly*)
6151
# FreeBSD uses GNU C++
6153
hpux9* | hpux10* | hpux11*)
6154
case $cc_basename in
6156
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6157
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6158
if test "$host_cpu" != ia64; then
6159
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6163
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6164
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6170
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6179
# This is c89, which is MS Visual C++ (no shared libs)
6180
# Anyone wants to do a port?
6182
irix5* | irix6* | nonstopux*)
6183
case $cc_basename in
6185
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6186
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6187
# CC pic flag -KPIC is the default.
6193
linux* | k*bsd*-gnu)
6194
case $cc_basename in
6197
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6198
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6202
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6203
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6204
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6207
# Portland Group C++ compiler.
6208
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6209
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6210
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6214
# Make sure the PIC flag is empty. It appears that all Alpha
6215
# Linux and Compaq Tru64 Unix objects are PIC.
6216
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6217
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6220
case `$CC -V 2>&1 | sed 5q` in
6223
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6224
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6225
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6236
case $cc_basename in
6238
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6246
osf3* | osf4* | osf5*)
6247
case $cc_basename in
6249
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6252
# Rational C++ 2.4.1
6253
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6256
# Digital/Compaq C++
6257
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6258
# Make sure the PIC flag is empty. It appears that all Alpha
6259
# Linux and Compaq Tru64 Unix objects are PIC.
6260
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6261
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6270
case $cc_basename in
6272
# Sun C++ 4.2, 5.x and Centerline C++
6273
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6274
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6275
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6278
# Green Hills C++ Compiler
6279
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6286
case $cc_basename in
6289
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6290
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6294
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6301
case $cc_basename in
6303
# NonStop-UX NCC 3.20
6304
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6310
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6311
case $cc_basename in
6313
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6314
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6315
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6322
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6328
if test "$GCC" = yes; then
6329
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6330
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6334
# All AIX code is PIC.
6335
if test "$host_cpu" = ia64; then
6336
# AIX 5 now supports IA64 processor
6337
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6342
# FIXME: we need at least 68020 code to build shared libraries, but
6343
# adding the `-m68020' flag to GCC prevents building anything better,
6345
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6348
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6349
# PIC is the default for these OSes.
6352
mingw* | cygwin* | pw32* | os2*)
6353
# This hack is so that the source file can tell whether it is being
6354
# built for inclusion in a dll (and should export symbols for example).
6355
# Although the cygwin gcc ignores -fPIC, still need this for old-style
6356
# (--disable-auto-import) libraries
6357
m4_if([$1], [GCJ], [],
6358
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6361
darwin* | rhapsody*)
6362
# PIC is the default on this platform
6363
# Common symbols not allowed in MH_DYLIB files
6364
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6368
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6369
# Instead, we relocate shared libraries at runtime.
6373
# Just because we use GCC doesn't mean we suddenly get shared libraries
6374
# on systems that don't support them.
6375
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6380
if test -d /usr/nec; then
6381
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6386
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6393
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6399
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6403
# PORTME Check for flag to pass linker flags through the system compiler.
6406
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6407
if test "$host_cpu" = ia64; then
6408
# AIX 5 now supports IA64 processor
6409
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6411
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6415
# PIC is the default on this platform
6416
# Common symbols not allowed in MH_DYLIB files
6417
case $cc_basename in
6419
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6420
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6425
mingw* | cygwin* | pw32* | os2*)
6426
# This hack is so that the source file can tell whether it is being
6427
# built for inclusion in a dll (and should export symbols for example).
6428
m4_if([$1], [GCJ], [],
6429
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6432
hpux9* | hpux10* | hpux11*)
6433
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6434
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6441
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6444
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6445
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6448
irix5* | irix6* | nonstopux*)
6449
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6450
# PIC (with -KPIC) is the default.
6451
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6455
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6456
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6459
linux* | k*bsd*-gnu)
6460
case $cc_basename in
6462
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6463
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6464
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6466
pgcc* | pgf77* | pgf90* | pgf95*)
6467
# Portland Group compilers (*not* the Pentium gcc compiler,
6468
# which looks to be a dead project)
6469
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6470
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6471
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6474
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6475
# All Alpha code is PIC.
6476
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6479
case `$CC -V 2>&1 | sed 5q` in
6482
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6483
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6484
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6487
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6488
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6489
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6490
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6497
osf3* | osf4* | osf5*)
6498
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6499
# All OSF/1 code is PIC.
6500
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6504
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6508
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6509
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6510
case $cc_basename in
6512
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6514
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6519
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6520
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6521
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6524
sysv4 | sysv4.2uw2* | sysv4.3*)
6525
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6526
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6527
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6531
if test -d /usr/nec ;then
6532
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6533
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6537
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6538
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6539
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6540
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6544
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6545
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6549
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6550
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6554
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6559
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6562
# Check to make sure the PIC flag actually works.
6564
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6565
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6566
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6567
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6568
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6570
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6572
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6573
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6576
# For platforms which do not support PIC, -DPIC is meaningless:
6578
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6581
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6586
# Check to make sure the static flag actually works.
6588
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6589
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6590
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6591
$lt_tmp_static_flag,
6593
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6597
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6598
# ------------------------------------
6599
# See if the linker supports building shared libraries.
6600
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6601
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6602
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6604
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6607
# If we're using GNU nm, then we don't want the "-C" option.
6608
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6609
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6610
_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'
6612
_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'
6616
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6619
_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'
6622
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6625
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6628
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6629
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6630
_LT_AC_TAGVAR(archive_cmds, $1)=
6631
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6632
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6633
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6634
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6635
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6636
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6637
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6638
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6639
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6640
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6641
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6642
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6643
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6644
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6645
_LT_AC_TAGVAR(module_cmds, $1)=
6646
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6647
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6648
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6649
# include_expsyms should be a list of space-separated symbols to be *always*
6650
# included in the symbol list
6651
_LT_AC_TAGVAR(include_expsyms, $1)=
6652
# exclude_expsyms can be an extended regexp of symbols to exclude
6653
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6654
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6655
# as well as any symbol that contains `d'.
6656
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6657
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6658
# platforms (ab)use it in PIC code, but their linkers get confused if
6659
# the symbol is explicitly referenced. Since portable code cannot
6660
# rely on this symbol name, it's probably fine to never include it in
6661
# preloaded symbol tables.
6662
# Exclude shared library initialization/finalization symbols.
6663
dnl Note also adjust exclude_expsyms for C++ above.
6664
extract_expsyms_cmds=
6665
# Just being paranoid about ensuring that cc_basename is set.
6666
_LT_CC_BASENAME([$compiler])
6668
cygwin* | mingw* | pw32*)
6669
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6670
# When not using gcc, we currently assume that we are using
6671
# Microsoft Visual C++.
6672
if test "$GCC" != yes; then
6677
# we just hope/assume this is gcc and not c89 (= MSVC++)
6685
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6686
if test "$with_gnu_ld" = yes; then
6687
# If archive_cmds runs LD, not CC, wlarc should be empty
6690
# Set some defaults for GNU ld with shared library support. These
6691
# are reset later if shared libraries are not supported. Putting them
6692
# here allows them to be overridden if necessary.
6693
runpath_var=LD_RUN_PATH
6694
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6695
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6696
# ancient GNU ld didn't support --whole-archive et. al.
6697
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6698
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6700
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6702
supports_anon_versioning=no
6703
case `$LD -v 2>/dev/null` in
6704
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6705
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6706
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6707
*\ 2.11.*) ;; # other 2.11 versions
6708
*) supports_anon_versioning=yes ;;
6711
# See if GNU ld supports shared libraries.
6714
# On AIX/PPC, the GNU linker is very broken
6715
if test "$host_cpu" != ia64; then
6716
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6719
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6720
*** to be unable to reliably create shared libraries on AIX.
6721
*** Therefore, libtool is disabling shared libraries support. If you
6722
*** really care for shared libraries, you may want to modify your PATH
6723
*** so that a non-GNU linker is found, and then restart.
6730
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6731
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6732
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6734
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6735
# that the semantics of dynamic libraries on AmigaOS, at least up
6736
# to version 4, is to share data among multiple programs linked
6737
# with the same dynamic library. Since this doesn't match the
6738
# behavior of shared libraries on other platforms, we can't use
6740
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6744
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6745
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6746
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6747
# support --undefined. This deserves some investigation. FIXME
6748
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6750
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6754
cygwin* | mingw* | pw32*)
6755
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6756
# as there is no search path for DLLs.
6757
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6758
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6759
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6760
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6761
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6763
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6764
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6765
# If the export-symbols file already is a .def file (1st line
6766
# is EXPORTS), use it as is; otherwise, prepend...
6767
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6768
cp $export_symbols $output_objdir/$soname.def;
6770
echo EXPORTS > $output_objdir/$soname.def;
6771
cat $export_symbols >> $output_objdir/$soname.def;
6773
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6775
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6780
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6781
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6782
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6783
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6784
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6785
# Instead, shared libraries are loaded at an image base (0x10000000 by
6786
# default) and relocated if they conflict, which is a slow very memory
6787
# consuming and fragmenting process. To avoid this, we pick a random,
6788
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6789
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6790
_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'
6791
_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'
6794
gnu* | linux* | k*bsd*-gnu)
6795
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6797
case $cc_basename,$host_cpu in
6798
pgcc*) # Portland Group C compiler
6799
_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'
6800
tmp_addflag=' $pic_flag'
6802
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6803
_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'
6804
tmp_addflag=' $pic_flag -Mnomain' ;;
6805
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6806
tmp_addflag=' -i_dynamic' ;;
6807
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6808
tmp_addflag=' -i_dynamic -nofor_main' ;;
6809
ifc* | ifort*) # Intel Fortran compiler
6810
tmp_addflag=' -nofor_main' ;;
6812
case `$CC -V 2>&1 | sed 5q` in
6813
*Sun\ C*) # Sun C 5.9
6814
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6815
tmp_sharedflag='-G' ;;
6816
*Sun\ F*) # Sun Fortran 8.3
6817
tmp_sharedflag='-G' ;;
6819
tmp_sharedflag='-shared' ;;
6821
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6823
if test $supports_anon_versioning = yes; then
6824
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6825
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6826
$echo "local: *; };" >> $output_objdir/$libname.ver~
6827
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6830
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6835
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6836
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6839
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6840
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6845
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6846
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6849
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6850
*** create shared libraries on Solaris systems. Therefore, libtool
6851
*** is disabling shared libraries support. We urge you to upgrade GNU
6852
*** binutils to release 2.9.1 or newer. Another option is to modify
6853
*** your PATH or compiler configuration so that the native linker is
6854
*** used, and then restart.
6857
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6858
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6859
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6861
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6865
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6866
case `$LD -v 2>&1` in
6867
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6868
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6871
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6872
*** reliably create shared libraries on SCO systems. Therefore, libtool
6873
*** is disabling shared libraries support. We urge you to upgrade GNU
6874
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6875
*** your PATH or compiler configuration so that the native linker is
6876
*** used, and then restart.
6881
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6882
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6883
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6884
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6886
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6893
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6895
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6896
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6900
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6901
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6902
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6904
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6909
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6911
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6912
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6913
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6916
# PORTME fill in a description of your system's linker (not GNU ld)
6919
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6920
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6921
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6922
# Note: this linker hardcodes the directories in LIBPATH if there
6923
# are no directories specified by -L.
6924
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6925
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6926
# Neither direct hardcoding nor static linking is supported with a
6928
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6933
if test "$host_cpu" = ia64; then
6934
# On IA64, the linker does run time linking by default, so we don't
6935
# have to do anything special.
6936
aix_use_runtimelinking=no
6937
exp_sym_flag='-Bexport'
6940
# If we're using GNU nm, then we don't want the "-C" option.
6941
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6942
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6943
_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'
6945
_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'
6947
aix_use_runtimelinking=no
6949
# Test if we are trying to use run time linking or normal
6950
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6951
# need to do runtime linking.
6952
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6953
for ld_flag in $LDFLAGS; do
6954
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6955
aix_use_runtimelinking=yes
6962
exp_sym_flag='-bexport'
6963
no_entry_flag='-bnoentry'
6966
# When large executables or shared objects are built, AIX ld can
6967
# have problems creating the table of contents. If linking a library
6968
# or program results in "error TOC overflow" add -mminimal-toc to
6969
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6970
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6972
_LT_AC_TAGVAR(archive_cmds, $1)=''
6973
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6974
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6975
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6977
if test "$GCC" = yes; then
6978
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6979
# We only want to do this on AIX 4.2 and lower, the check
6980
# below for broken collect2 doesn't work under 4.3+
6981
collect2name=`${CC} -print-prog-name=collect2`
6982
if test -f "$collect2name" && \
6983
strings "$collect2name" | grep resolve_lib_name >/dev/null
6985
# We have reworked collect2
6988
# We have old collect2
6989
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6990
# It fails to find uninstalled libraries when the uninstalled
6991
# path is not listed in the libpath. Setting hardcode_minus_L
6992
# to unsupported forces relinking
6993
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6994
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6995
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6999
shared_flag='-shared'
7000
if test "$aix_use_runtimelinking" = yes; then
7001
shared_flag="$shared_flag "'${wl}-G'
7005
if test "$host_cpu" = ia64; then
7006
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7007
# chokes on -Wl,-G. The following line is correct:
7010
if test "$aix_use_runtimelinking" = yes; then
7011
shared_flag='${wl}-G'
7013
shared_flag='${wl}-bM:SRE'
7018
# It seems that -bexpall does not export symbols beginning with
7019
# underscore (_), so it is better to generate a list of symbols to export.
7020
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
7021
if test "$aix_use_runtimelinking" = yes; then
7022
# Warning - without using the other runtime loading flags (-brtl),
7023
# -berok will link without error, but may produce a broken library.
7024
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7025
# Determine the default libpath from the value encoded in an empty executable.
7026
_LT_AC_SYS_LIBPATH_AIX
7027
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7028
_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"
7030
if test "$host_cpu" = ia64; then
7031
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7032
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7033
_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"
7035
# Determine the default libpath from the value encoded in an empty executable.
7036
_LT_AC_SYS_LIBPATH_AIX
7037
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7038
# Warning - without using the other run time loading flags,
7039
# -berok will link without error, but may produce a broken library.
7040
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7041
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7042
# Exported symbols can be pulled into shared objects from archives
7043
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7044
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7045
# This is similar to how AIX traditionally builds its shared libraries.
7046
_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'
7052
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7053
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7054
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7055
# see comment about different semantics on the GNU ld section
7056
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7060
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7063
cygwin* | mingw* | pw32*)
7064
# When not using gcc, we currently assume that we are using
7065
# Microsoft Visual C++.
7066
# hardcode_libdir_flag_spec is actually meaningless, as there is
7067
# no search path for DLLs.
7068
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7069
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7070
# Tell ltmain to make .lib files, not .a files.
7072
# Tell ltmain to make .dll files, not .so files.
7074
# FIXME: Setting linknames here is a bad hack.
7075
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7076
# The linker will automatically build a .lib file if we build a DLL.
7077
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7078
# FIXME: Should let the user specify the lib program.
7079
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
7080
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7081
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7084
darwin* | rhapsody*)
7086
rhapsody* | darwin1.[[012]])
7087
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7090
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7091
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7093
case ${MACOSX_DEPLOYMENT_TARGET} in
7095
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7098
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7104
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7105
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7106
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7107
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7108
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7109
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7110
if test "$GCC" = yes ; then
7111
output_verbose_link_cmd='echo'
7112
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7113
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7114
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7115
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7117
case $cc_basename in
7119
output_verbose_link_cmd='echo'
7120
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7121
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7122
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7123
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7124
_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}'
7127
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7134
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7135
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7136
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7140
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7143
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7144
# support. Future versions do this automatically, but an explicit c++rt0.o
7145
# does not break anything, and helps significantly (at the cost of a little
7148
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7149
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7150
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7151
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7154
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7156
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7157
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7158
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7159
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7162
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7163
freebsd* | dragonfly*)
7164
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7165
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7166
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7167
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7171
if test "$GCC" = yes; then
7172
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7174
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7176
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7177
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7178
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7180
# hardcode_minus_L: Not really in the search PATH,
7181
# but as the default location of the library.
7182
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7183
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7187
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7188
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7190
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7192
if test "$with_gnu_ld" = no; then
7193
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7194
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7196
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7197
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7199
# hardcode_minus_L: Not really in the search PATH,
7200
# but as the default location of the library.
7201
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7206
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7209
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7212
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7215
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7221
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7224
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7227
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7231
if test "$with_gnu_ld" = no; then
7232
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7233
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7237
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7238
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7239
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7242
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7243
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7245
# hardcode_minus_L: Not really in the search PATH,
7246
# but as the default location of the library.
7247
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7253
irix5* | irix6* | nonstopux*)
7254
if test "$GCC" = yes; then
7255
_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'
7257
_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'
7258
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7260
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7261
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7262
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7266
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7267
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7269
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7271
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7272
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7273
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7277
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7280
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7281
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7285
if test -f /usr/libexec/ld.so; then
7286
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7287
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7288
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7289
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7290
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7291
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7292
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7295
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7296
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7297
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7300
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7301
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7306
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7311
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7312
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7313
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7314
_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'
7315
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7319
if test "$GCC" = yes; then
7320
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7321
_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'
7323
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7324
_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'
7326
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7327
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7330
osf4* | osf5*) # as osf3* with the addition of -msym flag
7331
if test "$GCC" = yes; then
7332
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7333
_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'
7334
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7336
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7337
_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'
7338
_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~
7339
$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'
7341
# Both c and cxx compiler support -rpath directly
7342
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7344
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7348
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7349
if test "$GCC" = yes; then
7351
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7352
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7353
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7356
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7358
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7360
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7361
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7363
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7365
# The compiler driver will combine and reorder linker options,
7366
# but understands `-z linker_flag'. GCC discards it without `$wl',
7367
# but is careful enough not to reorder.
7368
# Supported since Solaris 2.6 (maybe 2.5.1?)
7369
if test "$GCC" = yes; then
7370
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7372
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7376
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7380
if test "x$host_vendor" = xsequent; then
7381
# Use $CC to link under sequent, because it throws in some extra .o
7382
# files that make .init and .fini sections work.
7383
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7385
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7387
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7388
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7389
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7390
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7394
case $host_vendor in
7396
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7400
## LD is ld it makes a PLAMLIB
7401
## CC just makes a GrossModule.
7402
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7403
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7404
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7407
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7408
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7411
runpath_var='LD_RUN_PATH'
7412
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7416
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7418
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7422
if test -d /usr/nec; then
7423
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7425
runpath_var=LD_RUN_PATH
7426
hardcode_runpath_var=yes
7427
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7431
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7432
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7433
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7434
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7435
runpath_var='LD_RUN_PATH'
7437
if test "$GCC" = yes; then
7438
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7439
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7441
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7442
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7446
sysv5* | sco3.2v5* | sco5v6*)
7447
# Note: We can NOT use -z defs as we might desire, because we do not
7448
# link with -lc, and that would cause any symbols used from libc to
7449
# always be unresolved, which means just about no library would
7450
# ever link correctly. If we're not using GNU ld we use -z text
7451
# though, which does catch some bad symbols but isn't as heavy-handed
7453
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7454
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7455
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7456
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7457
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7458
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7459
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7460
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7461
runpath_var='LD_RUN_PATH'
7463
if test "$GCC" = yes; then
7464
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7465
_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'
7467
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7468
_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'
7473
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7474
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7475
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7479
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7484
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7485
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7488
# Do we need to explicitly link libc?
7490
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7492
# Assume -lc should be added
7493
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7495
if test "$enable_shared" = yes && test "$GCC" = yes; then
7496
case $_LT_AC_TAGVAR(archive_cmds, $1) in
7498
# FIXME: we may have to deal with multi-command sequences.
7501
# Test whether the compiler implicitly links with -lc since on some
7502
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7503
# to ld, don't add -lc before -lgcc.
7504
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7506
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7508
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7511
libobjs=conftest.$ac_objext
7513
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7514
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7520
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7521
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7522
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7524
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7526
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7528
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7530
cat conftest.err 1>&5
7533
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7539
])# AC_LIBTOOL_PROG_LD_SHLIBS
7542
# _LT_AC_FILE_LTDLL_C
7543
# -------------------
7544
# Be careful that the start marker always follows a newline.
7545
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7546
# /* ltdll.c starts here */
7547
# #define WIN32_LEAN_AND_MEAN
7548
# #include <windows.h>
7549
# #undef WIN32_LEAN_AND_MEAN
7550
# #include <stdio.h>
7552
# #ifndef __CYGWIN__
7553
# # ifdef __CYGWIN32__
7554
# # define __CYGWIN__ __CYGWIN32__
7558
# #ifdef __cplusplus
7561
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7562
# #ifdef __cplusplus
7567
# #include <cygwin/cygwin_dll.h>
7568
# DECLARE_CYGWIN_DLL( DllMain );
7570
# HINSTANCE __hDllInstance_base;
7573
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7575
# __hDllInstance_base = hInst;
7578
# /* ltdll.c ends here */
7579
])# _LT_AC_FILE_LTDLL_C
7582
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7583
# ---------------------------------
7584
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7588
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7589
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7590
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7591
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7592
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7593
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7594
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7596
# This is just to silence aclocal about the macro not being used
7597
ifelse([AC_DISABLE_FAST_INSTALL])
7599
AC_DEFUN([LT_AC_PROG_GCJ],
7600
[AC_CHECK_TOOL(GCJ, gcj, no)
7601
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7605
AC_DEFUN([LT_AC_PROG_RC],
7606
[AC_CHECK_TOOL(RC, windres, no)
7610
# Cheap backport of AS_EXECUTABLE_P and required macros
7611
# from Autoconf 2.59; we should not use $as_executable_p directly.
7615
m4_ifndef([_AS_TEST_PREPARE],
7616
[m4_defun([_AS_TEST_PREPARE],
7617
[if test -x / >/dev/null 2>&1; then
7618
as_executable_p='test -x'
7620
as_executable_p='test -f'
7622
])])# _AS_TEST_PREPARE
7626
# Check whether a file is executable.
7627
m4_ifndef([AS_EXECUTABLE_P],
7628
[m4_defun([AS_EXECUTABLE_P],
7629
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7630
$as_executable_p $1[]dnl
7631
])])# AS_EXECUTABLE_P
7633
# NOTE: This macro has been submitted for inclusion into #
7634
# GNU Autoconf as AC_PROG_SED. When it is available in #
7635
# a released version of Autoconf we should remove this #
7636
# macro and use it instead. #
7639
# Check for a fully-functional sed program, that truncates
7640
# as few characters as possible. Prefer GNU sed if found.
7641
AC_DEFUN([LT_AC_PROG_SED],
7642
[AC_MSG_CHECKING([for a sed that does not truncate output])
7643
AC_CACHE_VAL(lt_cv_path_SED,
7644
[# Loop through the user's path and test for sed and gsed.
7645
# Then use that list of sed's as ones to test for truncation.
7646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650
test -z "$as_dir" && as_dir=.
7651
for lt_ac_prog in sed gsed; do
7652
for ac_exec_ext in '' $ac_executable_extensions; do
7653
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7654
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7662
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7663
# along with /bin/sed that truncates output.
7664
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7665
test ! -f $lt_ac_sed && continue
7666
cat /dev/null > conftest.in
7668
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7669
# Check for GNU sed and select it if it is found.
7670
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7671
lt_cv_path_SED=$lt_ac_sed
7675
cat conftest.in conftest.in >conftest.tmp
7676
mv conftest.tmp conftest.in
7677
cp conftest.in conftest.nl
7679
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7680
cmp -s conftest.out conftest.nl || break
7681
# 10000 chars as input seems more than enough
7682
test $lt_ac_count -gt 10 && break
7683
lt_ac_count=`expr $lt_ac_count + 1`
7684
if test $lt_ac_count -gt $lt_ac_max; then
7685
lt_ac_max=$lt_ac_count
7686
lt_cv_path_SED=$lt_ac_sed
7693
AC_MSG_RESULT([$SED])
7696
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7698
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
7700
# This program is free software; you can redistribute it and/or modify
7701
# it under the terms of the GNU General Public License as published by
7702
# the Free Software Foundation; either version 2 of the License, or
7703
# (at your option) any later version.
7705
# This program is distributed in the hope that it will be useful, but
7706
# WITHOUT ANY WARRANTY; without even the implied warranty of
7707
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7708
# General Public License for more details.
7710
# You should have received a copy of the GNU General Public License
7711
# along with this program; if not, write to the Free Software
7712
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7714
# As a special exception to the GNU General Public License, if you
7715
# distribute this file as part of a program that contains a
7716
# configuration script generated by Autoconf, you may include it under
7717
# the same distribution terms that you use for the rest of that program.
7719
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
7720
# ----------------------------------
7721
AC_DEFUN([PKG_PROG_PKG_CONFIG],
7722
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7723
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
7724
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
7725
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7726
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7728
if test -n "$PKG_CONFIG"; then
7729
_pkg_min_version=m4_default([$1], [0.9.0])
7730
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7731
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7732
AC_MSG_RESULT([yes])
7739
])# PKG_PROG_PKG_CONFIG
7741
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7743
# Check to see whether a particular set of modules exists. Similar
7744
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
7747
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
7748
# this or PKG_CHECK_MODULES is called, or make sure to call
7749
# PKG_CHECK_EXISTS manually
7750
# --------------------------------------------------------------
7751
AC_DEFUN([PKG_CHECK_EXISTS],
7752
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7753
if test -n "$PKG_CONFIG" && \
7754
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7755
m4_ifval([$2], [$2], [:])
7756
m4_ifvaln([$3], [else
7761
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7762
# ---------------------------------------------
7763
m4_define([_PKG_CONFIG],
7764
[if test -n "$$1"; then
7766
elif test -n "$PKG_CONFIG"; then
7767
PKG_CHECK_EXISTS([$3],
7768
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7775
# _PKG_SHORT_ERRORS_SUPPORTED
7776
# -----------------------------
7777
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
7778
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7779
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7780
_pkg_short_errors_supported=yes
7782
_pkg_short_errors_supported=no
7784
])# _PKG_SHORT_ERRORS_SUPPORTED
7787
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7788
# [ACTION-IF-NOT-FOUND])
7791
# Note that if there is a possibility the first call to
7792
# PKG_CHECK_MODULES might not happen, you should be sure to include an
7793
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
7796
# --------------------------------------------------------------
7797
AC_DEFUN([PKG_CHECK_MODULES],
7798
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7799
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
7800
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
7803
AC_MSG_CHECKING([for $1])
7805
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7806
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7808
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
7809
and $1[]_LIBS to avoid the need to call pkg-config.
7810
See the pkg-config man page for more details.])
7812
if test $pkg_failed = yes; then
7813
_PKG_SHORT_ERRORS_SUPPORTED
7814
if test $_pkg_short_errors_supported = yes; then
7815
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
7817
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
7819
# Put the nasty error message in config.log where it belongs
7820
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7822
ifelse([$4], , [AC_MSG_ERROR(dnl
7823
[Package requirements ($2) were not met:
7827
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7828
installed software in a non-standard prefix.
7832
[AC_MSG_RESULT([no])
7834
elif test $pkg_failed = untried; then
7835
ifelse([$4], , [AC_MSG_FAILURE(dnl
7836
[The pkg-config script could not be found or is too old. Make sure it
7837
is in your PATH or set the PKG_CONFIG environment variable to the full
7842
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7845
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7846
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
7847
AC_MSG_RESULT([yes])
7848
ifelse([$3], , :, [$3])
7850
])# PKG_CHECK_MODULES
1087
AC_DEFUN([_MM_PRE_INIT], [m4_pattern_forbid([^_?MM_])])
1089
m4_define([_MM_PREREQ],
1091
m4_if(m4_quote(m4_version_compare([$2], [$3])), [-1],
1092
[m4_fatal([$4 requires $1 $3 (version $2 is installed)])])[]dnl
1095
AC_DEFUN([MM_PREREQ],
1097
m4_assert([$# >= 1])[]dnl
1098
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1099
_MM_PREREQ([mm-common], [0.7.1], [$1], m4_defn([AC_PACKAGE_NAME]))[]dnl
1105
m4_define([_MM_ARG_DISABLE_DEPRECATED_API_OPTION],
1107
AC_PROVIDE([$0])[]dnl
1108
AC_ARG_ENABLE([deprecated-api],
1109
[AS_HELP_STRING([--disable-deprecated-api],
1110
[omit deprecated API from the library])],
1111
[mm_enable_deprecated_api=$enableval],
1112
[mm_enable_deprecated_api=yes])[]dnl
1113
AS_IF([test "x$mm_enable_deprecated_api" = xno],
1114
[AC_MSG_WARN([[Deprecated API will not be built, breaking compatibility.
1115
Do not use this option for distribution packages.]])],
1116
[AC_MSG_NOTICE([[Deprecated API will be built, for backwards-compatibility.]])])
1117
AM_CONDITIONAL([DISABLE_DEPRECATED_API], [test "x$mm_enable_deprecated_api" = xno])[]dnl
1120
m4_define([_MM_ARG_DISABLE_DEPRECATED_API_DEFINE],
1121
[m4_foreach_w([mm_prefix], [$1],
1122
[AC_DEFINE(m4_defn([mm_prefix])[_DISABLE_DEPRECATED], [1],
1123
[Define to omit deprecated API from the library.])
1126
AC_DEFUN([MM_ARG_DISABLE_DEPRECATED_API],
1128
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1129
AC_REQUIRE([_MM_ARG_DISABLE_DEPRECATED_API_OPTION])[]dnl
1130
AS_IF([test "x$mm_enable_deprecated_api" = xno],
1131
[_MM_ARG_DISABLE_DEPRECATED_API_DEFINE(
1132
m4_ifval([$1], [[$1]], [AS_TR_CPP(m4_defn([AC_PACKAGE_TARNAME]))]))])[]dnl
1138
m4_define([_MM_CONFIG_DOCTOOL_DIR],
1140
AC_PROVIDE([$0])[]dnl
1141
AC_REQUIRE([PKG_PROG_PKG_CONFIG])[]dnl
1143
AC_MSG_CHECKING([location of documentation utilities])
1144
AS_IF([test "x$MMDOCTOOLDIR" = x],
1146
MMDOCTOOLDIR=`$PKG_CONFIG --variable=doctooldir glibmm-2.4 2>&AS_MESSAGE_LOG_FD`
1147
AS_IF([test "[$]?" -ne 0],
1148
[AC_MSG_ERROR([[not found
1149
The required module glibmm could not be found on this system. If you
1150
are running a binary distribution and the glibmm package is installed,
1151
make sure that any separate development package for glibmm is installed
1152
as well. If you built glibmm yourself, it may be necessary to adjust
1153
the PKG_CONFIG_PATH environment variable for pkg-config to find it.
1156
AC_MSG_RESULT([$MMDOCTOOLDIR])[]dnl
1159
AC_DEFUN([MM_CONFIG_DOCTOOL_DIR],
1161
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1162
AC_REQUIRE([MM_CHECK_GNU_MAKE])[]dnl
1163
m4_ifval([$1], [MMDOCTOOLDIR='[$]{top_srcdir}/$1'], [AC_REQUIRE([_MM_CONFIG_DOCTOOL_DIR])])
1164
AC_SUBST([MMDOCTOOLDIR])[]dnl
1167
m4_define([_MM_ARG_ENABLE_DOCUMENTATION],
1169
AC_PROVIDE([$0])[]dnl
1171
AC_ARG_VAR([DOT], [path to dot utility])[]dnl
1172
AC_ARG_VAR([DOXYGEN], [path to Doxygen utility])[]dnl
1173
AC_ARG_VAR([XSLTPROC], [path to xsltproc utility])[]dnl
1175
AC_PATH_PROG([DOT], [dot], [dot])
1176
AC_PATH_PROG([DOXYGEN], [doxygen], [doxygen])
1177
AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
1179
AC_ARG_ENABLE([documentation],
1180
[AS_HELP_STRING([--disable-documentation],
1181
[do not build or install the documentation])],
1182
[ENABLE_DOCUMENTATION=$enableval],
1183
[ENABLE_DOCUMENTATION=auto])
1184
AS_IF([test "x$ENABLE_DOCUMENTATION" != xno],
1187
AS_IF([test "x$MMDOCTOOLDIR" = x], [mm_err='dnl
1188
The glibmm module is available, but the installation of glibmm on this
1189
machine is missing the shared documentation utilities of the GNOME C++
1190
bindings. It may be necessary to upgrade to a more recent release of
1191
glibmm in order to build '$PACKAGE_NAME' and install the documentation.'],
1192
[test "x$PERL" = xperl], [mm_err='Perl is required for installing the documentation.'],
1193
[test "x$USE_MAINTAINER_MODE" != xno],
1195
test "x$DOT" != xdot || mm_err=' dot'
1196
test "x$DOXYGEN" != xdoxygen || mm_err="$mm_err doxygen"
1197
test "x$XSLTPROC" != xxsltproc || mm_err="$mm_err xsltproc"
1198
test -z "$mm_err" || mm_err='The documentation cannot be generated because
1199
not all of the required tools are available:'$mm_err
1201
AS_IF([test -z "$mm_err"], [ENABLE_DOCUMENTATION=yes],
1202
[test "x$ENABLE_DOCUMENTATION" = xyes], [AC_MSG_FAILURE([[$mm_err]])],
1203
[ENABLE_DOCUMENTATION=no; AC_MSG_WARN([[$mm_err]])])
1205
AM_CONDITIONAL([ENABLE_DOCUMENTATION], [test "x$ENABLE_DOCUMENTATION" = xyes])
1206
AC_SUBST([DOXYGEN_TAGFILES], [[]])
1207
AC_SUBST([DOCINSTALL_FLAGS], [[]])[]dnl
1210
AC_DEFUN([MM_ARG_ENABLE_DOCUMENTATION],
1212
AC_BEFORE([$0], [MM_ARG_WITH_TAGFILE_DOC])[]dnl
1213
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1214
AC_REQUIRE([MM_CONFIG_DOCTOOL_DIR])[]dnl
1215
AC_REQUIRE([MM_PATH_PERL])[]dnl
1216
AC_REQUIRE([_MM_ARG_ENABLE_DOCUMENTATION])[]dnl
1219
m4_define([_MM_TR_URI],
1221
[`expr "X$1" : 'X\(.*[^\\/]\)[\\/]*' 2>&]AS_MESSAGE_LOG_FD[ |]dnl
1222
[ sed 's|[\\]|/|g;s| |%20|g;s|^/|file:///|;s|^.:/|file:///&|' 2>&]AS_MESSAGE_LOG_FD[`]dnl
1225
m4_define([_MM_ARG_WITH_TAGFILE_DOC],
1227
AC_MSG_CHECKING([for $1 documentation])
1228
AC_ARG_WITH([$1-doc],
1229
[AS_HELP_STRING([[--with-$1-doc=[TAGFILE@]HTMLREFDIR]],
1230
[Link to external $1 documentation]m4_ifval([$4], [[ [auto]]]))],
1232
mm_htmlrefdir=`[expr "@$withval" : '.*@\(.*\)' 2>&]AS_MESSAGE_LOG_FD`
1233
mm_tagname=`[expr "/$withval" : '[^@]*[\\/]\([^\\/@]*\)@' 2>&]AS_MESSAGE_LOG_FD`
1234
mm_tagpath=`[expr "X$withval" : 'X\([^@]*\)@' 2>&]AS_MESSAGE_LOG_FD`
1235
test "x$mm_tagname" != x || mm_tagname="$3"
1236
test "x$mm_tagpath" != x || mm_tagpath=$mm_tagname[]dnl
1240
mm_tagpath=$mm_tagname[]dnl
1242
# Prepend working direcory if the tag file path starts with ./ or ../
1243
AS_CASE([$mm_tagpath], [[.[\\/]*|..[\\/]*]], [mm_tagpath=`pwd`/$mm_tagpath])
1246
# If no local directory was specified, get the default from the .pc file
1247
AS_IF([test "x$mm_htmlrefdir" = x],
1249
mm_htmlrefdir=`$PKG_CONFIG --variable=htmlrefdir "$4" 2>&AS_MESSAGE_LOG_FD`dnl
1251
# If the user specified a Web URL, allow it to override the public location
1252
AS_CASE([$mm_htmlrefdir], [[http://*|https://*]], [mm_htmlrefpub=$mm_htmlrefdir],
1254
mm_htmlrefpub=`$PKG_CONFIG --variable=htmlrefpub "$4" 2>&AS_MESSAGE_LOG_FD`
1255
test "x$mm_htmlrefpub" != x || mm_htmlrefpub=$mm_htmlrefdir
1256
test "x$mm_htmlrefdir" != x || mm_htmlrefdir=$mm_htmlrefpub
1258
# The user-supplied tag-file name takes precedence if it includes the path
1259
AS_CASE([$mm_tagpath], [[*[\\/]*]],,
1261
mm_doxytagfile=`$PKG_CONFIG --variable=doxytagfile "$4" 2>&AS_MESSAGE_LOG_FD`
1262
test "x$mm_doxytagfile" = x || mm_tagpath=$mm_doxytagfile
1264
# Remove trailing slashes and translate to URI
1265
mm_htmlrefpub=_MM_TR_URI([$mm_htmlrefpub])
1267
mm_htmlrefdir=_MM_TR_URI([$mm_htmlrefdir])
1269
AC_MSG_RESULT([$mm_tagpath@$mm_htmlrefdir])
1271
AS_IF([test "x$USE_MAINTAINER_MODE" != xno && test ! -f "$mm_tagpath"],
1272
[AC_MSG_WARN([Doxygen tag file $3 not found])])
1273
AS_IF([test "x$mm_htmlrefdir" = x],
1274
[AC_MSG_WARN([Location of external $1 documentation not set])],
1275
[AS_IF([test "x$DOCINSTALL_FLAGS" = x],
1276
[DOCINSTALL_FLAGS="-l '$mm_tagname@$mm_htmlrefdir/'"],
1277
[DOCINSTALL_FLAGS="$DOCINSTALL_FLAGS -l '$mm_tagname@$mm_htmlrefdir/'"])])
1279
AS_IF([test "x$mm_$2" = x], [mm_val=$mm_tagpath], [mm_val="$mm_tagpath=$mm_$2"])
1280
AS_IF([test "x$DOXYGEN_TAGFILES" = x],
1281
[DOXYGEN_TAGFILES=[\]"$mm_val[\]"],
1282
[DOXYGEN_TAGFILES="$DOXYGEN_TAGFILES "[\]"$mm_val[\]"])[]dnl
1285
AC_DEFUN([MM_ARG_WITH_TAGFILE_DOC],
1287
m4_assert([$# >= 1])[]dnl
1288
m4_ifval([$2], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])])[]dnl
1289
AC_REQUIRE([MM_CONFIG_DOCTOOL_DIR])[]dnl
1290
AC_REQUIRE([_MM_ARG_ENABLE_DOCUMENTATION])[]dnl
1292
AS_IF([test "x$ENABLE_DOCUMENTATION" != xno],
1293
[_MM_ARG_WITH_TAGFILE_DOC(m4_quote(m4_bpatsubst([$1], [[+]*\([-+][0123456789]\|[._]\).*$])),
1294
[htmlref]m4_ifval([$2], [[pub]], [[dir]]), [$1], [$2])])[]dnl
1300
m4_define([_MM_INIT_MODULE_VERSION],
1303
[AC_SUBST([$2][_MAJOR_VERSION], [$3])
1304
AC_DEFINE([$2][_MAJOR_VERSION], [$3], [Major version number of $1.])
1307
[AC_SUBST([$2][_MINOR_VERSION], [$4])
1308
AC_DEFINE([$2][_MINOR_VERSION], [$4], [Minor version number of $1.])
1311
[AC_SUBST([$2][_MICRO_VERSION], [$5])
1312
AC_DEFINE([$2][_MICRO_VERSION], [$5], [Micro version number of $1.])
1316
m4_define([_MM_INIT_MODULE_SUBST],
1318
AC_SUBST([$5][_MODULE_NAME], ['$1'])
1319
AC_SUBST([$5][_VERSION], ['$2'])
1321
[AC_SUBST([$5][_API_VERSION], ['$4'])
1323
_MM_INIT_MODULE_VERSION([$3], [$5], m4_bpatsubst([$2], [[^0123456789]+], [,]))[]dnl
1326
m4_define([_MM_INIT_MODULE_BASENAME],
1327
[_MM_INIT_MODULE_SUBST([$1], [$2], [$3], [$4],
1328
m4_quote(AS_TR_CPP(m4_quote(m4_translit([$3], [+], [X])))))])
1330
AC_DEFUN([MM_INIT_MODULE],
1332
m4_assert([$# >= 1])[]dnl
1333
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1334
AC_REQUIRE([MM_CHECK_GNU_MAKE])[]dnl
1335
_MM_INIT_MODULE_BASENAME([$1],
1336
m4_quote(m4_ifval([$2], [$2], m4_defn([AC_PACKAGE_VERSION]))),
1337
m4_quote(m4_bpatsubst([$1], [-[.0123456789]+$])),
1338
m4_quote(m4_bregexp([$1], [-\([.0123456789]+\)$], [\1])))[]dnl
1344
m4_define([_MM_CHECK_GNU_MAKE],
1346
AC_PROVIDE([$0])[]dnl
1347
AC_MSG_CHECKING([whether [$]{MAKE-make} supports GNU make features])
1348
cat >conftest.make <<'_MMEOF'
1349
override reverse = [$](2)[$](subst ,, )[$](1)
1350
override result := [$](word 2,[$](call reverse,success,failure))
1351
all: ; test '[$](result)' = success
1354
AS_IF([[$]{MAKE-make} -f conftest.make >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD],
1355
[mm_gnu_make=yes], [mm_gnu_make=no])
1357
AC_MSG_RESULT([$mm_gnu_make])
1358
AS_IF([test "x$mm_gnu_make" != xyes],
1359
[AC_MSG_FAILURE([[The GNU make program is required to build $PACKAGE_NAME.]])])[]dnl
1362
AC_DEFUN([MM_CHECK_GNU_MAKE],
1364
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1365
AC_REQUIRE([_MM_CHECK_GNU_MAKE])[]dnl
1368
m4_define([_MM_PATH_PERL],
1370
AC_PROVIDE([$0])[]dnl
1371
AC_ARG_VAR([PERL], [path to Perl interpreter])[]dnl
1372
AC_PATH_PROG([PERL], [perl], [perl])[]dnl
1375
AC_DEFUN([MM_PATH_PERL],
1377
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1378
AC_REQUIRE([_MM_PATH_PERL])[]dnl
1381
m4_define([_MM_CHECK_PERL],
1383
AS_IF([$PERL -e "require v$1; exit 0;" >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD],
1384
[$2], m4_ifval([$2$3], [[$3]],
1385
[[AC_MSG_FAILURE([[At least Perl ]$1[ is required to build $PACKAGE_NAME.]])]]))[]dnl
1388
AC_DEFUN([MM_CHECK_PERL],
1390
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1391
AC_REQUIRE([_MM_PATH_PERL])[]dnl
1392
_MM_CHECK_PERL(m4_ifval([$1], [[$1]], [[5.6.0]]), [$2], [$3])[]dnl
1395
AC_DEFUN([MM_PKG_CONFIG_SUBST],
1397
m4_assert([$# >= 2])[]dnl
1398
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1399
AC_REQUIRE([PKG_PROG_PKG_CONFIG])[]dnl
1400
AC_MSG_CHECKING([for $1])
1402
AS_IF([test -z "[$]{$1+set}"],
1403
[$1=`$PKG_CONFIG $2 2>&AS_MESSAGE_LOG_FD`
1404
AS_IF([test "[$]?" -eq 0], [$3], [$4])])
1406
AC_MSG_RESULT([[$]$1])
1413
m4_define([_MM_ARG_ENABLE_WARNINGS_OPTION],
1415
AC_PROVIDE([$0])[]dnl
1416
AC_ARG_ENABLE([warnings],
1417
[AS_HELP_STRING([[--enable-warnings[=min|max|fatal|no]]],
1418
[set compiler pedantry level [default=min]])],
1419
[mm_enable_warnings=$enableval],
1420
[mm_enable_warnings=min])[]dnl
1423
AC_DEFUN([MM_ARG_ENABLE_WARNINGS],
1425
m4_assert([$# >= 3])[]dnl
1426
AC_REQUIRE([_MM_PRE_INIT])[]dnl
1427
AC_REQUIRE([_MM_ARG_ENABLE_WARNINGS_OPTION])[]dnl
1429
AS_CASE([$ac_compile],
1430
[[*'$CXXFLAGS '*]], [mm_lang='C++' mm_cc=$CXX mm_conftest="conftest.[$]{ac_ext-cc}"],
1431
[[*'$CFLAGS '*]], [mm_lang=C mm_cc=$CC mm_conftest="conftest.[$]{ac_ext-c}"],
1432
[AC_MSG_ERROR([[current language is neither C nor C++]])])
1434
AC_MSG_CHECKING([which $mm_lang compiler warning flags to use])
1435
m4_ifval([$4], [mm_deprecation_flags=
1438
AS_CASE([$mm_enable_warnings],
1439
[no], [mm_warning_flags=],
1440
[max], [mm_warning_flags="$3"],
1441
[fatal], [mm_warning_flags="$3 -Werror"[]m4_ifval([$4], [
1444
mm_deprecation_flags="[$]{mm_deprecation_flags}-D[$]{mm_prefix}[_DISABLE_DEPRECATED ]"
1446
[mm_warning_flags="$2"])
1448
AS_IF([test "x$mm_warning_flags" != x],
1450
# Keep in mind that the dummy source must be devoid of any
1451
# problems that might cause diagnostics.
1452
AC_LANG_CONFTEST([AC_LANG_SOURCE([[
1453
int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
1455
for mm_flag in $mm_warning_flags
1457
# Test whether the compiler accepts the flag. Look at standard output,
1458
# since GCC only shows a warning message if an option is not supported.
1459
mm_cc_out=`$mm_cc $mm_tested_flags $mm_flag -c "$mm_conftest" 2>&1 || echo failed`
1460
rm -f "conftest.${OBJEXT-o}"
1462
AS_IF([test "x$mm_cc_out" = x],
1463
[AS_IF([test "x$mm_tested_flags" = x],
1464
[mm_tested_flags=$mm_flag],
1465
[mm_tested_flags="$mm_tested_flags $mm_flag"])],
1466
[cat <<_MMEOF >&AS_MESSAGE_LOG_FD
1471
rm -f "$mm_conftest"
1473
mm_all_flags=m4_ifval([$4], [$mm_deprecation_flags])$mm_tested_flags
1474
AC_SUBST([$1], [$mm_all_flags])
1476
test "x$mm_all_flags" != x || mm_all_flags=none
1477
AC_MSG_RESULT([$mm_all_flags])[]dnl
1480
m4_include([build/c_std.m4])
1481
m4_include([build/cxx.m4])
1482
m4_include([build/cxx_std.m4])
1483
m4_include([build/dk-feature.m4])
1484
m4_include([build/libtool.m4])
1485
m4_include([build/ltoptions.m4])
1486
m4_include([build/ltsugar.m4])
1487
m4_include([build/ltversion.m4])
1488
m4_include([build/lt~obsolete.m4])
1489
m4_include([build/macros.m4])
1490
m4_include([build/reduced.m4])
1491
m4_include([build/sun.m4])