7529
7777
darwin* | rhapsody*)
7530
if test "$GXX" = yes ; then
7779
rhapsody* | darwin1.[012])
7780
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7783
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7784
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7786
case ${MACOSX_DEPLOYMENT_TARGET} in
7788
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7791
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7531
7797
archive_cmds_need_lc=no
7533
rhapsody* | darwin1.[012])
7534
allow_undefined_flag='-undefined suppress'
7537
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7538
allow_undefined_flag='-flat_namespace -undefined suppress'
7540
case ${MACOSX_DEPLOYMENT_TARGET} in
7542
allow_undefined_flag='-flat_namespace -undefined suppress'
7545
allow_undefined_flag='-undefined dynamic_lookup'
7551
lt_int_apple_cc_single_mod=no
7552
output_verbose_link_cmd='echo'
7553
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7554
lt_int_apple_cc_single_mod=yes
7556
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7557
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7559
archive_cmds='$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'
7561
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7562
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7563
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7564
archive_expsym_cmds='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}'
7566
archive_expsym_cmds='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}'
7568
module_expsym_cmds='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}'
7569
7798
hardcode_direct=no
7570
7799
hardcode_automatic=yes
7571
7800
hardcode_shlibpath_var=unsupported
7572
whole_archive_flag_spec='-all_load $convenience'
7801
whole_archive_flag_spec=''
7573
7802
link_all_deplibs=yes
7803
if test "$GCC" = yes ; then
7804
output_verbose_link_cmd='echo'
7805
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7806
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7807
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7808
archive_expsym_cmds='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}'
7809
module_expsym_cmds='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}'
7811
case $cc_basename in
7813
output_verbose_link_cmd='echo'
7814
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7815
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7816
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7817
archive_expsym_cmds='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}'
7818
module_expsym_cmds='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}'
10474
10832
echo EXPORTS > $output_objdir/$soname.def;
10475
10833
cat $export_symbols >> $output_objdir/$soname.def;
10477
$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'
10835
$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'
10479
10837
ld_shlibs_CXX=no
10483
darwin* | rhapsody*)
10484
if test "$GXX" = yes; then
10485
archive_cmds_need_lc_CXX=no
10487
rhapsody* | darwin1.[012])
10488
allow_undefined_flag_CXX='-undefined suppress'
10491
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10492
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10494
case ${MACOSX_DEPLOYMENT_TARGET} in
10496
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10499
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10840
darwin* | rhapsody*)
10842
rhapsody* | darwin1.[012])
10843
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10846
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10847
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10849
case ${MACOSX_DEPLOYMENT_TARGET} in
10851
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10854
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10505
lt_int_apple_cc_single_mod=no
10506
output_verbose_link_cmd='echo'
10507
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10508
lt_int_apple_cc_single_mod=yes
10510
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10511
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10513
archive_cmds_CXX='$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'
10515
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10860
archive_cmds_need_lc_CXX=no
10861
hardcode_direct_CXX=no
10862
hardcode_automatic_CXX=yes
10863
hardcode_shlibpath_var_CXX=unsupported
10864
whole_archive_flag_spec_CXX=''
10865
link_all_deplibs_CXX=yes
10517
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10518
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10519
archive_expsym_cmds_CXX='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}'
10521
archive_expsym_cmds_CXX='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}'
10523
module_expsym_cmds_CXX='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}'
10524
hardcode_direct_CXX=no
10525
hardcode_automatic_CXX=yes
10526
hardcode_shlibpath_var_CXX=unsupported
10527
whole_archive_flag_spec_CXX='-all_load $convenience'
10528
link_all_deplibs_CXX=yes
10867
if test "$GXX" = yes ; then
10868
lt_int_apple_cc_single_mod=no
10869
output_verbose_link_cmd='echo'
10870
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10871
lt_int_apple_cc_single_mod=yes
10873
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10874
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10876
archive_cmds_CXX='$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'
10878
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10879
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10880
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10881
archive_expsym_cmds_CXX='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}'
10883
archive_expsym_cmds_CXX='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}'
10885
module_expsym_cmds_CXX='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}'
10887
case $cc_basename in
10889
output_verbose_link_cmd='echo'
10890
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10891
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10892
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10893
archive_expsym_cmds_CXX='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}'
10894
module_expsym_cmds_CXX='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}'
10535
10904
case $cc_basename in
10537
10906
# FIXME: insert proper C++ library support
10538
10907
ld_shlibs_CXX=no
10541
10910
# Green Hills C++ Compiler
10542
10911
# FIXME: insert proper C++ library support
10543
10912
ld_shlibs_CXX=no
12239
12833
enable_fast_install=needless
12244
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12245
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12246
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12247
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12248
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12249
echo "$as_me:$LINENO: result: yes" >&5
12250
echo "${ECHO_T}yes" >&6
12252
# FIXME - insert some real tests, host_os isn't really good enough
12255
if test -n "$STRIP" ; then
12256
striplib="$STRIP -x"
12257
echo "$as_me:$LINENO: result: yes" >&5
12258
echo "${ECHO_T}yes" >&6
12260
echo "$as_me:$LINENO: result: no" >&5
12261
echo "${ECHO_T}no" >&6
12265
echo "$as_me:$LINENO: result: no" >&5
12266
echo "${ECHO_T}no" >&6
12271
if test "x$enable_dlopen" != xyes; then
12272
enable_dlopen=unknown
12273
enable_dlopen_self=unknown
12274
enable_dlopen_self_static=unknown
12281
lt_cv_dlopen="load_add_on"
12283
lt_cv_dlopen_self=yes
12287
lt_cv_dlopen="LoadLibrary"
12292
lt_cv_dlopen="dlopen"
12297
# if libdl is installed we need to link against it
12298
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12299
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12300
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12301
echo $ECHO_N "(cached) $ECHO_C" >&6
12303
ac_check_lib_save_LIBS=$LIBS
12305
cat >conftest.$ac_ext <<_ACEOF
12308
cat confdefs.h >>conftest.$ac_ext
12309
cat >>conftest.$ac_ext <<_ACEOF
12310
/* end confdefs.h. */
12312
/* Override any gcc2 internal prototype to avoid an error. */
12316
/* We use char because int might match the return type of a gcc2
12317
builtin and then its argument prototype would still apply. */
12327
rm -f conftest.$ac_objext conftest$ac_exeext
12328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329
(eval $ac_link) 2>conftest.er1
12331
grep -v '^ *+' conftest.er1 >conftest.err
12333
cat conftest.err >&5
12334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335
(exit $ac_status); } &&
12336
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338
(eval $ac_try) 2>&5
12340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341
(exit $ac_status); }; } &&
12342
{ ac_try='test -s conftest$ac_exeext'
12343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344
(eval $ac_try) 2>&5
12346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347
(exit $ac_status); }; }; then
12348
ac_cv_lib_dl_dlopen=yes
12350
echo "$as_me: failed program was:" >&5
12351
sed 's/^/| /' conftest.$ac_ext >&5
12353
ac_cv_lib_dl_dlopen=no
12355
rm -f conftest.err conftest.$ac_objext \
12356
conftest$ac_exeext conftest.$ac_ext
12357
LIBS=$ac_check_lib_save_LIBS
12359
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12360
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12361
if test $ac_cv_lib_dl_dlopen = yes; then
12362
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12365
lt_cv_dlopen="dyld"
12367
lt_cv_dlopen_self=yes
12374
echo "$as_me:$LINENO: checking for shl_load" >&5
12375
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12376
if test "${ac_cv_func_shl_load+set}" = set; then
12377
echo $ECHO_N "(cached) $ECHO_C" >&6
12379
cat >conftest.$ac_ext <<_ACEOF
12382
cat confdefs.h >>conftest.$ac_ext
12383
cat >>conftest.$ac_ext <<_ACEOF
12384
/* end confdefs.h. */
12385
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12386
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12387
#define shl_load innocuous_shl_load
12389
/* System header to define __stub macros and hopefully few prototypes,
12390
which can conflict with char shl_load (); below.
12391
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12392
<limits.h> exists even on freestanding compilers. */
12395
# include <limits.h>
12397
# include <assert.h>
12402
/* Override any gcc2 internal prototype to avoid an error. */
12407
/* We use char because int might match the return type of a gcc2
12408
builtin and then its argument prototype would still apply. */
12410
/* The GNU C library defines this for functions which it implements
12411
to always fail with ENOSYS. Some functions are actually named
12412
something starting with __ and the normal name is an alias. */
12413
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12416
char (*f) () = shl_load;
12425
return f != shl_load;
12430
rm -f conftest.$ac_objext conftest$ac_exeext
12431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432
(eval $ac_link) 2>conftest.er1
12434
grep -v '^ *+' conftest.er1 >conftest.err
12436
cat conftest.err >&5
12437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438
(exit $ac_status); } &&
12439
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12440
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441
(eval $ac_try) 2>&5
12443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444
(exit $ac_status); }; } &&
12445
{ ac_try='test -s conftest$ac_exeext'
12446
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447
(eval $ac_try) 2>&5
12449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450
(exit $ac_status); }; }; then
12451
ac_cv_func_shl_load=yes
12453
echo "$as_me: failed program was:" >&5
12454
sed 's/^/| /' conftest.$ac_ext >&5
12456
ac_cv_func_shl_load=no
12458
rm -f conftest.err conftest.$ac_objext \
12459
conftest$ac_exeext conftest.$ac_ext
12461
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12462
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12463
if test $ac_cv_func_shl_load = yes; then
12464
lt_cv_dlopen="shl_load"
12466
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12467
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12468
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12469
echo $ECHO_N "(cached) $ECHO_C" >&6
12471
ac_check_lib_save_LIBS=$LIBS
12473
cat >conftest.$ac_ext <<_ACEOF
12476
cat confdefs.h >>conftest.$ac_ext
12477
cat >>conftest.$ac_ext <<_ACEOF
12478
/* end confdefs.h. */
12480
/* Override any gcc2 internal prototype to avoid an error. */
12484
/* We use char because int might match the return type of a gcc2
12485
builtin and then its argument prototype would still apply. */
12495
rm -f conftest.$ac_objext conftest$ac_exeext
12496
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497
(eval $ac_link) 2>conftest.er1
12499
grep -v '^ *+' conftest.er1 >conftest.err
12501
cat conftest.err >&5
12502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503
(exit $ac_status); } &&
12504
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506
(eval $ac_try) 2>&5
12508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509
(exit $ac_status); }; } &&
12510
{ ac_try='test -s conftest$ac_exeext'
12511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512
(eval $ac_try) 2>&5
12514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515
(exit $ac_status); }; }; then
12516
ac_cv_lib_dld_shl_load=yes
12518
echo "$as_me: failed program was:" >&5
12519
sed 's/^/| /' conftest.$ac_ext >&5
12521
ac_cv_lib_dld_shl_load=no
12523
rm -f conftest.err conftest.$ac_objext \
12524
conftest$ac_exeext conftest.$ac_ext
12525
LIBS=$ac_check_lib_save_LIBS
12527
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12528
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12529
if test $ac_cv_lib_dld_shl_load = yes; then
12530
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12532
echo "$as_me:$LINENO: checking for dlopen" >&5
12533
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12534
if test "${ac_cv_func_dlopen+set}" = set; then
12535
echo $ECHO_N "(cached) $ECHO_C" >&6
12537
cat >conftest.$ac_ext <<_ACEOF
12540
cat confdefs.h >>conftest.$ac_ext
12541
cat >>conftest.$ac_ext <<_ACEOF
12542
/* end confdefs.h. */
12543
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12544
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12545
#define dlopen innocuous_dlopen
12547
/* System header to define __stub macros and hopefully few prototypes,
12548
which can conflict with char dlopen (); below.
12549
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12550
<limits.h> exists even on freestanding compilers. */
12553
# include <limits.h>
12555
# include <assert.h>
12560
/* Override any gcc2 internal prototype to avoid an error. */
12565
/* We use char because int might match the return type of a gcc2
12566
builtin and then its argument prototype would still apply. */
12568
/* The GNU C library defines this for functions which it implements
12569
to always fail with ENOSYS. Some functions are actually named
12570
something starting with __ and the normal name is an alias. */
12571
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12574
char (*f) () = dlopen;
12583
return f != dlopen;
12588
rm -f conftest.$ac_objext conftest$ac_exeext
12589
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12590
(eval $ac_link) 2>conftest.er1
12592
grep -v '^ *+' conftest.er1 >conftest.err
12594
cat conftest.err >&5
12595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596
(exit $ac_status); } &&
12597
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599
(eval $ac_try) 2>&5
12601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602
(exit $ac_status); }; } &&
12603
{ ac_try='test -s conftest$ac_exeext'
12604
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605
(eval $ac_try) 2>&5
12607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608
(exit $ac_status); }; }; then
12609
ac_cv_func_dlopen=yes
12611
echo "$as_me: failed program was:" >&5
12612
sed 's/^/| /' conftest.$ac_ext >&5
12614
ac_cv_func_dlopen=no
12616
rm -f conftest.err conftest.$ac_objext \
12617
conftest$ac_exeext conftest.$ac_ext
12619
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12620
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12621
if test $ac_cv_func_dlopen = yes; then
12622
lt_cv_dlopen="dlopen"
12624
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12625
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12626
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12627
echo $ECHO_N "(cached) $ECHO_C" >&6
12629
ac_check_lib_save_LIBS=$LIBS
12631
cat >conftest.$ac_ext <<_ACEOF
12634
cat confdefs.h >>conftest.$ac_ext
12635
cat >>conftest.$ac_ext <<_ACEOF
12636
/* end confdefs.h. */
12638
/* Override any gcc2 internal prototype to avoid an error. */
12642
/* We use char because int might match the return type of a gcc2
12643
builtin and then its argument prototype would still apply. */
12653
rm -f conftest.$ac_objext conftest$ac_exeext
12654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12655
(eval $ac_link) 2>conftest.er1
12657
grep -v '^ *+' conftest.er1 >conftest.err
12659
cat conftest.err >&5
12660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661
(exit $ac_status); } &&
12662
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12663
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664
(eval $ac_try) 2>&5
12666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667
(exit $ac_status); }; } &&
12668
{ ac_try='test -s conftest$ac_exeext'
12669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670
(eval $ac_try) 2>&5
12672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673
(exit $ac_status); }; }; then
12674
ac_cv_lib_dl_dlopen=yes
12676
echo "$as_me: failed program was:" >&5
12677
sed 's/^/| /' conftest.$ac_ext >&5
12679
ac_cv_lib_dl_dlopen=no
12681
rm -f conftest.err conftest.$ac_objext \
12682
conftest$ac_exeext conftest.$ac_ext
12683
LIBS=$ac_check_lib_save_LIBS
12685
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12686
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12687
if test $ac_cv_lib_dl_dlopen = yes; then
12688
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12690
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12691
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12692
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12693
echo $ECHO_N "(cached) $ECHO_C" >&6
12695
ac_check_lib_save_LIBS=$LIBS
12696
LIBS="-lsvld $LIBS"
12697
cat >conftest.$ac_ext <<_ACEOF
12700
cat confdefs.h >>conftest.$ac_ext
12701
cat >>conftest.$ac_ext <<_ACEOF
12702
/* end confdefs.h. */
12704
/* Override any gcc2 internal prototype to avoid an error. */
12708
/* We use char because int might match the return type of a gcc2
12709
builtin and then its argument prototype would still apply. */
12719
rm -f conftest.$ac_objext conftest$ac_exeext
12720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721
(eval $ac_link) 2>conftest.er1
12723
grep -v '^ *+' conftest.er1 >conftest.err
12725
cat conftest.err >&5
12726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727
(exit $ac_status); } &&
12728
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730
(eval $ac_try) 2>&5
12732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733
(exit $ac_status); }; } &&
12734
{ ac_try='test -s conftest$ac_exeext'
12735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736
(eval $ac_try) 2>&5
12738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739
(exit $ac_status); }; }; then
12740
ac_cv_lib_svld_dlopen=yes
12742
echo "$as_me: failed program was:" >&5
12743
sed 's/^/| /' conftest.$ac_ext >&5
12745
ac_cv_lib_svld_dlopen=no
12747
rm -f conftest.err conftest.$ac_objext \
12748
conftest$ac_exeext conftest.$ac_ext
12749
LIBS=$ac_check_lib_save_LIBS
12751
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12752
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12753
if test $ac_cv_lib_svld_dlopen = yes; then
12754
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12756
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12757
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12758
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12759
echo $ECHO_N "(cached) $ECHO_C" >&6
12761
ac_check_lib_save_LIBS=$LIBS
12763
cat >conftest.$ac_ext <<_ACEOF
12766
cat confdefs.h >>conftest.$ac_ext
12767
cat >>conftest.$ac_ext <<_ACEOF
12768
/* end confdefs.h. */
12770
/* Override any gcc2 internal prototype to avoid an error. */
12774
/* We use char because int might match the return type of a gcc2
12775
builtin and then its argument prototype would still apply. */
12785
rm -f conftest.$ac_objext conftest$ac_exeext
12786
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787
(eval $ac_link) 2>conftest.er1
12789
grep -v '^ *+' conftest.er1 >conftest.err
12791
cat conftest.err >&5
12792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793
(exit $ac_status); } &&
12794
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796
(eval $ac_try) 2>&5
12798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799
(exit $ac_status); }; } &&
12800
{ ac_try='test -s conftest$ac_exeext'
12801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802
(eval $ac_try) 2>&5
12804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805
(exit $ac_status); }; }; then
12806
ac_cv_lib_dld_dld_link=yes
12808
echo "$as_me: failed program was:" >&5
12809
sed 's/^/| /' conftest.$ac_ext >&5
12811
ac_cv_lib_dld_dld_link=no
12813
rm -f conftest.err conftest.$ac_objext \
12814
conftest$ac_exeext conftest.$ac_ext
12815
LIBS=$ac_check_lib_save_LIBS
12817
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12818
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12819
if test $ac_cv_lib_dld_dld_link = yes; then
12820
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12841
if test "x$lt_cv_dlopen" != xno; then
12847
case $lt_cv_dlopen in
12849
save_CPPFLAGS="$CPPFLAGS"
12850
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12852
save_LDFLAGS="$LDFLAGS"
12853
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12856
LIBS="$lt_cv_dlopen_libs $LIBS"
12858
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12859
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12860
if test "${lt_cv_dlopen_self+set}" = set; then
12861
echo $ECHO_N "(cached) $ECHO_C" >&6
12863
if test "$cross_compiling" = yes; then :
12864
lt_cv_dlopen_self=cross
12866
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12867
lt_status=$lt_dlunknown
12868
cat > conftest.$ac_ext <<EOF
12869
#line 12869 "configure"
12870
#include "confdefs.h"
12879
# define LT_DLGLOBAL RTLD_GLOBAL
12882
# define LT_DLGLOBAL DL_GLOBAL
12884
# define LT_DLGLOBAL 0
12888
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12889
find out it does not work in some platform. */
12890
#ifndef LT_DLLAZY_OR_NOW
12892
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12895
# define LT_DLLAZY_OR_NOW DL_LAZY
12898
# define LT_DLLAZY_OR_NOW RTLD_NOW
12901
# define LT_DLLAZY_OR_NOW DL_NOW
12903
# define LT_DLLAZY_OR_NOW 0
12911
extern "C" void exit (int);
12914
void fnord() { int i=42;}
12917
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12918
int status = $lt_dlunknown;
12922
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12923
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12924
/* dlclose (self); */
12930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931
(eval $ac_link) 2>&5
12933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12935
(./conftest; exit; ) 2>/dev/null
12937
case x$lt_status in
12938
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12939
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12940
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12943
# compilation failed
12944
lt_cv_dlopen_self=no
12951
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12952
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12954
if test "x$lt_cv_dlopen_self" = xyes; then
12955
LDFLAGS="$LDFLAGS $link_static_flag"
12956
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12957
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12958
if test "${lt_cv_dlopen_self_static+set}" = set; then
12959
echo $ECHO_N "(cached) $ECHO_C" >&6
12961
if test "$cross_compiling" = yes; then :
12962
lt_cv_dlopen_self_static=cross
12964
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12965
lt_status=$lt_dlunknown
12966
cat > conftest.$ac_ext <<EOF
12967
#line 12967 "configure"
12968
#include "confdefs.h"
12977
# define LT_DLGLOBAL RTLD_GLOBAL
12980
# define LT_DLGLOBAL DL_GLOBAL
12982
# define LT_DLGLOBAL 0
12986
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12987
find out it does not work in some platform. */
12988
#ifndef LT_DLLAZY_OR_NOW
12990
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12993
# define LT_DLLAZY_OR_NOW DL_LAZY
12996
# define LT_DLLAZY_OR_NOW RTLD_NOW
12999
# define LT_DLLAZY_OR_NOW DL_NOW
13001
# define LT_DLLAZY_OR_NOW 0
13009
extern "C" void exit (int);
13012
void fnord() { int i=42;}
13015
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13016
int status = $lt_dlunknown;
13020
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13021
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13022
/* dlclose (self); */
13028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029
(eval $ac_link) 2>&5
13031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13033
(./conftest; exit; ) 2>/dev/null
13035
case x$lt_status in
13036
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13037
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13038
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13041
# compilation failed
13042
lt_cv_dlopen_self_static=no
13049
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13050
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13053
CPPFLAGS="$save_CPPFLAGS"
13054
LDFLAGS="$save_LDFLAGS"
13059
case $lt_cv_dlopen_self in
13060
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13061
*) enable_dlopen_self=unknown ;;
13064
case $lt_cv_dlopen_self_static in
13065
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13066
*) enable_dlopen_self_static=unknown ;;
13071
12837
# The else clause should only fire when bootstrapping the
13072
12838
# libtool distribution, otherwise you forgot to ship ltmain.sh
14355
14317
old_archive_From_new_cmds_F77='true'
14356
14318
# FIXME: Should let the user specify the lib program.
14357
14319
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14358
fix_srcfile_path='`cygpath -w "$srcfile"`'
14320
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14359
14321
enable_shared_with_static_runtimes_F77=yes
14362
14324
darwin* | rhapsody*)
14363
if test "$GXX" = yes ; then
14326
rhapsody* | darwin1.[012])
14327
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14330
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14331
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14333
case ${MACOSX_DEPLOYMENT_TARGET} in
14335
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14338
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14364
14344
archive_cmds_need_lc_F77=no
14366
rhapsody* | darwin1.[012])
14367
allow_undefined_flag_F77='-undefined suppress'
14370
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14371
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14373
case ${MACOSX_DEPLOYMENT_TARGET} in
14375
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14378
allow_undefined_flag_F77='-undefined dynamic_lookup'
14384
lt_int_apple_cc_single_mod=no
14385
output_verbose_link_cmd='echo'
14386
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14387
lt_int_apple_cc_single_mod=yes
14389
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14390
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14392
archive_cmds_F77='$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'
14394
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14395
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14396
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14397
archive_expsym_cmds_F77='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}'
14399
archive_expsym_cmds_F77='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}'
14401
module_expsym_cmds_F77='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}'
14402
14345
hardcode_direct_F77=no
14403
14346
hardcode_automatic_F77=yes
14404
14347
hardcode_shlibpath_var_F77=unsupported
14405
whole_archive_flag_spec_F77='-all_load $convenience'
14348
whole_archive_flag_spec_F77=''
14406
14349
link_all_deplibs_F77=yes
14350
if test "$GCC" = yes ; then
14351
output_verbose_link_cmd='echo'
14352
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14353
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14354
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14355
archive_expsym_cmds_F77='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}'
14356
module_expsym_cmds_F77='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}'
14358
case $cc_basename in
14360
output_verbose_link_cmd='echo'
14361
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14362
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14363
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14364
archive_expsym_cmds_F77='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}'
14365
module_expsym_cmds_F77='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}'
16701
16916
old_archive_From_new_cmds_GCJ='true'
16702
16917
# FIXME: Should let the user specify the lib program.
16703
16918
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16704
fix_srcfile_path='`cygpath -w "$srcfile"`'
16919
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16705
16920
enable_shared_with_static_runtimes_GCJ=yes
16708
16923
darwin* | rhapsody*)
16709
if test "$GXX" = yes ; then
16925
rhapsody* | darwin1.[012])
16926
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16929
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16930
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16932
case ${MACOSX_DEPLOYMENT_TARGET} in
16934
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16937
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16710
16943
archive_cmds_need_lc_GCJ=no
16712
rhapsody* | darwin1.[012])
16713
allow_undefined_flag_GCJ='-undefined suppress'
16716
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16717
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16719
case ${MACOSX_DEPLOYMENT_TARGET} in
16721
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16724
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16730
lt_int_apple_cc_single_mod=no
16731
output_verbose_link_cmd='echo'
16732
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16733
lt_int_apple_cc_single_mod=yes
16735
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16736
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16738
archive_cmds_GCJ='$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'
16740
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16741
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16742
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16743
archive_expsym_cmds_GCJ='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}'
16745
archive_expsym_cmds_GCJ='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}'
16747
module_expsym_cmds_GCJ='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}'
16748
16944
hardcode_direct_GCJ=no
16749
16945
hardcode_automatic_GCJ=yes
16750
16946
hardcode_shlibpath_var_GCJ=unsupported
16751
whole_archive_flag_spec_GCJ='-all_load $convenience'
16947
whole_archive_flag_spec_GCJ=''
16752
16948
link_all_deplibs_GCJ=yes
16949
if test "$GCC" = yes ; then
16950
output_verbose_link_cmd='echo'
16951
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16952
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16953
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16954
archive_expsym_cmds_GCJ='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}'
16955
module_expsym_cmds_GCJ='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}'
16957
case $cc_basename in
16959
output_verbose_link_cmd='echo'
16960
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16961
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16962
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16963
archive_expsym_cmds_GCJ='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}'
16964
module_expsym_cmds_GCJ='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}'
17726
18019
enable_fast_install=needless
17731
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17732
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17733
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17734
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17735
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17736
echo "$as_me:$LINENO: result: yes" >&5
17737
echo "${ECHO_T}yes" >&6
17739
# FIXME - insert some real tests, host_os isn't really good enough
17742
if test -n "$STRIP" ; then
17743
striplib="$STRIP -x"
17744
echo "$as_me:$LINENO: result: yes" >&5
17745
echo "${ECHO_T}yes" >&6
17747
echo "$as_me:$LINENO: result: no" >&5
17748
echo "${ECHO_T}no" >&6
17752
echo "$as_me:$LINENO: result: no" >&5
17753
echo "${ECHO_T}no" >&6
17758
if test "x$enable_dlopen" != xyes; then
17759
enable_dlopen=unknown
17760
enable_dlopen_self=unknown
17761
enable_dlopen_self_static=unknown
17768
lt_cv_dlopen="load_add_on"
17770
lt_cv_dlopen_self=yes
17774
lt_cv_dlopen="LoadLibrary"
17779
lt_cv_dlopen="dlopen"
17784
# if libdl is installed we need to link against it
17785
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17786
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17787
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17788
echo $ECHO_N "(cached) $ECHO_C" >&6
17790
ac_check_lib_save_LIBS=$LIBS
17792
cat >conftest.$ac_ext <<_ACEOF
17795
cat confdefs.h >>conftest.$ac_ext
17796
cat >>conftest.$ac_ext <<_ACEOF
17797
/* end confdefs.h. */
17799
/* Override any gcc2 internal prototype to avoid an error. */
17803
/* We use char because int might match the return type of a gcc2
17804
builtin and then its argument prototype would still apply. */
17814
rm -f conftest.$ac_objext conftest$ac_exeext
17815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17816
(eval $ac_link) 2>conftest.er1
17818
grep -v '^ *+' conftest.er1 >conftest.err
17820
cat conftest.err >&5
17821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822
(exit $ac_status); } &&
17823
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825
(eval $ac_try) 2>&5
17827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828
(exit $ac_status); }; } &&
17829
{ ac_try='test -s conftest$ac_exeext'
17830
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831
(eval $ac_try) 2>&5
17833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834
(exit $ac_status); }; }; then
17835
ac_cv_lib_dl_dlopen=yes
17837
echo "$as_me: failed program was:" >&5
17838
sed 's/^/| /' conftest.$ac_ext >&5
17840
ac_cv_lib_dl_dlopen=no
17842
rm -f conftest.err conftest.$ac_objext \
17843
conftest$ac_exeext conftest.$ac_ext
17844
LIBS=$ac_check_lib_save_LIBS
17846
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17847
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17848
if test $ac_cv_lib_dl_dlopen = yes; then
17849
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17852
lt_cv_dlopen="dyld"
17854
lt_cv_dlopen_self=yes
17861
echo "$as_me:$LINENO: checking for shl_load" >&5
17862
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17863
if test "${ac_cv_func_shl_load+set}" = set; then
17864
echo $ECHO_N "(cached) $ECHO_C" >&6
17866
cat >conftest.$ac_ext <<_ACEOF
17869
cat confdefs.h >>conftest.$ac_ext
17870
cat >>conftest.$ac_ext <<_ACEOF
17871
/* end confdefs.h. */
17872
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17873
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17874
#define shl_load innocuous_shl_load
17876
/* System header to define __stub macros and hopefully few prototypes,
17877
which can conflict with char shl_load (); below.
17878
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17879
<limits.h> exists even on freestanding compilers. */
17882
# include <limits.h>
17884
# include <assert.h>
17889
/* Override any gcc2 internal prototype to avoid an error. */
17894
/* We use char because int might match the return type of a gcc2
17895
builtin and then its argument prototype would still apply. */
17897
/* The GNU C library defines this for functions which it implements
17898
to always fail with ENOSYS. Some functions are actually named
17899
something starting with __ and the normal name is an alias. */
17900
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17903
char (*f) () = shl_load;
17912
return f != shl_load;
17917
rm -f conftest.$ac_objext conftest$ac_exeext
17918
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17919
(eval $ac_link) 2>conftest.er1
17921
grep -v '^ *+' conftest.er1 >conftest.err
17923
cat conftest.err >&5
17924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925
(exit $ac_status); } &&
17926
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928
(eval $ac_try) 2>&5
17930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931
(exit $ac_status); }; } &&
17932
{ ac_try='test -s conftest$ac_exeext'
17933
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934
(eval $ac_try) 2>&5
17936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937
(exit $ac_status); }; }; then
17938
ac_cv_func_shl_load=yes
17940
echo "$as_me: failed program was:" >&5
17941
sed 's/^/| /' conftest.$ac_ext >&5
17943
ac_cv_func_shl_load=no
17945
rm -f conftest.err conftest.$ac_objext \
17946
conftest$ac_exeext conftest.$ac_ext
17948
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17949
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17950
if test $ac_cv_func_shl_load = yes; then
17951
lt_cv_dlopen="shl_load"
17953
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17954
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17955
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17956
echo $ECHO_N "(cached) $ECHO_C" >&6
17958
ac_check_lib_save_LIBS=$LIBS
17960
cat >conftest.$ac_ext <<_ACEOF
17963
cat confdefs.h >>conftest.$ac_ext
17964
cat >>conftest.$ac_ext <<_ACEOF
17965
/* end confdefs.h. */
17967
/* Override any gcc2 internal prototype to avoid an error. */
17971
/* We use char because int might match the return type of a gcc2
17972
builtin and then its argument prototype would still apply. */
17982
rm -f conftest.$ac_objext conftest$ac_exeext
17983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984
(eval $ac_link) 2>conftest.er1
17986
grep -v '^ *+' conftest.er1 >conftest.err
17988
cat conftest.err >&5
17989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990
(exit $ac_status); } &&
17991
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993
(eval $ac_try) 2>&5
17995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996
(exit $ac_status); }; } &&
17997
{ ac_try='test -s conftest$ac_exeext'
17998
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999
(eval $ac_try) 2>&5
18001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002
(exit $ac_status); }; }; then
18003
ac_cv_lib_dld_shl_load=yes
18005
echo "$as_me: failed program was:" >&5
18006
sed 's/^/| /' conftest.$ac_ext >&5
18008
ac_cv_lib_dld_shl_load=no
18010
rm -f conftest.err conftest.$ac_objext \
18011
conftest$ac_exeext conftest.$ac_ext
18012
LIBS=$ac_check_lib_save_LIBS
18014
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18015
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18016
if test $ac_cv_lib_dld_shl_load = yes; then
18017
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18019
echo "$as_me:$LINENO: checking for dlopen" >&5
18020
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18021
if test "${ac_cv_func_dlopen+set}" = set; then
18022
echo $ECHO_N "(cached) $ECHO_C" >&6
18024
cat >conftest.$ac_ext <<_ACEOF
18027
cat confdefs.h >>conftest.$ac_ext
18028
cat >>conftest.$ac_ext <<_ACEOF
18029
/* end confdefs.h. */
18030
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18031
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18032
#define dlopen innocuous_dlopen
18034
/* System header to define __stub macros and hopefully few prototypes,
18035
which can conflict with char dlopen (); below.
18036
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037
<limits.h> exists even on freestanding compilers. */
18040
# include <limits.h>
18042
# include <assert.h>
18047
/* Override any gcc2 internal prototype to avoid an error. */
18052
/* We use char because int might match the return type of a gcc2
18053
builtin and then its argument prototype would still apply. */
18055
/* The GNU C library defines this for functions which it implements
18056
to always fail with ENOSYS. Some functions are actually named
18057
something starting with __ and the normal name is an alias. */
18058
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18061
char (*f) () = dlopen;
18070
return f != dlopen;
18075
rm -f conftest.$ac_objext conftest$ac_exeext
18076
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18077
(eval $ac_link) 2>conftest.er1
18079
grep -v '^ *+' conftest.er1 >conftest.err
18081
cat conftest.err >&5
18082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083
(exit $ac_status); } &&
18084
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086
(eval $ac_try) 2>&5
18088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089
(exit $ac_status); }; } &&
18090
{ ac_try='test -s conftest$ac_exeext'
18091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092
(eval $ac_try) 2>&5
18094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095
(exit $ac_status); }; }; then
18096
ac_cv_func_dlopen=yes
18098
echo "$as_me: failed program was:" >&5
18099
sed 's/^/| /' conftest.$ac_ext >&5
18101
ac_cv_func_dlopen=no
18103
rm -f conftest.err conftest.$ac_objext \
18104
conftest$ac_exeext conftest.$ac_ext
18106
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18107
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18108
if test $ac_cv_func_dlopen = yes; then
18109
lt_cv_dlopen="dlopen"
18111
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18112
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18113
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18114
echo $ECHO_N "(cached) $ECHO_C" >&6
18116
ac_check_lib_save_LIBS=$LIBS
18118
cat >conftest.$ac_ext <<_ACEOF
18121
cat confdefs.h >>conftest.$ac_ext
18122
cat >>conftest.$ac_ext <<_ACEOF
18123
/* end confdefs.h. */
18125
/* Override any gcc2 internal prototype to avoid an error. */
18129
/* We use char because int might match the return type of a gcc2
18130
builtin and then its argument prototype would still apply. */
18140
rm -f conftest.$ac_objext conftest$ac_exeext
18141
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18142
(eval $ac_link) 2>conftest.er1
18144
grep -v '^ *+' conftest.er1 >conftest.err
18146
cat conftest.err >&5
18147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148
(exit $ac_status); } &&
18149
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151
(eval $ac_try) 2>&5
18153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154
(exit $ac_status); }; } &&
18155
{ ac_try='test -s conftest$ac_exeext'
18156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157
(eval $ac_try) 2>&5
18159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160
(exit $ac_status); }; }; then
18161
ac_cv_lib_dl_dlopen=yes
18163
echo "$as_me: failed program was:" >&5
18164
sed 's/^/| /' conftest.$ac_ext >&5
18166
ac_cv_lib_dl_dlopen=no
18168
rm -f conftest.err conftest.$ac_objext \
18169
conftest$ac_exeext conftest.$ac_ext
18170
LIBS=$ac_check_lib_save_LIBS
18172
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18173
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18174
if test $ac_cv_lib_dl_dlopen = yes; then
18175
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18177
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18178
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18179
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18180
echo $ECHO_N "(cached) $ECHO_C" >&6
18182
ac_check_lib_save_LIBS=$LIBS
18183
LIBS="-lsvld $LIBS"
18184
cat >conftest.$ac_ext <<_ACEOF
18187
cat confdefs.h >>conftest.$ac_ext
18188
cat >>conftest.$ac_ext <<_ACEOF
18189
/* end confdefs.h. */
18191
/* Override any gcc2 internal prototype to avoid an error. */
18195
/* We use char because int might match the return type of a gcc2
18196
builtin and then its argument prototype would still apply. */
18206
rm -f conftest.$ac_objext conftest$ac_exeext
18207
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18208
(eval $ac_link) 2>conftest.er1
18210
grep -v '^ *+' conftest.er1 >conftest.err
18212
cat conftest.err >&5
18213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214
(exit $ac_status); } &&
18215
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217
(eval $ac_try) 2>&5
18219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220
(exit $ac_status); }; } &&
18221
{ ac_try='test -s conftest$ac_exeext'
18222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223
(eval $ac_try) 2>&5
18225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226
(exit $ac_status); }; }; then
18227
ac_cv_lib_svld_dlopen=yes
18229
echo "$as_me: failed program was:" >&5
18230
sed 's/^/| /' conftest.$ac_ext >&5
18232
ac_cv_lib_svld_dlopen=no
18234
rm -f conftest.err conftest.$ac_objext \
18235
conftest$ac_exeext conftest.$ac_ext
18236
LIBS=$ac_check_lib_save_LIBS
18238
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18239
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18240
if test $ac_cv_lib_svld_dlopen = yes; then
18241
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18243
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18244
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18245
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18246
echo $ECHO_N "(cached) $ECHO_C" >&6
18248
ac_check_lib_save_LIBS=$LIBS
18250
cat >conftest.$ac_ext <<_ACEOF
18253
cat confdefs.h >>conftest.$ac_ext
18254
cat >>conftest.$ac_ext <<_ACEOF
18255
/* end confdefs.h. */
18257
/* Override any gcc2 internal prototype to avoid an error. */
18261
/* We use char because int might match the return type of a gcc2
18262
builtin and then its argument prototype would still apply. */
18272
rm -f conftest.$ac_objext conftest$ac_exeext
18273
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18274
(eval $ac_link) 2>conftest.er1
18276
grep -v '^ *+' conftest.er1 >conftest.err
18278
cat conftest.err >&5
18279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280
(exit $ac_status); } &&
18281
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283
(eval $ac_try) 2>&5
18285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286
(exit $ac_status); }; } &&
18287
{ ac_try='test -s conftest$ac_exeext'
18288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289
(eval $ac_try) 2>&5
18291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292
(exit $ac_status); }; }; then
18293
ac_cv_lib_dld_dld_link=yes
18295
echo "$as_me: failed program was:" >&5
18296
sed 's/^/| /' conftest.$ac_ext >&5
18298
ac_cv_lib_dld_dld_link=no
18300
rm -f conftest.err conftest.$ac_objext \
18301
conftest$ac_exeext conftest.$ac_ext
18302
LIBS=$ac_check_lib_save_LIBS
18304
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18305
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18306
if test $ac_cv_lib_dld_dld_link = yes; then
18307
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18328
if test "x$lt_cv_dlopen" != xno; then
18334
case $lt_cv_dlopen in
18336
save_CPPFLAGS="$CPPFLAGS"
18337
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18339
save_LDFLAGS="$LDFLAGS"
18340
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18343
LIBS="$lt_cv_dlopen_libs $LIBS"
18345
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18346
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18347
if test "${lt_cv_dlopen_self+set}" = set; then
18348
echo $ECHO_N "(cached) $ECHO_C" >&6
18350
if test "$cross_compiling" = yes; then :
18351
lt_cv_dlopen_self=cross
18353
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18354
lt_status=$lt_dlunknown
18355
cat > conftest.$ac_ext <<EOF
18356
#line 18356 "configure"
18357
#include "confdefs.h"
18366
# define LT_DLGLOBAL RTLD_GLOBAL
18369
# define LT_DLGLOBAL DL_GLOBAL
18371
# define LT_DLGLOBAL 0
18375
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18376
find out it does not work in some platform. */
18377
#ifndef LT_DLLAZY_OR_NOW
18379
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18382
# define LT_DLLAZY_OR_NOW DL_LAZY
18385
# define LT_DLLAZY_OR_NOW RTLD_NOW
18388
# define LT_DLLAZY_OR_NOW DL_NOW
18390
# define LT_DLLAZY_OR_NOW 0
18398
extern "C" void exit (int);
18401
void fnord() { int i=42;}
18404
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18405
int status = $lt_dlunknown;
18409
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18410
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18411
/* dlclose (self); */
18417
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18418
(eval $ac_link) 2>&5
18420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18422
(./conftest; exit; ) 2>/dev/null
18424
case x$lt_status in
18425
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18426
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18427
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18430
# compilation failed
18431
lt_cv_dlopen_self=no
18438
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18439
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18441
if test "x$lt_cv_dlopen_self" = xyes; then
18442
LDFLAGS="$LDFLAGS $link_static_flag"
18443
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18444
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18445
if test "${lt_cv_dlopen_self_static+set}" = set; then
18446
echo $ECHO_N "(cached) $ECHO_C" >&6
18448
if test "$cross_compiling" = yes; then :
18449
lt_cv_dlopen_self_static=cross
18451
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18452
lt_status=$lt_dlunknown
18453
cat > conftest.$ac_ext <<EOF
18454
#line 18454 "configure"
18455
#include "confdefs.h"
18464
# define LT_DLGLOBAL RTLD_GLOBAL
18467
# define LT_DLGLOBAL DL_GLOBAL
18469
# define LT_DLGLOBAL 0
18473
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18474
find out it does not work in some platform. */
18475
#ifndef LT_DLLAZY_OR_NOW
18477
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18480
# define LT_DLLAZY_OR_NOW DL_LAZY
18483
# define LT_DLLAZY_OR_NOW RTLD_NOW
18486
# define LT_DLLAZY_OR_NOW DL_NOW
18488
# define LT_DLLAZY_OR_NOW 0
18496
extern "C" void exit (int);
18499
void fnord() { int i=42;}
18502
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18503
int status = $lt_dlunknown;
18507
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18508
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18509
/* dlclose (self); */
18515
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18516
(eval $ac_link) 2>&5
18518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18520
(./conftest; exit; ) 2>/dev/null
18522
case x$lt_status in
18523
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18524
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18525
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18528
# compilation failed
18529
lt_cv_dlopen_self_static=no
18536
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18537
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18540
CPPFLAGS="$save_CPPFLAGS"
18541
LDFLAGS="$save_LDFLAGS"
18546
case $lt_cv_dlopen_self in
18547
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18548
*) enable_dlopen_self=unknown ;;
18551
case $lt_cv_dlopen_self_static in
18552
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18553
*) enable_dlopen_self_static=unknown ;;
18558
18023
# The else clause should only fire when bootstrapping the
18559
18024
# libtool distribution, otherwise you forgot to ship ltmain.sh