7120
7382
darwin* | rhapsody*)
7121
if test "$GXX" = yes ; then
7384
rhapsody* | darwin1.[012])
7385
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7388
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7389
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7391
case ${MACOSX_DEPLOYMENT_TARGET} in
7393
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7396
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7122
7402
archive_cmds_need_lc=no
7124
rhapsody* | darwin1.[012])
7125
allow_undefined_flag='-undefined suppress'
7128
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7129
allow_undefined_flag='-flat_namespace -undefined suppress'
7131
case ${MACOSX_DEPLOYMENT_TARGET} in
7133
allow_undefined_flag='-flat_namespace -undefined suppress'
7136
allow_undefined_flag='-undefined dynamic_lookup'
7142
lt_int_apple_cc_single_mod=no
7143
output_verbose_link_cmd='echo'
7144
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7145
lt_int_apple_cc_single_mod=yes
7147
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7148
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7150
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'
7152
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7153
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7154
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7155
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}'
7157
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}'
7159
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}'
7160
7403
hardcode_direct=no
7161
7404
hardcode_automatic=yes
7162
7405
hardcode_shlibpath_var=unsupported
7163
whole_archive_flag_spec='-all_load $convenience'
7406
whole_archive_flag_spec=''
7164
7407
link_all_deplibs=yes
7408
if test "$GCC" = yes ; then
7409
output_verbose_link_cmd='echo'
7410
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7411
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7412
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7413
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}'
7414
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}'
7416
case $cc_basename in
7418
output_verbose_link_cmd='echo'
7419
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7420
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7421
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7422
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}'
7423
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}'
10129
10458
echo EXPORTS > $output_objdir/$soname.def;
10130
10459
cat $export_symbols >> $output_objdir/$soname.def;
10132
$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'
10461
$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'
10134
10463
ld_shlibs_CXX=no
10138
darwin* | rhapsody*)
10139
if test "$GXX" = yes; then
10140
archive_cmds_need_lc_CXX=no
10142
rhapsody* | darwin1.[012])
10143
allow_undefined_flag_CXX='-undefined suppress'
10146
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10147
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10149
case ${MACOSX_DEPLOYMENT_TARGET} in
10151
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10154
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10466
darwin* | rhapsody*)
10468
rhapsody* | darwin1.[012])
10469
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10472
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10473
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10475
case ${MACOSX_DEPLOYMENT_TARGET} in
10477
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10480
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10160
lt_int_apple_cc_single_mod=no
10161
output_verbose_link_cmd='echo'
10162
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10163
lt_int_apple_cc_single_mod=yes
10165
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10166
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10168
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'
10170
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10486
archive_cmds_need_lc_CXX=no
10487
hardcode_direct_CXX=no
10488
hardcode_automatic_CXX=yes
10489
hardcode_shlibpath_var_CXX=unsupported
10490
whole_archive_flag_spec_CXX=''
10491
link_all_deplibs_CXX=yes
10172
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10173
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10174
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}'
10176
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}'
10178
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}'
10179
hardcode_direct_CXX=no
10180
hardcode_automatic_CXX=yes
10181
hardcode_shlibpath_var_CXX=unsupported
10182
whole_archive_flag_spec_CXX='-all_load $convenience'
10183
link_all_deplibs_CXX=yes
10493
if test "$GXX" = yes ; then
10494
lt_int_apple_cc_single_mod=no
10495
output_verbose_link_cmd='echo'
10496
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10497
lt_int_apple_cc_single_mod=yes
10499
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10500
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10502
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'
10504
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10505
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10506
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10507
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}'
10509
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}'
10511
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}'
10513
case $cc_basename in
10515
output_verbose_link_cmd='echo'
10516
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'
10517
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10518
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10519
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}'
10520
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}'
10190
10530
case $cc_basename in
10192
10532
# FIXME: insert proper C++ library support
10193
10533
ld_shlibs_CXX=no
10196
10536
# Green Hills C++ Compiler
10197
10537
# FIXME: insert proper C++ library support
10198
10538
ld_shlibs_CXX=no
11946
12476
enable_fast_install=needless
11951
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11952
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11953
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11954
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11955
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11956
echo "$as_me:$LINENO: result: yes" >&5
11957
echo "${ECHO_T}yes" >&6
11959
# FIXME - insert some real tests, host_os isn't really good enough
11962
if test -n "$STRIP" ; then
11963
striplib="$STRIP -x"
11964
echo "$as_me:$LINENO: result: yes" >&5
11965
echo "${ECHO_T}yes" >&6
11967
echo "$as_me:$LINENO: result: no" >&5
11968
echo "${ECHO_T}no" >&6
11972
echo "$as_me:$LINENO: result: no" >&5
11973
echo "${ECHO_T}no" >&6
11978
if test "x$enable_dlopen" != xyes; then
11979
enable_dlopen=unknown
11980
enable_dlopen_self=unknown
11981
enable_dlopen_self_static=unknown
11988
lt_cv_dlopen="load_add_on"
11990
lt_cv_dlopen_self=yes
11994
lt_cv_dlopen="LoadLibrary"
11999
lt_cv_dlopen="dlopen"
12004
# if libdl is installed we need to link against it
12005
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12006
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12007
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12008
echo $ECHO_N "(cached) $ECHO_C" >&6
12010
ac_check_lib_save_LIBS=$LIBS
12012
cat >conftest.$ac_ext <<_ACEOF
12015
cat confdefs.h >>conftest.$ac_ext
12016
cat >>conftest.$ac_ext <<_ACEOF
12017
/* end confdefs.h. */
12019
/* Override any gcc2 internal prototype to avoid an error. */
12023
/* We use char because int might match the return type of a gcc2
12024
builtin and then its argument prototype would still apply. */
12034
rm -f conftest.$ac_objext conftest$ac_exeext
12035
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036
(eval $ac_link) 2>conftest.er1
12038
grep -v '^ *+' conftest.er1 >conftest.err
12040
cat conftest.err >&5
12041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042
(exit $ac_status); } &&
12043
{ ac_try='test -z "$ac_cxx_werror_flag"
12044
|| test ! -s conftest.err'
12045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046
(eval $ac_try) 2>&5
12048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049
(exit $ac_status); }; } &&
12050
{ ac_try='test -s conftest$ac_exeext'
12051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052
(eval $ac_try) 2>&5
12054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055
(exit $ac_status); }; }; then
12056
ac_cv_lib_dl_dlopen=yes
12058
echo "$as_me: failed program was:" >&5
12059
sed 's/^/| /' conftest.$ac_ext >&5
12061
ac_cv_lib_dl_dlopen=no
12063
rm -f conftest.err conftest.$ac_objext \
12064
conftest$ac_exeext conftest.$ac_ext
12065
LIBS=$ac_check_lib_save_LIBS
12067
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12068
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12069
if test $ac_cv_lib_dl_dlopen = yes; then
12070
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12073
lt_cv_dlopen="dyld"
12075
lt_cv_dlopen_self=yes
12082
echo "$as_me:$LINENO: checking for shl_load" >&5
12083
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12084
if test "${ac_cv_func_shl_load+set}" = set; then
12085
echo $ECHO_N "(cached) $ECHO_C" >&6
12087
cat >conftest.$ac_ext <<_ACEOF
12090
cat confdefs.h >>conftest.$ac_ext
12091
cat >>conftest.$ac_ext <<_ACEOF
12092
/* end confdefs.h. */
12093
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12094
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12095
#define shl_load innocuous_shl_load
12097
/* System header to define __stub macros and hopefully few prototypes,
12098
which can conflict with char shl_load (); below.
12099
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100
<limits.h> exists even on freestanding compilers. */
12103
# include <limits.h>
12105
# include <assert.h>
12110
/* Override any gcc2 internal prototype to avoid an error. */
12115
/* We use char because int might match the return type of a gcc2
12116
builtin and then its argument prototype would still apply. */
12118
/* The GNU C library defines this for functions which it implements
12119
to always fail with ENOSYS. Some functions are actually named
12120
something starting with __ and the normal name is an alias. */
12121
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12124
char (*f) () = shl_load;
12133
return f != shl_load;
12138
rm -f conftest.$ac_objext conftest$ac_exeext
12139
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140
(eval $ac_link) 2>conftest.er1
12142
grep -v '^ *+' conftest.er1 >conftest.err
12144
cat conftest.err >&5
12145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146
(exit $ac_status); } &&
12147
{ ac_try='test -z "$ac_cxx_werror_flag"
12148
|| test ! -s conftest.err'
12149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150
(eval $ac_try) 2>&5
12152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153
(exit $ac_status); }; } &&
12154
{ ac_try='test -s conftest$ac_exeext'
12155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156
(eval $ac_try) 2>&5
12158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159
(exit $ac_status); }; }; then
12160
ac_cv_func_shl_load=yes
12162
echo "$as_me: failed program was:" >&5
12163
sed 's/^/| /' conftest.$ac_ext >&5
12165
ac_cv_func_shl_load=no
12167
rm -f conftest.err conftest.$ac_objext \
12168
conftest$ac_exeext conftest.$ac_ext
12170
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12171
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12172
if test $ac_cv_func_shl_load = yes; then
12173
lt_cv_dlopen="shl_load"
12175
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12176
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12177
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12178
echo $ECHO_N "(cached) $ECHO_C" >&6
12180
ac_check_lib_save_LIBS=$LIBS
12182
cat >conftest.$ac_ext <<_ACEOF
12185
cat confdefs.h >>conftest.$ac_ext
12186
cat >>conftest.$ac_ext <<_ACEOF
12187
/* end confdefs.h. */
12189
/* Override any gcc2 internal prototype to avoid an error. */
12193
/* We use char because int might match the return type of a gcc2
12194
builtin and then its argument prototype would still apply. */
12204
rm -f conftest.$ac_objext conftest$ac_exeext
12205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206
(eval $ac_link) 2>conftest.er1
12208
grep -v '^ *+' conftest.er1 >conftest.err
12210
cat conftest.err >&5
12211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212
(exit $ac_status); } &&
12213
{ ac_try='test -z "$ac_cxx_werror_flag"
12214
|| test ! -s conftest.err'
12215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216
(eval $ac_try) 2>&5
12218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219
(exit $ac_status); }; } &&
12220
{ ac_try='test -s conftest$ac_exeext'
12221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222
(eval $ac_try) 2>&5
12224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225
(exit $ac_status); }; }; then
12226
ac_cv_lib_dld_shl_load=yes
12228
echo "$as_me: failed program was:" >&5
12229
sed 's/^/| /' conftest.$ac_ext >&5
12231
ac_cv_lib_dld_shl_load=no
12233
rm -f conftest.err conftest.$ac_objext \
12234
conftest$ac_exeext conftest.$ac_ext
12235
LIBS=$ac_check_lib_save_LIBS
12237
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12238
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12239
if test $ac_cv_lib_dld_shl_load = yes; then
12240
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12242
echo "$as_me:$LINENO: checking for dlopen" >&5
12243
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12244
if test "${ac_cv_func_dlopen+set}" = set; then
12245
echo $ECHO_N "(cached) $ECHO_C" >&6
12247
cat >conftest.$ac_ext <<_ACEOF
12250
cat confdefs.h >>conftest.$ac_ext
12251
cat >>conftest.$ac_ext <<_ACEOF
12252
/* end confdefs.h. */
12253
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12254
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12255
#define dlopen innocuous_dlopen
12257
/* System header to define __stub macros and hopefully few prototypes,
12258
which can conflict with char dlopen (); below.
12259
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12260
<limits.h> exists even on freestanding compilers. */
12263
# include <limits.h>
12265
# include <assert.h>
12270
/* Override any gcc2 internal prototype to avoid an error. */
12275
/* We use char because int might match the return type of a gcc2
12276
builtin and then its argument prototype would still apply. */
12278
/* The GNU C library defines this for functions which it implements
12279
to always fail with ENOSYS. Some functions are actually named
12280
something starting with __ and the normal name is an alias. */
12281
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12284
char (*f) () = dlopen;
12293
return f != dlopen;
12298
rm -f conftest.$ac_objext conftest$ac_exeext
12299
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300
(eval $ac_link) 2>conftest.er1
12302
grep -v '^ *+' conftest.er1 >conftest.err
12304
cat conftest.err >&5
12305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306
(exit $ac_status); } &&
12307
{ ac_try='test -z "$ac_cxx_werror_flag"
12308
|| test ! -s conftest.err'
12309
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310
(eval $ac_try) 2>&5
12312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313
(exit $ac_status); }; } &&
12314
{ ac_try='test -s conftest$ac_exeext'
12315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316
(eval $ac_try) 2>&5
12318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319
(exit $ac_status); }; }; then
12320
ac_cv_func_dlopen=yes
12322
echo "$as_me: failed program was:" >&5
12323
sed 's/^/| /' conftest.$ac_ext >&5
12325
ac_cv_func_dlopen=no
12327
rm -f conftest.err conftest.$ac_objext \
12328
conftest$ac_exeext conftest.$ac_ext
12330
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12331
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12332
if test $ac_cv_func_dlopen = yes; then
12333
lt_cv_dlopen="dlopen"
12335
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12336
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12337
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12338
echo $ECHO_N "(cached) $ECHO_C" >&6
12340
ac_check_lib_save_LIBS=$LIBS
12342
cat >conftest.$ac_ext <<_ACEOF
12345
cat confdefs.h >>conftest.$ac_ext
12346
cat >>conftest.$ac_ext <<_ACEOF
12347
/* end confdefs.h. */
12349
/* Override any gcc2 internal prototype to avoid an error. */
12353
/* We use char because int might match the return type of a gcc2
12354
builtin and then its argument prototype would still apply. */
12364
rm -f conftest.$ac_objext conftest$ac_exeext
12365
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366
(eval $ac_link) 2>conftest.er1
12368
grep -v '^ *+' conftest.er1 >conftest.err
12370
cat conftest.err >&5
12371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372
(exit $ac_status); } &&
12373
{ ac_try='test -z "$ac_cxx_werror_flag"
12374
|| test ! -s conftest.err'
12375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376
(eval $ac_try) 2>&5
12378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379
(exit $ac_status); }; } &&
12380
{ ac_try='test -s conftest$ac_exeext'
12381
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382
(eval $ac_try) 2>&5
12384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385
(exit $ac_status); }; }; then
12386
ac_cv_lib_dl_dlopen=yes
12388
echo "$as_me: failed program was:" >&5
12389
sed 's/^/| /' conftest.$ac_ext >&5
12391
ac_cv_lib_dl_dlopen=no
12393
rm -f conftest.err conftest.$ac_objext \
12394
conftest$ac_exeext conftest.$ac_ext
12395
LIBS=$ac_check_lib_save_LIBS
12397
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12398
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12399
if test $ac_cv_lib_dl_dlopen = yes; then
12400
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12402
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12403
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12404
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12405
echo $ECHO_N "(cached) $ECHO_C" >&6
12407
ac_check_lib_save_LIBS=$LIBS
12408
LIBS="-lsvld $LIBS"
12409
cat >conftest.$ac_ext <<_ACEOF
12412
cat confdefs.h >>conftest.$ac_ext
12413
cat >>conftest.$ac_ext <<_ACEOF
12414
/* end confdefs.h. */
12416
/* Override any gcc2 internal prototype to avoid an error. */
12420
/* We use char because int might match the return type of a gcc2
12421
builtin and then its argument prototype would still apply. */
12431
rm -f conftest.$ac_objext conftest$ac_exeext
12432
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12433
(eval $ac_link) 2>conftest.er1
12435
grep -v '^ *+' conftest.er1 >conftest.err
12437
cat conftest.err >&5
12438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439
(exit $ac_status); } &&
12440
{ ac_try='test -z "$ac_cxx_werror_flag"
12441
|| test ! -s conftest.err'
12442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443
(eval $ac_try) 2>&5
12445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446
(exit $ac_status); }; } &&
12447
{ ac_try='test -s conftest$ac_exeext'
12448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449
(eval $ac_try) 2>&5
12451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452
(exit $ac_status); }; }; then
12453
ac_cv_lib_svld_dlopen=yes
12455
echo "$as_me: failed program was:" >&5
12456
sed 's/^/| /' conftest.$ac_ext >&5
12458
ac_cv_lib_svld_dlopen=no
12460
rm -f conftest.err conftest.$ac_objext \
12461
conftest$ac_exeext conftest.$ac_ext
12462
LIBS=$ac_check_lib_save_LIBS
12464
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12465
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12466
if test $ac_cv_lib_svld_dlopen = yes; then
12467
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12469
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12470
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12471
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12472
echo $ECHO_N "(cached) $ECHO_C" >&6
12474
ac_check_lib_save_LIBS=$LIBS
12476
cat >conftest.$ac_ext <<_ACEOF
12479
cat confdefs.h >>conftest.$ac_ext
12480
cat >>conftest.$ac_ext <<_ACEOF
12481
/* end confdefs.h. */
12483
/* Override any gcc2 internal prototype to avoid an error. */
12487
/* We use char because int might match the return type of a gcc2
12488
builtin and then its argument prototype would still apply. */
12498
rm -f conftest.$ac_objext conftest$ac_exeext
12499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12500
(eval $ac_link) 2>conftest.er1
12502
grep -v '^ *+' conftest.er1 >conftest.err
12504
cat conftest.err >&5
12505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506
(exit $ac_status); } &&
12507
{ ac_try='test -z "$ac_cxx_werror_flag"
12508
|| test ! -s conftest.err'
12509
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510
(eval $ac_try) 2>&5
12512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513
(exit $ac_status); }; } &&
12514
{ ac_try='test -s conftest$ac_exeext'
12515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516
(eval $ac_try) 2>&5
12518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519
(exit $ac_status); }; }; then
12520
ac_cv_lib_dld_dld_link=yes
12522
echo "$as_me: failed program was:" >&5
12523
sed 's/^/| /' conftest.$ac_ext >&5
12525
ac_cv_lib_dld_dld_link=no
12527
rm -f conftest.err conftest.$ac_objext \
12528
conftest$ac_exeext conftest.$ac_ext
12529
LIBS=$ac_check_lib_save_LIBS
12531
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12532
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12533
if test $ac_cv_lib_dld_dld_link = yes; then
12534
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12555
if test "x$lt_cv_dlopen" != xno; then
12561
case $lt_cv_dlopen in
12563
save_CPPFLAGS="$CPPFLAGS"
12564
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12566
save_LDFLAGS="$LDFLAGS"
12567
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12570
LIBS="$lt_cv_dlopen_libs $LIBS"
12572
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12573
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12574
if test "${lt_cv_dlopen_self+set}" = set; then
12575
echo $ECHO_N "(cached) $ECHO_C" >&6
12577
if test "$cross_compiling" = yes; then :
12578
lt_cv_dlopen_self=cross
12580
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12581
lt_status=$lt_dlunknown
12582
cat > conftest.$ac_ext <<EOF
12583
#line 12583 "configure"
12584
#include "confdefs.h"
12593
# define LT_DLGLOBAL RTLD_GLOBAL
12596
# define LT_DLGLOBAL DL_GLOBAL
12598
# define LT_DLGLOBAL 0
12602
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12603
find out it does not work in some platform. */
12604
#ifndef LT_DLLAZY_OR_NOW
12606
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12609
# define LT_DLLAZY_OR_NOW DL_LAZY
12612
# define LT_DLLAZY_OR_NOW RTLD_NOW
12615
# define LT_DLLAZY_OR_NOW DL_NOW
12617
# define LT_DLLAZY_OR_NOW 0
12625
extern "C" void exit (int);
12628
void fnord() { int i=42;}
12631
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12632
int status = $lt_dlunknown;
12636
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12637
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12638
/* dlclose (self); */
12644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645
(eval $ac_link) 2>&5
12647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12649
(./conftest; exit; ) 2>/dev/null
12651
case x$lt_status in
12652
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12653
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12654
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12657
# compilation failed
12658
lt_cv_dlopen_self=no
12665
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12666
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12668
if test "x$lt_cv_dlopen_self" = xyes; then
12669
LDFLAGS="$LDFLAGS $link_static_flag"
12670
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12671
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12672
if test "${lt_cv_dlopen_self_static+set}" = set; then
12673
echo $ECHO_N "(cached) $ECHO_C" >&6
12675
if test "$cross_compiling" = yes; then :
12676
lt_cv_dlopen_self_static=cross
12678
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12679
lt_status=$lt_dlunknown
12680
cat > conftest.$ac_ext <<EOF
12681
#line 12681 "configure"
12682
#include "confdefs.h"
12691
# define LT_DLGLOBAL RTLD_GLOBAL
12694
# define LT_DLGLOBAL DL_GLOBAL
12696
# define LT_DLGLOBAL 0
12700
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12701
find out it does not work in some platform. */
12702
#ifndef LT_DLLAZY_OR_NOW
12704
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12707
# define LT_DLLAZY_OR_NOW DL_LAZY
12710
# define LT_DLLAZY_OR_NOW RTLD_NOW
12713
# define LT_DLLAZY_OR_NOW DL_NOW
12715
# define LT_DLLAZY_OR_NOW 0
12723
extern "C" void exit (int);
12726
void fnord() { int i=42;}
12729
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12730
int status = $lt_dlunknown;
12734
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12735
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12736
/* dlclose (self); */
12742
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12743
(eval $ac_link) 2>&5
12745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12747
(./conftest; exit; ) 2>/dev/null
12749
case x$lt_status in
12750
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12751
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12752
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12755
# compilation failed
12756
lt_cv_dlopen_self_static=no
12763
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12764
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12767
CPPFLAGS="$save_CPPFLAGS"
12768
LDFLAGS="$save_LDFLAGS"
12773
case $lt_cv_dlopen_self in
12774
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12775
*) enable_dlopen_self=unknown ;;
12778
case $lt_cv_dlopen_self_static in
12779
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12780
*) enable_dlopen_self_static=unknown ;;
12785
12480
# The else clause should only fire when bootstrapping the
12786
12481
# libtool distribution, otherwise you forgot to ship ltmain.sh
14063
13953
# Tell ltmain to make .lib files, not .a files.
14065
13955
# Tell ltmain to make .dll files, not .so files.
14067
13957
# FIXME: Setting linknames here is a bad hack.
14068
13958
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14069
13959
# The linker will automatically build a .lib file if we build a DLL.
14070
13960
old_archive_From_new_cmds_F77='true'
14071
13961
# FIXME: Should let the user specify the lib program.
14072
13962
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14073
fix_srcfile_path='`cygpath -w "$srcfile"`'
13963
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14074
13964
enable_shared_with_static_runtimes_F77=yes
14077
13967
darwin* | rhapsody*)
14078
if test "$GXX" = yes ; then
13969
rhapsody* | darwin1.[012])
13970
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13973
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13974
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13976
case ${MACOSX_DEPLOYMENT_TARGET} in
13978
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13981
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14079
13987
archive_cmds_need_lc_F77=no
14081
rhapsody* | darwin1.[012])
14082
allow_undefined_flag_F77='-undefined suppress'
14085
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14086
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14088
case ${MACOSX_DEPLOYMENT_TARGET} in
14090
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14093
allow_undefined_flag_F77='-undefined dynamic_lookup'
14099
lt_int_apple_cc_single_mod=no
14100
output_verbose_link_cmd='echo'
14101
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14102
lt_int_apple_cc_single_mod=yes
14104
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14105
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14107
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'
14109
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14110
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14111
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14112
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}'
14114
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}'
14116
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}'
14117
13988
hardcode_direct_F77=no
14118
13989
hardcode_automatic_F77=yes
14119
13990
hardcode_shlibpath_var_F77=unsupported
14120
whole_archive_flag_spec_F77='-all_load $convenience'
13991
whole_archive_flag_spec_F77=''
14121
13992
link_all_deplibs_F77=yes
13993
if test "$GCC" = yes ; then
13994
output_verbose_link_cmd='echo'
13995
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13996
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13997
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13998
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}'
13999
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}'
14001
case $cc_basename in
14003
output_verbose_link_cmd='echo'
14004
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14005
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14006
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14007
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}'
14008
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}'
16465
16569
# Tell ltmain to make .lib files, not .a files.
16467
16571
# Tell ltmain to make .dll files, not .so files.
16469
16573
# FIXME: Setting linknames here is a bad hack.
16470
16574
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16471
16575
# The linker will automatically build a .lib file if we build a DLL.
16472
16576
old_archive_From_new_cmds_GCJ='true'
16473
16577
# FIXME: Should let the user specify the lib program.
16474
16578
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16475
fix_srcfile_path='`cygpath -w "$srcfile"`'
16579
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16476
16580
enable_shared_with_static_runtimes_GCJ=yes
16479
16583
darwin* | rhapsody*)
16480
if test "$GXX" = yes ; then
16585
rhapsody* | darwin1.[012])
16586
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16589
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16590
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16592
case ${MACOSX_DEPLOYMENT_TARGET} in
16594
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16597
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16481
16603
archive_cmds_need_lc_GCJ=no
16483
rhapsody* | darwin1.[012])
16484
allow_undefined_flag_GCJ='-undefined suppress'
16487
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16488
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16490
case ${MACOSX_DEPLOYMENT_TARGET} in
16492
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16495
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16501
lt_int_apple_cc_single_mod=no
16502
output_verbose_link_cmd='echo'
16503
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16504
lt_int_apple_cc_single_mod=yes
16506
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16507
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16509
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'
16511
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16512
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16513
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16514
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}'
16516
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}'
16518
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}'
16519
16604
hardcode_direct_GCJ=no
16520
16605
hardcode_automatic_GCJ=yes
16521
16606
hardcode_shlibpath_var_GCJ=unsupported
16522
whole_archive_flag_spec_GCJ='-all_load $convenience'
16607
whole_archive_flag_spec_GCJ=''
16523
16608
link_all_deplibs_GCJ=yes
16609
if test "$GCC" = yes ; then
16610
output_verbose_link_cmd='echo'
16611
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16612
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16613
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16614
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}'
16615
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}'
16617
case $cc_basename in
16619
output_verbose_link_cmd='echo'
16620
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16621
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16622
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16623
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}'
16624
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}'
17552
17700
enable_fast_install=needless
17557
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17558
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17559
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17560
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17561
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17562
echo "$as_me:$LINENO: result: yes" >&5
17563
echo "${ECHO_T}yes" >&6
17565
# FIXME - insert some real tests, host_os isn't really good enough
17568
if test -n "$STRIP" ; then
17569
striplib="$STRIP -x"
17570
echo "$as_me:$LINENO: result: yes" >&5
17571
echo "${ECHO_T}yes" >&6
17573
echo "$as_me:$LINENO: result: no" >&5
17574
echo "${ECHO_T}no" >&6
17578
echo "$as_me:$LINENO: result: no" >&5
17579
echo "${ECHO_T}no" >&6
17584
if test "x$enable_dlopen" != xyes; then
17585
enable_dlopen=unknown
17586
enable_dlopen_self=unknown
17587
enable_dlopen_self_static=unknown
17594
lt_cv_dlopen="load_add_on"
17596
lt_cv_dlopen_self=yes
17600
lt_cv_dlopen="LoadLibrary"
17605
lt_cv_dlopen="dlopen"
17610
# if libdl is installed we need to link against it
17611
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17612
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17613
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17614
echo $ECHO_N "(cached) $ECHO_C" >&6
17616
ac_check_lib_save_LIBS=$LIBS
17618
cat >conftest.$ac_ext <<_ACEOF
17621
cat confdefs.h >>conftest.$ac_ext
17622
cat >>conftest.$ac_ext <<_ACEOF
17623
/* end confdefs.h. */
17625
/* Override any gcc2 internal prototype to avoid an error. */
17629
/* We use char because int might match the return type of a gcc2
17630
builtin and then its argument prototype would still apply. */
17640
rm -f conftest.$ac_objext conftest$ac_exeext
17641
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642
(eval $ac_link) 2>conftest.er1
17644
grep -v '^ *+' conftest.er1 >conftest.err
17646
cat conftest.err >&5
17647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648
(exit $ac_status); } &&
17649
{ ac_try='test -z "$ac_c_werror_flag"
17650
|| test ! -s conftest.err'
17651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652
(eval $ac_try) 2>&5
17654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655
(exit $ac_status); }; } &&
17656
{ ac_try='test -s conftest$ac_exeext'
17657
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658
(eval $ac_try) 2>&5
17660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661
(exit $ac_status); }; }; then
17662
ac_cv_lib_dl_dlopen=yes
17664
echo "$as_me: failed program was:" >&5
17665
sed 's/^/| /' conftest.$ac_ext >&5
17667
ac_cv_lib_dl_dlopen=no
17669
rm -f conftest.err conftest.$ac_objext \
17670
conftest$ac_exeext conftest.$ac_ext
17671
LIBS=$ac_check_lib_save_LIBS
17673
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17674
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17675
if test $ac_cv_lib_dl_dlopen = yes; then
17676
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17679
lt_cv_dlopen="dyld"
17681
lt_cv_dlopen_self=yes
17688
echo "$as_me:$LINENO: checking for shl_load" >&5
17689
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17690
if test "${ac_cv_func_shl_load+set}" = set; then
17691
echo $ECHO_N "(cached) $ECHO_C" >&6
17693
cat >conftest.$ac_ext <<_ACEOF
17696
cat confdefs.h >>conftest.$ac_ext
17697
cat >>conftest.$ac_ext <<_ACEOF
17698
/* end confdefs.h. */
17699
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17700
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17701
#define shl_load innocuous_shl_load
17703
/* System header to define __stub macros and hopefully few prototypes,
17704
which can conflict with char shl_load (); below.
17705
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17706
<limits.h> exists even on freestanding compilers. */
17709
# include <limits.h>
17711
# include <assert.h>
17716
/* Override any gcc2 internal prototype to avoid an error. */
17721
/* We use char because int might match the return type of a gcc2
17722
builtin and then its argument prototype would still apply. */
17724
/* The GNU C library defines this for functions which it implements
17725
to always fail with ENOSYS. Some functions are actually named
17726
something starting with __ and the normal name is an alias. */
17727
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17730
char (*f) () = shl_load;
17739
return f != shl_load;
17744
rm -f conftest.$ac_objext conftest$ac_exeext
17745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746
(eval $ac_link) 2>conftest.er1
17748
grep -v '^ *+' conftest.er1 >conftest.err
17750
cat conftest.err >&5
17751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752
(exit $ac_status); } &&
17753
{ ac_try='test -z "$ac_c_werror_flag"
17754
|| test ! -s conftest.err'
17755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756
(eval $ac_try) 2>&5
17758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759
(exit $ac_status); }; } &&
17760
{ ac_try='test -s conftest$ac_exeext'
17761
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762
(eval $ac_try) 2>&5
17764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765
(exit $ac_status); }; }; then
17766
ac_cv_func_shl_load=yes
17768
echo "$as_me: failed program was:" >&5
17769
sed 's/^/| /' conftest.$ac_ext >&5
17771
ac_cv_func_shl_load=no
17773
rm -f conftest.err conftest.$ac_objext \
17774
conftest$ac_exeext conftest.$ac_ext
17776
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17777
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17778
if test $ac_cv_func_shl_load = yes; then
17779
lt_cv_dlopen="shl_load"
17781
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17782
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17783
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17784
echo $ECHO_N "(cached) $ECHO_C" >&6
17786
ac_check_lib_save_LIBS=$LIBS
17788
cat >conftest.$ac_ext <<_ACEOF
17791
cat confdefs.h >>conftest.$ac_ext
17792
cat >>conftest.$ac_ext <<_ACEOF
17793
/* end confdefs.h. */
17795
/* Override any gcc2 internal prototype to avoid an error. */
17799
/* We use char because int might match the return type of a gcc2
17800
builtin and then its argument prototype would still apply. */
17810
rm -f conftest.$ac_objext conftest$ac_exeext
17811
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812
(eval $ac_link) 2>conftest.er1
17814
grep -v '^ *+' conftest.er1 >conftest.err
17816
cat conftest.err >&5
17817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818
(exit $ac_status); } &&
17819
{ ac_try='test -z "$ac_c_werror_flag"
17820
|| test ! -s conftest.err'
17821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822
(eval $ac_try) 2>&5
17824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825
(exit $ac_status); }; } &&
17826
{ ac_try='test -s conftest$ac_exeext'
17827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828
(eval $ac_try) 2>&5
17830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831
(exit $ac_status); }; }; then
17832
ac_cv_lib_dld_shl_load=yes
17834
echo "$as_me: failed program was:" >&5
17835
sed 's/^/| /' conftest.$ac_ext >&5
17837
ac_cv_lib_dld_shl_load=no
17839
rm -f conftest.err conftest.$ac_objext \
17840
conftest$ac_exeext conftest.$ac_ext
17841
LIBS=$ac_check_lib_save_LIBS
17843
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17844
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17845
if test $ac_cv_lib_dld_shl_load = yes; then
17846
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17848
echo "$as_me:$LINENO: checking for dlopen" >&5
17849
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17850
if test "${ac_cv_func_dlopen+set}" = set; then
17851
echo $ECHO_N "(cached) $ECHO_C" >&6
17853
cat >conftest.$ac_ext <<_ACEOF
17856
cat confdefs.h >>conftest.$ac_ext
17857
cat >>conftest.$ac_ext <<_ACEOF
17858
/* end confdefs.h. */
17859
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17860
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17861
#define dlopen innocuous_dlopen
17863
/* System header to define __stub macros and hopefully few prototypes,
17864
which can conflict with char dlopen (); below.
17865
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17866
<limits.h> exists even on freestanding compilers. */
17869
# include <limits.h>
17871
# include <assert.h>
17876
/* Override any gcc2 internal prototype to avoid an error. */
17881
/* We use char because int might match the return type of a gcc2
17882
builtin and then its argument prototype would still apply. */
17884
/* The GNU C library defines this for functions which it implements
17885
to always fail with ENOSYS. Some functions are actually named
17886
something starting with __ and the normal name is an alias. */
17887
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17890
char (*f) () = dlopen;
17899
return f != dlopen;
17904
rm -f conftest.$ac_objext conftest$ac_exeext
17905
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906
(eval $ac_link) 2>conftest.er1
17908
grep -v '^ *+' conftest.er1 >conftest.err
17910
cat conftest.err >&5
17911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912
(exit $ac_status); } &&
17913
{ ac_try='test -z "$ac_c_werror_flag"
17914
|| test ! -s conftest.err'
17915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916
(eval $ac_try) 2>&5
17918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919
(exit $ac_status); }; } &&
17920
{ ac_try='test -s conftest$ac_exeext'
17921
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922
(eval $ac_try) 2>&5
17924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925
(exit $ac_status); }; }; then
17926
ac_cv_func_dlopen=yes
17928
echo "$as_me: failed program was:" >&5
17929
sed 's/^/| /' conftest.$ac_ext >&5
17931
ac_cv_func_dlopen=no
17933
rm -f conftest.err conftest.$ac_objext \
17934
conftest$ac_exeext conftest.$ac_ext
17936
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17937
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17938
if test $ac_cv_func_dlopen = yes; then
17939
lt_cv_dlopen="dlopen"
17941
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17942
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17943
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17944
echo $ECHO_N "(cached) $ECHO_C" >&6
17946
ac_check_lib_save_LIBS=$LIBS
17948
cat >conftest.$ac_ext <<_ACEOF
17951
cat confdefs.h >>conftest.$ac_ext
17952
cat >>conftest.$ac_ext <<_ACEOF
17953
/* end confdefs.h. */
17955
/* Override any gcc2 internal prototype to avoid an error. */
17959
/* We use char because int might match the return type of a gcc2
17960
builtin and then its argument prototype would still apply. */
17970
rm -f conftest.$ac_objext conftest$ac_exeext
17971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17972
(eval $ac_link) 2>conftest.er1
17974
grep -v '^ *+' conftest.er1 >conftest.err
17976
cat conftest.err >&5
17977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978
(exit $ac_status); } &&
17979
{ ac_try='test -z "$ac_c_werror_flag"
17980
|| test ! -s conftest.err'
17981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982
(eval $ac_try) 2>&5
17984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985
(exit $ac_status); }; } &&
17986
{ ac_try='test -s conftest$ac_exeext'
17987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988
(eval $ac_try) 2>&5
17990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991
(exit $ac_status); }; }; then
17992
ac_cv_lib_dl_dlopen=yes
17994
echo "$as_me: failed program was:" >&5
17995
sed 's/^/| /' conftest.$ac_ext >&5
17997
ac_cv_lib_dl_dlopen=no
17999
rm -f conftest.err conftest.$ac_objext \
18000
conftest$ac_exeext conftest.$ac_ext
18001
LIBS=$ac_check_lib_save_LIBS
18003
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18004
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18005
if test $ac_cv_lib_dl_dlopen = yes; then
18006
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18008
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18009
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18010
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18011
echo $ECHO_N "(cached) $ECHO_C" >&6
18013
ac_check_lib_save_LIBS=$LIBS
18014
LIBS="-lsvld $LIBS"
18015
cat >conftest.$ac_ext <<_ACEOF
18018
cat confdefs.h >>conftest.$ac_ext
18019
cat >>conftest.$ac_ext <<_ACEOF
18020
/* end confdefs.h. */
18022
/* Override any gcc2 internal prototype to avoid an error. */
18026
/* We use char because int might match the return type of a gcc2
18027
builtin and then its argument prototype would still apply. */
18037
rm -f conftest.$ac_objext conftest$ac_exeext
18038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039
(eval $ac_link) 2>conftest.er1
18041
grep -v '^ *+' conftest.er1 >conftest.err
18043
cat conftest.err >&5
18044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045
(exit $ac_status); } &&
18046
{ ac_try='test -z "$ac_c_werror_flag"
18047
|| test ! -s conftest.err'
18048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049
(eval $ac_try) 2>&5
18051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052
(exit $ac_status); }; } &&
18053
{ ac_try='test -s conftest$ac_exeext'
18054
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055
(eval $ac_try) 2>&5
18057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058
(exit $ac_status); }; }; then
18059
ac_cv_lib_svld_dlopen=yes
18061
echo "$as_me: failed program was:" >&5
18062
sed 's/^/| /' conftest.$ac_ext >&5
18064
ac_cv_lib_svld_dlopen=no
18066
rm -f conftest.err conftest.$ac_objext \
18067
conftest$ac_exeext conftest.$ac_ext
18068
LIBS=$ac_check_lib_save_LIBS
18070
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18071
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18072
if test $ac_cv_lib_svld_dlopen = yes; then
18073
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18075
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18076
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18077
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18078
echo $ECHO_N "(cached) $ECHO_C" >&6
18080
ac_check_lib_save_LIBS=$LIBS
18082
cat >conftest.$ac_ext <<_ACEOF
18085
cat confdefs.h >>conftest.$ac_ext
18086
cat >>conftest.$ac_ext <<_ACEOF
18087
/* end confdefs.h. */
18089
/* Override any gcc2 internal prototype to avoid an error. */
18093
/* We use char because int might match the return type of a gcc2
18094
builtin and then its argument prototype would still apply. */
18104
rm -f conftest.$ac_objext conftest$ac_exeext
18105
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106
(eval $ac_link) 2>conftest.er1
18108
grep -v '^ *+' conftest.er1 >conftest.err
18110
cat conftest.err >&5
18111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112
(exit $ac_status); } &&
18113
{ ac_try='test -z "$ac_c_werror_flag"
18114
|| test ! -s conftest.err'
18115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116
(eval $ac_try) 2>&5
18118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119
(exit $ac_status); }; } &&
18120
{ ac_try='test -s conftest$ac_exeext'
18121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122
(eval $ac_try) 2>&5
18124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125
(exit $ac_status); }; }; then
18126
ac_cv_lib_dld_dld_link=yes
18128
echo "$as_me: failed program was:" >&5
18129
sed 's/^/| /' conftest.$ac_ext >&5
18131
ac_cv_lib_dld_dld_link=no
18133
rm -f conftest.err conftest.$ac_objext \
18134
conftest$ac_exeext conftest.$ac_ext
18135
LIBS=$ac_check_lib_save_LIBS
18137
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18138
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18139
if test $ac_cv_lib_dld_dld_link = yes; then
18140
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18161
if test "x$lt_cv_dlopen" != xno; then
18167
case $lt_cv_dlopen in
18169
save_CPPFLAGS="$CPPFLAGS"
18170
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18172
save_LDFLAGS="$LDFLAGS"
18173
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18176
LIBS="$lt_cv_dlopen_libs $LIBS"
18178
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18179
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18180
if test "${lt_cv_dlopen_self+set}" = set; then
18181
echo $ECHO_N "(cached) $ECHO_C" >&6
18183
if test "$cross_compiling" = yes; then :
18184
lt_cv_dlopen_self=cross
18186
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18187
lt_status=$lt_dlunknown
18188
cat > conftest.$ac_ext <<EOF
18189
#line 18189 "configure"
18190
#include "confdefs.h"
18199
# define LT_DLGLOBAL RTLD_GLOBAL
18202
# define LT_DLGLOBAL DL_GLOBAL
18204
# define LT_DLGLOBAL 0
18208
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18209
find out it does not work in some platform. */
18210
#ifndef LT_DLLAZY_OR_NOW
18212
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18215
# define LT_DLLAZY_OR_NOW DL_LAZY
18218
# define LT_DLLAZY_OR_NOW RTLD_NOW
18221
# define LT_DLLAZY_OR_NOW DL_NOW
18223
# define LT_DLLAZY_OR_NOW 0
18231
extern "C" void exit (int);
18234
void fnord() { int i=42;}
18237
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18238
int status = $lt_dlunknown;
18242
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18243
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18244
/* dlclose (self); */
18250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18251
(eval $ac_link) 2>&5
18253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18255
(./conftest; exit; ) 2>/dev/null
18257
case x$lt_status in
18258
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18259
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18260
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18263
# compilation failed
18264
lt_cv_dlopen_self=no
18271
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18272
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18274
if test "x$lt_cv_dlopen_self" = xyes; then
18275
LDFLAGS="$LDFLAGS $link_static_flag"
18276
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18277
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18278
if test "${lt_cv_dlopen_self_static+set}" = set; then
18279
echo $ECHO_N "(cached) $ECHO_C" >&6
18281
if test "$cross_compiling" = yes; then :
18282
lt_cv_dlopen_self_static=cross
18284
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18285
lt_status=$lt_dlunknown
18286
cat > conftest.$ac_ext <<EOF
18287
#line 18287 "configure"
18288
#include "confdefs.h"
18297
# define LT_DLGLOBAL RTLD_GLOBAL
18300
# define LT_DLGLOBAL DL_GLOBAL
18302
# define LT_DLGLOBAL 0
18306
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18307
find out it does not work in some platform. */
18308
#ifndef LT_DLLAZY_OR_NOW
18310
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18313
# define LT_DLLAZY_OR_NOW DL_LAZY
18316
# define LT_DLLAZY_OR_NOW RTLD_NOW
18319
# define LT_DLLAZY_OR_NOW DL_NOW
18321
# define LT_DLLAZY_OR_NOW 0
18329
extern "C" void exit (int);
18332
void fnord() { int i=42;}
18335
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18336
int status = $lt_dlunknown;
18340
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18341
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18342
/* dlclose (self); */
18348
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18349
(eval $ac_link) 2>&5
18351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18353
(./conftest; exit; ) 2>/dev/null
18355
case x$lt_status in
18356
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18357
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18358
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18361
# compilation failed
18362
lt_cv_dlopen_self_static=no
18369
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18370
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18373
CPPFLAGS="$save_CPPFLAGS"
18374
LDFLAGS="$save_LDFLAGS"
18379
case $lt_cv_dlopen_self in
18380
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18381
*) enable_dlopen_self=unknown ;;
18384
case $lt_cv_dlopen_self_static in
18385
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18386
*) enable_dlopen_self_static=unknown ;;
18391
17704
# The else clause should only fire when bootstrapping the
18392
17705
# libtool distribution, otherwise you forgot to ship ltmain.sh