232
234
# If no C compiler was specified, use CC.
233
235
LTCC=${LTCC-"$CC"}
237
# If no C compiler flags were specified, use CFLAGS.
238
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
235
240
# Allow CC to be a program name with arguments.
237
242
])# _LT_AC_SYS_COMPILER
245
# _LT_CC_BASENAME(CC)
246
# -------------------
247
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
248
AC_DEFUN([_LT_CC_BASENAME],
249
[for cc_temp in $1""; do
251
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
252
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
257
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
261
# _LT_COMPILER_BOILERPLATE
262
# ------------------------
263
# Check for compiler boilerplate output or warnings with
264
# the simple compiler test code.
265
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266
[ac_outfile=conftest.$ac_objext
267
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
268
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269
_lt_compiler_boilerplate=`cat conftest.err`
271
])# _LT_COMPILER_BOILERPLATE
274
# _LT_LINKER_BOILERPLATE
275
# ----------------------
276
# Check for linker boilerplate output or warnings with
277
# the simple link test code.
278
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
[ac_outfile=conftest.$ac_objext
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
281
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
_lt_linker_boilerplate=`cat conftest.err`
284
])# _LT_LINKER_BOILERPLATE
240
287
# _LT_AC_SYS_LIBPATH_AIX
241
288
# ----------------------
242
289
# Links a minimal program and checks the executable
668
738
lt_cv_sys_max_cmd_len=8192;
741
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
742
# This has been around since 386BSD, at least. Likely further.
743
if test -x /sbin/sysctl; then
744
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
745
elif test -x /usr/sbin/sysctl; then
746
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
748
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
750
# And add a safety zone
751
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
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
761
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
762
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
763
# nice to cause kernel panics so lets avoid the loop below.
764
# First set a reasonable default.
765
lt_cv_sys_max_cmd_len=16384
767
if test -x /sbin/sysconfig; then
768
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
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
672
785
# If test is not a shell built-in, we'll probably end up computing a
673
786
# 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` \
788
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
676
790
= "XX$teststring") >/dev/null 2>&1 &&
677
791
new_result=`expr "X$teststring" : ".*" 2>&1` &&
678
792
lt_cv_sys_max_cmd_len=$new_result &&
2274
2437
# Let the user override the test.
2275
2438
lt_cv_path_NM="$NM"
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"
2440
lt_nm_to_check="${ac_tool_prefix}nm"
2441
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2442
lt_nm_to_check="$lt_nm_to_check nm"
2444
for lt_tmp_nm in $lt_nm_to_check; do
2445
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2446
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2448
test -z "$ac_dir" && ac_dir=.
2449
tmp_nm="$ac_dir/$lt_tmp_nm"
2450
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2451
# Check to see if the nm accepts a BSD-compat flag.
2452
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2453
# nm: unknown option "B" ignored
2454
# Tru64's nm complains that /dev/null is an invalid object file
2455
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2456
*/dev/null* | *'Invalid file or object type'*)
2457
lt_cv_path_NM="$tmp_nm -B"
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
2461
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2463
lt_cv_path_NM="$tmp_nm -p"
2467
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2468
continue # so that we can try to find one that supports BSD flags
2307
2477
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2309
2479
NM="$lt_cv_path_NM"
2360
2530
# -----------------------------------
2361
2531
# sets LIBLTDL to the link flags for the libltdl installable library and
2362
2532
# LTDLINCL to the include flags for the libltdl header and adds
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.
2533
# --enable-ltdl-install to the configure arguments. Note that
2534
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2535
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2536
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2537
# '${top_srcdir}/' (note the single quotes!). If your package is not
2538
# flat and you're not using automake, define top_builddir and top_srcdir
2539
# appropriately in the Makefiles.
2370
2540
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2371
2541
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2372
2542
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2481
2662
_LT_AC_SYS_COMPILER
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)=])
2664
# save warnings/boilerplate of simple test code
2665
_LT_COMPILER_BOILERPLATE
2666
_LT_LINKER_BOILERPLATE
2514
2668
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2515
2669
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2543
2697
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2544
2698
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
2585
2702
AC_MSG_RESULT([$enable_shared])
2838
2965
# -berok will link without error, but may produce a broken library.
2839
2966
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2840
2967
_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
2843
2968
# Exported symbols can be pulled into shared objects from archives
2844
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2969
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2845
2970
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
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'
2971
# This is similar to how AIX traditionally builds its shared libraries.
2972
_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'
2978
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2979
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2980
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2981
# support --undefined. This deserves some investigation. FIXME
2982
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2984
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2852
2989
case $cc_basename in
2875
3012
echo EXPORTS > $output_objdir/$soname.def;
2876
3013
cat $export_symbols >> $output_objdir/$soname.def;
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'
3015
$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'
2880
3017
_LT_AC_TAGVAR(ld_shlibs, $1)=no
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'
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'
3020
darwin* | rhapsody*)
3022
rhapsody* | darwin1.[[012]])
3023
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3026
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3027
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3029
case ${MACOSX_DEPLOYMENT_TARGET} in
3031
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3034
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}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'
3040
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3041
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3042
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3043
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3044
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3045
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
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
3047
if test "$GXX" = yes ; then
3048
lt_int_apple_cc_single_mod=no
3049
output_verbose_link_cmd='echo'
3050
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3051
lt_int_apple_cc_single_mod=yes
3053
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3054
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3056
_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'
3058
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3059
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3060
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3061
_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}'
3063
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3065
_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}'
3067
case $cc_basename in
3069
output_verbose_link_cmd='echo'
3070
_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'
3071
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3072
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3073
_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}'
3074
_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}'
3077
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2936
3084
case $cc_basename in
2938
3086
# FIXME: insert proper C++ library support
2939
3087
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2942
3090
# Green Hills C++ Compiler
2943
3091
# FIXME: insert proper C++ library support
2944
3092
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3002
3150
hpux10*|hpux11*)
3003
3151
if test $with_gnu_ld = no; then
3006
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3152
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3153
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3007
3157
_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)=:
3016
3160
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
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.
3166
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3167
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3033
3170
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3227
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3228
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3229
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3230
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3231
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3232
# Instead, shared libraries are loaded at an image base (0x10000000 by
3233
# default) and relocated if they conflict, which is a slow very memory
3234
# consuming and fragmenting process. To avoid this, we pick a random,
3235
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3236
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3237
_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'
3238
_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'
3083
3240
irix5* | irix6*)
3084
3241
case $cc_basename in
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'
3244
_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'
3089
3246
# Archives containing C++ object files must be created using
3090
3247
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3133
3290
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3134
3291
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3138
3295
with_gnu_ld=yes
3296
# version 8.0 and above of icpc choke on multiply defined symbols
3297
# if we add $predep_objects and $postdep_objects, however 7.1 and
3298
# earlier do not add the objects themselves.
3299
case `$CC -V 2>&1` in
3301
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3302
_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'
3304
*) # Version 8.0 or newer
3307
ia64*) tmp_idyn=' -i_dynamic';;
3309
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3310
_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'
3139
3313
_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'
3142
3314
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3143
3315
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3144
3316
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3319
# Portland Group C++ compiler
3320
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3321
_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'
3323
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3324
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3325
_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'
3148
3329
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3149
3330
_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'
3357
3541
case $cc_basename in
3359
3543
# Sun C++ 4.2, 5.x and Centerline C++
3544
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3360
3545
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
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'
3546
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3362
3547
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $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'
3548
$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'
3365
3550
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3366
3551
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3367
3552
case $host_os in
3368
solaris2.[0-5] | solaris2.[0-5].*) ;;
3553
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3370
3555
# The C++ compiler is used as linker so we must use $wl
3371
3556
# flag to pass the commands to the underlying system
3557
# linker. We must also pass each convience library through
3558
# to the system linker between allextract/defaultextract.
3559
# The C++ compiler will combine linker options so we
3560
# cannot just pass the convience library names through
3373
3562
# Supported since Solaris 2.6 (maybe 2.5.1?)
3374
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3563
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3377
3566
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
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'
3568
output_verbose_link_cmd='echo'
3389
3570
# Archives containing C++ object files must be created using
3390
3571
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3433
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3434
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3614
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3615
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3616
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3617
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3618
runpath_var='LD_RUN_PATH'
3620
case $cc_basename in
3622
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3623
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3626
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3627
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3631
sysv5* | sco3.2v5* | sco5v6*)
3632
# Note: We can NOT use -z defs as we might desire, because we do not
3633
# link with -lc, and that would cause any symbols used from libc to
3634
# always be unresolved, which means just about no library would
3635
# ever link correctly. If we're not using GNU ld we use -z text
3636
# though, which does catch some bad symbols but isn't as heavy-handed
3638
# For security reasons, it is highly recommended that you always
3639
# use absolute paths for naming shared libraries, and exclude the
3640
# DT_RUNPATH tag from executables and libraries. But doing so
3641
# requires that you compile everything twice, which is a pain.
3642
# So that behaviour is only enabled if SCOABSPATH is set to a
3643
# non-empty value in the environment. Most likely only useful for
3644
# creating official distributions of packages.
3645
# This is a hack until libtool officially supports absolute path
3646
# names for shared libraries.
3647
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3648
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3649
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3650
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3651
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3652
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3653
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3654
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3655
runpath_var='LD_RUN_PATH'
3657
case $cc_basename in
3659
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3660
_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'
3663
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3664
_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'
3437
3669
case $cc_basename in
3439
3671
# NonStop-UX NCC 3.20
3440
3672
# FIXME: insert proper C++ library support
3441
3673
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5111
5493
echo EXPORTS > $output_objdir/$soname.def;
5112
5494
cat $export_symbols >> $output_objdir/$soname.def;
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)
5496
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5498
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5503
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5504
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5505
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5506
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5507
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5508
# Instead, shared libraries are loaded at an image base (0x10000000 by
5509
# default) and relocated if they conflict, which is a slow very memory
5510
# consuming and fragmenting process. To avoid this, we pick a random,
5511
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5512
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5513
_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'
5514
_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'
5517
linux* | k*bsd*-gnu)
5518
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5520
case $cc_basename,$host_cpu in
5521
pgcc*) # Portland Group C compiler
5522
_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'
5523
tmp_addflag=' $pic_flag'
5525
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5526
_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'
5527
tmp_addflag=' $pic_flag -Mnomain' ;;
5528
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5529
tmp_addflag=' -i_dynamic' ;;
5530
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5531
tmp_addflag=' -i_dynamic -nofor_main' ;;
5532
ifc* | ifort*) # Intel Fortran compiler
5533
tmp_addflag=' -nofor_main' ;;
5535
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5537
if test $supports_anon_versioning = yes; then
5538
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5539
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5540
$echo "local: *; };" >> $output_objdir/$libname.ver~
5541
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5543
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5545
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5549
netbsd* | netbsdelf*-gnu)
5121
5550
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5122
5551
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5155
5611
_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
5185
5615
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5186
5616
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5364
5792
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5365
5793
# FIXME: Should let the user specify the lib program.
5366
5794
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5367
fix_srcfile_path='`cygpath -w "$srcfile"`'
5795
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5368
5796
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5371
5799
darwin* | rhapsody*)
5372
if test "$GXX" = yes ; then
5801
rhapsody* | darwin1.[[012]])
5802
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5805
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5806
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5808
case ${MACOSX_DEPLOYMENT_TARGET} in
5810
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5813
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5373
5819
_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'
5393
lt_int_apple_cc_single_mod=no
5820
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5821
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5822
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5823
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5824
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5825
if test "$GCC" = yes ; then
5394
5826
output_verbose_link_cmd='echo'
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}'
5827
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5828
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5829
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5830
_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}'
5831
_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}'
5833
case $cc_basename in
5835
output_verbose_link_cmd='echo'
5836
_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'
5837
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5838
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5839
_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}'
5410
5840
_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
5417
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5843
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5471
5899
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5475
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5903
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5904
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5906
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5908
if test "$with_gnu_ld" = no; then
5909
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5910
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5912
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5913
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5915
# hardcode_minus_L: Not really in the search PATH,
5916
# but as the default location of the library.
5917
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5922
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5478
5925
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5928
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5481
5931
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5487
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5937
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5940
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -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'
5943
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5494
5947
if test "$with_gnu_ld" = no; then
5497
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5948
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5949
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5498
5953
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
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
5954
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5955
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5513
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5514
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5515
5958
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5516
5959
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
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'
6144
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6145
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6146
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6147
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6148
runpath_var='LD_RUN_PATH'
6150
if test "$GCC" = yes; then
6151
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6152
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6154
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6155
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6159
sysv5* | sco3.2v5* | sco5v6*)
6160
# Note: We can NOT use -z defs as we might desire, because we do not
6161
# link with -lc, and that would cause any symbols used from libc to
6162
# always be unresolved, which means just about no library would
6163
# ever link correctly. If we're not using GNU ld we use -z text
6164
# though, which does catch some bad symbols but isn't as heavy-handed
6166
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6167
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6168
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6169
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6170
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6171
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6172
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6173
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6174
runpath_var='LD_RUN_PATH'
6176
if test "$GCC" = yes; then
6177
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6178
_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'
6180
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6181
_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'