4787
# Check whether --enable-32-bit or --disable-32-bit was given.
4788
if test "${enable_32_bit+set}" = set; then
4789
enableval="$enable_32_bit"
4794
if test x"$b32" != "xno"; then
4784
echo "$as_me:$LINENO: checking for void *" >&5
4785
echo $ECHO_N "checking for void *... $ECHO_C" >&6
4786
if test "${ac_cv_type_void_p+set}" = set; then
4787
echo $ECHO_N "(cached) $ECHO_C" >&6
4789
cat >conftest.$ac_ext <<_ACEOF
4792
cat confdefs.h >>conftest.$ac_ext
4793
cat >>conftest.$ac_ext <<_ACEOF
4794
/* end confdefs.h. */
4795
$ac_includes_default
4801
if (sizeof (void *))
4807
rm -f conftest.$ac_objext
4808
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809
(eval $ac_compile) 2>conftest.er1
4811
grep -v '^ *+' conftest.er1 >conftest.err
4813
cat conftest.err >&5
4814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815
(exit $ac_status); } &&
4816
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
(exit $ac_status); }; } &&
4822
{ ac_try='test -s conftest.$ac_objext'
4823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827
(exit $ac_status); }; }; then
4828
ac_cv_type_void_p=yes
4830
echo "$as_me: failed program was:" >&5
4831
sed 's/^/| /' conftest.$ac_ext >&5
4833
ac_cv_type_void_p=no
4835
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4838
echo "${ECHO_T}$ac_cv_type_void_p" >&6
4840
echo "$as_me:$LINENO: checking size of void *" >&5
4841
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4842
if test "${ac_cv_sizeof_void_p+set}" = set; then
4843
echo $ECHO_N "(cached) $ECHO_C" >&6
4845
if test "$ac_cv_type_void_p" = yes; then
4846
# The cast to unsigned long works around a bug in the HP C Compiler
4847
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4848
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4849
# This bug is HP SR number 8606223364.
4850
if test "$cross_compiling" = yes; then
4851
# Depending upon the size, compute the lo and hi bounds.
4852
cat >conftest.$ac_ext <<_ACEOF
4855
cat confdefs.h >>conftest.$ac_ext
4856
cat >>conftest.$ac_ext <<_ACEOF
4857
/* end confdefs.h. */
4858
$ac_includes_default
4862
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) >= 0)@:>@;
4863
test_array @<:@0@:>@ = 0
4869
rm -f conftest.$ac_objext
4870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871
(eval $ac_compile) 2>conftest.er1
4873
grep -v '^ *+' conftest.er1 >conftest.err
4875
cat conftest.err >&5
4876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877
(exit $ac_status); } &&
4878
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883
(exit $ac_status); }; } &&
4884
{ ac_try='test -s conftest.$ac_objext'
4885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889
(exit $ac_status); }; }; then
4892
cat >conftest.$ac_ext <<_ACEOF
4895
cat confdefs.h >>conftest.$ac_ext
4896
cat >>conftest.$ac_ext <<_ACEOF
4897
/* end confdefs.h. */
4898
$ac_includes_default
4902
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)@:>@;
4903
test_array @<:@0@:>@ = 0
4909
rm -f conftest.$ac_objext
4910
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911
(eval $ac_compile) 2>conftest.er1
4913
grep -v '^ *+' conftest.er1 >conftest.err
4915
cat conftest.err >&5
4916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917
(exit $ac_status); } &&
4918
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4919
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923
(exit $ac_status); }; } &&
4924
{ ac_try='test -s conftest.$ac_objext'
4925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929
(exit $ac_status); }; }; then
4930
ac_hi=$ac_mid; break
4932
echo "$as_me: failed program was:" >&5
4933
sed 's/^/| /' conftest.$ac_ext >&5
4935
ac_lo=`expr $ac_mid + 1`
4936
if test $ac_lo -le $ac_mid; then
4940
ac_mid=`expr 2 '*' $ac_mid + 1`
4942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4945
echo "$as_me: failed program was:" >&5
4946
sed 's/^/| /' conftest.$ac_ext >&5
4948
cat >conftest.$ac_ext <<_ACEOF
4951
cat confdefs.h >>conftest.$ac_ext
4952
cat >>conftest.$ac_ext <<_ACEOF
4953
/* end confdefs.h. */
4954
$ac_includes_default
4958
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) < 0)@:>@;
4959
test_array @<:@0@:>@ = 0
4965
rm -f conftest.$ac_objext
4966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967
(eval $ac_compile) 2>conftest.er1
4969
grep -v '^ *+' conftest.er1 >conftest.err
4971
cat conftest.err >&5
4972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973
(exit $ac_status); } &&
4974
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4975
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979
(exit $ac_status); }; } &&
4980
{ ac_try='test -s conftest.$ac_objext'
4981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985
(exit $ac_status); }; }; then
4988
cat >conftest.$ac_ext <<_ACEOF
4991
cat confdefs.h >>conftest.$ac_ext
4992
cat >>conftest.$ac_ext <<_ACEOF
4993
/* end confdefs.h. */
4994
$ac_includes_default
4998
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)@:>@;
4999
test_array @<:@0@:>@ = 0
5005
rm -f conftest.$ac_objext
5006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007
(eval $ac_compile) 2>conftest.er1
5009
grep -v '^ *+' conftest.er1 >conftest.err
5011
cat conftest.err >&5
5012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013
(exit $ac_status); } &&
5014
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019
(exit $ac_status); }; } &&
5020
{ ac_try='test -s conftest.$ac_objext'
5021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025
(exit $ac_status); }; }; then
5026
ac_lo=$ac_mid; break
5028
echo "$as_me: failed program was:" >&5
5029
sed 's/^/| /' conftest.$ac_ext >&5
5031
ac_hi=`expr '(' $ac_mid ')' - 1`
5032
if test $ac_mid -le $ac_hi; then
5036
ac_mid=`expr 2 '*' $ac_mid`
5038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5041
echo "$as_me: failed program was:" >&5
5042
sed 's/^/| /' conftest.$ac_ext >&5
5046
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049
# Binary search between lo and hi bounds.
5050
while test "x$ac_lo" != "x$ac_hi"; do
5051
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5052
cat >conftest.$ac_ext <<_ACEOF
5055
cat confdefs.h >>conftest.$ac_ext
5056
cat >>conftest.$ac_ext <<_ACEOF
5057
/* end confdefs.h. */
5058
$ac_includes_default
5062
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)@:>@;
5063
test_array @<:@0@:>@ = 0
5069
rm -f conftest.$ac_objext
5070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071
(eval $ac_compile) 2>conftest.er1
5073
grep -v '^ *+' conftest.er1 >conftest.err
5075
cat conftest.err >&5
5076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077
(exit $ac_status); } &&
5078
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083
(exit $ac_status); }; } &&
5084
{ ac_try='test -s conftest.$ac_objext'
5085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089
(exit $ac_status); }; }; then
5092
echo "$as_me: failed program was:" >&5
5093
sed 's/^/| /' conftest.$ac_ext >&5
5095
ac_lo=`expr '(' $ac_mid ')' + 1`
5097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5100
?*) ac_cv_sizeof_void_p=$ac_lo;;
5101
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5102
See \`config.log' for more details." >&5
5103
echo "$as_me: error: cannot compute sizeof (void *), 77
5104
See \`config.log' for more details." >&2;}
5105
{ (exit 1); exit 1; }; } ;;
5108
if test "$cross_compiling" = yes; then
5109
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5110
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5111
{ (exit 1); exit 1; }; }
5113
cat >conftest.$ac_ext <<_ACEOF
5116
cat confdefs.h >>conftest.$ac_ext
5117
cat >>conftest.$ac_ext <<_ACEOF
5118
/* end confdefs.h. */
5119
$ac_includes_default
5120
long longval () { return (long) (sizeof (void *)); }
5121
unsigned long ulongval () { return (long) (sizeof (void *)); }
5122
@%:@include <stdio.h>
5123
@%:@include <stdlib.h>
5128
FILE *f = fopen ("conftest.val", "w");
5131
if (((long) (sizeof (void *))) < 0)
5133
long i = longval ();
5134
if (i != ((long) (sizeof (void *))))
5136
fprintf (f, "%ld\n", i);
5140
unsigned long i = ulongval ();
5141
if (i != ((long) (sizeof (void *))))
5143
fprintf (f, "%lu\n", i);
5145
exit (ferror (f) || fclose (f) != 0);
5151
rm -f conftest$ac_exeext
5152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153
(eval $ac_link) 2>&5
5155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5157
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161
(exit $ac_status); }; }; then
5162
ac_cv_sizeof_void_p=`cat conftest.val`
5164
echo "$as_me: program exited with status $ac_status" >&5
5165
echo "$as_me: failed program was:" >&5
5166
sed 's/^/| /' conftest.$ac_ext >&5
5169
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5170
See \`config.log' for more details." >&5
5171
echo "$as_me: error: cannot compute sizeof (void *), 77
5172
See \`config.log' for more details." >&2;}
5173
{ (exit 1); exit 1; }; }
5175
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5180
ac_cv_sizeof_void_p=0
5183
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5184
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5185
cat >>confdefs.h <<_ACEOF
5186
@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5190
if test "$ac_cv_sizeof_void_p" = 8; then
5191
echo "$as_me:$LINENO: result: Building 64-bit" >&5
5192
echo "${ECHO_T}Building 64-bit" >&6
5193
CFLAGS="-DJU_64BIT $CFLAGS"
4795
5195
echo "$as_me:$LINENO: result: Building 32-bit" >&5
4796
5196
echo "${ECHO_T}Building 32-bit" >&6
4797
5197
CFLAGS="-UJU_64BIT $CFLAGS"
4800
# Check whether --enable-64-bit or --disable-64-bit was given.
4801
if test "${enable_64_bit+set}" = set; then
4802
enableval="$enable_64_bit"
4807
if test x"$b64" != "xno"; then
4808
echo "$as_me:$LINENO: result: Building 64-bit" >&5
4809
echo "${ECHO_T}Building 64-bit" >&6
4810
CFLAGS="-DJU_64BIT $CFLAGS"
4813
if test x"$b32" = "xno"; then
4814
if test x"$b64" = "xno"; then
4815
{ { echo "$as_me:$LINENO: error: You must run configure with either:
4817
--enable-64-bit" >&5
4818
echo "$as_me: error: You must run configure with either:
4820
--enable-64-bit" >&2;}
4821
{ (exit 1); exit 1; }; };
4825
5201
# dnl Determine whether or not we're compiling for a 64-bit system by looking
4826
5202
# dnl at the size of a 'long'. This will define SIZEOF_LONG in config.h. We
9852
10467
darwin* | rhapsody*)
9853
if test "$GXX" = yes ; then
10469
rhapsody* | darwin1.[012])
10470
allow_undefined_flag='${wl}-undefined ${wl}suppress'
10473
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10474
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10476
case ${MACOSX_DEPLOYMENT_TARGET} in
10478
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10481
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9854
10487
archive_cmds_need_lc=no
9856
rhapsody* | darwin1.[012])
9857
allow_undefined_flag='-undefined suppress'
9860
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9861
allow_undefined_flag='-flat_namespace -undefined suppress'
9863
case ${MACOSX_DEPLOYMENT_TARGET} in
9865
allow_undefined_flag='-flat_namespace -undefined suppress'
9868
allow_undefined_flag='-undefined dynamic_lookup'
9874
lt_int_apple_cc_single_mod=no
9875
output_verbose_link_cmd='echo'
9876
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9877
lt_int_apple_cc_single_mod=yes
9879
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9880
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9882
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'
9884
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9885
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9886
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9887
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}'
9889
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}'
9891
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}'
9892
10488
hardcode_direct=no
9893
10489
hardcode_automatic=yes
9894
10490
hardcode_shlibpath_var=unsupported
9895
whole_archive_flag_spec='-all_load $convenience'
10491
whole_archive_flag_spec=''
9896
10492
link_all_deplibs=yes
10493
if test "$GCC" = yes ; then
10494
output_verbose_link_cmd='echo'
10495
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10496
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10497
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10498
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}'
10499
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}'
10501
case $cc_basename in
10503
output_verbose_link_cmd='echo'
10504
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10505
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10506
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10507
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}'
10508
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}'
12809
13534
echo EXPORTS > $output_objdir/$soname.def;
12810
13535
cat $export_symbols >> $output_objdir/$soname.def;
12812
$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'
13537
$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'
12814
13539
ld_shlibs_CXX=no
12818
darwin* | rhapsody*)
12819
if test "$GXX" = yes; then
12820
archive_cmds_need_lc_CXX=no
12822
rhapsody* | darwin1.[012])
12823
allow_undefined_flag_CXX='-undefined suppress'
12826
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12827
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12829
case ${MACOSX_DEPLOYMENT_TARGET} in
12831
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12834
allow_undefined_flag_CXX='-undefined dynamic_lookup'
13542
darwin* | rhapsody*)
13544
rhapsody* | darwin1.[012])
13545
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13548
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13549
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13551
case ${MACOSX_DEPLOYMENT_TARGET} in
13553
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13556
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12840
lt_int_apple_cc_single_mod=no
12841
output_verbose_link_cmd='echo'
12842
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12843
lt_int_apple_cc_single_mod=yes
12845
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12846
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12848
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'
12850
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13562
archive_cmds_need_lc_CXX=no
13563
hardcode_direct_CXX=no
13564
hardcode_automatic_CXX=yes
13565
hardcode_shlibpath_var_CXX=unsupported
13566
whole_archive_flag_spec_CXX=''
13567
link_all_deplibs_CXX=yes
12852
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12853
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12854
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}'
12856
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}'
12858
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}'
12859
hardcode_direct_CXX=no
12860
hardcode_automatic_CXX=yes
12861
hardcode_shlibpath_var_CXX=unsupported
12862
whole_archive_flag_spec_CXX='-all_load $convenience'
12863
link_all_deplibs_CXX=yes
13569
if test "$GXX" = yes ; then
13570
lt_int_apple_cc_single_mod=no
13571
output_verbose_link_cmd='echo'
13572
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13573
lt_int_apple_cc_single_mod=yes
13575
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13576
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13578
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'
13580
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13581
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13582
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13583
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}'
13585
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}'
13587
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}'
13589
case $cc_basename in
13591
output_verbose_link_cmd='echo'
13592
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'
13593
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13594
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13595
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}'
13596
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}'
12870
13606
case $cc_basename in
12872
13608
# FIXME: insert proper C++ library support
12873
13609
ld_shlibs_CXX=no
12876
13612
# Green Hills C++ Compiler
12877
13613
# FIXME: insert proper C++ library support
12878
13614
ld_shlibs_CXX=no
14586
15549
enable_fast_install=needless
14591
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14592
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14593
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14594
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14595
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14596
echo "$as_me:$LINENO: result: yes" >&5
14597
echo "${ECHO_T}yes" >&6
14599
# FIXME - insert some real tests, host_os isn't really good enough
14602
if test -n "$STRIP" ; then
14603
striplib="$STRIP -x"
14604
echo "$as_me:$LINENO: result: yes" >&5
14605
echo "${ECHO_T}yes" >&6
14607
echo "$as_me:$LINENO: result: no" >&5
14608
echo "${ECHO_T}no" >&6
14612
echo "$as_me:$LINENO: result: no" >&5
14613
echo "${ECHO_T}no" >&6
14618
if test "x$enable_dlopen" != xyes; then
14619
enable_dlopen=unknown
14620
enable_dlopen_self=unknown
14621
enable_dlopen_self_static=unknown
14628
lt_cv_dlopen="load_add_on"
14630
lt_cv_dlopen_self=yes
14634
lt_cv_dlopen="LoadLibrary"
14639
lt_cv_dlopen="dlopen"
14644
# if libdl is installed we need to link against it
14645
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14646
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14647
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14648
echo $ECHO_N "(cached) $ECHO_C" >&6
14650
ac_check_lib_save_LIBS=$LIBS
14652
cat >conftest.$ac_ext <<_ACEOF
14655
cat confdefs.h >>conftest.$ac_ext
14656
cat >>conftest.$ac_ext <<_ACEOF
14657
/* end confdefs.h. */
14659
/* Override any gcc2 internal prototype to avoid an error. */
14663
/* We use char because int might match the return type of a gcc2
14664
builtin and then its argument prototype would still apply. */
14674
rm -f conftest.$ac_objext conftest$ac_exeext
14675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14676
(eval $ac_link) 2>conftest.er1
14678
grep -v '^ *+' conftest.er1 >conftest.err
14680
cat conftest.err >&5
14681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682
(exit $ac_status); } &&
14683
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685
(eval $ac_try) 2>&5
14687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688
(exit $ac_status); }; } &&
14689
{ ac_try='test -s conftest$ac_exeext'
14690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691
(eval $ac_try) 2>&5
14693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694
(exit $ac_status); }; }; then
14695
ac_cv_lib_dl_dlopen=yes
14697
echo "$as_me: failed program was:" >&5
14698
sed 's/^/| /' conftest.$ac_ext >&5
14700
ac_cv_lib_dl_dlopen=no
14702
rm -f conftest.err conftest.$ac_objext \
14703
conftest$ac_exeext conftest.$ac_ext
14704
LIBS=$ac_check_lib_save_LIBS
14706
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14707
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14708
if test $ac_cv_lib_dl_dlopen = yes; then
14709
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14712
lt_cv_dlopen="dyld"
14714
lt_cv_dlopen_self=yes
14721
echo "$as_me:$LINENO: checking for shl_load" >&5
14722
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14723
if test "${ac_cv_func_shl_load+set}" = set; then
14724
echo $ECHO_N "(cached) $ECHO_C" >&6
14726
cat >conftest.$ac_ext <<_ACEOF
14729
cat confdefs.h >>conftest.$ac_ext
14730
cat >>conftest.$ac_ext <<_ACEOF
14731
/* end confdefs.h. */
14732
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14733
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14734
#define shl_load innocuous_shl_load
14736
/* System header to define __stub macros and hopefully few prototypes,
14737
which can conflict with char shl_load (); below.
14738
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14739
<limits.h> exists even on freestanding compilers. */
14742
# include <limits.h>
14744
# include <assert.h>
14749
/* Override any gcc2 internal prototype to avoid an error. */
14754
/* We use char because int might match the return type of a gcc2
14755
builtin and then its argument prototype would still apply. */
14757
/* The GNU C library defines this for functions which it implements
14758
to always fail with ENOSYS. Some functions are actually named
14759
something starting with __ and the normal name is an alias. */
14760
#if defined (__stub_shl_load) || defined (__stub___shl_load)
14763
char (*f) () = shl_load;
14772
return f != shl_load;
14777
rm -f conftest.$ac_objext conftest$ac_exeext
14778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779
(eval $ac_link) 2>conftest.er1
14781
grep -v '^ *+' conftest.er1 >conftest.err
14783
cat conftest.err >&5
14784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785
(exit $ac_status); } &&
14786
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788
(eval $ac_try) 2>&5
14790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791
(exit $ac_status); }; } &&
14792
{ ac_try='test -s conftest$ac_exeext'
14793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794
(eval $ac_try) 2>&5
14796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797
(exit $ac_status); }; }; then
14798
ac_cv_func_shl_load=yes
14800
echo "$as_me: failed program was:" >&5
14801
sed 's/^/| /' conftest.$ac_ext >&5
14803
ac_cv_func_shl_load=no
14805
rm -f conftest.err conftest.$ac_objext \
14806
conftest$ac_exeext conftest.$ac_ext
14808
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14809
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14810
if test $ac_cv_func_shl_load = yes; then
14811
lt_cv_dlopen="shl_load"
14813
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14814
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14815
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14816
echo $ECHO_N "(cached) $ECHO_C" >&6
14818
ac_check_lib_save_LIBS=$LIBS
14820
cat >conftest.$ac_ext <<_ACEOF
14823
cat confdefs.h >>conftest.$ac_ext
14824
cat >>conftest.$ac_ext <<_ACEOF
14825
/* end confdefs.h. */
14827
/* Override any gcc2 internal prototype to avoid an error. */
14831
/* We use char because int might match the return type of a gcc2
14832
builtin and then its argument prototype would still apply. */
14842
rm -f conftest.$ac_objext conftest$ac_exeext
14843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14844
(eval $ac_link) 2>conftest.er1
14846
grep -v '^ *+' conftest.er1 >conftest.err
14848
cat conftest.err >&5
14849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850
(exit $ac_status); } &&
14851
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14852
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853
(eval $ac_try) 2>&5
14855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856
(exit $ac_status); }; } &&
14857
{ ac_try='test -s conftest$ac_exeext'
14858
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859
(eval $ac_try) 2>&5
14861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862
(exit $ac_status); }; }; then
14863
ac_cv_lib_dld_shl_load=yes
14865
echo "$as_me: failed program was:" >&5
14866
sed 's/^/| /' conftest.$ac_ext >&5
14868
ac_cv_lib_dld_shl_load=no
14870
rm -f conftest.err conftest.$ac_objext \
14871
conftest$ac_exeext conftest.$ac_ext
14872
LIBS=$ac_check_lib_save_LIBS
14874
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14875
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14876
if test $ac_cv_lib_dld_shl_load = yes; then
14877
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14879
echo "$as_me:$LINENO: checking for dlopen" >&5
14880
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14881
if test "${ac_cv_func_dlopen+set}" = set; then
14882
echo $ECHO_N "(cached) $ECHO_C" >&6
14884
cat >conftest.$ac_ext <<_ACEOF
14887
cat confdefs.h >>conftest.$ac_ext
14888
cat >>conftest.$ac_ext <<_ACEOF
14889
/* end confdefs.h. */
14890
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14891
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14892
#define dlopen innocuous_dlopen
14894
/* System header to define __stub macros and hopefully few prototypes,
14895
which can conflict with char dlopen (); below.
14896
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14897
<limits.h> exists even on freestanding compilers. */
14900
# include <limits.h>
14902
# include <assert.h>
14907
/* Override any gcc2 internal prototype to avoid an error. */
14912
/* We use char because int might match the return type of a gcc2
14913
builtin and then its argument prototype would still apply. */
14915
/* The GNU C library defines this for functions which it implements
14916
to always fail with ENOSYS. Some functions are actually named
14917
something starting with __ and the normal name is an alias. */
14918
#if defined (__stub_dlopen) || defined (__stub___dlopen)
14921
char (*f) () = dlopen;
14930
return f != dlopen;
14935
rm -f conftest.$ac_objext conftest$ac_exeext
14936
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14937
(eval $ac_link) 2>conftest.er1
14939
grep -v '^ *+' conftest.er1 >conftest.err
14941
cat conftest.err >&5
14942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943
(exit $ac_status); } &&
14944
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946
(eval $ac_try) 2>&5
14948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949
(exit $ac_status); }; } &&
14950
{ ac_try='test -s conftest$ac_exeext'
14951
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952
(eval $ac_try) 2>&5
14954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955
(exit $ac_status); }; }; then
14956
ac_cv_func_dlopen=yes
14958
echo "$as_me: failed program was:" >&5
14959
sed 's/^/| /' conftest.$ac_ext >&5
14961
ac_cv_func_dlopen=no
14963
rm -f conftest.err conftest.$ac_objext \
14964
conftest$ac_exeext conftest.$ac_ext
14966
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14967
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14968
if test $ac_cv_func_dlopen = yes; then
14969
lt_cv_dlopen="dlopen"
14971
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14972
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14973
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14974
echo $ECHO_N "(cached) $ECHO_C" >&6
14976
ac_check_lib_save_LIBS=$LIBS
14978
cat >conftest.$ac_ext <<_ACEOF
14981
cat confdefs.h >>conftest.$ac_ext
14982
cat >>conftest.$ac_ext <<_ACEOF
14983
/* end confdefs.h. */
14985
/* Override any gcc2 internal prototype to avoid an error. */
14989
/* We use char because int might match the return type of a gcc2
14990
builtin and then its argument prototype would still apply. */
15000
rm -f conftest.$ac_objext conftest$ac_exeext
15001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15002
(eval $ac_link) 2>conftest.er1
15004
grep -v '^ *+' conftest.er1 >conftest.err
15006
cat conftest.err >&5
15007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008
(exit $ac_status); } &&
15009
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011
(eval $ac_try) 2>&5
15013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014
(exit $ac_status); }; } &&
15015
{ ac_try='test -s conftest$ac_exeext'
15016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017
(eval $ac_try) 2>&5
15019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020
(exit $ac_status); }; }; then
15021
ac_cv_lib_dl_dlopen=yes
15023
echo "$as_me: failed program was:" >&5
15024
sed 's/^/| /' conftest.$ac_ext >&5
15026
ac_cv_lib_dl_dlopen=no
15028
rm -f conftest.err conftest.$ac_objext \
15029
conftest$ac_exeext conftest.$ac_ext
15030
LIBS=$ac_check_lib_save_LIBS
15032
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15033
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15034
if test $ac_cv_lib_dl_dlopen = yes; then
15035
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15037
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15038
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15039
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15040
echo $ECHO_N "(cached) $ECHO_C" >&6
15042
ac_check_lib_save_LIBS=$LIBS
15043
LIBS="-lsvld $LIBS"
15044
cat >conftest.$ac_ext <<_ACEOF
15047
cat confdefs.h >>conftest.$ac_ext
15048
cat >>conftest.$ac_ext <<_ACEOF
15049
/* end confdefs.h. */
15051
/* Override any gcc2 internal prototype to avoid an error. */
15055
/* We use char because int might match the return type of a gcc2
15056
builtin and then its argument prototype would still apply. */
15066
rm -f conftest.$ac_objext conftest$ac_exeext
15067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15068
(eval $ac_link) 2>conftest.er1
15070
grep -v '^ *+' conftest.er1 >conftest.err
15072
cat conftest.err >&5
15073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074
(exit $ac_status); } &&
15075
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077
(eval $ac_try) 2>&5
15079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080
(exit $ac_status); }; } &&
15081
{ ac_try='test -s conftest$ac_exeext'
15082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083
(eval $ac_try) 2>&5
15085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086
(exit $ac_status); }; }; then
15087
ac_cv_lib_svld_dlopen=yes
15089
echo "$as_me: failed program was:" >&5
15090
sed 's/^/| /' conftest.$ac_ext >&5
15092
ac_cv_lib_svld_dlopen=no
15094
rm -f conftest.err conftest.$ac_objext \
15095
conftest$ac_exeext conftest.$ac_ext
15096
LIBS=$ac_check_lib_save_LIBS
15098
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15099
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15100
if test $ac_cv_lib_svld_dlopen = yes; then
15101
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15103
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15104
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15105
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15106
echo $ECHO_N "(cached) $ECHO_C" >&6
15108
ac_check_lib_save_LIBS=$LIBS
15110
cat >conftest.$ac_ext <<_ACEOF
15113
cat confdefs.h >>conftest.$ac_ext
15114
cat >>conftest.$ac_ext <<_ACEOF
15115
/* end confdefs.h. */
15117
/* Override any gcc2 internal prototype to avoid an error. */
15121
/* We use char because int might match the return type of a gcc2
15122
builtin and then its argument prototype would still apply. */
15132
rm -f conftest.$ac_objext conftest$ac_exeext
15133
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134
(eval $ac_link) 2>conftest.er1
15136
grep -v '^ *+' conftest.er1 >conftest.err
15138
cat conftest.err >&5
15139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140
(exit $ac_status); } &&
15141
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143
(eval $ac_try) 2>&5
15145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146
(exit $ac_status); }; } &&
15147
{ ac_try='test -s conftest$ac_exeext'
15148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149
(eval $ac_try) 2>&5
15151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152
(exit $ac_status); }; }; then
15153
ac_cv_lib_dld_dld_link=yes
15155
echo "$as_me: failed program was:" >&5
15156
sed 's/^/| /' conftest.$ac_ext >&5
15158
ac_cv_lib_dld_dld_link=no
15160
rm -f conftest.err conftest.$ac_objext \
15161
conftest$ac_exeext conftest.$ac_ext
15162
LIBS=$ac_check_lib_save_LIBS
15164
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15165
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15166
if test $ac_cv_lib_dld_dld_link = yes; then
15167
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15188
if test "x$lt_cv_dlopen" != xno; then
15194
case $lt_cv_dlopen in
15196
save_CPPFLAGS="$CPPFLAGS"
15197
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15199
save_LDFLAGS="$LDFLAGS"
15200
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15203
LIBS="$lt_cv_dlopen_libs $LIBS"
15205
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15206
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15207
if test "${lt_cv_dlopen_self+set}" = set; then
15208
echo $ECHO_N "(cached) $ECHO_C" >&6
15210
if test "$cross_compiling" = yes; then :
15211
lt_cv_dlopen_self=cross
15213
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15214
lt_status=$lt_dlunknown
15215
cat > conftest.$ac_ext <<EOF
15216
#line __oline__ "configure"
15217
#include "confdefs.h"
15226
# define LT_DLGLOBAL RTLD_GLOBAL
15229
# define LT_DLGLOBAL DL_GLOBAL
15231
# define LT_DLGLOBAL 0
15235
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15236
find out it does not work in some platform. */
15237
#ifndef LT_DLLAZY_OR_NOW
15239
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15242
# define LT_DLLAZY_OR_NOW DL_LAZY
15245
# define LT_DLLAZY_OR_NOW RTLD_NOW
15248
# define LT_DLLAZY_OR_NOW DL_NOW
15250
# define LT_DLLAZY_OR_NOW 0
15258
extern "C" void exit (int);
15261
void fnord() { int i=42;}
15264
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15265
int status = $lt_dlunknown;
15269
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15270
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15271
/* dlclose (self); */
15277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278
(eval $ac_link) 2>&5
15280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15282
(./conftest; exit; ) 2>/dev/null
15284
case x$lt_status in
15285
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15286
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15287
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15290
# compilation failed
15291
lt_cv_dlopen_self=no
15298
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15299
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15301
if test "x$lt_cv_dlopen_self" = xyes; then
15302
LDFLAGS="$LDFLAGS $link_static_flag"
15303
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15304
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15305
if test "${lt_cv_dlopen_self_static+set}" = set; then
15306
echo $ECHO_N "(cached) $ECHO_C" >&6
15308
if test "$cross_compiling" = yes; then :
15309
lt_cv_dlopen_self_static=cross
15311
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15312
lt_status=$lt_dlunknown
15313
cat > conftest.$ac_ext <<EOF
15314
#line __oline__ "configure"
15315
#include "confdefs.h"
15324
# define LT_DLGLOBAL RTLD_GLOBAL
15327
# define LT_DLGLOBAL DL_GLOBAL
15329
# define LT_DLGLOBAL 0
15333
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15334
find out it does not work in some platform. */
15335
#ifndef LT_DLLAZY_OR_NOW
15337
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15340
# define LT_DLLAZY_OR_NOW DL_LAZY
15343
# define LT_DLLAZY_OR_NOW RTLD_NOW
15346
# define LT_DLLAZY_OR_NOW DL_NOW
15348
# define LT_DLLAZY_OR_NOW 0
15356
extern "C" void exit (int);
15359
void fnord() { int i=42;}
15362
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15363
int status = $lt_dlunknown;
15367
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15368
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15369
/* dlclose (self); */
15375
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376
(eval $ac_link) 2>&5
15378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15380
(./conftest; exit; ) 2>/dev/null
15382
case x$lt_status in
15383
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15384
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15385
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15388
# compilation failed
15389
lt_cv_dlopen_self_static=no
15396
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15397
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15400
CPPFLAGS="$save_CPPFLAGS"
15401
LDFLAGS="$save_LDFLAGS"
15406
case $lt_cv_dlopen_self in
15407
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15408
*) enable_dlopen_self=unknown ;;
15411
case $lt_cv_dlopen_self_static in
15412
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15413
*) enable_dlopen_self_static=unknown ;;
15418
15553
# The else clause should only fire when bootstrapping the
15419
15554
# libtool distribution, otherwise you forgot to ship ltmain.sh
16702
17032
old_archive_From_new_cmds_F77='true'
16703
17033
# FIXME: Should let the user specify the lib program.
16704
17034
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16705
fix_srcfile_path='`cygpath -w "$srcfile"`'
17035
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16706
17036
enable_shared_with_static_runtimes_F77=yes
16709
17039
darwin* | rhapsody*)
16710
if test "$GXX" = yes ; then
17041
rhapsody* | darwin1.[012])
17042
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17045
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17046
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17048
case ${MACOSX_DEPLOYMENT_TARGET} in
17050
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17053
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16711
17059
archive_cmds_need_lc_F77=no
16713
rhapsody* | darwin1.[012])
16714
allow_undefined_flag_F77='-undefined suppress'
16717
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16718
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16720
case ${MACOSX_DEPLOYMENT_TARGET} in
16722
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16725
allow_undefined_flag_F77='-undefined dynamic_lookup'
16731
lt_int_apple_cc_single_mod=no
16732
output_verbose_link_cmd='echo'
16733
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16734
lt_int_apple_cc_single_mod=yes
16736
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16737
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16739
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'
16741
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16742
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16743
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16744
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}'
16746
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}'
16748
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}'
16749
17060
hardcode_direct_F77=no
16750
17061
hardcode_automatic_F77=yes
16751
17062
hardcode_shlibpath_var_F77=unsupported
16752
whole_archive_flag_spec_F77='-all_load $convenience'
17063
whole_archive_flag_spec_F77=''
16753
17064
link_all_deplibs_F77=yes
17065
if test "$GCC" = yes ; then
17066
output_verbose_link_cmd='echo'
17067
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17068
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17069
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17070
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}'
17071
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}'
17073
case $cc_basename in
17075
output_verbose_link_cmd='echo'
17076
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17077
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17078
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17079
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}'
17080
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}'
19060
19647
old_archive_From_new_cmds_GCJ='true'
19061
19648
# FIXME: Should let the user specify the lib program.
19062
19649
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19063
fix_srcfile_path='`cygpath -w "$srcfile"`'
19650
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19064
19651
enable_shared_with_static_runtimes_GCJ=yes
19067
19654
darwin* | rhapsody*)
19068
if test "$GXX" = yes ; then
19656
rhapsody* | darwin1.[012])
19657
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19660
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19661
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19663
case ${MACOSX_DEPLOYMENT_TARGET} in
19665
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19668
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19069
19674
archive_cmds_need_lc_GCJ=no
19071
rhapsody* | darwin1.[012])
19072
allow_undefined_flag_GCJ='-undefined suppress'
19075
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19076
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19078
case ${MACOSX_DEPLOYMENT_TARGET} in
19080
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19083
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
19089
lt_int_apple_cc_single_mod=no
19090
output_verbose_link_cmd='echo'
19091
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19092
lt_int_apple_cc_single_mod=yes
19094
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19095
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19097
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'
19099
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19100
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19101
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19102
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}'
19104
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}'
19106
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}'
19107
19675
hardcode_direct_GCJ=no
19108
19676
hardcode_automatic_GCJ=yes
19109
19677
hardcode_shlibpath_var_GCJ=unsupported
19110
whole_archive_flag_spec_GCJ='-all_load $convenience'
19678
whole_archive_flag_spec_GCJ=''
19111
19679
link_all_deplibs_GCJ=yes
19680
if test "$GCC" = yes ; then
19681
output_verbose_link_cmd='echo'
19682
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19683
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19684
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19685
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}'
19686
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}'
19688
case $cc_basename in
19690
output_verbose_link_cmd='echo'
19691
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19692
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19693
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19694
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}'
19695
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}'
20097
20771
enable_fast_install=needless
20102
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20103
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20104
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20105
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20106
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20107
echo "$as_me:$LINENO: result: yes" >&5
20108
echo "${ECHO_T}yes" >&6
20110
# FIXME - insert some real tests, host_os isn't really good enough
20113
if test -n "$STRIP" ; then
20114
striplib="$STRIP -x"
20115
echo "$as_me:$LINENO: result: yes" >&5
20116
echo "${ECHO_T}yes" >&6
20118
echo "$as_me:$LINENO: result: no" >&5
20119
echo "${ECHO_T}no" >&6
20123
echo "$as_me:$LINENO: result: no" >&5
20124
echo "${ECHO_T}no" >&6
20129
if test "x$enable_dlopen" != xyes; then
20130
enable_dlopen=unknown
20131
enable_dlopen_self=unknown
20132
enable_dlopen_self_static=unknown
20139
lt_cv_dlopen="load_add_on"
20141
lt_cv_dlopen_self=yes
20145
lt_cv_dlopen="LoadLibrary"
20150
lt_cv_dlopen="dlopen"
20155
# if libdl is installed we need to link against it
20156
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20157
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20158
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20159
echo $ECHO_N "(cached) $ECHO_C" >&6
20161
ac_check_lib_save_LIBS=$LIBS
20163
cat >conftest.$ac_ext <<_ACEOF
20166
cat confdefs.h >>conftest.$ac_ext
20167
cat >>conftest.$ac_ext <<_ACEOF
20168
/* end confdefs.h. */
20170
/* Override any gcc2 internal prototype to avoid an error. */
20174
/* We use char because int might match the return type of a gcc2
20175
builtin and then its argument prototype would still apply. */
20185
rm -f conftest.$ac_objext conftest$ac_exeext
20186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20187
(eval $ac_link) 2>conftest.er1
20189
grep -v '^ *+' conftest.er1 >conftest.err
20191
cat conftest.err >&5
20192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193
(exit $ac_status); } &&
20194
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196
(eval $ac_try) 2>&5
20198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199
(exit $ac_status); }; } &&
20200
{ ac_try='test -s conftest$ac_exeext'
20201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202
(eval $ac_try) 2>&5
20204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205
(exit $ac_status); }; }; then
20206
ac_cv_lib_dl_dlopen=yes
20208
echo "$as_me: failed program was:" >&5
20209
sed 's/^/| /' conftest.$ac_ext >&5
20211
ac_cv_lib_dl_dlopen=no
20213
rm -f conftest.err conftest.$ac_objext \
20214
conftest$ac_exeext conftest.$ac_ext
20215
LIBS=$ac_check_lib_save_LIBS
20217
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20218
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20219
if test $ac_cv_lib_dl_dlopen = yes; then
20220
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20223
lt_cv_dlopen="dyld"
20225
lt_cv_dlopen_self=yes
20232
echo "$as_me:$LINENO: checking for shl_load" >&5
20233
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20234
if test "${ac_cv_func_shl_load+set}" = set; then
20235
echo $ECHO_N "(cached) $ECHO_C" >&6
20237
cat >conftest.$ac_ext <<_ACEOF
20240
cat confdefs.h >>conftest.$ac_ext
20241
cat >>conftest.$ac_ext <<_ACEOF
20242
/* end confdefs.h. */
20243
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20244
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20245
#define shl_load innocuous_shl_load
20247
/* System header to define __stub macros and hopefully few prototypes,
20248
which can conflict with char shl_load (); below.
20249
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20250
<limits.h> exists even on freestanding compilers. */
20253
# include <limits.h>
20255
# include <assert.h>
20260
/* Override any gcc2 internal prototype to avoid an error. */
20265
/* We use char because int might match the return type of a gcc2
20266
builtin and then its argument prototype would still apply. */
20268
/* The GNU C library defines this for functions which it implements
20269
to always fail with ENOSYS. Some functions are actually named
20270
something starting with __ and the normal name is an alias. */
20271
#if defined (__stub_shl_load) || defined (__stub___shl_load)
20274
char (*f) () = shl_load;
20283
return f != shl_load;
20288
rm -f conftest.$ac_objext conftest$ac_exeext
20289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20290
(eval $ac_link) 2>conftest.er1
20292
grep -v '^ *+' conftest.er1 >conftest.err
20294
cat conftest.err >&5
20295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296
(exit $ac_status); } &&
20297
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299
(eval $ac_try) 2>&5
20301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302
(exit $ac_status); }; } &&
20303
{ ac_try='test -s conftest$ac_exeext'
20304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305
(eval $ac_try) 2>&5
20307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308
(exit $ac_status); }; }; then
20309
ac_cv_func_shl_load=yes
20311
echo "$as_me: failed program was:" >&5
20312
sed 's/^/| /' conftest.$ac_ext >&5
20314
ac_cv_func_shl_load=no
20316
rm -f conftest.err conftest.$ac_objext \
20317
conftest$ac_exeext conftest.$ac_ext
20319
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20320
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20321
if test $ac_cv_func_shl_load = yes; then
20322
lt_cv_dlopen="shl_load"
20324
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20325
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20326
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20327
echo $ECHO_N "(cached) $ECHO_C" >&6
20329
ac_check_lib_save_LIBS=$LIBS
20331
cat >conftest.$ac_ext <<_ACEOF
20334
cat confdefs.h >>conftest.$ac_ext
20335
cat >>conftest.$ac_ext <<_ACEOF
20336
/* end confdefs.h. */
20338
/* Override any gcc2 internal prototype to avoid an error. */
20342
/* We use char because int might match the return type of a gcc2
20343
builtin and then its argument prototype would still apply. */
20353
rm -f conftest.$ac_objext conftest$ac_exeext
20354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20355
(eval $ac_link) 2>conftest.er1
20357
grep -v '^ *+' conftest.er1 >conftest.err
20359
cat conftest.err >&5
20360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361
(exit $ac_status); } &&
20362
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364
(eval $ac_try) 2>&5
20366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367
(exit $ac_status); }; } &&
20368
{ ac_try='test -s conftest$ac_exeext'
20369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370
(eval $ac_try) 2>&5
20372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373
(exit $ac_status); }; }; then
20374
ac_cv_lib_dld_shl_load=yes
20376
echo "$as_me: failed program was:" >&5
20377
sed 's/^/| /' conftest.$ac_ext >&5
20379
ac_cv_lib_dld_shl_load=no
20381
rm -f conftest.err conftest.$ac_objext \
20382
conftest$ac_exeext conftest.$ac_ext
20383
LIBS=$ac_check_lib_save_LIBS
20385
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20386
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20387
if test $ac_cv_lib_dld_shl_load = yes; then
20388
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20390
echo "$as_me:$LINENO: checking for dlopen" >&5
20391
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20392
if test "${ac_cv_func_dlopen+set}" = set; then
20393
echo $ECHO_N "(cached) $ECHO_C" >&6
20395
cat >conftest.$ac_ext <<_ACEOF
20398
cat confdefs.h >>conftest.$ac_ext
20399
cat >>conftest.$ac_ext <<_ACEOF
20400
/* end confdefs.h. */
20401
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20402
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20403
#define dlopen innocuous_dlopen
20405
/* System header to define __stub macros and hopefully few prototypes,
20406
which can conflict with char dlopen (); below.
20407
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20408
<limits.h> exists even on freestanding compilers. */
20411
# include <limits.h>
20413
# include <assert.h>
20418
/* Override any gcc2 internal prototype to avoid an error. */
20423
/* We use char because int might match the return type of a gcc2
20424
builtin and then its argument prototype would still apply. */
20426
/* The GNU C library defines this for functions which it implements
20427
to always fail with ENOSYS. Some functions are actually named
20428
something starting with __ and the normal name is an alias. */
20429
#if defined (__stub_dlopen) || defined (__stub___dlopen)
20432
char (*f) () = dlopen;
20441
return f != dlopen;
20446
rm -f conftest.$ac_objext conftest$ac_exeext
20447
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20448
(eval $ac_link) 2>conftest.er1
20450
grep -v '^ *+' conftest.er1 >conftest.err
20452
cat conftest.err >&5
20453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454
(exit $ac_status); } &&
20455
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457
(eval $ac_try) 2>&5
20459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460
(exit $ac_status); }; } &&
20461
{ ac_try='test -s conftest$ac_exeext'
20462
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463
(eval $ac_try) 2>&5
20465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466
(exit $ac_status); }; }; then
20467
ac_cv_func_dlopen=yes
20469
echo "$as_me: failed program was:" >&5
20470
sed 's/^/| /' conftest.$ac_ext >&5
20472
ac_cv_func_dlopen=no
20474
rm -f conftest.err conftest.$ac_objext \
20475
conftest$ac_exeext conftest.$ac_ext
20477
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20478
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20479
if test $ac_cv_func_dlopen = yes; then
20480
lt_cv_dlopen="dlopen"
20482
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20483
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20484
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20485
echo $ECHO_N "(cached) $ECHO_C" >&6
20487
ac_check_lib_save_LIBS=$LIBS
20489
cat >conftest.$ac_ext <<_ACEOF
20492
cat confdefs.h >>conftest.$ac_ext
20493
cat >>conftest.$ac_ext <<_ACEOF
20494
/* end confdefs.h. */
20496
/* Override any gcc2 internal prototype to avoid an error. */
20500
/* We use char because int might match the return type of a gcc2
20501
builtin and then its argument prototype would still apply. */
20511
rm -f conftest.$ac_objext conftest$ac_exeext
20512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20513
(eval $ac_link) 2>conftest.er1
20515
grep -v '^ *+' conftest.er1 >conftest.err
20517
cat conftest.err >&5
20518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519
(exit $ac_status); } &&
20520
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522
(eval $ac_try) 2>&5
20524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525
(exit $ac_status); }; } &&
20526
{ ac_try='test -s conftest$ac_exeext'
20527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528
(eval $ac_try) 2>&5
20530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531
(exit $ac_status); }; }; then
20532
ac_cv_lib_dl_dlopen=yes
20534
echo "$as_me: failed program was:" >&5
20535
sed 's/^/| /' conftest.$ac_ext >&5
20537
ac_cv_lib_dl_dlopen=no
20539
rm -f conftest.err conftest.$ac_objext \
20540
conftest$ac_exeext conftest.$ac_ext
20541
LIBS=$ac_check_lib_save_LIBS
20543
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20544
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20545
if test $ac_cv_lib_dl_dlopen = yes; then
20546
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20548
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20549
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20550
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20551
echo $ECHO_N "(cached) $ECHO_C" >&6
20553
ac_check_lib_save_LIBS=$LIBS
20554
LIBS="-lsvld $LIBS"
20555
cat >conftest.$ac_ext <<_ACEOF
20558
cat confdefs.h >>conftest.$ac_ext
20559
cat >>conftest.$ac_ext <<_ACEOF
20560
/* end confdefs.h. */
20562
/* Override any gcc2 internal prototype to avoid an error. */
20566
/* We use char because int might match the return type of a gcc2
20567
builtin and then its argument prototype would still apply. */
20577
rm -f conftest.$ac_objext conftest$ac_exeext
20578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579
(eval $ac_link) 2>conftest.er1
20581
grep -v '^ *+' conftest.er1 >conftest.err
20583
cat conftest.err >&5
20584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585
(exit $ac_status); } &&
20586
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588
(eval $ac_try) 2>&5
20590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591
(exit $ac_status); }; } &&
20592
{ ac_try='test -s conftest$ac_exeext'
20593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594
(eval $ac_try) 2>&5
20596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597
(exit $ac_status); }; }; then
20598
ac_cv_lib_svld_dlopen=yes
20600
echo "$as_me: failed program was:" >&5
20601
sed 's/^/| /' conftest.$ac_ext >&5
20603
ac_cv_lib_svld_dlopen=no
20605
rm -f conftest.err conftest.$ac_objext \
20606
conftest$ac_exeext conftest.$ac_ext
20607
LIBS=$ac_check_lib_save_LIBS
20609
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20610
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20611
if test $ac_cv_lib_svld_dlopen = yes; then
20612
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20614
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20615
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20616
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20617
echo $ECHO_N "(cached) $ECHO_C" >&6
20619
ac_check_lib_save_LIBS=$LIBS
20621
cat >conftest.$ac_ext <<_ACEOF
20624
cat confdefs.h >>conftest.$ac_ext
20625
cat >>conftest.$ac_ext <<_ACEOF
20626
/* end confdefs.h. */
20628
/* Override any gcc2 internal prototype to avoid an error. */
20632
/* We use char because int might match the return type of a gcc2
20633
builtin and then its argument prototype would still apply. */
20643
rm -f conftest.$ac_objext conftest$ac_exeext
20644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20645
(eval $ac_link) 2>conftest.er1
20647
grep -v '^ *+' conftest.er1 >conftest.err
20649
cat conftest.err >&5
20650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651
(exit $ac_status); } &&
20652
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20653
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654
(eval $ac_try) 2>&5
20656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657
(exit $ac_status); }; } &&
20658
{ ac_try='test -s conftest$ac_exeext'
20659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660
(eval $ac_try) 2>&5
20662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663
(exit $ac_status); }; }; then
20664
ac_cv_lib_dld_dld_link=yes
20666
echo "$as_me: failed program was:" >&5
20667
sed 's/^/| /' conftest.$ac_ext >&5
20669
ac_cv_lib_dld_dld_link=no
20671
rm -f conftest.err conftest.$ac_objext \
20672
conftest$ac_exeext conftest.$ac_ext
20673
LIBS=$ac_check_lib_save_LIBS
20675
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20676
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20677
if test $ac_cv_lib_dld_dld_link = yes; then
20678
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20699
if test "x$lt_cv_dlopen" != xno; then
20705
case $lt_cv_dlopen in
20707
save_CPPFLAGS="$CPPFLAGS"
20708
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20710
save_LDFLAGS="$LDFLAGS"
20711
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20714
LIBS="$lt_cv_dlopen_libs $LIBS"
20716
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20717
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20718
if test "${lt_cv_dlopen_self+set}" = set; then
20719
echo $ECHO_N "(cached) $ECHO_C" >&6
20721
if test "$cross_compiling" = yes; then :
20722
lt_cv_dlopen_self=cross
20724
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20725
lt_status=$lt_dlunknown
20726
cat > conftest.$ac_ext <<EOF
20727
#line __oline__ "configure"
20728
#include "confdefs.h"
20737
# define LT_DLGLOBAL RTLD_GLOBAL
20740
# define LT_DLGLOBAL DL_GLOBAL
20742
# define LT_DLGLOBAL 0
20746
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20747
find out it does not work in some platform. */
20748
#ifndef LT_DLLAZY_OR_NOW
20750
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20753
# define LT_DLLAZY_OR_NOW DL_LAZY
20756
# define LT_DLLAZY_OR_NOW RTLD_NOW
20759
# define LT_DLLAZY_OR_NOW DL_NOW
20761
# define LT_DLLAZY_OR_NOW 0
20769
extern "C" void exit (int);
20772
void fnord() { int i=42;}
20775
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20776
int status = $lt_dlunknown;
20780
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20781
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20782
/* dlclose (self); */
20788
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20789
(eval $ac_link) 2>&5
20791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20793
(./conftest; exit; ) 2>/dev/null
20795
case x$lt_status in
20796
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20797
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20798
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20801
# compilation failed
20802
lt_cv_dlopen_self=no
20809
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20810
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20812
if test "x$lt_cv_dlopen_self" = xyes; then
20813
LDFLAGS="$LDFLAGS $link_static_flag"
20814
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20815
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20816
if test "${lt_cv_dlopen_self_static+set}" = set; then
20817
echo $ECHO_N "(cached) $ECHO_C" >&6
20819
if test "$cross_compiling" = yes; then :
20820
lt_cv_dlopen_self_static=cross
20822
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20823
lt_status=$lt_dlunknown
20824
cat > conftest.$ac_ext <<EOF
20825
#line __oline__ "configure"
20826
#include "confdefs.h"
20835
# define LT_DLGLOBAL RTLD_GLOBAL
20838
# define LT_DLGLOBAL DL_GLOBAL
20840
# define LT_DLGLOBAL 0
20844
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20845
find out it does not work in some platform. */
20846
#ifndef LT_DLLAZY_OR_NOW
20848
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20851
# define LT_DLLAZY_OR_NOW DL_LAZY
20854
# define LT_DLLAZY_OR_NOW RTLD_NOW
20857
# define LT_DLLAZY_OR_NOW DL_NOW
20859
# define LT_DLLAZY_OR_NOW 0
20867
extern "C" void exit (int);
20870
void fnord() { int i=42;}
20873
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20874
int status = $lt_dlunknown;
20878
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20879
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20880
/* dlclose (self); */
20886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20887
(eval $ac_link) 2>&5
20889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20891
(./conftest; exit; ) 2>/dev/null
20893
case x$lt_status in
20894
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20895
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20896
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20899
# compilation failed
20900
lt_cv_dlopen_self_static=no
20907
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20908
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20911
CPPFLAGS="$save_CPPFLAGS"
20912
LDFLAGS="$save_LDFLAGS"
20917
case $lt_cv_dlopen_self in
20918
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20919
*) enable_dlopen_self=unknown ;;
20922
case $lt_cv_dlopen_self_static in
20923
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20924
*) enable_dlopen_self_static=unknown ;;
20929
20775
# The else clause should only fire when bootstrapping the
20930
20776
# libtool distribution, otherwise you forgot to ship ltmain.sh