12365
12710
enable_fast_install=needless
12370
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12371
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12372
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12373
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12374
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12375
echo "$as_me:$LINENO: result: yes" >&5
12376
echo "${ECHO_T}yes" >&6
12378
# FIXME - insert some real tests, host_os isn't really good enough
12381
if test -n "$STRIP" ; then
12382
striplib="$STRIP -x"
12383
echo "$as_me:$LINENO: result: yes" >&5
12384
echo "${ECHO_T}yes" >&6
12386
echo "$as_me:$LINENO: result: no" >&5
12387
echo "${ECHO_T}no" >&6
12391
echo "$as_me:$LINENO: result: no" >&5
12392
echo "${ECHO_T}no" >&6
12397
if test "x$enable_dlopen" != xyes; then
12398
enable_dlopen=unknown
12399
enable_dlopen_self=unknown
12400
enable_dlopen_self_static=unknown
12407
lt_cv_dlopen="load_add_on"
12409
lt_cv_dlopen_self=yes
12413
lt_cv_dlopen="LoadLibrary"
12418
lt_cv_dlopen="dlopen"
12423
# if libdl is installed we need to link against it
12424
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12425
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12426
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12427
echo $ECHO_N "(cached) $ECHO_C" >&6
12429
ac_check_lib_save_LIBS=$LIBS
12431
cat >conftest.$ac_ext <<_ACEOF
12434
cat confdefs.h >>conftest.$ac_ext
12435
cat >>conftest.$ac_ext <<_ACEOF
12436
/* end confdefs.h. */
12438
/* Override any gcc2 internal prototype to avoid an error. */
12442
/* We use char because int might match the return type of a gcc2
12443
builtin and then its argument prototype would still apply. */
12453
rm -f conftest.$ac_objext conftest$ac_exeext
12454
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12455
(eval $ac_link) 2>conftest.er1
12457
grep -v '^ *+' conftest.er1 >conftest.err
12459
cat conftest.err >&5
12460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461
(exit $ac_status); } &&
12462
{ ac_try='test -z "$ac_cxx_werror_flag"
12463
|| test ! -s conftest.err'
12464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465
(eval $ac_try) 2>&5
12467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468
(exit $ac_status); }; } &&
12469
{ ac_try='test -s conftest$ac_exeext'
12470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471
(eval $ac_try) 2>&5
12473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474
(exit $ac_status); }; }; then
12475
ac_cv_lib_dl_dlopen=yes
12477
echo "$as_me: failed program was:" >&5
12478
sed 's/^/| /' conftest.$ac_ext >&5
12480
ac_cv_lib_dl_dlopen=no
12482
rm -f conftest.err conftest.$ac_objext \
12483
conftest$ac_exeext conftest.$ac_ext
12484
LIBS=$ac_check_lib_save_LIBS
12486
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12487
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12488
if test $ac_cv_lib_dl_dlopen = yes; then
12489
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12492
lt_cv_dlopen="dyld"
12494
lt_cv_dlopen_self=yes
12501
echo "$as_me:$LINENO: checking for shl_load" >&5
12502
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12503
if test "${ac_cv_func_shl_load+set}" = set; then
12504
echo $ECHO_N "(cached) $ECHO_C" >&6
12506
cat >conftest.$ac_ext <<_ACEOF
12509
cat confdefs.h >>conftest.$ac_ext
12510
cat >>conftest.$ac_ext <<_ACEOF
12511
/* end confdefs.h. */
12512
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12513
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12514
#define shl_load innocuous_shl_load
12516
/* System header to define __stub macros and hopefully few prototypes,
12517
which can conflict with char shl_load (); below.
12518
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12519
<limits.h> exists even on freestanding compilers. */
12522
# include <limits.h>
12524
# include <assert.h>
12529
/* Override any gcc2 internal prototype to avoid an error. */
12534
/* We use char because int might match the return type of a gcc2
12535
builtin and then its argument prototype would still apply. */
12537
/* The GNU C library defines this for functions which it implements
12538
to always fail with ENOSYS. Some functions are actually named
12539
something starting with __ and the normal name is an alias. */
12540
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12543
char (*f) () = shl_load;
12552
return f != shl_load;
12557
rm -f conftest.$ac_objext conftest$ac_exeext
12558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559
(eval $ac_link) 2>conftest.er1
12561
grep -v '^ *+' conftest.er1 >conftest.err
12563
cat conftest.err >&5
12564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565
(exit $ac_status); } &&
12566
{ ac_try='test -z "$ac_cxx_werror_flag"
12567
|| test ! -s conftest.err'
12568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569
(eval $ac_try) 2>&5
12571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572
(exit $ac_status); }; } &&
12573
{ ac_try='test -s conftest$ac_exeext'
12574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575
(eval $ac_try) 2>&5
12577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578
(exit $ac_status); }; }; then
12579
ac_cv_func_shl_load=yes
12581
echo "$as_me: failed program was:" >&5
12582
sed 's/^/| /' conftest.$ac_ext >&5
12584
ac_cv_func_shl_load=no
12586
rm -f conftest.err conftest.$ac_objext \
12587
conftest$ac_exeext conftest.$ac_ext
12589
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12590
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12591
if test $ac_cv_func_shl_load = yes; then
12592
lt_cv_dlopen="shl_load"
12594
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12595
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12596
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12597
echo $ECHO_N "(cached) $ECHO_C" >&6
12599
ac_check_lib_save_LIBS=$LIBS
12601
cat >conftest.$ac_ext <<_ACEOF
12604
cat confdefs.h >>conftest.$ac_ext
12605
cat >>conftest.$ac_ext <<_ACEOF
12606
/* end confdefs.h. */
12608
/* Override any gcc2 internal prototype to avoid an error. */
12612
/* We use char because int might match the return type of a gcc2
12613
builtin and then its argument prototype would still apply. */
12623
rm -f conftest.$ac_objext conftest$ac_exeext
12624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625
(eval $ac_link) 2>conftest.er1
12627
grep -v '^ *+' conftest.er1 >conftest.err
12629
cat conftest.err >&5
12630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631
(exit $ac_status); } &&
12632
{ ac_try='test -z "$ac_cxx_werror_flag"
12633
|| test ! -s conftest.err'
12634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635
(eval $ac_try) 2>&5
12637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638
(exit $ac_status); }; } &&
12639
{ ac_try='test -s conftest$ac_exeext'
12640
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641
(eval $ac_try) 2>&5
12643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644
(exit $ac_status); }; }; then
12645
ac_cv_lib_dld_shl_load=yes
12647
echo "$as_me: failed program was:" >&5
12648
sed 's/^/| /' conftest.$ac_ext >&5
12650
ac_cv_lib_dld_shl_load=no
12652
rm -f conftest.err conftest.$ac_objext \
12653
conftest$ac_exeext conftest.$ac_ext
12654
LIBS=$ac_check_lib_save_LIBS
12656
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12657
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12658
if test $ac_cv_lib_dld_shl_load = yes; then
12659
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12661
echo "$as_me:$LINENO: checking for dlopen" >&5
12662
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12663
if test "${ac_cv_func_dlopen+set}" = set; then
12664
echo $ECHO_N "(cached) $ECHO_C" >&6
12666
cat >conftest.$ac_ext <<_ACEOF
12669
cat confdefs.h >>conftest.$ac_ext
12670
cat >>conftest.$ac_ext <<_ACEOF
12671
/* end confdefs.h. */
12672
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12673
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12674
#define dlopen innocuous_dlopen
12676
/* System header to define __stub macros and hopefully few prototypes,
12677
which can conflict with char dlopen (); below.
12678
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12679
<limits.h> exists even on freestanding compilers. */
12682
# include <limits.h>
12684
# include <assert.h>
12689
/* Override any gcc2 internal prototype to avoid an error. */
12694
/* We use char because int might match the return type of a gcc2
12695
builtin and then its argument prototype would still apply. */
12697
/* The GNU C library defines this for functions which it implements
12698
to always fail with ENOSYS. Some functions are actually named
12699
something starting with __ and the normal name is an alias. */
12700
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12703
char (*f) () = dlopen;
12712
return f != dlopen;
12717
rm -f conftest.$ac_objext conftest$ac_exeext
12718
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12719
(eval $ac_link) 2>conftest.er1
12721
grep -v '^ *+' conftest.er1 >conftest.err
12723
cat conftest.err >&5
12724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725
(exit $ac_status); } &&
12726
{ ac_try='test -z "$ac_cxx_werror_flag"
12727
|| test ! -s conftest.err'
12728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729
(eval $ac_try) 2>&5
12731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732
(exit $ac_status); }; } &&
12733
{ ac_try='test -s conftest$ac_exeext'
12734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735
(eval $ac_try) 2>&5
12737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738
(exit $ac_status); }; }; then
12739
ac_cv_func_dlopen=yes
12741
echo "$as_me: failed program was:" >&5
12742
sed 's/^/| /' conftest.$ac_ext >&5
12744
ac_cv_func_dlopen=no
12746
rm -f conftest.err conftest.$ac_objext \
12747
conftest$ac_exeext conftest.$ac_ext
12749
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12750
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12751
if test $ac_cv_func_dlopen = yes; then
12752
lt_cv_dlopen="dlopen"
12754
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12755
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12756
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12757
echo $ECHO_N "(cached) $ECHO_C" >&6
12759
ac_check_lib_save_LIBS=$LIBS
12761
cat >conftest.$ac_ext <<_ACEOF
12764
cat confdefs.h >>conftest.$ac_ext
12765
cat >>conftest.$ac_ext <<_ACEOF
12766
/* end confdefs.h. */
12768
/* Override any gcc2 internal prototype to avoid an error. */
12772
/* We use char because int might match the return type of a gcc2
12773
builtin and then its argument prototype would still apply. */
12783
rm -f conftest.$ac_objext conftest$ac_exeext
12784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785
(eval $ac_link) 2>conftest.er1
12787
grep -v '^ *+' conftest.er1 >conftest.err
12789
cat conftest.err >&5
12790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791
(exit $ac_status); } &&
12792
{ ac_try='test -z "$ac_cxx_werror_flag"
12793
|| test ! -s conftest.err'
12794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795
(eval $ac_try) 2>&5
12797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798
(exit $ac_status); }; } &&
12799
{ ac_try='test -s conftest$ac_exeext'
12800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801
(eval $ac_try) 2>&5
12803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804
(exit $ac_status); }; }; then
12805
ac_cv_lib_dl_dlopen=yes
12807
echo "$as_me: failed program was:" >&5
12808
sed 's/^/| /' conftest.$ac_ext >&5
12810
ac_cv_lib_dl_dlopen=no
12812
rm -f conftest.err conftest.$ac_objext \
12813
conftest$ac_exeext conftest.$ac_ext
12814
LIBS=$ac_check_lib_save_LIBS
12816
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12817
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12818
if test $ac_cv_lib_dl_dlopen = yes; then
12819
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12821
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12822
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12823
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12824
echo $ECHO_N "(cached) $ECHO_C" >&6
12826
ac_check_lib_save_LIBS=$LIBS
12827
LIBS="-lsvld $LIBS"
12828
cat >conftest.$ac_ext <<_ACEOF
12831
cat confdefs.h >>conftest.$ac_ext
12832
cat >>conftest.$ac_ext <<_ACEOF
12833
/* end confdefs.h. */
12835
/* Override any gcc2 internal prototype to avoid an error. */
12839
/* We use char because int might match the return type of a gcc2
12840
builtin and then its argument prototype would still apply. */
12850
rm -f conftest.$ac_objext conftest$ac_exeext
12851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12852
(eval $ac_link) 2>conftest.er1
12854
grep -v '^ *+' conftest.er1 >conftest.err
12856
cat conftest.err >&5
12857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858
(exit $ac_status); } &&
12859
{ ac_try='test -z "$ac_cxx_werror_flag"
12860
|| test ! -s conftest.err'
12861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862
(eval $ac_try) 2>&5
12864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865
(exit $ac_status); }; } &&
12866
{ ac_try='test -s conftest$ac_exeext'
12867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868
(eval $ac_try) 2>&5
12870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871
(exit $ac_status); }; }; then
12872
ac_cv_lib_svld_dlopen=yes
12874
echo "$as_me: failed program was:" >&5
12875
sed 's/^/| /' conftest.$ac_ext >&5
12877
ac_cv_lib_svld_dlopen=no
12879
rm -f conftest.err conftest.$ac_objext \
12880
conftest$ac_exeext conftest.$ac_ext
12881
LIBS=$ac_check_lib_save_LIBS
12883
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12884
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12885
if test $ac_cv_lib_svld_dlopen = yes; then
12886
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12888
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12889
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12890
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12891
echo $ECHO_N "(cached) $ECHO_C" >&6
12893
ac_check_lib_save_LIBS=$LIBS
12895
cat >conftest.$ac_ext <<_ACEOF
12898
cat confdefs.h >>conftest.$ac_ext
12899
cat >>conftest.$ac_ext <<_ACEOF
12900
/* end confdefs.h. */
12902
/* Override any gcc2 internal prototype to avoid an error. */
12906
/* We use char because int might match the return type of a gcc2
12907
builtin and then its argument prototype would still apply. */
12917
rm -f conftest.$ac_objext conftest$ac_exeext
12918
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12919
(eval $ac_link) 2>conftest.er1
12921
grep -v '^ *+' conftest.er1 >conftest.err
12923
cat conftest.err >&5
12924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925
(exit $ac_status); } &&
12926
{ ac_try='test -z "$ac_cxx_werror_flag"
12927
|| test ! -s conftest.err'
12928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929
(eval $ac_try) 2>&5
12931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932
(exit $ac_status); }; } &&
12933
{ ac_try='test -s conftest$ac_exeext'
12934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935
(eval $ac_try) 2>&5
12937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938
(exit $ac_status); }; }; then
12939
ac_cv_lib_dld_dld_link=yes
12941
echo "$as_me: failed program was:" >&5
12942
sed 's/^/| /' conftest.$ac_ext >&5
12944
ac_cv_lib_dld_dld_link=no
12946
rm -f conftest.err conftest.$ac_objext \
12947
conftest$ac_exeext conftest.$ac_ext
12948
LIBS=$ac_check_lib_save_LIBS
12950
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12951
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12952
if test $ac_cv_lib_dld_dld_link = yes; then
12953
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12974
if test "x$lt_cv_dlopen" != xno; then
12980
case $lt_cv_dlopen in
12982
save_CPPFLAGS="$CPPFLAGS"
12983
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12985
save_LDFLAGS="$LDFLAGS"
12986
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12989
LIBS="$lt_cv_dlopen_libs $LIBS"
12991
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12992
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12993
if test "${lt_cv_dlopen_self+set}" = set; then
12994
echo $ECHO_N "(cached) $ECHO_C" >&6
12996
if test "$cross_compiling" = yes; then :
12997
lt_cv_dlopen_self=cross
12999
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13000
lt_status=$lt_dlunknown
13001
cat > conftest.$ac_ext <<EOF
13002
#line 13002 "configure"
13003
#include "confdefs.h"
13012
# define LT_DLGLOBAL RTLD_GLOBAL
13015
# define LT_DLGLOBAL DL_GLOBAL
13017
# define LT_DLGLOBAL 0
13021
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13022
find out it does not work in some platform. */
13023
#ifndef LT_DLLAZY_OR_NOW
13025
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13028
# define LT_DLLAZY_OR_NOW DL_LAZY
13031
# define LT_DLLAZY_OR_NOW RTLD_NOW
13034
# define LT_DLLAZY_OR_NOW DL_NOW
13036
# define LT_DLLAZY_OR_NOW 0
13044
extern "C" void exit (int);
13047
void fnord() { int i=42;}
13050
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13051
int status = $lt_dlunknown;
13055
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13056
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13057
/* dlclose (self); */
13063
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13064
(eval $ac_link) 2>&5
13066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13068
(./conftest; exit; ) 2>/dev/null
13070
case x$lt_status in
13071
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13072
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13073
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13076
# compilation failed
13077
lt_cv_dlopen_self=no
13084
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13085
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13087
if test "x$lt_cv_dlopen_self" = xyes; then
13088
LDFLAGS="$LDFLAGS $link_static_flag"
13089
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13090
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13091
if test "${lt_cv_dlopen_self_static+set}" = set; then
13092
echo $ECHO_N "(cached) $ECHO_C" >&6
13094
if test "$cross_compiling" = yes; then :
13095
lt_cv_dlopen_self_static=cross
13097
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13098
lt_status=$lt_dlunknown
13099
cat > conftest.$ac_ext <<EOF
13100
#line 13100 "configure"
13101
#include "confdefs.h"
13110
# define LT_DLGLOBAL RTLD_GLOBAL
13113
# define LT_DLGLOBAL DL_GLOBAL
13115
# define LT_DLGLOBAL 0
13119
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13120
find out it does not work in some platform. */
13121
#ifndef LT_DLLAZY_OR_NOW
13123
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13126
# define LT_DLLAZY_OR_NOW DL_LAZY
13129
# define LT_DLLAZY_OR_NOW RTLD_NOW
13132
# define LT_DLLAZY_OR_NOW DL_NOW
13134
# define LT_DLLAZY_OR_NOW 0
13142
extern "C" void exit (int);
13145
void fnord() { int i=42;}
13148
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13149
int status = $lt_dlunknown;
13153
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13154
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13155
/* dlclose (self); */
13161
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13162
(eval $ac_link) 2>&5
13164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13166
(./conftest; exit; ) 2>/dev/null
13168
case x$lt_status in
13169
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13170
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13171
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13174
# compilation failed
13175
lt_cv_dlopen_self_static=no
13182
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13183
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13186
CPPFLAGS="$save_CPPFLAGS"
13187
LDFLAGS="$save_LDFLAGS"
13192
case $lt_cv_dlopen_self in
13193
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13194
*) enable_dlopen_self=unknown ;;
13197
case $lt_cv_dlopen_self_static in
13198
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13199
*) enable_dlopen_self_static=unknown ;;
13204
12714
# The else clause should only fire when bootstrapping the
13205
12715
# libtool distribution, otherwise you forgot to ship ltmain.sh
18128
17940
enable_fast_install=needless
18133
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18134
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18135
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18136
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18137
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18138
echo "$as_me:$LINENO: result: yes" >&5
18139
echo "${ECHO_T}yes" >&6
18141
# FIXME - insert some real tests, host_os isn't really good enough
18144
if test -n "$STRIP" ; then
18145
striplib="$STRIP -x"
18146
echo "$as_me:$LINENO: result: yes" >&5
18147
echo "${ECHO_T}yes" >&6
18149
echo "$as_me:$LINENO: result: no" >&5
18150
echo "${ECHO_T}no" >&6
18154
echo "$as_me:$LINENO: result: no" >&5
18155
echo "${ECHO_T}no" >&6
18160
if test "x$enable_dlopen" != xyes; then
18161
enable_dlopen=unknown
18162
enable_dlopen_self=unknown
18163
enable_dlopen_self_static=unknown
18170
lt_cv_dlopen="load_add_on"
18172
lt_cv_dlopen_self=yes
18176
lt_cv_dlopen="LoadLibrary"
18181
lt_cv_dlopen="dlopen"
18186
# if libdl is installed we need to link against it
18187
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18188
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18189
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18190
echo $ECHO_N "(cached) $ECHO_C" >&6
18192
ac_check_lib_save_LIBS=$LIBS
18194
cat >conftest.$ac_ext <<_ACEOF
18197
cat confdefs.h >>conftest.$ac_ext
18198
cat >>conftest.$ac_ext <<_ACEOF
18199
/* end confdefs.h. */
18201
/* Override any gcc2 internal prototype to avoid an error. */
18205
/* We use char because int might match the return type of a gcc2
18206
builtin and then its argument prototype would still apply. */
18216
rm -f conftest.$ac_objext conftest$ac_exeext
18217
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18218
(eval $ac_link) 2>conftest.er1
18220
grep -v '^ *+' conftest.er1 >conftest.err
18222
cat conftest.err >&5
18223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224
(exit $ac_status); } &&
18225
{ ac_try='test -z "$ac_c_werror_flag"
18226
|| test ! -s conftest.err'
18227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228
(eval $ac_try) 2>&5
18230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231
(exit $ac_status); }; } &&
18232
{ ac_try='test -s conftest$ac_exeext'
18233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234
(eval $ac_try) 2>&5
18236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237
(exit $ac_status); }; }; then
18238
ac_cv_lib_dl_dlopen=yes
18240
echo "$as_me: failed program was:" >&5
18241
sed 's/^/| /' conftest.$ac_ext >&5
18243
ac_cv_lib_dl_dlopen=no
18245
rm -f conftest.err conftest.$ac_objext \
18246
conftest$ac_exeext conftest.$ac_ext
18247
LIBS=$ac_check_lib_save_LIBS
18249
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18250
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18251
if test $ac_cv_lib_dl_dlopen = yes; then
18252
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18255
lt_cv_dlopen="dyld"
18257
lt_cv_dlopen_self=yes
18264
echo "$as_me:$LINENO: checking for shl_load" >&5
18265
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18266
if test "${ac_cv_func_shl_load+set}" = set; then
18267
echo $ECHO_N "(cached) $ECHO_C" >&6
18269
cat >conftest.$ac_ext <<_ACEOF
18272
cat confdefs.h >>conftest.$ac_ext
18273
cat >>conftest.$ac_ext <<_ACEOF
18274
/* end confdefs.h. */
18275
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18276
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18277
#define shl_load innocuous_shl_load
18279
/* System header to define __stub macros and hopefully few prototypes,
18280
which can conflict with char shl_load (); below.
18281
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18282
<limits.h> exists even on freestanding compilers. */
18285
# include <limits.h>
18287
# include <assert.h>
18292
/* Override any gcc2 internal prototype to avoid an error. */
18297
/* We use char because int might match the return type of a gcc2
18298
builtin and then its argument prototype would still apply. */
18300
/* The GNU C library defines this for functions which it implements
18301
to always fail with ENOSYS. Some functions are actually named
18302
something starting with __ and the normal name is an alias. */
18303
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18306
char (*f) () = shl_load;
18315
return f != shl_load;
18320
rm -f conftest.$ac_objext conftest$ac_exeext
18321
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18322
(eval $ac_link) 2>conftest.er1
18324
grep -v '^ *+' conftest.er1 >conftest.err
18326
cat conftest.err >&5
18327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328
(exit $ac_status); } &&
18329
{ ac_try='test -z "$ac_c_werror_flag"
18330
|| test ! -s conftest.err'
18331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332
(eval $ac_try) 2>&5
18334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335
(exit $ac_status); }; } &&
18336
{ ac_try='test -s conftest$ac_exeext'
18337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338
(eval $ac_try) 2>&5
18340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341
(exit $ac_status); }; }; then
18342
ac_cv_func_shl_load=yes
18344
echo "$as_me: failed program was:" >&5
18345
sed 's/^/| /' conftest.$ac_ext >&5
18347
ac_cv_func_shl_load=no
18349
rm -f conftest.err conftest.$ac_objext \
18350
conftest$ac_exeext conftest.$ac_ext
18352
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18353
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18354
if test $ac_cv_func_shl_load = yes; then
18355
lt_cv_dlopen="shl_load"
18357
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18358
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18359
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18360
echo $ECHO_N "(cached) $ECHO_C" >&6
18362
ac_check_lib_save_LIBS=$LIBS
18364
cat >conftest.$ac_ext <<_ACEOF
18367
cat confdefs.h >>conftest.$ac_ext
18368
cat >>conftest.$ac_ext <<_ACEOF
18369
/* end confdefs.h. */
18371
/* Override any gcc2 internal prototype to avoid an error. */
18375
/* We use char because int might match the return type of a gcc2
18376
builtin and then its argument prototype would still apply. */
18386
rm -f conftest.$ac_objext conftest$ac_exeext
18387
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388
(eval $ac_link) 2>conftest.er1
18390
grep -v '^ *+' conftest.er1 >conftest.err
18392
cat conftest.err >&5
18393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394
(exit $ac_status); } &&
18395
{ ac_try='test -z "$ac_c_werror_flag"
18396
|| test ! -s conftest.err'
18397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398
(eval $ac_try) 2>&5
18400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401
(exit $ac_status); }; } &&
18402
{ ac_try='test -s conftest$ac_exeext'
18403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404
(eval $ac_try) 2>&5
18406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407
(exit $ac_status); }; }; then
18408
ac_cv_lib_dld_shl_load=yes
18410
echo "$as_me: failed program was:" >&5
18411
sed 's/^/| /' conftest.$ac_ext >&5
18413
ac_cv_lib_dld_shl_load=no
18415
rm -f conftest.err conftest.$ac_objext \
18416
conftest$ac_exeext conftest.$ac_ext
18417
LIBS=$ac_check_lib_save_LIBS
18419
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18420
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18421
if test $ac_cv_lib_dld_shl_load = yes; then
18422
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18424
echo "$as_me:$LINENO: checking for dlopen" >&5
18425
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18426
if test "${ac_cv_func_dlopen+set}" = set; then
18427
echo $ECHO_N "(cached) $ECHO_C" >&6
18429
cat >conftest.$ac_ext <<_ACEOF
18432
cat confdefs.h >>conftest.$ac_ext
18433
cat >>conftest.$ac_ext <<_ACEOF
18434
/* end confdefs.h. */
18435
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18436
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18437
#define dlopen innocuous_dlopen
18439
/* System header to define __stub macros and hopefully few prototypes,
18440
which can conflict with char dlopen (); below.
18441
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442
<limits.h> exists even on freestanding compilers. */
18445
# include <limits.h>
18447
# include <assert.h>
18452
/* Override any gcc2 internal prototype to avoid an error. */
18457
/* We use char because int might match the return type of a gcc2
18458
builtin and then its argument prototype would still apply. */
18460
/* The GNU C library defines this for functions which it implements
18461
to always fail with ENOSYS. Some functions are actually named
18462
something starting with __ and the normal name is an alias. */
18463
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18466
char (*f) () = dlopen;
18475
return f != dlopen;
18480
rm -f conftest.$ac_objext conftest$ac_exeext
18481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482
(eval $ac_link) 2>conftest.er1
18484
grep -v '^ *+' conftest.er1 >conftest.err
18486
cat conftest.err >&5
18487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488
(exit $ac_status); } &&
18489
{ ac_try='test -z "$ac_c_werror_flag"
18490
|| test ! -s conftest.err'
18491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492
(eval $ac_try) 2>&5
18494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495
(exit $ac_status); }; } &&
18496
{ ac_try='test -s conftest$ac_exeext'
18497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498
(eval $ac_try) 2>&5
18500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501
(exit $ac_status); }; }; then
18502
ac_cv_func_dlopen=yes
18504
echo "$as_me: failed program was:" >&5
18505
sed 's/^/| /' conftest.$ac_ext >&5
18507
ac_cv_func_dlopen=no
18509
rm -f conftest.err conftest.$ac_objext \
18510
conftest$ac_exeext conftest.$ac_ext
18512
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18513
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18514
if test $ac_cv_func_dlopen = yes; then
18515
lt_cv_dlopen="dlopen"
18517
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18518
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18519
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18520
echo $ECHO_N "(cached) $ECHO_C" >&6
18522
ac_check_lib_save_LIBS=$LIBS
18524
cat >conftest.$ac_ext <<_ACEOF
18527
cat confdefs.h >>conftest.$ac_ext
18528
cat >>conftest.$ac_ext <<_ACEOF
18529
/* end confdefs.h. */
18531
/* Override any gcc2 internal prototype to avoid an error. */
18535
/* We use char because int might match the return type of a gcc2
18536
builtin and then its argument prototype would still apply. */
18546
rm -f conftest.$ac_objext conftest$ac_exeext
18547
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548
(eval $ac_link) 2>conftest.er1
18550
grep -v '^ *+' conftest.er1 >conftest.err
18552
cat conftest.err >&5
18553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554
(exit $ac_status); } &&
18555
{ ac_try='test -z "$ac_c_werror_flag"
18556
|| test ! -s conftest.err'
18557
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558
(eval $ac_try) 2>&5
18560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561
(exit $ac_status); }; } &&
18562
{ ac_try='test -s conftest$ac_exeext'
18563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564
(eval $ac_try) 2>&5
18566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567
(exit $ac_status); }; }; then
18568
ac_cv_lib_dl_dlopen=yes
18570
echo "$as_me: failed program was:" >&5
18571
sed 's/^/| /' conftest.$ac_ext >&5
18573
ac_cv_lib_dl_dlopen=no
18575
rm -f conftest.err conftest.$ac_objext \
18576
conftest$ac_exeext conftest.$ac_ext
18577
LIBS=$ac_check_lib_save_LIBS
18579
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18580
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18581
if test $ac_cv_lib_dl_dlopen = yes; then
18582
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18584
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18585
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18586
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18587
echo $ECHO_N "(cached) $ECHO_C" >&6
18589
ac_check_lib_save_LIBS=$LIBS
18590
LIBS="-lsvld $LIBS"
18591
cat >conftest.$ac_ext <<_ACEOF
18594
cat confdefs.h >>conftest.$ac_ext
18595
cat >>conftest.$ac_ext <<_ACEOF
18596
/* end confdefs.h. */
18598
/* Override any gcc2 internal prototype to avoid an error. */
18602
/* We use char because int might match the return type of a gcc2
18603
builtin and then its argument prototype would still apply. */
18613
rm -f conftest.$ac_objext conftest$ac_exeext
18614
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18615
(eval $ac_link) 2>conftest.er1
18617
grep -v '^ *+' conftest.er1 >conftest.err
18619
cat conftest.err >&5
18620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621
(exit $ac_status); } &&
18622
{ ac_try='test -z "$ac_c_werror_flag"
18623
|| test ! -s conftest.err'
18624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625
(eval $ac_try) 2>&5
18627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628
(exit $ac_status); }; } &&
18629
{ ac_try='test -s conftest$ac_exeext'
18630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631
(eval $ac_try) 2>&5
18633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634
(exit $ac_status); }; }; then
18635
ac_cv_lib_svld_dlopen=yes
18637
echo "$as_me: failed program was:" >&5
18638
sed 's/^/| /' conftest.$ac_ext >&5
18640
ac_cv_lib_svld_dlopen=no
18642
rm -f conftest.err conftest.$ac_objext \
18643
conftest$ac_exeext conftest.$ac_ext
18644
LIBS=$ac_check_lib_save_LIBS
18646
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18647
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18648
if test $ac_cv_lib_svld_dlopen = yes; then
18649
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18651
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18652
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18653
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18654
echo $ECHO_N "(cached) $ECHO_C" >&6
18656
ac_check_lib_save_LIBS=$LIBS
18658
cat >conftest.$ac_ext <<_ACEOF
18661
cat confdefs.h >>conftest.$ac_ext
18662
cat >>conftest.$ac_ext <<_ACEOF
18663
/* end confdefs.h. */
18665
/* Override any gcc2 internal prototype to avoid an error. */
18669
/* We use char because int might match the return type of a gcc2
18670
builtin and then its argument prototype would still apply. */
18680
rm -f conftest.$ac_objext conftest$ac_exeext
18681
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682
(eval $ac_link) 2>conftest.er1
18684
grep -v '^ *+' conftest.er1 >conftest.err
18686
cat conftest.err >&5
18687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688
(exit $ac_status); } &&
18689
{ ac_try='test -z "$ac_c_werror_flag"
18690
|| test ! -s conftest.err'
18691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692
(eval $ac_try) 2>&5
18694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695
(exit $ac_status); }; } &&
18696
{ ac_try='test -s conftest$ac_exeext'
18697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698
(eval $ac_try) 2>&5
18700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701
(exit $ac_status); }; }; then
18702
ac_cv_lib_dld_dld_link=yes
18704
echo "$as_me: failed program was:" >&5
18705
sed 's/^/| /' conftest.$ac_ext >&5
18707
ac_cv_lib_dld_dld_link=no
18709
rm -f conftest.err conftest.$ac_objext \
18710
conftest$ac_exeext conftest.$ac_ext
18711
LIBS=$ac_check_lib_save_LIBS
18713
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18714
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18715
if test $ac_cv_lib_dld_dld_link = yes; then
18716
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18737
if test "x$lt_cv_dlopen" != xno; then
18743
case $lt_cv_dlopen in
18745
save_CPPFLAGS="$CPPFLAGS"
18746
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18748
save_LDFLAGS="$LDFLAGS"
18749
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18752
LIBS="$lt_cv_dlopen_libs $LIBS"
18754
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18755
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18756
if test "${lt_cv_dlopen_self+set}" = set; then
18757
echo $ECHO_N "(cached) $ECHO_C" >&6
18759
if test "$cross_compiling" = yes; then :
18760
lt_cv_dlopen_self=cross
18762
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18763
lt_status=$lt_dlunknown
18764
cat > conftest.$ac_ext <<EOF
18765
#line 18765 "configure"
18766
#include "confdefs.h"
18775
# define LT_DLGLOBAL RTLD_GLOBAL
18778
# define LT_DLGLOBAL DL_GLOBAL
18780
# define LT_DLGLOBAL 0
18784
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18785
find out it does not work in some platform. */
18786
#ifndef LT_DLLAZY_OR_NOW
18788
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18791
# define LT_DLLAZY_OR_NOW DL_LAZY
18794
# define LT_DLLAZY_OR_NOW RTLD_NOW
18797
# define LT_DLLAZY_OR_NOW DL_NOW
18799
# define LT_DLLAZY_OR_NOW 0
18807
extern "C" void exit (int);
18810
void fnord() { int i=42;}
18813
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18814
int status = $lt_dlunknown;
18818
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18819
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18820
/* dlclose (self); */
18826
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18827
(eval $ac_link) 2>&5
18829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18831
(./conftest; exit; ) 2>/dev/null
18833
case x$lt_status in
18834
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18835
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18836
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18839
# compilation failed
18840
lt_cv_dlopen_self=no
18847
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18848
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18850
if test "x$lt_cv_dlopen_self" = xyes; then
18851
LDFLAGS="$LDFLAGS $link_static_flag"
18852
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18853
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18854
if test "${lt_cv_dlopen_self_static+set}" = set; then
18855
echo $ECHO_N "(cached) $ECHO_C" >&6
18857
if test "$cross_compiling" = yes; then :
18858
lt_cv_dlopen_self_static=cross
18860
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18861
lt_status=$lt_dlunknown
18862
cat > conftest.$ac_ext <<EOF
18863
#line 18863 "configure"
18864
#include "confdefs.h"
18873
# define LT_DLGLOBAL RTLD_GLOBAL
18876
# define LT_DLGLOBAL DL_GLOBAL
18878
# define LT_DLGLOBAL 0
18882
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18883
find out it does not work in some platform. */
18884
#ifndef LT_DLLAZY_OR_NOW
18886
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18889
# define LT_DLLAZY_OR_NOW DL_LAZY
18892
# define LT_DLLAZY_OR_NOW RTLD_NOW
18895
# define LT_DLLAZY_OR_NOW DL_NOW
18897
# define LT_DLLAZY_OR_NOW 0
18905
extern "C" void exit (int);
18908
void fnord() { int i=42;}
18911
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18912
int status = $lt_dlunknown;
18916
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18917
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18918
/* dlclose (self); */
18924
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925
(eval $ac_link) 2>&5
18927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18929
(./conftest; exit; ) 2>/dev/null
18931
case x$lt_status in
18932
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18933
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18934
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18937
# compilation failed
18938
lt_cv_dlopen_self_static=no
18945
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18946
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18949
CPPFLAGS="$save_CPPFLAGS"
18950
LDFLAGS="$save_LDFLAGS"
18955
case $lt_cv_dlopen_self in
18956
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18957
*) enable_dlopen_self=unknown ;;
18960
case $lt_cv_dlopen_self_static in
18961
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18962
*) enable_dlopen_self_static=unknown ;;
18967
17944
# The else clause should only fire when bootstrapping the
18968
17945
# libtool distribution, otherwise you forgot to ship ltmain.sh
21245
echo "$as_me:$LINENO: checking for glViewport in -lGL" >&5
21246
echo $ECHO_N "checking for glViewport in -lGL... $ECHO_C" >&6
21247
if test "${ac_cv_lib_GL_glViewport+set}" = set; then
21248
echo $ECHO_N "(cached) $ECHO_C" >&6
21250
ac_check_lib_save_LIBS=$LIBS
21252
cat >conftest.$ac_ext <<_ACEOF
21255
cat confdefs.h >>conftest.$ac_ext
21256
cat >>conftest.$ac_ext <<_ACEOF
21257
/* end confdefs.h. */
21259
/* Override any gcc2 internal prototype to avoid an error. */
21263
/* We use char because int might match the return type of a gcc2
21264
builtin and then its argument prototype would still apply. */
21265
char glViewport ();
21274
rm -f conftest.$ac_objext conftest$ac_exeext
21275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21276
(eval $ac_link) 2>conftest.er1
21278
grep -v '^ *+' conftest.er1 >conftest.err
21280
cat conftest.err >&5
21281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282
(exit $ac_status); } &&
21283
{ ac_try='test -z "$ac_c_werror_flag"
21284
|| test ! -s conftest.err'
21285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286
(eval $ac_try) 2>&5
21288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289
(exit $ac_status); }; } &&
21290
{ ac_try='test -s conftest$ac_exeext'
21291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292
(eval $ac_try) 2>&5
21294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295
(exit $ac_status); }; }; then
21296
ac_cv_lib_GL_glViewport=yes
21298
echo "$as_me: failed program was:" >&5
21299
sed 's/^/| /' conftest.$ac_ext >&5
21301
ac_cv_lib_GL_glViewport=no
21303
rm -f conftest.err conftest.$ac_objext \
21304
conftest$ac_exeext conftest.$ac_ext
21305
LIBS=$ac_check_lib_save_LIBS
21307
echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glViewport" >&5
21308
echo "${ECHO_T}$ac_cv_lib_GL_glViewport" >&6
21309
if test $ac_cv_lib_GL_glViewport = yes; then
22145
21311
LIBS="$LIBS -lGL"
22149
*-*-darwin* | *-*-macos*)
22150
cat >conftest.$ac_ext <<_ACEOF
22153
cat confdefs.h >>conftest.$ac_ext
22154
cat >>conftest.$ac_ext <<_ACEOF
22155
/* end confdefs.h. */
22157
#include <OpenGL/gl.h>
22168
rm -f conftest.$ac_objext
22169
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22170
(eval $ac_compile) 2>conftest.er1
22172
grep -v '^ *+' conftest.er1 >conftest.err
22174
cat conftest.err >&5
22175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176
(exit $ac_status); } &&
22177
{ ac_try='test -z "$ac_c_werror_flag"
22178
|| test ! -s conftest.err'
22179
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180
(eval $ac_try) 2>&5
22182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183
(exit $ac_status); }; } &&
22184
{ ac_try='test -s conftest.$ac_objext'
22185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186
(eval $ac_try) 2>&5
22188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189
(exit $ac_status); }; }; then
22191
LIBS="$LIBS -framework OpenGL -framework AGL"
22194
echo "$as_me: failed program was:" >&5
22195
sed 's/^/| /' conftest.$ac_ext >&5
22198
cat >conftest.$ac_ext <<_ACEOF
22201
cat confdefs.h >>conftest.$ac_ext
22202
cat >>conftest.$ac_ext <<_ACEOF
22203
/* end confdefs.h. */
22216
rm -f conftest.$ac_objext
22217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22218
(eval $ac_compile) 2>conftest.er1
22220
grep -v '^ *+' conftest.er1 >conftest.err
22222
cat conftest.err >&5
22223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224
(exit $ac_status); } &&
22225
{ ac_try='test -z "$ac_c_werror_flag"
22226
|| test ! -s conftest.err'
22227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228
(eval $ac_try) 2>&5
22230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231
(exit $ac_status); }; } &&
22232
{ ac_try='test -s conftest.$ac_objext'
22233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234
(eval $ac_try) 2>&5
22236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237
(exit $ac_status); }; }; then
22242
echo "$as_me: failed program was:" >&5
22243
sed 's/^/| /' conftest.$ac_ext >&5
22246
{ { echo "$as_me:$LINENO: error: Cannot find OpenGL" >&5
22247
echo "$as_me: error: Cannot find OpenGL" >&2;}
21315
{ { echo "$as_me:$LINENO: error: Couldn't find OpenGL" >&5
21316
echo "$as_me: error: Couldn't find OpenGL" >&2;}
22248
21317
{ (exit 1); exit 1; }; }
22251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22254
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22257
21323
case "$host_os" in