243
232
# If no C compiler was specified, use CC.
244
233
LTCC=${LTCC-"$CC"}
246
# If no C compiler flags were specified, use CFLAGS.
247
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
249
235
# Allow CC to be a program name with arguments.
251
237
])# _LT_AC_SYS_COMPILER
254
# _LT_CC_BASENAME(CC)
255
# -------------------
256
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
257
AC_DEFUN([_LT_CC_BASENAME],
258
[for cc_temp in $1""; do
260
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
261
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
266
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
270
# _LT_COMPILER_BOILERPLATE
271
# ------------------------
272
# Check for compiler boilerplate output or warnings with
273
# the simple compiler test code.
274
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
275
[AC_REQUIRE([LT_AC_PROG_SED])dnl
276
ac_outfile=conftest.$ac_objext
277
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
278
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
279
_lt_compiler_boilerplate=`cat conftest.err`
281
])# _LT_COMPILER_BOILERPLATE
284
# _LT_LINKER_BOILERPLATE
285
# ----------------------
286
# Check for linker boilerplate output or warnings with
287
# the simple link test code.
288
AC_DEFUN([_LT_LINKER_BOILERPLATE],
289
[AC_REQUIRE([LT_AC_PROG_SED])dnl
290
ac_outfile=conftest.$ac_objext
291
echo "$lt_simple_link_test_code" >conftest.$ac_ext
292
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
293
_lt_linker_boilerplate=`cat conftest.err`
295
])# _LT_LINKER_BOILERPLATE
297
# _LT_REQUIRED_DARWIN_CHECKS
298
# --------------------------
299
# Check for some things on darwin
300
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
303
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
304
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
306
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
307
[lt_cv_apple_cc_single_mod=no
308
if test -z "${LT_MULTI_MODULE}"; then
309
# By default we will add the -single_module flag. You can override
310
# by either setting the environment variable LT_MULTI_MODULE
311
# non-empty at configure time, or by adding -multi_module to the
313
echo "int foo(void){return 1;}" > conftest.c
314
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
315
-dynamiclib ${wl}-single_module conftest.c
316
if test -f libconftest.dylib; then
317
lt_cv_apple_cc_single_mod=yes
318
rm -rf libconftest.dylib*
322
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
323
[lt_cv_ld_exported_symbols_list],
324
[lt_cv_ld_exported_symbols_list=no
325
save_LDFLAGS=$LDFLAGS
326
echo "_main" > conftest.sym
327
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
328
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
329
[lt_cv_ld_exported_symbols_list=yes],
330
[lt_cv_ld_exported_symbols_list=no])
331
LDFLAGS="$save_LDFLAGS"
334
rhapsody* | darwin1.[[0123]])
335
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
337
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
339
# if running on 10.5 or later, the deployment target defaults
340
# to the OS version, if on x86, and 10.4, the deployment
341
# target defaults to 10.4. Don't you love it?
342
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
343
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
344
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
346
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
348
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
352
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
353
_lt_dar_single_mod='$single_module'
355
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
356
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
358
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
360
if test "$DSYMUTIL" != ":"; then
361
_lt_dsymutil="~$DSYMUTIL \$lib || :"
369
240
# _LT_AC_SYS_LIBPATH_AIX
370
241
# ----------------------
371
242
# Links a minimal program and checks the executable
765
599
# ------------------------------------------------------------
766
600
# Check whether the given compiler option works
767
601
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
768
[AC_REQUIRE([LT_AC_PROG_SED])dnl
769
AC_CACHE_CHECK([$1], [$2],
602
[AC_CACHE_CHECK([$1], [$2],
771
604
save_LDFLAGS="$LDFLAGS"
772
605
LDFLAGS="$LDFLAGS $3"
773
echo "$lt_simple_link_test_code" > conftest.$ac_ext
606
printf "$lt_simple_link_test_code" > conftest.$ac_ext
774
607
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
775
# The linker can only warn and ignore the option if not recognized
608
# The compiler can only warn and ignore the option if not recognized
776
609
# So say no if there are warnings
777
610
if test -s conftest.err; then
778
611
# Append any errors to the config.log.
779
612
cat conftest.err 1>&AS_MESSAGE_LOG_FD
780
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
781
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
782
if diff conftest.exp conftest.er2 >/dev/null; then
790
618
LDFLAGS="$save_LDFLAGS"
840
668
lt_cv_sys_max_cmd_len=8192;
843
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
844
# This has been around since 386BSD, at least. Likely further.
845
if test -x /sbin/sysctl; then
846
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
847
elif test -x /usr/sbin/sysctl; then
848
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
850
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
852
# And add a safety zone
853
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
854
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
858
# We know the value 262144 and hardcode it with a safety zone (like BSD)
859
lt_cv_sys_max_cmd_len=196608
863
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
864
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
865
# nice to cause kernel panics so lets avoid the loop below.
866
# First set a reasonable default.
867
lt_cv_sys_max_cmd_len=16384
869
if test -x /sbin/sysconfig; then
870
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
871
*1*) lt_cv_sys_max_cmd_len=-1 ;;
876
lt_cv_sys_max_cmd_len=102400
878
sysv5* | sco5v6* | sysv4.2uw2*)
879
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
880
if test -n "$kargmax"; then
881
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
883
lt_cv_sys_max_cmd_len=32768
887
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
888
if test -n "$lt_cv_sys_max_cmd_len"; then
889
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
890
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
892
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
893
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
672
# If test is not a shell built-in, we'll probably end up computing a
673
# maximum length that is only half of the actual maximum length, but
675
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
894
676
= "XX$teststring") >/dev/null 2>&1 &&
895
new_result=`expr "X$teststring" : ".*" 2>&1` &&
896
lt_cv_sys_max_cmd_len=$new_result &&
897
test $i != 17 # 1/2 MB should be enough
900
teststring=$teststring$teststring
903
# Add a significant safety factor because C++ compilers can tack on massive
904
# amounts of additional arguments before passing them to the linker.
905
# It appears as though 1/2 is a usable value.
906
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
677
new_result=`expr "X$teststring" : ".*" 2>&1` &&
678
lt_cv_sys_max_cmd_len=$new_result &&
679
test $i != 17 # 1/2 MB should be enough
682
teststring=$teststring$teststring
685
# Add a significant safety factor because C++ compilers can tack on massive
686
# amounts of additional arguments before passing them to the linker.
687
# It appears as though 1/2 is a usable value.
688
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1313
1087
version_type=none
1314
1088
dynamic_linker="$host_os ld.so"
1315
1089
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1317
1090
if test "$GCC" = yes; then
1319
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1320
*) lt_awk_arg="/^libraries:/" ;;
1322
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1323
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1091
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1092
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1324
1093
# if the path contains ";" then we assume it to be the separator
1325
1094
# otherwise default to the standard path separator (i.e. ":") - it is
1326
1095
# assumed that no part of a normal pathname contains ";" but that should
1327
1096
# okay in the real world where ";" in dirpaths is itself problematic.
1328
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1097
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1330
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1099
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1332
# Ok, now we have the path, separated by spaces, we can step through it
1333
# and add multilib dir if necessary.
1334
lt_tmp_lt_search_path_spec=
1335
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1336
for lt_sys_path in $lt_search_path_spec; do
1337
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1338
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1340
test -d "$lt_sys_path" && \
1341
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1344
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1345
BEGIN {RS=" "; FS="/|\n";} {
1348
for (lt_i = NF; lt_i > 0; lt_i--) {
1349
if ($lt_i != "" && $lt_i != ".") {
1350
if ($lt_i == "..") {
1353
if (lt_count == 0) {
1354
lt_foo="/" $lt_i lt_foo;
1361
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1362
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1364
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1366
1102
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1368
1104
need_lib_prefix=unknown
1369
1105
hardcode_into_libs=no
2444
2129
mingw* | pw32*)
2445
2130
# Base MSYS/MinGW do not provide the 'file' command needed by
2446
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2447
# unless we find 'file', for example because we are cross-compiling.
2448
if ( file / ) >/dev/null 2>&1; then
2449
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2450
lt_cv_file_magic_cmd='func_win32_libid'
2452
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2453
lt_cv_file_magic_cmd='$OBJDUMP -f'
2131
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2132
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2133
lt_cv_file_magic_cmd='$OBJDUMP -f'
2457
2136
darwin* | rhapsody*)
2458
2137
lt_cv_deplibs_check_method=pass_all
2461
freebsd* | dragonfly*)
2140
freebsd* | kfreebsd*-gnu)
2462
2141
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2463
2142
case $host_cpu in
2465
2144
# Not sure whether the presence of OpenBSD here was a mistake.
2466
2145
# Let's accept both of them until this is cleared up.
2467
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2146
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2468
2147
lt_cv_file_magic_cmd=/usr/bin/file
2469
2148
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2601
2274
# Let the user override the test.
2602
2275
lt_cv_path_NM="$NM"
2604
lt_nm_to_check="${ac_tool_prefix}nm"
2605
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2606
lt_nm_to_check="$lt_nm_to_check nm"
2608
for lt_tmp_nm in $lt_nm_to_check; do
2609
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2610
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2612
test -z "$ac_dir" && ac_dir=.
2613
tmp_nm="$ac_dir/$lt_tmp_nm"
2614
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2615
# Check to see if the nm accepts a BSD-compat flag.
2616
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2617
# nm: unknown option "B" ignored
2618
# Tru64's nm complains that /dev/null is an invalid object file
2619
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2620
*/dev/null* | *'Invalid file or object type'*)
2621
lt_cv_path_NM="$tmp_nm -B"
2277
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2278
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2280
test -z "$ac_dir" && ac_dir=.
2281
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2282
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2283
# Check to see if the nm accepts a BSD-compat flag.
2284
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2285
# nm: unknown option "B" ignored
2286
# Tru64's nm complains that /dev/null is an invalid object file
2287
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2288
*/dev/null* | *'Invalid file or object type'*)
2289
lt_cv_path_NM="$tmp_nm -B"
2293
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2295
lt_cv_path_NM="$tmp_nm -p"
2625
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2627
lt_cv_path_NM="$tmp_nm -p"
2631
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2632
continue # so that we can try to find one that supports BSD flags
2299
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2300
continue # so that we can try to find one that supports BSD flags
2641
2307
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2643
2309
NM="$lt_cv_path_NM"
2669
2335
# -----------------------------------
2670
2336
# sets LIBLTDL to the link flags for the libltdl convenience library and
2671
2337
# LTDLINCL to the include flags for the libltdl header and adds
2672
# --enable-ltdl-convenience to the configure arguments. Note that
2673
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2674
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2675
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2676
# (note the single quotes!). If your package is not flat and you're not
2677
# using automake, define top_builddir and top_srcdir appropriately in
2338
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2339
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2340
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2341
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2342
# '${top_srcdir}/' (note the single quotes!). If your package is not
2343
# flat and you're not using automake, define top_builddir and
2344
# top_srcdir appropriately in the Makefiles.
2679
2345
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2680
2346
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2681
2347
case $enable_ltdl_convenience in
2694
2360
# -----------------------------------
2695
2361
# sets LIBLTDL to the link flags for the libltdl installable library and
2696
2362
# LTDLINCL to the include flags for the libltdl header and adds
2697
# --enable-ltdl-install to the configure arguments. Note that
2698
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2699
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2700
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2701
# '${top_srcdir}/' (note the single quotes!). If your package is not
2702
# flat and you're not using automake, define top_builddir and top_srcdir
2703
# appropriately in the Makefiles.
2363
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2364
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2365
# DIRECTORY is not provided and an installed libltdl is not found, it is
2366
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2367
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2368
# quotes!). If your package is not flat and you're not using automake,
2369
# define top_builddir and top_srcdir appropriately in the Makefiles.
2704
2370
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2705
2371
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2706
2372
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2818
2473
_LT_AC_TAGVAR(objext, $1)=$objext
2820
2475
# Code to be used in simple compile tests
2821
lt_simple_compile_test_code="int some_variable = 0;"
2476
lt_simple_compile_test_code="int some_variable = 0;\n"
2823
2478
# Code to be used in simple link tests
2824
lt_simple_link_test_code='int main(){return(0);}'
2479
lt_simple_link_test_code='int main(){return(0);}\n'
2826
2481
_LT_AC_SYS_COMPILER
2828
# save warnings/boilerplate of simple test code
2829
_LT_COMPILER_BOILERPLATE
2830
_LT_LINKER_BOILERPLATE
2484
# Check for any special shared library compilation flags.
2486
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2487
if test "$GCC" = no; then
2490
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2494
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2495
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2496
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2498
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2499
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2505
# Check to make sure the static flag actually works.
2507
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2508
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2509
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2511
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2832
2514
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2833
2515
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2861
2543
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2862
2544
test "$enable_shared" = yes && enable_static=no
2547
darwin* | rhapsody*)
2548
if test "$GCC" = yes; then
2549
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2551
rhapsody* | darwin1.[[012]])
2552
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2555
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2556
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2558
case ${MACOSX_DEPLOYMENT_TARGET} in
2560
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2563
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2569
output_verbose_link_cmd='echo'
2570
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2571
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2572
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2573
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2574
_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}'
2575
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2576
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2577
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2578
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2579
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2581
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2866
2585
AC_MSG_RESULT([$enable_shared])
3130
2838
# -berok will link without error, but may produce a broken library.
3131
2839
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3132
2840
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2841
# -bexpall does not export symbols beginning with underscore (_)
2842
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3133
2843
# Exported symbols can be pulled into shared objects from archives
3134
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2844
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3135
2845
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3136
# This is similar to how AIX traditionally builds its shared libraries.
3137
_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'
2846
# This is similar to how AIX traditionally builds it's shared libraries.
2847
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3143
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3144
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3145
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3146
# support --undefined. This deserves some investigation. FIXME
3147
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3149
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3154
2852
case $cc_basename in
3177
2875
echo EXPORTS > $output_objdir/$soname.def;
3178
2876
cat $export_symbols >> $output_objdir/$soname.def;
3180
$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'
2878
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3182
2880
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3185
darwin* | rhapsody*)
3186
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3187
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3188
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3189
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3190
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3191
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3192
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3193
if test "$GXX" = yes ; then
3194
output_verbose_link_cmd='echo'
3195
_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}"
3196
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3197
_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}"
3198
_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}"
3199
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3200
_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}"
3201
_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}"
2884
darwin* | rhapsody*)
2885
if test "$GXX" = yes; then
2886
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2888
rhapsody* | darwin1.[[012]])
2889
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2892
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2893
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3204
case $cc_basename in
3206
output_verbose_link_cmd='echo'
3207
_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'
3208
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3209
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3210
_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}'
3211
_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}'
3214
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2895
case ${MACOSX_DEPLOYMENT_TARGET} in
2897
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2900
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2906
lt_int_apple_cc_single_mod=no
2907
output_verbose_link_cmd='echo'
2908
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2909
lt_int_apple_cc_single_mod=yes
2911
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2912
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2914
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
2916
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2918
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2919
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2920
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2922
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2924
_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}'
2925
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2926
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2927
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2928
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2929
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2931
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3221
2936
case $cc_basename in
3223
2938
# FIXME: insert proper C++ library support
3224
2939
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3227
2942
# Green Hills C++ Compiler
3228
2943
# FIXME: insert proper C++ library support
3229
2944
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3287
3002
hpux10*|hpux11*)
3288
3003
if test $with_gnu_ld = no; then
3289
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3290
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3006
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3007
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3008
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3011
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3014
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3015
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3295
3016
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3301
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3302
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3022
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3023
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3026
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3027
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3028
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3029
# but as the default
3030
# location of the library.
3305
3033
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3362
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3363
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3364
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3365
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3366
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3367
# Instead, shared libraries are loaded at an image base (0x10000000 by
3368
# default) and relocated if they conflict, which is a slow very memory
3369
# consuming and fragmenting process. To avoid this, we pick a random,
3370
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3371
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3372
_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'
3373
_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'
3375
3083
irix5* | irix6*)
3376
3084
case $cc_basename in
3379
_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'
3087
_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 ${objdir}/so_locations -o $lib'
3381
3089
# Archives containing C++ object files must be created using
3382
3090
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3425
3133
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3426
3134
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3430
3138
with_gnu_ld=yes
3431
# version 8.0 and above of icpc choke on multiply defined symbols
3432
# if we add $predep_objects and $postdep_objects, however 7.1 and
3433
# earlier do not add the objects themselves.
3434
case `$CC -V 2>&1` in
3436
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3437
_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'
3439
*) # Version 8.0 or newer
3442
ia64*) tmp_idyn=' -i_dynamic';;
3444
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3445
_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'
3448
3139
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3140
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3141
_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'
3449
3142
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3450
3143
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3451
3144
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3454
# Portland Group C++ compiler
3455
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3456
_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'
3458
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3459
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3460
_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'
3464
3148
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3465
3149
_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'
3478
3162
# dependencies.
3479
3163
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'
3482
case `$CC -V 2>&1 | sed 5q` in
3485
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3486
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3487
_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'
3488
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3489
_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'
3491
# Not sure whether something based on
3492
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3494
output_verbose_link_cmd='echo'
3496
# Archives containing C++ object files must be created using
3497
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3498
# necessary to make sure instantiated templates are included
3500
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3534
3195
# Workaround some broken pre-1.5 toolchains
3535
3196
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3538
# C++ shared libraries are fairly broken
3539
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3542
if test -f /usr/libexec/ld.so; then
3543
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3544
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3545
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3546
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3547
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3548
_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'
3549
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3550
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3552
output_verbose_link_cmd='echo'
3554
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3558
3199
case $cc_basename in
3560
3201
# Kuck and Associates, Inc. (KAI) C++ Compiler
3562
3203
# KCC will only create a shared library if the output file
3703
3357
case $cc_basename in
3705
3359
# Sun C++ 4.2, 5.x and Centerline C++
3706
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3707
3360
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3708
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3361
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3709
3362
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3710
$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'
3363
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3712
3365
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3713
3366
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3714
3367
case $host_os in
3715
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3368
solaris2.[0-5] | solaris2.[0-5].*) ;;
3717
# The compiler driver will combine and reorder linker options,
3718
# but understands `-z linker_flag'.
3370
# The C++ compiler is used as linker so we must use $wl
3371
# flag to pass the commands to the underlying system
3719
3373
# Supported since Solaris 2.6 (maybe 2.5.1?)
3720
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3374
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3723
3377
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3725
output_verbose_link_cmd='echo'
3379
# Commands to make compiler produce verbose output that lists
3380
# what "hidden" libraries, object files and flags are used when
3381
# linking a shared library.
3383
# There doesn't appear to be a way to prevent this compiler from
3384
# explicitly linking system object files so we need to strip them
3385
# from the output so that they don't get included in the library
3387
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3727
3389
# Archives containing C++ object files must be created using
3728
3390
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3766
3428
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3768
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3770
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3777
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3778
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3779
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3780
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3781
runpath_var='LD_RUN_PATH'
3783
case $cc_basename in
3785
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3786
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3789
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3790
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3794
sysv5* | sco3.2v5* | sco5v6*)
3795
# Note: We can NOT use -z defs as we might desire, because we do not
3796
# link with -lc, and that would cause any symbols used from libc to
3797
# always be unresolved, which means just about no library would
3798
# ever link correctly. If we're not using GNU ld we use -z text
3799
# though, which does catch some bad symbols but isn't as heavy-handed
3801
# For security reasons, it is highly recommended that you always
3802
# use absolute paths for naming shared libraries, and exclude the
3803
# DT_RUNPATH tag from executables and libraries. But doing so
3804
# requires that you compile everything twice, which is a pain.
3805
# So that behaviour is only enabled if SCOABSPATH is set to a
3806
# non-empty value in the environment. Most likely only useful for
3807
# creating official distributions of packages.
3808
# This is a hack until libtool officially supports absolute path
3809
# names for shared libraries.
3810
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3811
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3812
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3813
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3814
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3815
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3816
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3817
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3818
runpath_var='LD_RUN_PATH'
3820
case $cc_basename in
3822
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3823
_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'
3826
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3827
_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'
3433
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3434
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3832
3437
case $cc_basename in
3834
3439
# NonStop-UX NCC 3.20
3835
3440
# FIXME: insert proper C++ library support
3836
3441
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4012
3618
$rm -f confest.$objext
4014
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4015
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4016
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4019
# PORTME: override above test on systems where it is broken
4023
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4024
# hack all around it, let's just trust "g++" to DTRT.
4025
_LT_AC_TAGVAR(predep_objects,$1)=
4026
_LT_AC_TAGVAR(postdep_objects,$1)=
4027
_LT_AC_TAGVAR(postdeps,$1)=
4031
case `$CC -V 2>&1 | sed 5q` in
4035
# The more standards-conforming stlport4 library is
4036
# incompatible with the Cstd library. Avoid specifying
4037
# it if it's in CXXFLAGS. Ignore libCrun as
4038
# -library=stlport4 depends on it.
4039
case " $CXX $CXXFLAGS " in
4040
*" -library=stlport4 "*)
4041
solaris_use_stlport4=yes
4044
if test "$solaris_use_stlport4" != yes; then
4045
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4052
case $cc_basename in
4054
# The more standards-conforming stlport4 library is
4055
# incompatible with the Cstd library. Avoid specifying
4056
# it if it's in CXXFLAGS. Ignore libCrun as
4057
# -library=stlport4 depends on it.
4058
case " $CXX $CXXFLAGS " in
4059
*" -library=stlport4 "*)
4060
solaris_use_stlport4=yes
4064
# Adding this requires a known-good setup of shared libraries for
4065
# Sun compiler versions before 5.6, else PIC objects from an old
4066
# archive will be linked into the output, leading to subtle bugs.
4067
if test "$solaris_use_stlport4" != yes; then
4068
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4075
3620
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4076
3621
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4078
3623
])# AC_LIBTOOL_POSTDEP_PREDEP
4080
3625
# AC_LIBTOOL_LANG_F77_CONFIG
4081
# --------------------------
3626
# ------------------------
4082
3627
# Ensure that the configuration vars for the C compiler are
4083
3628
# suitably defined. Those variables are subsequently used by
4084
3629
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4203
3739
_LT_AC_TAGVAR(objext, $1)=$objext
4205
3741
# Code to be used in simple compile tests
4206
lt_simple_compile_test_code="class foo {}"
3742
lt_simple_compile_test_code="class foo {}\n"
4208
3744
# Code to be used in simple link tests
4209
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
3745
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4211
3747
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4212
3748
_LT_AC_SYS_COMPILER
4214
# save warnings/boilerplate of simple test code
4215
_LT_COMPILER_BOILERPLATE
4216
_LT_LINKER_BOILERPLATE
4218
3750
# Allow CC to be a program name with arguments.
4219
3751
lt_save_CC="$CC"
4220
3752
CC=${GCJ-"gcj"}
4222
3754
_LT_AC_TAGVAR(compiler, $1)=$CC
4223
_LT_CC_BASENAME([$compiler])
4225
3756
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4226
3757
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4228
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4230
3759
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4231
3760
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4232
3761
AC_LIBTOOL_PROG_CC_C_O($1)
5430
4872
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5433
linux* | k*bsd*-gnu)
5434
case $cc_basename in
5436
4878
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5437
4879
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5438
4880
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5440
pgcc* | pgf77* | pgf90* | pgf95*)
5441
# Portland Group compilers (*not* the Pentium gcc compiler,
5442
# which looks to be a dead project)
5443
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5444
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5445
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5448
4883
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5449
4884
# All Alpha code is PIC.
5450
4885
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5453
case `$CC -V 2>&1 | sed 5q` in
5456
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5457
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5458
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5461
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5462
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5463
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5464
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5630
5022
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5631
5023
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5632
5024
# as well as any symbol that contains `d'.
5633
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5025
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5634
5026
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5635
5027
# platforms (ab)use it in PIC code, but their linkers get confused if
5636
5028
# the symbol is explicitly referenced. Since portable code cannot
5637
5029
# rely on this symbol name, it's probably fine to never include it in
5638
5030
# preloaded symbol tables.
5639
# Exclude shared library initialization/finalization symbols.
5640
dnl Note also adjust exclude_expsyms for C++ above.
5641
5031
extract_expsyms_cmds=
5642
# Just being paranoid about ensuring that cc_basename is set.
5643
_LT_CC_BASENAME([$compiler])
5644
5033
case $host_os in
5645
5034
cygwin* | mingw* | pw32*)
5646
5035
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5664
5049
# If archive_cmds runs LD, not CC, wlarc should be empty
5667
# Set some defaults for GNU ld with shared library support. These
5668
# are reset later if shared libraries are not supported. Putting them
5669
# here allows them to be overridden if necessary.
5670
runpath_var=LD_RUN_PATH
5671
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5672
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5673
# ancient GNU ld didn't support --whole-archive et. al.
5674
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5675
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5677
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5679
supports_anon_versioning=no
5680
case `$LD -v 2>/dev/null` in
5681
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5682
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5683
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5684
*\ 2.11.*) ;; # other 2.11 versions
5685
*) supports_anon_versioning=yes ;;
5688
5052
# See if GNU ld supports shared libraries.
5689
5053
case $host_os in
5054
aix3* | aix4* | aix5*)
5691
5055
# On AIX/PPC, the GNU linker is very broken
5692
5056
if test "$host_cpu" != ia64; then
5693
5057
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5747
5111
echo EXPORTS > $output_objdir/$soname.def;
5748
5112
cat $export_symbols >> $output_objdir/$soname.def;
5750
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5752
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5757
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5758
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5759
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5760
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5761
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5762
# Instead, shared libraries are loaded at an image base (0x10000000 by
5763
# default) and relocated if they conflict, which is a slow very memory
5764
# consuming and fragmenting process. To avoid this, we pick a random,
5765
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5766
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5767
_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'
5768
_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'
5771
gnu* | linux* | k*bsd*-gnu)
5772
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5774
case $cc_basename,$host_cpu in
5775
pgcc*) # Portland Group C compiler
5776
_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'
5777
tmp_addflag=' $pic_flag'
5779
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5780
_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'
5781
tmp_addflag=' $pic_flag -Mnomain' ;;
5782
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5783
tmp_addflag=' -i_dynamic' ;;
5784
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5785
tmp_addflag=' -i_dynamic -nofor_main' ;;
5786
ifc* | ifort*) # Intel Fortran compiler
5787
tmp_addflag=' -nofor_main' ;;
5789
case `$CC -V 2>&1 | sed 5q` in
5790
*Sun\ C*) # Sun C 5.9
5791
_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'
5792
tmp_sharedflag='-G' ;;
5793
*Sun\ F*) # Sun Fortran 8.3
5794
tmp_sharedflag='-G' ;;
5796
tmp_sharedflag='-shared' ;;
5798
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5800
if test $supports_anon_versioning = yes; then
5801
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5802
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5803
$echo "local: *; };" >> $output_objdir/$libname.ver~
5804
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5806
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5808
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5812
netbsd* | netbsdelf*-gnu)
5114
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5120
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5813
5121
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5814
5122
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5843
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5844
case `$LD -v 2>&1` in
5845
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5846
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5849
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5850
*** reliably create shared libraries on SCO systems. Therefore, libtool
5851
*** is disabling shared libraries support. We urge you to upgrade GNU
5852
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5853
*** your PATH or compiler configuration so that the native linker is
5854
*** used, and then restart.
5859
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5860
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5861
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5862
_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'
5864
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5871
5152
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5874
5155
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5159
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5160
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5161
_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5162
supports_anon_versioning=no
5163
case `$LD -v 2>/dev/null` in
5164
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5165
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5166
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5167
*\ 2.11.*) ;; # other 2.11 versions
5168
*) supports_anon_versioning=yes ;;
5170
if test $supports_anon_versioning = yes; then
5171
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5172
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5173
$echo "local: *; };" >> $output_objdir/$libname.ver~
5174
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5176
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5178
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5180
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5878
5185
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5879
5186
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6054
5363
# The linker will automatically build a .lib file if we build a DLL.
6055
5364
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6056
5365
# FIXME: Should let the user specify the lib program.
6057
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6058
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5366
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5367
fix_srcfile_path='`cygpath -w "$srcfile"`'
6059
5368
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6062
5371
darwin* | rhapsody*)
6064
rhapsody* | darwin1.[[012]])
6065
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6068
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6069
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6071
case ${MACOSX_DEPLOYMENT_TARGET} in
6073
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6076
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5372
if test "$GXX" = yes ; then
5373
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5375
rhapsody* | darwin1.[[012]])
5376
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5379
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5380
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5382
case ${MACOSX_DEPLOYMENT_TARGET} in
5384
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5387
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6082
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6083
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6084
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6085
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6086
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6087
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6088
if test "$GCC" = yes ; then
5393
lt_int_apple_cc_single_mod=no
6089
5394
output_verbose_link_cmd='echo'
6090
_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}"
6091
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6092
_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}"
6093
_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}"
5395
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5396
lt_int_apple_cc_single_mod=yes
5398
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5399
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5401
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
5403
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5404
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5405
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5406
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5408
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5410
_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}'
5411
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5412
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5413
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5414
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5415
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6095
case $cc_basename in
6097
output_verbose_link_cmd='echo'
6098
_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'
6099
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6100
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6101
_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}'
6102
_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}'
6105
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5417
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6161
5471
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6165
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6166
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6168
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6170
if test "$with_gnu_ld" = no; then
6171
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6172
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6174
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6175
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6177
# hardcode_minus_L: Not really in the search PATH,
6178
# but as the default location of the library.
6179
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6184
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5475
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6187
5478
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6190
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6193
5481
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6199
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6202
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5487
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6205
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5490
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6209
5494
if test "$with_gnu_ld" = no; then
6210
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6211
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5497
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6215
5498
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6216
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6217
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5499
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5500
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5501
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5504
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5505
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5506
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5508
# hardcode_minus_L: Not really in the search PATH,
5509
# but as the default location of the library.
5510
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5513
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5514
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6220
5515
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6221
5516
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6263
if test -f /usr/libexec/ld.so; then
6264
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6265
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6266
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6267
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6268
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6269
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6270
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6273
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6274
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6275
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6278
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5558
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5559
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5560
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5561
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5562
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5563
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6284
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5566
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5567
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5568
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5571
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5572
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6409
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6410
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6411
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6412
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6413
runpath_var='LD_RUN_PATH'
6415
if test "$GCC" = yes; then
6416
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6417
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6419
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6420
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6424
sysv5* | sco3.2v5* | sco5v6*)
6425
# Note: We can NOT use -z defs as we might desire, because we do not
6426
# link with -lc, and that would cause any symbols used from libc to
6427
# always be unresolved, which means just about no library would
6428
# ever link correctly. If we're not using GNU ld we use -z text
6429
# though, which does catch some bad symbols but isn't as heavy-handed
6431
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6432
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6433
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6434
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6435
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6436
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6437
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6438
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6439
runpath_var='LD_RUN_PATH'
6441
if test "$GCC" = yes; then
6442
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6443
_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'
6445
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6446
_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'
5697
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5698
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5699
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5700
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5701
hardcode_runpath_var=yes
5702
runpath_var=LD_RUN_PATH
5705
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5706
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5707
if test "$GCC" = yes; then
5708
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5710
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5712
runpath_var='LD_RUN_PATH'
5713
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5717
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5718
# $CC -shared without GNU ld will not create a library from C++
5719
# object files and a static libstdc++, better avoid it by now
5720
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5721
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5722
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5723
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5724
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5725
runpath_var='LD_RUN_PATH'
6681
5937
# ----------------------------
6682
5938
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6683
5939
# generated from the m4 files accompanying Automake X.Y.
6684
# (This private macro should not be called outside this file.)
6685
AC_DEFUN([AM_AUTOMAKE_VERSION],
6686
[am__api_version='1.10'
6687
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6688
dnl require some minimum version. Point them to the right macro.
6689
m4_if([$1], [1.10.1], [],
6690
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6693
# _AM_AUTOCONF_VERSION(VERSION)
6694
# -----------------------------
6695
# aclocal traces this macro to find the Autoconf version.
6696
# This is a private macro too. Using m4_define simplifies
6697
# the logic in aclocal, which can simply ignore this definition.
6698
m4_define([_AM_AUTOCONF_VERSION], [])
5940
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6700
5942
# AM_SET_CURRENT_AUTOMAKE_VERSION
6701
5943
# -------------------------------
6702
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5944
# Call AM_AUTOMAKE_VERSION so it can be traced.
6703
5945
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6704
5946
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6705
[AM_AUTOMAKE_VERSION([1.10.1])dnl
6706
m4_ifndef([AC_AUTOCONF_VERSION],
6707
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
6708
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
5947
[AM_AUTOMAKE_VERSION([1.9.5])])
6710
5949
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
7037
6271
# Do all the work for Automake. -*- Autoconf -*-
7039
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7040
# 2005, 2006, 2008 Free Software Foundation, Inc.
6273
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6274
# Free Software Foundation, Inc.
7042
6276
# This file is free software; the Free Software Foundation
7043
6277
# gives unlimited permission to copy and/or distribute it,
7044
6278
# with or without modifications, as long as this notice is preserved.
7048
6282
# This macro actually does too much. Some checks are only needed if
7049
6283
# your package does certain things. But this isn't really a big deal.
7060
6294
# arguments mandatory, and then we can depend on a new Autoconf
7061
6295
# release and drop the old call support.
7062
6296
AC_DEFUN([AM_INIT_AUTOMAKE],
7063
[AC_PREREQ([2.60])dnl
6297
[AC_PREREQ([2.58])dnl
7064
6298
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7065
6299
dnl the ones we care about.
7066
6300
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7067
6301
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7068
6302
AC_REQUIRE([AC_PROG_INSTALL])dnl
7069
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7070
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7071
# is not polluted with repeated "-I."
7072
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7073
# test to see if srcdir already configured
7074
if test -f $srcdir/config.status; then
7075
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6303
# test to see if srcdir already configured
6304
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6305
test -f $srcdir/config.status; then
6306
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7079
6309
# test whether we have cygpath
7247
6469
rm -f confinc confmf
7250
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
7251
# Free Software Foundation, Inc.
7253
# This file is free software; the Free Software Foundation
7254
# gives unlimited permission to copy and/or distribute it,
7255
# with or without modifications, as long as this notice is preserved.
7261
# Like AC_PROG_CC_C_O, but changed for automake.
7262
AC_DEFUN([AM_PROG_CC_C_O],
7263
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
7264
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7265
AC_REQUIRE_AUX_FILE([compile])dnl
7266
# FIXME: we rely on the cache variable name because
7267
# there is no other way.
7269
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
7270
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7271
# Losing compiler, so override with the script.
7272
# FIXME: It is wrong to rewrite CC.
7273
# But if we don't then we get into trouble of one sort or another.
7274
# A longer-term fix would be to have automake use am__CC in this case,
7275
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7276
CC="$am_aux_dir/compile $CC"
7278
dnl Make sure AC_PROG_CC is never called again, or it will override our
7280
m4_define([AC_PROG_CC],
7281
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
7284
6472
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7286
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
6474
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7287
6475
# Free Software Foundation, Inc.
7289
6477
# This file is free software; the Free Software Foundation
7290
6478
# gives unlimited permission to copy and/or distribute it,
7291
6479
# with or without modifications, as long as this notice is preserved.
7295
6483
# AM_MISSING_PROG(NAME, PROGRAM)
7296
6484
# ------------------------------
7326
6513
# AM_PROG_MKDIR_P
7327
6514
# ---------------
7328
# Check for `mkdir -p'.
6515
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6517
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6518
# created by `make install' are always world readable, even if the
6519
# installer happens to have an overly restrictive umask (e.g. 077).
6520
# This was a mistake. There are at least two reasons why we must not
6522
# - it causes special bits like SGID to be ignored,
6523
# - it may be too restrictive (some setups expect 775 directories).
6525
# Do not use -m 0755 and let people choose whatever they expect by
6528
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6529
# Some implementations (such as Solaris 8's) are not thread-safe: if a
6530
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6531
# concurrently, both version can detect that a/ is missing, but only
6532
# one can create it and the other will error out. Consequently we
6533
# restrict ourselves to GNU make (using the --version option ensures
7329
6535
AC_DEFUN([AM_PROG_MKDIR_P],
7330
[AC_PREREQ([2.60])dnl
7331
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7332
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7333
dnl while keeping a definition of mkdir_p for backward compatibility.
7334
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7335
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7336
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7337
dnl adjustment using top_builddir (which is defined more often than
7339
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7341
[[\\/$]]* | ?:[[\\/]]*) ;;
7342
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
6536
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6537
# We used to keeping the `.' as first argument, in order to
6538
# allow $(mkdir_p) to be used without argument. As in
6539
# $(mkdir_p) $(somedir)
6540
# where $(somedir) is conditionally defined. However this is wrong
6542
# 1. if the package is installed by a user who cannot write `.'
6543
# make install will fail,
6544
# 2. the above comment should most certainly read
6545
# $(mkdir_p) $(DESTDIR)$(somedir)
6546
# so it does not work when $(somedir) is undefined and
6547
# $(DESTDIR) is not.
6548
# To support the latter case, we have to write
6549
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6550
# so the `.' trick is pointless.
6551
mkdir_p='mkdir -p --'
6553
# On NextStep and OpenStep, the `mkdir' command does not
6554
# recognize any option. It will interpret all options as
6555
# directories to create, and then abort because `.' already
6557
for d in ./-p ./--version;
6559
test -d $d && rmdir $d
6561
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6562
if test -f "$ac_aux_dir/mkinstalldirs"; then
6563
mkdir_p='$(mkinstalldirs)'
6565
mkdir_p='$(install_sh) -d'
6568
AC_SUBST([mkdir_p])])
7346
6570
# Helper functions for option handling. -*- Autoconf -*-