650
670
LDFLAGS="$LDFLAGS $3"
651
671
printf "$lt_simple_link_test_code" > conftest.$ac_ext
652
672
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
653
# The compiler can only warn and ignore the option if not recognized
673
# The linker can only warn and ignore the option if not recognized
654
674
# So say no if there are warnings
655
675
if test -s conftest.err; then
656
676
# Append any errors to the config.log.
657
677
cat conftest.err 1>&AS_MESSAGE_LOG_FD
658
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
659
$SED '/^$/d' conftest.err >conftest.er2
678
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
679
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
660
680
if diff conftest.exp conftest.er2 >/dev/null; then
725
745
elif test -x /usr/sbin/sysctl; then
726
746
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
728
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
748
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
730
750
# And add a safety zone
731
751
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
732
752
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
756
# We know the value 262144 and hardcode it with a safety zone (like BSD)
757
lt_cv_sys_max_cmd_len=196608
735
761
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
736
762
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
737
763
# nice to cause kernel panics so lets avoid the loop below.
738
764
# First set a reasonable default.
739
765
lt_cv_sys_max_cmd_len=16384
741
767
if test -x /sbin/sysconfig; then
742
768
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
743
769
*1*) lt_cv_sys_max_cmd_len=-1 ;;
774
lt_cv_sys_max_cmd_len=102400
776
sysv5* | sco5v6* | sysv4.2uw2*)
777
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
778
if test -n "$kargmax"; then
779
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
781
lt_cv_sys_max_cmd_len=32768
748
785
# If test is not a shell built-in, we'll probably end up computing a
749
786
# maximum length that is only half of the actual maximum length, but
1016
1055
# The compiler can only warn and ignore the option if not recognized
1017
1056
# So say no if there are warnings
1018
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1019
$SED '/^$/d' out/conftest.err >out/conftest.er2
1020
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1057
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1058
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1059
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1021
1060
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1063
chmod u+w . 2>&AS_MESSAGE_LOG_FD
1026
1065
# SGI C++ compiler will create directory out/ii_files/ for
1027
1066
# template instantiation
1334
1374
soname_spec='${libname}${release}${major}$shared_ext'
1335
1375
shlibpath_overrides_runpath=yes
1336
1376
shlibpath_var=DYLD_LIBRARY_PATH
1337
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1377
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1338
1378
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1339
1379
if test "$GCC" = yes; then
1340
1380
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1747
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1748
version_type=freebsd-elf
1751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1752
soname_spec='${libname}${release}${shared_ext}$major'
1753
shlibpath_var=LD_LIBRARY_PATH
1754
hardcode_into_libs=yes
1755
if test "$with_gnu_ld" = yes; then
1756
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1757
shlibpath_overrides_runpath=no
1759
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1760
shlibpath_overrides_runpath=yes
1763
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1767
sys_lib_dlsearch_path_spec='/usr/lib'
1690
1771
version_type=linux
1691
1772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2356
2449
# Let the user override the test.
2357
2450
lt_cv_path_NM="$NM"
2359
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2360
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2362
test -z "$ac_dir" && ac_dir=.
2363
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2364
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2365
# Check to see if the nm accepts a BSD-compat flag.
2366
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2367
# nm: unknown option "B" ignored
2368
# Tru64's nm complains that /dev/null is an invalid object file
2369
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2370
*/dev/null* | *'Invalid file or object type'*)
2371
lt_cv_path_NM="$tmp_nm -B"
2375
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2377
lt_cv_path_NM="$tmp_nm -p"
2452
lt_nm_to_check="${ac_tool_prefix}nm"
2453
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2454
lt_nm_to_check="$lt_nm_to_check nm"
2456
for lt_tmp_nm in $lt_nm_to_check; do
2457
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2458
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2460
test -z "$ac_dir" && ac_dir=.
2461
tmp_nm="$ac_dir/$lt_tmp_nm"
2462
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2463
# Check to see if the nm accepts a BSD-compat flag.
2464
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2465
# nm: unknown option "B" ignored
2466
# Tru64's nm complains that /dev/null is an invalid object file
2467
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2468
*/dev/null* | *'Invalid file or object type'*)
2469
lt_cv_path_NM="$tmp_nm -B"
2381
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2382
continue # so that we can try to find one that supports BSD flags
2473
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2475
lt_cv_path_NM="$tmp_nm -p"
2479
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2480
continue # so that we can try to find one that supports BSD flags
2389
2489
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2391
2491
NM="$lt_cv_path_NM"
2417
2517
# -----------------------------------
2418
2518
# sets LIBLTDL to the link flags for the libltdl convenience library and
2419
2519
# LTDLINCL to the include flags for the libltdl header and adds
2420
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2421
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2422
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2423
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2424
# '${top_srcdir}/' (note the single quotes!). If your package is not
2425
# flat and you're not using automake, define top_builddir and
2426
# top_srcdir appropriately in the Makefiles.
2520
# --enable-ltdl-convenience to the configure arguments. Note that
2521
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2522
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2523
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2524
# (note the single quotes!). If your package is not flat and you're not
2525
# using automake, define top_builddir and top_srcdir appropriately in
2427
2527
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2428
2528
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2429
2529
case $enable_ltdl_convenience in
2442
2542
# -----------------------------------
2443
2543
# sets LIBLTDL to the link flags for the libltdl installable library and
2444
2544
# LTDLINCL to the include flags for the libltdl header and adds
2445
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2446
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2447
# DIRECTORY is not provided and an installed libltdl is not found, it is
2448
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2449
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2450
# quotes!). If your package is not flat and you're not using automake,
2451
# define top_builddir and top_srcdir appropriately in the Makefiles.
2545
# --enable-ltdl-install to the configure arguments. Note that
2546
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2547
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2548
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2549
# '${top_srcdir}/' (note the single quotes!). If your package is not
2550
# flat and you're not using automake, define top_builddir and top_srcdir
2551
# appropriately in the Makefiles.
2452
2552
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2453
2553
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2454
2554
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2577
2677
_LT_COMPILER_BOILERPLATE
2578
2678
_LT_LINKER_BOILERPLATE
2581
# Check for any special shared library compilation flags.
2583
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2584
if test "$GCC" = no; then
2587
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2591
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2592
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2593
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2595
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2596
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2602
# Check to make sure the static flag actually works.
2604
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2605
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2606
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2608
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2611
2680
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2612
2681
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2613
2682
AC_LIBTOOL_PROG_CC_C_O($1)
2891
2963
_LT_AC_SYS_LIBPATH_AIX
2892
2964
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2894
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2966
_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"
2896
2968
if test "$host_cpu" = ia64; then
2897
2969
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2898
2970
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2899
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2971
_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"
2901
2973
# Determine the default libpath from the value encoded in an empty executable.
2902
2974
_LT_AC_SYS_LIBPATH_AIX
2905
2977
# -berok will link without error, but may produce a broken library.
2906
2978
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2907
2979
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2908
# -bexpall does not export symbols beginning with underscore (_)
2909
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2910
2980
# Exported symbols can be pulled into shared objects from archives
2911
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2981
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2912
2982
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2913
# This is similar to how AIX traditionally builds it's shared libraries.
2914
_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'
2983
# This is similar to how AIX traditionally builds its shared libraries.
2984
_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'
2990
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2991
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2992
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2993
# support --undefined. This deserves some investigation. FIXME
2994
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2996
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2919
3001
case $cc_basename in
2987
3068
_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'
2989
3070
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2990
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3071
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2991
3072
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2992
3073
_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}'
3000
3081
output_verbose_link_cmd='echo'
3001
3082
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3002
3083
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3003
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3084
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3004
3085
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3005
3086
_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}'
3081
3162
hpux10*|hpux11*)
3082
3163
if test $with_gnu_ld = no; then
3085
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3164
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3165
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3086
3169
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3087
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3090
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3093
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3094
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3095
3172
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3101
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3102
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3105
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3106
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3107
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3108
# but as the default
3109
# location of the library.
3178
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3179
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3112
3182
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3239
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3240
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3241
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3242
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3243
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3244
# Instead, shared libraries are loaded at an image base (0x10000000 by
3245
# default) and relocated if they conflict, which is a slow very memory
3246
# consuming and fragmenting process. To avoid this, we pick a random,
3247
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3248
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3249
_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'
3250
_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'
3162
3252
irix5* | irix6*)
3163
3253
case $cc_basename in
3476
3553
case $cc_basename in
3478
3555
# Sun C++ 4.2, 5.x and Centerline C++
3556
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3479
3557
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3480
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3558
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3481
3559
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3482
$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'
3560
$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'
3484
3562
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3485
3563
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3500
3578
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3502
# Commands to make compiler produce verbose output that lists
3503
# what "hidden" libraries, object files and flags are used when
3504
# linking a shared library.
3506
# There doesn't appear to be a way to prevent this compiler from
3507
# explicitly linking system object files so we need to strip them
3508
# from the output so that they don't get included in the library
3510
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'
3580
output_verbose_link_cmd='echo'
3512
3582
# Archives containing C++ object files must be created using
3513
3583
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3556
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3557
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3626
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3627
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3628
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3629
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3630
runpath_var='LD_RUN_PATH'
3632
case $cc_basename in
3634
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3635
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3638
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3639
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3643
sysv5* | sco3.2v5* | sco5v6*)
3644
# Note: We can NOT use -z defs as we might desire, because we do not
3645
# link with -lc, and that would cause any symbols used from libc to
3646
# always be unresolved, which means just about no library would
3647
# ever link correctly. If we're not using GNU ld we use -z text
3648
# though, which does catch some bad symbols but isn't as heavy-handed
3650
# For security reasons, it is highly recommended that you always
3651
# use absolute paths for naming shared libraries, and exclude the
3652
# DT_RUNPATH tag from executables and libraries. But doing so
3653
# requires that you compile everything twice, which is a pain.
3654
# So that behaviour is only enabled if SCOABSPATH is set to a
3655
# non-empty value in the environment. Most likely only useful for
3656
# creating official distributions of packages.
3657
# This is a hack until libtool officially supports absolute path
3658
# names for shared libraries.
3659
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3660
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3661
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3662
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3663
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3664
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3665
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3666
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3667
runpath_var='LD_RUN_PATH'
3669
case $cc_basename in
3671
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3672
_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'
3675
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3676
_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'
3560
3681
case $cc_basename in
3741
3860
$rm -f confest.$objext
3862
# PORTME: override above test on systems where it is broken
3866
# Interix 3.5 installs completely hosed .la files for C++, so rather than
3867
# hack all around it, let's just trust "g++" to DTRT.
3868
_LT_AC_TAGVAR(predep_objects,$1)=
3869
_LT_AC_TAGVAR(postdep_objects,$1)=
3870
_LT_AC_TAGVAR(postdeps,$1)=
3874
case $cc_basename in
3876
# Adding this requires a known-good setup of shared libraries for
3877
# Sun compiler versions before 5.6, else PIC objects from an old
3878
# archive will be linked into the output, leading to subtle bugs.
3879
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3743
3886
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3744
3887
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3746
3889
])# AC_LIBTOOL_POSTDEP_PREDEP
3748
3891
# AC_LIBTOOL_LANG_F77_CONFIG
3749
# ------------------------
3892
# --------------------------
3750
3893
# Ensure that the configuration vars for the C compiler are
3751
3894
# suitably defined. Those variables are subsequently used by
3752
3895
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4769
4922
case $cc_basename in
4771
4924
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4772
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4925
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4773
4926
if test "$host_cpu" != ia64; then
4774
4927
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4778
4931
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4779
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4932
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4781
4934
hppa*64*|ia64*)
4782
4935
# +Z the default
5059
5219
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5060
5220
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5062
pgcc* | pgf77* | pgf90*)
5222
pgcc* | pgf77* | pgf90* | pgf95*)
5063
5223
# Portland Group compilers (*not* the Pentium gcc compiler,
5064
5224
# which looks to be a dead project)
5065
5225
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5066
5226
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5067
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5227
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5070
5230
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5156
5317
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5322
# Check to make sure the static flag actually works.
5324
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5325
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5326
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5327
$lt_tmp_static_flag,
5329
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5318
5493
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5320
5495
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5321
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5496
_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'
5322
5497
# If the export-symbols file already is a .def file (1st line
5323
5498
# is EXPORTS), use it as is; otherwise, prepend...
5324
5499
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5327
5502
echo EXPORTS > $output_objdir/$soname.def;
5328
5503
cat $export_symbols >> $output_objdir/$soname.def;
5330
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5505
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5332
5507
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5512
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5513
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5514
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5515
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5516
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5517
# Instead, shared libraries are loaded at an image base (0x10000000 by
5518
# default) and relocated if they conflict, which is a slow very memory
5519
# consuming and fragmenting process. To avoid this, we pick a random,
5520
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5521
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5522
_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'
5523
_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'
5337
5527
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5339
5529
case $cc_basename,$host_cpu in
5340
5530
pgcc*) # Portland Group C compiler
5341
_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'
5531
_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'
5342
5532
tmp_addflag=' $pic_flag'
5344
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
5345
_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'
5534
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5535
_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'
5346
5536
tmp_addflag=' $pic_flag -Mnomain' ;;
5347
5537
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5348
5538
tmp_addflag=' -i_dynamic' ;;
5588
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5589
case `$LD -v 2>&1` in
5590
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5591
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5594
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5595
*** reliably create shared libraries on SCO systems. Therefore, libtool
5596
*** is disabling shared libraries support. We urge you to upgrade GNU
5597
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5598
*** your PATH or compiler configuration so that the native linker is
5599
*** used, and then restart.
5604
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5605
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5606
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5607
_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'
5609
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5399
5616
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5529
5748
# Determine the default libpath from the value encoded in an empty executable.
5530
5749
_LT_AC_SYS_LIBPATH_AIX
5531
5750
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5532
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5751
_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"
5534
5753
if test "$host_cpu" = ia64; then
5535
5754
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5536
5755
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5537
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5756
_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"
5539
5758
# Determine the default libpath from the value encoded in an empty executable.
5540
5759
_LT_AC_SYS_LIBPATH_AIX
5543
5762
# -berok will link without error, but may produce a broken library.
5544
5763
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5545
5764
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5546
# -bexpall does not export symbols beginning with underscore (_)
5547
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5548
5765
# Exported symbols can be pulled into shared objects from archives
5549
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5766
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5550
5767
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5551
# This is similar to how AIX traditionally builds it's shared libraries.
5552
_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'
5768
# This is similar to how AIX traditionally builds its shared libraries.
5769
_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'
5617
5834
output_verbose_link_cmd='echo'
5618
5835
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5619
5836
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5620
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5837
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5621
5838
_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}'
5622
5839
_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}'
5626
5843
output_verbose_link_cmd='echo'
5627
5844
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5628
5845
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5629
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5846
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5630
5847
_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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5631
5848
_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}'
5690
5907
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5694
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5911
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5912
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5914
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5916
if test "$with_gnu_ld" = no; then
5917
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5918
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5920
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5921
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5923
# hardcode_minus_L: Not really in the search PATH,
5924
# but as the default location of the library.
5925
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5930
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5697
5933
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5936
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5700
5939
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5706
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5945
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5948
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5709
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5951
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5713
5955
if test "$with_gnu_ld" = no; then
5716
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5956
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5957
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5717
5961
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5718
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5719
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5720
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5723
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5724
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5725
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5727
# hardcode_minus_L: Not really in the search PATH,
5728
# but as the default location of the library.
5729
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5962
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5963
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5732
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5733
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5734
5966
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5735
5967
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5929
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5930
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5931
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5932
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5933
hardcode_runpath_var=yes
5934
runpath_var=LD_RUN_PATH
5937
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5938
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5939
if test "$GCC" = yes; then
5940
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5942
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5944
runpath_var='LD_RUN_PATH'
5945
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5949
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5950
# $CC -shared without GNU ld will not create a library from C++
5951
# object files and a static libstdc++, better avoid it by now
5952
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5953
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5954
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5955
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5956
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5957
runpath_var='LD_RUN_PATH'
6152
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6153
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6154
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6155
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6156
runpath_var='LD_RUN_PATH'
6158
if test "$GCC" = yes; then
6159
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6160
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6162
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6163
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6167
sysv5* | sco3.2v5* | sco5v6*)
6168
# Note: We can NOT use -z defs as we might desire, because we do not
6169
# link with -lc, and that would cause any symbols used from libc to
6170
# always be unresolved, which means just about no library would
6171
# ever link correctly. If we're not using GNU ld we use -z text
6172
# though, which does catch some bad symbols but isn't as heavy-handed
6174
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6175
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6176
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6177
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6178
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6179
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6180
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6181
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6182
runpath_var='LD_RUN_PATH'
6184
if test "$GCC" = yes; then
6185
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6186
_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'
6188
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6189
_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'
6228
6457
# ---------------------------------------------
6229
6458
m4_define([_PKG_CONFIG],
6230
6459
[if test -n "$PKG_CONFIG"; then
6460
if test -n "$$1"; then
6231
6463
PKG_CHECK_EXISTS([$3],
6232
6464
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
6233
6465
[pkg_failed=yes])
6235
6468
pkg_failed=untried
6237
6470
])# _PKG_CONFIG
6472
# _PKG_SHORT_ERRORS_SUPPORTED
6473
# -----------------------------
6474
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
6475
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
6476
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6477
_pkg_short_errors_supported=yes
6479
_pkg_short_errors_supported=no
6481
])# _PKG_SHORT_ERRORS_SUPPORTED
6239
6484
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
6240
6485
# [ACTION-IF-NOT-FOUND])
6257
6502
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
6258
6503
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
6505
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
6506
and $1[]_LIBS to avoid the need to call pkg-config.
6507
See the pkg-config man page for more details.])
6260
6509
if test $pkg_failed = yes; then
6261
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6510
_PKG_SHORT_ERRORS_SUPPORTED
6511
if test $_pkg_short_errors_supported = yes; then
6512
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
6514
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6262
6516
# Put the nasty error message in config.log where it belongs
6263
echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
6517
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
6265
6519
ifelse([$4], , [AC_MSG_ERROR(dnl
6266
[Package requirements ($2) were not met.
6520
[Package requirements ($2) were not met:
6267
6524
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6268
6525
installed software in a non-standard prefix.
6270
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
6271
to avoid the need to call pkg-config. See the pkg-config man page for
6274
6530
elif test $pkg_failed = untried; then
6275
6531
ifelse([$4], , [AC_MSG_FAILURE(dnl