237
238
])# _LT_AC_SYS_COMPILER
241
# _LT_CC_BASENAME(CC)
242
# -------------------
243
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
244
AC_DEFUN([_LT_CC_BASENAME],
245
[for cc_temp in $1""; do
247
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
248
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
253
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
257
# _LT_COMPILER_BOILERPLATE
258
# ------------------------
259
# Check for compiler boilerplate output or warnings with
260
# the simple compiler test code.
261
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
262
[ac_outfile=conftest.$ac_objext
263
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
264
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
265
_lt_compiler_boilerplate=`cat conftest.err`
267
])# _LT_COMPILER_BOILERPLATE
270
# _LT_LINKER_BOILERPLATE
271
# ----------------------
272
# Check for linker boilerplate output or warnings with
273
# the simple link test code.
274
AC_DEFUN([_LT_LINKER_BOILERPLATE],
275
[ac_outfile=conftest.$ac_objext
276
printf "$lt_simple_link_test_code" >conftest.$ac_ext
277
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
278
_lt_linker_boilerplate=`cat conftest.err`
280
])# _LT_LINKER_BOILERPLATE
240
283
# _LT_AC_SYS_LIBPATH_AIX
241
284
# ----------------------
242
285
# Links a minimal program and checks the executable
668
718
lt_cv_sys_max_cmd_len=8192;
721
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
722
# This has been around since 386BSD, at least. Likely further.
723
if test -x /sbin/sysctl; then
724
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
725
elif test -x /usr/sbin/sysctl; then
726
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
728
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
730
# And add a safety zone
731
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
732
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
735
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
736
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
737
# nice to cause kernel panics so lets avoid the loop below.
738
# First set a reasonable default.
739
lt_cv_sys_max_cmd_len=16384
741
if test -x /sbin/sysconfig; then
742
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
743
*1*) lt_cv_sys_max_cmd_len=-1 ;;
672
748
# If test is not a shell built-in, we'll probably end up computing a
673
749
# 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` \
751
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
752
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
676
753
= "XX$teststring") >/dev/null 2>&1 &&
677
754
new_result=`expr "X$teststring" : ".*" 2>&1` &&
678
755
lt_cv_sys_max_cmd_len=$new_result &&
2335
2437
# -----------------------------------
2336
2438
# sets LIBLTDL to the link flags for the libltdl convenience library and
2337
2439
# LTDLINCL to the include flags for the libltdl header and adds
2338
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2339
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2340
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2341
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2342
# '${top_srcdir}/' (note the single quotes!). If your package is not
2343
# flat and you're not using automake, define top_builddir and
2344
# top_srcdir appropriately in the Makefiles.
2440
# --enable-ltdl-convenience to the configure arguments. Note that
2441
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2442
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2443
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2444
# (note the single quotes!). If your package is not flat and you're not
2445
# using automake, define top_builddir and top_srcdir appropriately in
2345
2447
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2346
2448
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2347
2449
case $enable_ltdl_convenience in
2360
2462
# -----------------------------------
2361
2463
# sets LIBLTDL to the link flags for the libltdl installable library and
2362
2464
# 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.
2465
# --enable-ltdl-install to the configure arguments. Note that
2466
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2467
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2468
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2469
# '${top_srcdir}/' (note the single quotes!). If your package is not
2470
# flat and you're not using automake, define top_builddir and top_srcdir
2471
# appropriately in the Makefiles.
2370
2472
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2371
2473
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2372
2474
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2543
2660
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2544
2661
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
2665
AC_MSG_RESULT([$enable_shared])
2880
2968
_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'
2971
darwin* | rhapsody*)
2973
rhapsody* | darwin1.[[012]])
2974
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2977
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2978
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2980
case ${MACOSX_DEPLOYMENT_TARGET} in
2982
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2985
_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'
2991
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2992
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2993
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2994
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2995
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2996
_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
2998
if test "$GXX" = yes ; then
2999
lt_int_apple_cc_single_mod=no
3000
output_verbose_link_cmd='echo'
3001
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3002
lt_int_apple_cc_single_mod=yes
3004
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3005
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3007
_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'
3009
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3010
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3011
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3012
_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}'
3014
_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}'
3016
_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}'
3018
case $cc_basename in
3020
output_verbose_link_cmd='echo'
3021
_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'
3022
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3023
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3024
_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}'
3025
_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}'
3028
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2936
3035
case $cc_basename in
2938
3037
# FIXME: insert proper C++ library support
2939
3038
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2942
3041
# Green Hills C++ Compiler
2943
3042
# FIXME: insert proper C++ library support
2944
3043
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3133
3232
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3134
3233
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3138
3237
with_gnu_ld=yes
3238
# version 8.0 and above of icpc choke on multiply defined symbols
3239
# if we add $predep_objects and $postdep_objects, however 7.1 and
3240
# earlier do not add the objects themselves.
3241
case `$CC -V 2>&1` in
3243
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3244
_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'
3246
*) # Version 8.0 or newer
3249
ia64*) tmp_idyn=' -i_dynamic';;
3251
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3252
_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
3255
_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
3256
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3143
3257
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3144
3258
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3261
# Portland Group C++ compiler
3262
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3263
_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'
3265
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3266
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3267
_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
3271
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3149
3272
_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
3496
case $cc_basename in
3359
3498
# Sun C++ 4.2, 5.x and Centerline C++
3499
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3360
3500
_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'
3501
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3362
3502
_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'
3503
$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
3505
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3366
3506
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3367
3507
case $host_os in
3368
solaris2.[0-5] | solaris2.[0-5].*) ;;
3508
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3370
3510
# The C++ compiler is used as linker so we must use $wl
3371
3511
# flag to pass the commands to the underlying system
3512
# linker. We must also pass each convience library through
3513
# to the system linker between allextract/defaultextract.
3514
# The C++ compiler will combine linker options so we
3515
# cannot just pass the convience library names through
3373
3517
# 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'
3518
_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
3521
_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'
3523
output_verbose_link_cmd='echo'
3389
3525
# Archives containing C++ object files must be created using
3390
3526
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5114
5361
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5363
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5368
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5370
case $cc_basename,$host_cpu in
5371
pgcc*) # Portland Group C compiler
5372
_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'
5373
tmp_addflag=' $pic_flag'
5375
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5376
_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'
5377
tmp_addflag=' $pic_flag -Mnomain' ;;
5378
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5379
tmp_addflag=' -i_dynamic' ;;
5380
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5381
tmp_addflag=' -i_dynamic -nofor_main' ;;
5382
ifc* | ifort*) # Intel Fortran compiler
5383
tmp_addflag=' -nofor_main' ;;
5385
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5387
if test $supports_anon_versioning = yes; then
5388
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5389
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5390
$echo "local: *; };" >> $output_objdir/$libname.ver~
5391
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5393
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5395
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5155
5434
_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
5438
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5186
5439
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5364
5615
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5365
5616
# FIXME: Should let the user specify the lib program.
5366
5617
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5367
fix_srcfile_path='`cygpath -w "$srcfile"`'
5618
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5368
5619
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5371
5622
darwin* | rhapsody*)
5372
if test "$GXX" = yes ; then
5624
rhapsody* | darwin1.[[012]])
5625
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5628
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5629
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5631
case ${MACOSX_DEPLOYMENT_TARGET} in
5633
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5636
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5373
5642
_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
5643
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5644
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5645
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5646
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5647
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5648
if test "$GCC" = yes ; then
5394
5649
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}'
5650
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5651
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5652
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5653
_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}'
5654
_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}'
5656
case $cc_basename in
5658
output_verbose_link_cmd='echo'
5659
_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'
5660
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5661
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5662
_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
5663
_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
5666
_LT_AC_TAGVAR(ld_shlibs, $1)=no