7467
7796
darwin* | rhapsody*)
7468
if test "$GXX" = yes ; then
7798
rhapsody* | darwin1.[012])
7799
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7802
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7803
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7805
case ${MACOSX_DEPLOYMENT_TARGET} in
7807
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7810
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7469
7816
archive_cmds_need_lc=no
7471
rhapsody* | darwin1.[012])
7472
allow_undefined_flag='-undefined suppress'
7475
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7476
allow_undefined_flag='-flat_namespace -undefined suppress'
7478
case ${MACOSX_DEPLOYMENT_TARGET} in
7480
allow_undefined_flag='-flat_namespace -undefined suppress'
7483
allow_undefined_flag='-undefined dynamic_lookup'
7489
lt_int_apple_cc_single_mod=no
7490
output_verbose_link_cmd='echo'
7491
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7492
lt_int_apple_cc_single_mod=yes
7494
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7495
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7497
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'
7499
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7500
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7501
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7502
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}'
7504
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}'
7506
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}'
7507
7817
hardcode_direct=no
7508
7818
hardcode_automatic=yes
7509
7819
hardcode_shlibpath_var=unsupported
7510
whole_archive_flag_spec='-all_load $convenience'
7820
whole_archive_flag_spec=''
7511
7821
link_all_deplibs=yes
7822
if test "$GCC" = yes ; then
7823
output_verbose_link_cmd='echo'
7824
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7825
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7826
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7827
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}'
7828
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}'
7830
case $cc_basename in
7832
output_verbose_link_cmd='echo'
7833
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7834
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7835
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7836
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}'
7837
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}'
10442
10851
echo EXPORTS > $output_objdir/$soname.def;
10443
10852
cat $export_symbols >> $output_objdir/$soname.def;
10445
$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'
10854
$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'
10447
10856
ld_shlibs_CXX=no
10451
darwin* | rhapsody*)
10452
if test "$GXX" = yes; then
10453
archive_cmds_need_lc_CXX=no
10455
rhapsody* | darwin1.[012])
10456
allow_undefined_flag_CXX='-undefined suppress'
10459
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10460
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10462
case ${MACOSX_DEPLOYMENT_TARGET} in
10464
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10467
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10859
darwin* | rhapsody*)
10861
rhapsody* | darwin1.[012])
10862
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10865
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10866
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10868
case ${MACOSX_DEPLOYMENT_TARGET} in
10870
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10873
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10473
lt_int_apple_cc_single_mod=no
10474
output_verbose_link_cmd='echo'
10475
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10476
lt_int_apple_cc_single_mod=yes
10478
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10479
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10481
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'
10483
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10879
archive_cmds_need_lc_CXX=no
10880
hardcode_direct_CXX=no
10881
hardcode_automatic_CXX=yes
10882
hardcode_shlibpath_var_CXX=unsupported
10883
whole_archive_flag_spec_CXX=''
10884
link_all_deplibs_CXX=yes
10485
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10486
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10487
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}'
10489
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}'
10491
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}'
10492
hardcode_direct_CXX=no
10493
hardcode_automatic_CXX=yes
10494
hardcode_shlibpath_var_CXX=unsupported
10495
whole_archive_flag_spec_CXX='-all_load $convenience'
10496
link_all_deplibs_CXX=yes
10886
if test "$GXX" = yes ; then
10887
lt_int_apple_cc_single_mod=no
10888
output_verbose_link_cmd='echo'
10889
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10890
lt_int_apple_cc_single_mod=yes
10892
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10893
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10895
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'
10897
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10898
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10899
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10900
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}'
10902
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}'
10904
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}'
10906
case $cc_basename in
10908
output_verbose_link_cmd='echo'
10909
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'
10910
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10911
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10912
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}'
10913
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}'
10503
10923
case $cc_basename in
10505
10925
# FIXME: insert proper C++ library support
10506
10926
ld_shlibs_CXX=no
10509
10929
# Green Hills C++ Compiler
10510
10930
# FIXME: insert proper C++ library support
10511
10931
ld_shlibs_CXX=no
12225
12848
enable_fast_install=needless
12230
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12231
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12232
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12233
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12234
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12235
echo "$as_me:$LINENO: result: yes" >&5
12236
echo "${ECHO_T}yes" >&6
12238
# FIXME - insert some real tests, host_os isn't really good enough
12241
if test -n "$STRIP" ; then
12242
striplib="$STRIP -x"
12243
echo "$as_me:$LINENO: result: yes" >&5
12244
echo "${ECHO_T}yes" >&6
12246
echo "$as_me:$LINENO: result: no" >&5
12247
echo "${ECHO_T}no" >&6
12251
echo "$as_me:$LINENO: result: no" >&5
12252
echo "${ECHO_T}no" >&6
12257
if test "x$enable_dlopen" != xyes; then
12258
enable_dlopen=unknown
12259
enable_dlopen_self=unknown
12260
enable_dlopen_self_static=unknown
12267
lt_cv_dlopen="load_add_on"
12269
lt_cv_dlopen_self=yes
12273
lt_cv_dlopen="LoadLibrary"
12278
lt_cv_dlopen="dlopen"
12283
# if libdl is installed we need to link against it
12284
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12285
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12286
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12287
echo $ECHO_N "(cached) $ECHO_C" >&6
12289
ac_check_lib_save_LIBS=$LIBS
12291
cat >conftest.$ac_ext <<_ACEOF
12294
cat confdefs.h >>conftest.$ac_ext
12295
cat >>conftest.$ac_ext <<_ACEOF
12296
/* end confdefs.h. */
12298
/* Override any gcc2 internal prototype to avoid an error. */
12302
/* We use char because int might match the return type of a gcc2
12303
builtin and then its argument prototype would still apply. */
12313
rm -f conftest.$ac_objext conftest$ac_exeext
12314
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315
(eval $ac_link) 2>conftest.er1
12317
grep -v '^ *+' conftest.er1 >conftest.err
12319
cat conftest.err >&5
12320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321
(exit $ac_status); } &&
12322
{ ac_try='test -z "$ac_cxx_werror_flag"
12323
|| test ! -s conftest.err'
12324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325
(eval $ac_try) 2>&5
12327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328
(exit $ac_status); }; } &&
12329
{ ac_try='test -s conftest$ac_exeext'
12330
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331
(eval $ac_try) 2>&5
12333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334
(exit $ac_status); }; }; then
12335
ac_cv_lib_dl_dlopen=yes
12337
echo "$as_me: failed program was:" >&5
12338
sed 's/^/| /' conftest.$ac_ext >&5
12340
ac_cv_lib_dl_dlopen=no
12342
rm -f conftest.err conftest.$ac_objext \
12343
conftest$ac_exeext conftest.$ac_ext
12344
LIBS=$ac_check_lib_save_LIBS
12346
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12347
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12348
if test $ac_cv_lib_dl_dlopen = yes; then
12349
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12352
lt_cv_dlopen="dyld"
12354
lt_cv_dlopen_self=yes
12361
echo "$as_me:$LINENO: checking for shl_load" >&5
12362
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12363
if test "${ac_cv_func_shl_load+set}" = set; then
12364
echo $ECHO_N "(cached) $ECHO_C" >&6
12366
cat >conftest.$ac_ext <<_ACEOF
12369
cat confdefs.h >>conftest.$ac_ext
12370
cat >>conftest.$ac_ext <<_ACEOF
12371
/* end confdefs.h. */
12372
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12373
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12374
#define shl_load innocuous_shl_load
12376
/* System header to define __stub macros and hopefully few prototypes,
12377
which can conflict with char shl_load (); below.
12378
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12379
<limits.h> exists even on freestanding compilers. */
12382
# include <limits.h>
12384
# include <assert.h>
12389
/* Override any gcc2 internal prototype to avoid an error. */
12394
/* We use char because int might match the return type of a gcc2
12395
builtin and then its argument prototype would still apply. */
12397
/* The GNU C library defines this for functions which it implements
12398
to always fail with ENOSYS. Some functions are actually named
12399
something starting with __ and the normal name is an alias. */
12400
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12403
char (*f) () = shl_load;
12412
return f != shl_load;
12417
rm -f conftest.$ac_objext conftest$ac_exeext
12418
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419
(eval $ac_link) 2>conftest.er1
12421
grep -v '^ *+' conftest.er1 >conftest.err
12423
cat conftest.err >&5
12424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425
(exit $ac_status); } &&
12426
{ ac_try='test -z "$ac_cxx_werror_flag"
12427
|| test ! -s conftest.err'
12428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429
(eval $ac_try) 2>&5
12431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432
(exit $ac_status); }; } &&
12433
{ ac_try='test -s conftest$ac_exeext'
12434
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435
(eval $ac_try) 2>&5
12437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438
(exit $ac_status); }; }; then
12439
ac_cv_func_shl_load=yes
12441
echo "$as_me: failed program was:" >&5
12442
sed 's/^/| /' conftest.$ac_ext >&5
12444
ac_cv_func_shl_load=no
12446
rm -f conftest.err conftest.$ac_objext \
12447
conftest$ac_exeext conftest.$ac_ext
12449
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12450
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12451
if test $ac_cv_func_shl_load = yes; then
12452
lt_cv_dlopen="shl_load"
12454
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12455
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12456
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12457
echo $ECHO_N "(cached) $ECHO_C" >&6
12459
ac_check_lib_save_LIBS=$LIBS
12461
cat >conftest.$ac_ext <<_ACEOF
12464
cat confdefs.h >>conftest.$ac_ext
12465
cat >>conftest.$ac_ext <<_ACEOF
12466
/* end confdefs.h. */
12468
/* Override any gcc2 internal prototype to avoid an error. */
12472
/* We use char because int might match the return type of a gcc2
12473
builtin and then its argument prototype would still apply. */
12483
rm -f conftest.$ac_objext conftest$ac_exeext
12484
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12485
(eval $ac_link) 2>conftest.er1
12487
grep -v '^ *+' conftest.er1 >conftest.err
12489
cat conftest.err >&5
12490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491
(exit $ac_status); } &&
12492
{ ac_try='test -z "$ac_cxx_werror_flag"
12493
|| test ! -s conftest.err'
12494
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495
(eval $ac_try) 2>&5
12497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498
(exit $ac_status); }; } &&
12499
{ ac_try='test -s conftest$ac_exeext'
12500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501
(eval $ac_try) 2>&5
12503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504
(exit $ac_status); }; }; then
12505
ac_cv_lib_dld_shl_load=yes
12507
echo "$as_me: failed program was:" >&5
12508
sed 's/^/| /' conftest.$ac_ext >&5
12510
ac_cv_lib_dld_shl_load=no
12512
rm -f conftest.err conftest.$ac_objext \
12513
conftest$ac_exeext conftest.$ac_ext
12514
LIBS=$ac_check_lib_save_LIBS
12516
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12517
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12518
if test $ac_cv_lib_dld_shl_load = yes; then
12519
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12521
echo "$as_me:$LINENO: checking for dlopen" >&5
12522
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12523
if test "${ac_cv_func_dlopen+set}" = set; then
12524
echo $ECHO_N "(cached) $ECHO_C" >&6
12526
cat >conftest.$ac_ext <<_ACEOF
12529
cat confdefs.h >>conftest.$ac_ext
12530
cat >>conftest.$ac_ext <<_ACEOF
12531
/* end confdefs.h. */
12532
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12533
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12534
#define dlopen innocuous_dlopen
12536
/* System header to define __stub macros and hopefully few prototypes,
12537
which can conflict with char dlopen (); below.
12538
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539
<limits.h> exists even on freestanding compilers. */
12542
# include <limits.h>
12544
# include <assert.h>
12549
/* Override any gcc2 internal prototype to avoid an error. */
12554
/* We use char because int might match the return type of a gcc2
12555
builtin and then its argument prototype would still apply. */
12557
/* The GNU C library defines this for functions which it implements
12558
to always fail with ENOSYS. Some functions are actually named
12559
something starting with __ and the normal name is an alias. */
12560
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12563
char (*f) () = dlopen;
12572
return f != dlopen;
12577
rm -f conftest.$ac_objext conftest$ac_exeext
12578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579
(eval $ac_link) 2>conftest.er1
12581
grep -v '^ *+' conftest.er1 >conftest.err
12583
cat conftest.err >&5
12584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585
(exit $ac_status); } &&
12586
{ ac_try='test -z "$ac_cxx_werror_flag"
12587
|| test ! -s conftest.err'
12588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589
(eval $ac_try) 2>&5
12591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592
(exit $ac_status); }; } &&
12593
{ ac_try='test -s conftest$ac_exeext'
12594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595
(eval $ac_try) 2>&5
12597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598
(exit $ac_status); }; }; then
12599
ac_cv_func_dlopen=yes
12601
echo "$as_me: failed program was:" >&5
12602
sed 's/^/| /' conftest.$ac_ext >&5
12604
ac_cv_func_dlopen=no
12606
rm -f conftest.err conftest.$ac_objext \
12607
conftest$ac_exeext conftest.$ac_ext
12609
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12610
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12611
if test $ac_cv_func_dlopen = yes; then
12612
lt_cv_dlopen="dlopen"
12614
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12615
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12616
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12617
echo $ECHO_N "(cached) $ECHO_C" >&6
12619
ac_check_lib_save_LIBS=$LIBS
12621
cat >conftest.$ac_ext <<_ACEOF
12624
cat confdefs.h >>conftest.$ac_ext
12625
cat >>conftest.$ac_ext <<_ACEOF
12626
/* end confdefs.h. */
12628
/* Override any gcc2 internal prototype to avoid an error. */
12632
/* We use char because int might match the return type of a gcc2
12633
builtin and then its argument prototype would still apply. */
12643
rm -f conftest.$ac_objext conftest$ac_exeext
12644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645
(eval $ac_link) 2>conftest.er1
12647
grep -v '^ *+' conftest.er1 >conftest.err
12649
cat conftest.err >&5
12650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651
(exit $ac_status); } &&
12652
{ ac_try='test -z "$ac_cxx_werror_flag"
12653
|| test ! -s conftest.err'
12654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655
(eval $ac_try) 2>&5
12657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658
(exit $ac_status); }; } &&
12659
{ ac_try='test -s conftest$ac_exeext'
12660
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661
(eval $ac_try) 2>&5
12663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664
(exit $ac_status); }; }; then
12665
ac_cv_lib_dl_dlopen=yes
12667
echo "$as_me: failed program was:" >&5
12668
sed 's/^/| /' conftest.$ac_ext >&5
12670
ac_cv_lib_dl_dlopen=no
12672
rm -f conftest.err conftest.$ac_objext \
12673
conftest$ac_exeext conftest.$ac_ext
12674
LIBS=$ac_check_lib_save_LIBS
12676
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12677
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12678
if test $ac_cv_lib_dl_dlopen = yes; then
12679
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12681
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12682
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12683
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12684
echo $ECHO_N "(cached) $ECHO_C" >&6
12686
ac_check_lib_save_LIBS=$LIBS
12687
LIBS="-lsvld $LIBS"
12688
cat >conftest.$ac_ext <<_ACEOF
12691
cat confdefs.h >>conftest.$ac_ext
12692
cat >>conftest.$ac_ext <<_ACEOF
12693
/* end confdefs.h. */
12695
/* Override any gcc2 internal prototype to avoid an error. */
12699
/* We use char because int might match the return type of a gcc2
12700
builtin and then its argument prototype would still apply. */
12710
rm -f conftest.$ac_objext conftest$ac_exeext
12711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712
(eval $ac_link) 2>conftest.er1
12714
grep -v '^ *+' conftest.er1 >conftest.err
12716
cat conftest.err >&5
12717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718
(exit $ac_status); } &&
12719
{ ac_try='test -z "$ac_cxx_werror_flag"
12720
|| test ! -s conftest.err'
12721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722
(eval $ac_try) 2>&5
12724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725
(exit $ac_status); }; } &&
12726
{ ac_try='test -s conftest$ac_exeext'
12727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728
(eval $ac_try) 2>&5
12730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731
(exit $ac_status); }; }; then
12732
ac_cv_lib_svld_dlopen=yes
12734
echo "$as_me: failed program was:" >&5
12735
sed 's/^/| /' conftest.$ac_ext >&5
12737
ac_cv_lib_svld_dlopen=no
12739
rm -f conftest.err conftest.$ac_objext \
12740
conftest$ac_exeext conftest.$ac_ext
12741
LIBS=$ac_check_lib_save_LIBS
12743
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12744
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12745
if test $ac_cv_lib_svld_dlopen = yes; then
12746
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12748
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12749
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12750
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12751
echo $ECHO_N "(cached) $ECHO_C" >&6
12753
ac_check_lib_save_LIBS=$LIBS
12755
cat >conftest.$ac_ext <<_ACEOF
12758
cat confdefs.h >>conftest.$ac_ext
12759
cat >>conftest.$ac_ext <<_ACEOF
12760
/* end confdefs.h. */
12762
/* Override any gcc2 internal prototype to avoid an error. */
12766
/* We use char because int might match the return type of a gcc2
12767
builtin and then its argument prototype would still apply. */
12777
rm -f conftest.$ac_objext conftest$ac_exeext
12778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779
(eval $ac_link) 2>conftest.er1
12781
grep -v '^ *+' conftest.er1 >conftest.err
12783
cat conftest.err >&5
12784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785
(exit $ac_status); } &&
12786
{ ac_try='test -z "$ac_cxx_werror_flag"
12787
|| test ! -s conftest.err'
12788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789
(eval $ac_try) 2>&5
12791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792
(exit $ac_status); }; } &&
12793
{ ac_try='test -s conftest$ac_exeext'
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); }; }; then
12799
ac_cv_lib_dld_dld_link=yes
12801
echo "$as_me: failed program was:" >&5
12802
sed 's/^/| /' conftest.$ac_ext >&5
12804
ac_cv_lib_dld_dld_link=no
12806
rm -f conftest.err conftest.$ac_objext \
12807
conftest$ac_exeext conftest.$ac_ext
12808
LIBS=$ac_check_lib_save_LIBS
12810
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12811
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12812
if test $ac_cv_lib_dld_dld_link = yes; then
12813
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12834
if test "x$lt_cv_dlopen" != xno; then
12840
case $lt_cv_dlopen in
12842
save_CPPFLAGS="$CPPFLAGS"
12843
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12845
save_LDFLAGS="$LDFLAGS"
12846
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12849
LIBS="$lt_cv_dlopen_libs $LIBS"
12851
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12852
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12853
if test "${lt_cv_dlopen_self+set}" = set; then
12854
echo $ECHO_N "(cached) $ECHO_C" >&6
12856
if test "$cross_compiling" = yes; then :
12857
lt_cv_dlopen_self=cross
12859
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12860
lt_status=$lt_dlunknown
12861
cat > conftest.$ac_ext <<EOF
12862
#line 12862 "configure"
12863
#include "confdefs.h"
12872
# define LT_DLGLOBAL RTLD_GLOBAL
12875
# define LT_DLGLOBAL DL_GLOBAL
12877
# define LT_DLGLOBAL 0
12881
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12882
find out it does not work in some platform. */
12883
#ifndef LT_DLLAZY_OR_NOW
12885
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12888
# define LT_DLLAZY_OR_NOW DL_LAZY
12891
# define LT_DLLAZY_OR_NOW RTLD_NOW
12894
# define LT_DLLAZY_OR_NOW DL_NOW
12896
# define LT_DLLAZY_OR_NOW 0
12904
extern "C" void exit (int);
12907
void fnord() { int i=42;}
12910
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12911
int status = $lt_dlunknown;
12915
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12916
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12917
/* dlclose (self); */
12923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924
(eval $ac_link) 2>&5
12926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12928
(./conftest; exit; ) 2>/dev/null
12930
case x$lt_status in
12931
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12932
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12933
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12936
# compilation failed
12937
lt_cv_dlopen_self=no
12944
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12945
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12947
if test "x$lt_cv_dlopen_self" = xyes; then
12948
LDFLAGS="$LDFLAGS $link_static_flag"
12949
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12950
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12951
if test "${lt_cv_dlopen_self_static+set}" = set; then
12952
echo $ECHO_N "(cached) $ECHO_C" >&6
12954
if test "$cross_compiling" = yes; then :
12955
lt_cv_dlopen_self_static=cross
12957
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12958
lt_status=$lt_dlunknown
12959
cat > conftest.$ac_ext <<EOF
12960
#line 12960 "configure"
12961
#include "confdefs.h"
12970
# define LT_DLGLOBAL RTLD_GLOBAL
12973
# define LT_DLGLOBAL DL_GLOBAL
12975
# define LT_DLGLOBAL 0
12979
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12980
find out it does not work in some platform. */
12981
#ifndef LT_DLLAZY_OR_NOW
12983
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12986
# define LT_DLLAZY_OR_NOW DL_LAZY
12989
# define LT_DLLAZY_OR_NOW RTLD_NOW
12992
# define LT_DLLAZY_OR_NOW DL_NOW
12994
# define LT_DLLAZY_OR_NOW 0
13002
extern "C" void exit (int);
13005
void fnord() { int i=42;}
13008
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13009
int status = $lt_dlunknown;
13013
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13014
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13015
/* dlclose (self); */
13021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13022
(eval $ac_link) 2>&5
13024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13026
(./conftest; exit; ) 2>/dev/null
13028
case x$lt_status in
13029
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13030
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13031
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13034
# compilation failed
13035
lt_cv_dlopen_self_static=no
13042
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13043
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13046
CPPFLAGS="$save_CPPFLAGS"
13047
LDFLAGS="$save_LDFLAGS"
13052
case $lt_cv_dlopen_self in
13053
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13054
*) enable_dlopen_self=unknown ;;
13057
case $lt_cv_dlopen_self_static in
13058
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13059
*) enable_dlopen_self_static=unknown ;;
13064
12852
# The else clause should only fire when bootstrapping the
13065
12853
# libtool distribution, otherwise you forgot to ship ltmain.sh
14349
14332
old_archive_From_new_cmds_F77='true'
14350
14333
# FIXME: Should let the user specify the lib program.
14351
14334
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14352
fix_srcfile_path='`cygpath -w "$srcfile"`'
14335
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14353
14336
enable_shared_with_static_runtimes_F77=yes
14356
14339
darwin* | rhapsody*)
14357
if test "$GXX" = yes ; then
14341
rhapsody* | darwin1.[012])
14342
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14345
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14346
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14348
case ${MACOSX_DEPLOYMENT_TARGET} in
14350
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14353
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14358
14359
archive_cmds_need_lc_F77=no
14360
rhapsody* | darwin1.[012])
14361
allow_undefined_flag_F77='-undefined suppress'
14364
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14365
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14367
case ${MACOSX_DEPLOYMENT_TARGET} in
14369
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14372
allow_undefined_flag_F77='-undefined dynamic_lookup'
14378
lt_int_apple_cc_single_mod=no
14379
output_verbose_link_cmd='echo'
14380
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14381
lt_int_apple_cc_single_mod=yes
14383
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14384
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14386
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'
14388
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14389
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14390
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14391
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}'
14393
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}'
14395
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}'
14396
14360
hardcode_direct_F77=no
14397
14361
hardcode_automatic_F77=yes
14398
14362
hardcode_shlibpath_var_F77=unsupported
14399
whole_archive_flag_spec_F77='-all_load $convenience'
14363
whole_archive_flag_spec_F77=''
14400
14364
link_all_deplibs_F77=yes
14365
if test "$GCC" = yes ; then
14366
output_verbose_link_cmd='echo'
14367
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14368
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14369
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14370
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}'
14371
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}'
14373
case $cc_basename in
14375
output_verbose_link_cmd='echo'
14376
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14377
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14378
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14379
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}'
14380
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}'
16717
16927
old_archive_From_new_cmds_GCJ='true'
16718
16928
# FIXME: Should let the user specify the lib program.
16719
16929
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16720
fix_srcfile_path='`cygpath -w "$srcfile"`'
16930
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16721
16931
enable_shared_with_static_runtimes_GCJ=yes
16724
16934
darwin* | rhapsody*)
16725
if test "$GXX" = yes ; then
16936
rhapsody* | darwin1.[012])
16937
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16940
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16941
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16943
case ${MACOSX_DEPLOYMENT_TARGET} in
16945
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16948
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16726
16954
archive_cmds_need_lc_GCJ=no
16728
rhapsody* | darwin1.[012])
16729
allow_undefined_flag_GCJ='-undefined suppress'
16732
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16733
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16735
case ${MACOSX_DEPLOYMENT_TARGET} in
16737
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16740
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16746
lt_int_apple_cc_single_mod=no
16747
output_verbose_link_cmd='echo'
16748
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16749
lt_int_apple_cc_single_mod=yes
16751
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16752
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16754
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'
16756
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16757
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16758
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16759
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}'
16761
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}'
16763
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}'
16764
16955
hardcode_direct_GCJ=no
16765
16956
hardcode_automatic_GCJ=yes
16766
16957
hardcode_shlibpath_var_GCJ=unsupported
16767
whole_archive_flag_spec_GCJ='-all_load $convenience'
16958
whole_archive_flag_spec_GCJ=''
16768
16959
link_all_deplibs_GCJ=yes
16960
if test "$GCC" = yes ; then
16961
output_verbose_link_cmd='echo'
16962
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16963
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16964
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16965
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}'
16966
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}'
16968
case $cc_basename in
16970
output_verbose_link_cmd='echo'
16971
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16972
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16973
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16974
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}'
16975
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}'
17763
18030
enable_fast_install=needless
17768
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17769
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17770
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17771
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17772
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17773
echo "$as_me:$LINENO: result: yes" >&5
17774
echo "${ECHO_T}yes" >&6
17776
# FIXME - insert some real tests, host_os isn't really good enough
17779
if test -n "$STRIP" ; then
17780
striplib="$STRIP -x"
17781
echo "$as_me:$LINENO: result: yes" >&5
17782
echo "${ECHO_T}yes" >&6
17784
echo "$as_me:$LINENO: result: no" >&5
17785
echo "${ECHO_T}no" >&6
17789
echo "$as_me:$LINENO: result: no" >&5
17790
echo "${ECHO_T}no" >&6
17795
if test "x$enable_dlopen" != xyes; then
17796
enable_dlopen=unknown
17797
enable_dlopen_self=unknown
17798
enable_dlopen_self_static=unknown
17805
lt_cv_dlopen="load_add_on"
17807
lt_cv_dlopen_self=yes
17811
lt_cv_dlopen="LoadLibrary"
17816
lt_cv_dlopen="dlopen"
17821
# if libdl is installed we need to link against it
17822
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17823
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17824
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17825
echo $ECHO_N "(cached) $ECHO_C" >&6
17827
ac_check_lib_save_LIBS=$LIBS
17829
cat >conftest.$ac_ext <<_ACEOF
17832
cat confdefs.h >>conftest.$ac_ext
17833
cat >>conftest.$ac_ext <<_ACEOF
17834
/* end confdefs.h. */
17836
/* Override any gcc2 internal prototype to avoid an error. */
17840
/* We use char because int might match the return type of a gcc2
17841
builtin and then its argument prototype would still apply. */
17851
rm -f conftest.$ac_objext conftest$ac_exeext
17852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17853
(eval $ac_link) 2>conftest.er1
17855
grep -v '^ *+' conftest.er1 >conftest.err
17857
cat conftest.err >&5
17858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859
(exit $ac_status); } &&
17860
{ ac_try='test -z "$ac_c_werror_flag"
17861
|| test ! -s conftest.err'
17862
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863
(eval $ac_try) 2>&5
17865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866
(exit $ac_status); }; } &&
17867
{ ac_try='test -s conftest$ac_exeext'
17868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869
(eval $ac_try) 2>&5
17871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872
(exit $ac_status); }; }; then
17873
ac_cv_lib_dl_dlopen=yes
17875
echo "$as_me: failed program was:" >&5
17876
sed 's/^/| /' conftest.$ac_ext >&5
17878
ac_cv_lib_dl_dlopen=no
17880
rm -f conftest.err conftest.$ac_objext \
17881
conftest$ac_exeext conftest.$ac_ext
17882
LIBS=$ac_check_lib_save_LIBS
17884
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17885
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17886
if test $ac_cv_lib_dl_dlopen = yes; then
17887
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17890
lt_cv_dlopen="dyld"
17892
lt_cv_dlopen_self=yes
17899
echo "$as_me:$LINENO: checking for shl_load" >&5
17900
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17901
if test "${ac_cv_func_shl_load+set}" = set; then
17902
echo $ECHO_N "(cached) $ECHO_C" >&6
17904
cat >conftest.$ac_ext <<_ACEOF
17907
cat confdefs.h >>conftest.$ac_ext
17908
cat >>conftest.$ac_ext <<_ACEOF
17909
/* end confdefs.h. */
17910
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17911
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17912
#define shl_load innocuous_shl_load
17914
/* System header to define __stub macros and hopefully few prototypes,
17915
which can conflict with char shl_load (); below.
17916
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917
<limits.h> exists even on freestanding compilers. */
17920
# include <limits.h>
17922
# include <assert.h>
17927
/* Override any gcc2 internal prototype to avoid an error. */
17932
/* We use char because int might match the return type of a gcc2
17933
builtin and then its argument prototype would still apply. */
17935
/* The GNU C library defines this for functions which it implements
17936
to always fail with ENOSYS. Some functions are actually named
17937
something starting with __ and the normal name is an alias. */
17938
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17941
char (*f) () = shl_load;
17950
return f != shl_load;
17955
rm -f conftest.$ac_objext conftest$ac_exeext
17956
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957
(eval $ac_link) 2>conftest.er1
17959
grep -v '^ *+' conftest.er1 >conftest.err
17961
cat conftest.err >&5
17962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963
(exit $ac_status); } &&
17964
{ ac_try='test -z "$ac_c_werror_flag"
17965
|| test ! -s conftest.err'
17966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967
(eval $ac_try) 2>&5
17969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970
(exit $ac_status); }; } &&
17971
{ ac_try='test -s conftest$ac_exeext'
17972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973
(eval $ac_try) 2>&5
17975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976
(exit $ac_status); }; }; then
17977
ac_cv_func_shl_load=yes
17979
echo "$as_me: failed program was:" >&5
17980
sed 's/^/| /' conftest.$ac_ext >&5
17982
ac_cv_func_shl_load=no
17984
rm -f conftest.err conftest.$ac_objext \
17985
conftest$ac_exeext conftest.$ac_ext
17987
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17988
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17989
if test $ac_cv_func_shl_load = yes; then
17990
lt_cv_dlopen="shl_load"
17992
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17993
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17994
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17995
echo $ECHO_N "(cached) $ECHO_C" >&6
17997
ac_check_lib_save_LIBS=$LIBS
17999
cat >conftest.$ac_ext <<_ACEOF
18002
cat confdefs.h >>conftest.$ac_ext
18003
cat >>conftest.$ac_ext <<_ACEOF
18004
/* end confdefs.h. */
18006
/* Override any gcc2 internal prototype to avoid an error. */
18010
/* We use char because int might match the return type of a gcc2
18011
builtin and then its argument prototype would still apply. */
18021
rm -f conftest.$ac_objext conftest$ac_exeext
18022
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18023
(eval $ac_link) 2>conftest.er1
18025
grep -v '^ *+' conftest.er1 >conftest.err
18027
cat conftest.err >&5
18028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029
(exit $ac_status); } &&
18030
{ ac_try='test -z "$ac_c_werror_flag"
18031
|| test ! -s conftest.err'
18032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033
(eval $ac_try) 2>&5
18035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036
(exit $ac_status); }; } &&
18037
{ ac_try='test -s conftest$ac_exeext'
18038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039
(eval $ac_try) 2>&5
18041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042
(exit $ac_status); }; }; then
18043
ac_cv_lib_dld_shl_load=yes
18045
echo "$as_me: failed program was:" >&5
18046
sed 's/^/| /' conftest.$ac_ext >&5
18048
ac_cv_lib_dld_shl_load=no
18050
rm -f conftest.err conftest.$ac_objext \
18051
conftest$ac_exeext conftest.$ac_ext
18052
LIBS=$ac_check_lib_save_LIBS
18054
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18055
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18056
if test $ac_cv_lib_dld_shl_load = yes; then
18057
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18059
echo "$as_me:$LINENO: checking for dlopen" >&5
18060
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18061
if test "${ac_cv_func_dlopen+set}" = set; then
18062
echo $ECHO_N "(cached) $ECHO_C" >&6
18064
cat >conftest.$ac_ext <<_ACEOF
18067
cat confdefs.h >>conftest.$ac_ext
18068
cat >>conftest.$ac_ext <<_ACEOF
18069
/* end confdefs.h. */
18070
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18071
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18072
#define dlopen innocuous_dlopen
18074
/* System header to define __stub macros and hopefully few prototypes,
18075
which can conflict with char dlopen (); below.
18076
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18077
<limits.h> exists even on freestanding compilers. */
18080
# include <limits.h>
18082
# include <assert.h>
18087
/* Override any gcc2 internal prototype to avoid an error. */
18092
/* We use char because int might match the return type of a gcc2
18093
builtin and then its argument prototype would still apply. */
18095
/* The GNU C library defines this for functions which it implements
18096
to always fail with ENOSYS. Some functions are actually named
18097
something starting with __ and the normal name is an alias. */
18098
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18101
char (*f) () = dlopen;
18110
return f != dlopen;
18115
rm -f conftest.$ac_objext conftest$ac_exeext
18116
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117
(eval $ac_link) 2>conftest.er1
18119
grep -v '^ *+' conftest.er1 >conftest.err
18121
cat conftest.err >&5
18122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123
(exit $ac_status); } &&
18124
{ ac_try='test -z "$ac_c_werror_flag"
18125
|| test ! -s conftest.err'
18126
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127
(eval $ac_try) 2>&5
18129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130
(exit $ac_status); }; } &&
18131
{ ac_try='test -s conftest$ac_exeext'
18132
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133
(eval $ac_try) 2>&5
18135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136
(exit $ac_status); }; }; then
18137
ac_cv_func_dlopen=yes
18139
echo "$as_me: failed program was:" >&5
18140
sed 's/^/| /' conftest.$ac_ext >&5
18142
ac_cv_func_dlopen=no
18144
rm -f conftest.err conftest.$ac_objext \
18145
conftest$ac_exeext conftest.$ac_ext
18147
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18148
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18149
if test $ac_cv_func_dlopen = yes; then
18150
lt_cv_dlopen="dlopen"
18152
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18153
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18154
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18155
echo $ECHO_N "(cached) $ECHO_C" >&6
18157
ac_check_lib_save_LIBS=$LIBS
18159
cat >conftest.$ac_ext <<_ACEOF
18162
cat confdefs.h >>conftest.$ac_ext
18163
cat >>conftest.$ac_ext <<_ACEOF
18164
/* end confdefs.h. */
18166
/* Override any gcc2 internal prototype to avoid an error. */
18170
/* We use char because int might match the return type of a gcc2
18171
builtin and then its argument prototype would still apply. */
18181
rm -f conftest.$ac_objext conftest$ac_exeext
18182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18183
(eval $ac_link) 2>conftest.er1
18185
grep -v '^ *+' conftest.er1 >conftest.err
18187
cat conftest.err >&5
18188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189
(exit $ac_status); } &&
18190
{ ac_try='test -z "$ac_c_werror_flag"
18191
|| test ! -s conftest.err'
18192
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193
(eval $ac_try) 2>&5
18195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196
(exit $ac_status); }; } &&
18197
{ ac_try='test -s conftest$ac_exeext'
18198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199
(eval $ac_try) 2>&5
18201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202
(exit $ac_status); }; }; then
18203
ac_cv_lib_dl_dlopen=yes
18205
echo "$as_me: failed program was:" >&5
18206
sed 's/^/| /' conftest.$ac_ext >&5
18208
ac_cv_lib_dl_dlopen=no
18210
rm -f conftest.err conftest.$ac_objext \
18211
conftest$ac_exeext conftest.$ac_ext
18212
LIBS=$ac_check_lib_save_LIBS
18214
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18215
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18216
if test $ac_cv_lib_dl_dlopen = yes; then
18217
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18219
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18220
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18221
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18222
echo $ECHO_N "(cached) $ECHO_C" >&6
18224
ac_check_lib_save_LIBS=$LIBS
18225
LIBS="-lsvld $LIBS"
18226
cat >conftest.$ac_ext <<_ACEOF
18229
cat confdefs.h >>conftest.$ac_ext
18230
cat >>conftest.$ac_ext <<_ACEOF
18231
/* end confdefs.h. */
18233
/* Override any gcc2 internal prototype to avoid an error. */
18237
/* We use char because int might match the return type of a gcc2
18238
builtin and then its argument prototype would still apply. */
18248
rm -f conftest.$ac_objext conftest$ac_exeext
18249
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18250
(eval $ac_link) 2>conftest.er1
18252
grep -v '^ *+' conftest.er1 >conftest.err
18254
cat conftest.err >&5
18255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256
(exit $ac_status); } &&
18257
{ ac_try='test -z "$ac_c_werror_flag"
18258
|| test ! -s conftest.err'
18259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260
(eval $ac_try) 2>&5
18262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263
(exit $ac_status); }; } &&
18264
{ ac_try='test -s conftest$ac_exeext'
18265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266
(eval $ac_try) 2>&5
18268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269
(exit $ac_status); }; }; then
18270
ac_cv_lib_svld_dlopen=yes
18272
echo "$as_me: failed program was:" >&5
18273
sed 's/^/| /' conftest.$ac_ext >&5
18275
ac_cv_lib_svld_dlopen=no
18277
rm -f conftest.err conftest.$ac_objext \
18278
conftest$ac_exeext conftest.$ac_ext
18279
LIBS=$ac_check_lib_save_LIBS
18281
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18282
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18283
if test $ac_cv_lib_svld_dlopen = yes; then
18284
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18286
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18287
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18288
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18289
echo $ECHO_N "(cached) $ECHO_C" >&6
18291
ac_check_lib_save_LIBS=$LIBS
18293
cat >conftest.$ac_ext <<_ACEOF
18296
cat confdefs.h >>conftest.$ac_ext
18297
cat >>conftest.$ac_ext <<_ACEOF
18298
/* end confdefs.h. */
18300
/* Override any gcc2 internal prototype to avoid an error. */
18304
/* We use char because int might match the return type of a gcc2
18305
builtin and then its argument prototype would still apply. */
18315
rm -f conftest.$ac_objext conftest$ac_exeext
18316
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18317
(eval $ac_link) 2>conftest.er1
18319
grep -v '^ *+' conftest.er1 >conftest.err
18321
cat conftest.err >&5
18322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323
(exit $ac_status); } &&
18324
{ ac_try='test -z "$ac_c_werror_flag"
18325
|| test ! -s conftest.err'
18326
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327
(eval $ac_try) 2>&5
18329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330
(exit $ac_status); }; } &&
18331
{ ac_try='test -s conftest$ac_exeext'
18332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333
(eval $ac_try) 2>&5
18335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336
(exit $ac_status); }; }; then
18337
ac_cv_lib_dld_dld_link=yes
18339
echo "$as_me: failed program was:" >&5
18340
sed 's/^/| /' conftest.$ac_ext >&5
18342
ac_cv_lib_dld_dld_link=no
18344
rm -f conftest.err conftest.$ac_objext \
18345
conftest$ac_exeext conftest.$ac_ext
18346
LIBS=$ac_check_lib_save_LIBS
18348
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18349
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18350
if test $ac_cv_lib_dld_dld_link = yes; then
18351
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18372
if test "x$lt_cv_dlopen" != xno; then
18378
case $lt_cv_dlopen in
18380
save_CPPFLAGS="$CPPFLAGS"
18381
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18383
save_LDFLAGS="$LDFLAGS"
18384
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18387
LIBS="$lt_cv_dlopen_libs $LIBS"
18389
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18390
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18391
if test "${lt_cv_dlopen_self+set}" = set; then
18392
echo $ECHO_N "(cached) $ECHO_C" >&6
18394
if test "$cross_compiling" = yes; then :
18395
lt_cv_dlopen_self=cross
18397
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18398
lt_status=$lt_dlunknown
18399
cat > conftest.$ac_ext <<EOF
18400
#line 18400 "configure"
18401
#include "confdefs.h"
18410
# define LT_DLGLOBAL RTLD_GLOBAL
18413
# define LT_DLGLOBAL DL_GLOBAL
18415
# define LT_DLGLOBAL 0
18419
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18420
find out it does not work in some platform. */
18421
#ifndef LT_DLLAZY_OR_NOW
18423
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18426
# define LT_DLLAZY_OR_NOW DL_LAZY
18429
# define LT_DLLAZY_OR_NOW RTLD_NOW
18432
# define LT_DLLAZY_OR_NOW DL_NOW
18434
# define LT_DLLAZY_OR_NOW 0
18442
extern "C" void exit (int);
18445
void fnord() { int i=42;}
18448
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18449
int status = $lt_dlunknown;
18453
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18454
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18455
/* dlclose (self); */
18461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18462
(eval $ac_link) 2>&5
18464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18466
(./conftest; exit; ) 2>/dev/null
18468
case x$lt_status in
18469
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18470
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18471
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18474
# compilation failed
18475
lt_cv_dlopen_self=no
18482
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18483
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18485
if test "x$lt_cv_dlopen_self" = xyes; then
18486
LDFLAGS="$LDFLAGS $link_static_flag"
18487
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18488
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18489
if test "${lt_cv_dlopen_self_static+set}" = set; then
18490
echo $ECHO_N "(cached) $ECHO_C" >&6
18492
if test "$cross_compiling" = yes; then :
18493
lt_cv_dlopen_self_static=cross
18495
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18496
lt_status=$lt_dlunknown
18497
cat > conftest.$ac_ext <<EOF
18498
#line 18498 "configure"
18499
#include "confdefs.h"
18508
# define LT_DLGLOBAL RTLD_GLOBAL
18511
# define LT_DLGLOBAL DL_GLOBAL
18513
# define LT_DLGLOBAL 0
18517
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18518
find out it does not work in some platform. */
18519
#ifndef LT_DLLAZY_OR_NOW
18521
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18524
# define LT_DLLAZY_OR_NOW DL_LAZY
18527
# define LT_DLLAZY_OR_NOW RTLD_NOW
18530
# define LT_DLLAZY_OR_NOW DL_NOW
18532
# define LT_DLLAZY_OR_NOW 0
18540
extern "C" void exit (int);
18543
void fnord() { int i=42;}
18546
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18547
int status = $lt_dlunknown;
18551
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18552
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18553
/* dlclose (self); */
18559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18560
(eval $ac_link) 2>&5
18562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18564
(./conftest; exit; ) 2>/dev/null
18566
case x$lt_status in
18567
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18568
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18569
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18572
# compilation failed
18573
lt_cv_dlopen_self_static=no
18580
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18581
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18584
CPPFLAGS="$save_CPPFLAGS"
18585
LDFLAGS="$save_LDFLAGS"
18590
case $lt_cv_dlopen_self in
18591
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18592
*) enable_dlopen_self=unknown ;;
18595
case $lt_cv_dlopen_self_static in
18596
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18597
*) enable_dlopen_self_static=unknown ;;
18602
18034
# The else clause should only fire when bootstrapping the
18603
18035
# libtool distribution, otherwise you forgot to ship ltmain.sh
20410
for ac_func in daemon
20412
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20413
echo "$as_me:$LINENO: checking for $ac_func" >&5
20414
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20415
if eval "test \"\${$as_ac_var+set}\" = set"; then
20416
echo $ECHO_N "(cached) $ECHO_C" >&6
20418
cat >conftest.$ac_ext <<_ACEOF
20421
cat confdefs.h >>conftest.$ac_ext
20422
cat >>conftest.$ac_ext <<_ACEOF
20423
/* end confdefs.h. */
20424
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20425
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20426
#define $ac_func innocuous_$ac_func
20428
/* System header to define __stub macros and hopefully few prototypes,
20429
which can conflict with char $ac_func (); below.
20430
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20431
<limits.h> exists even on freestanding compilers. */
20434
# include <limits.h>
20436
# include <assert.h>
20441
/* Override any gcc2 internal prototype to avoid an error. */
20446
/* We use char because int might match the return type of a gcc2
20447
builtin and then its argument prototype would still apply. */
20449
/* The GNU C library defines this for functions which it implements
20450
to always fail with ENOSYS. Some functions are actually named
20451
something starting with __ and the normal name is an alias. */
20452
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20455
char (*f) () = $ac_func;
20464
return f != $ac_func;
20469
rm -f conftest.$ac_objext conftest$ac_exeext
20470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20471
(eval $ac_link) 2>conftest.er1
20473
grep -v '^ *+' conftest.er1 >conftest.err
20475
cat conftest.err >&5
20476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477
(exit $ac_status); } &&
20478
{ ac_try='test -z "$ac_c_werror_flag"
20479
|| test ! -s conftest.err'
20480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481
(eval $ac_try) 2>&5
20483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484
(exit $ac_status); }; } &&
20485
{ ac_try='test -s conftest$ac_exeext'
20486
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487
(eval $ac_try) 2>&5
20489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490
(exit $ac_status); }; }; then
20491
eval "$as_ac_var=yes"
20493
echo "$as_me: failed program was:" >&5
20494
sed 's/^/| /' conftest.$ac_ext >&5
20496
eval "$as_ac_var=no"
20498
rm -f conftest.err conftest.$ac_objext \
20499
conftest$ac_exeext conftest.$ac_ext
20501
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20502
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20503
if test `eval echo '${'$as_ac_var'}'` = yes; then
20504
cat >>confdefs.h <<_ACEOF
20505
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20512
for ac_header in grp.h
20514
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20515
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20516
echo "$as_me:$LINENO: checking for $ac_header" >&5
20517
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20518
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20519
echo $ECHO_N "(cached) $ECHO_C" >&6
20521
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20522
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20524
# Is the header compilable?
20525
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20526
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20527
cat >conftest.$ac_ext <<_ACEOF
20530
cat confdefs.h >>conftest.$ac_ext
20531
cat >>conftest.$ac_ext <<_ACEOF
20532
/* end confdefs.h. */
20533
$ac_includes_default
20534
#include <$ac_header>
20536
rm -f conftest.$ac_objext
20537
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20538
(eval $ac_compile) 2>conftest.er1
20540
grep -v '^ *+' conftest.er1 >conftest.err
20542
cat conftest.err >&5
20543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544
(exit $ac_status); } &&
20545
{ ac_try='test -z "$ac_c_werror_flag"
20546
|| test ! -s conftest.err'
20547
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548
(eval $ac_try) 2>&5
20550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551
(exit $ac_status); }; } &&
20552
{ ac_try='test -s conftest.$ac_objext'
20553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554
(eval $ac_try) 2>&5
20556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557
(exit $ac_status); }; }; then
20558
ac_header_compiler=yes
20560
echo "$as_me: failed program was:" >&5
20561
sed 's/^/| /' conftest.$ac_ext >&5
20563
ac_header_compiler=no
20565
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20566
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20567
echo "${ECHO_T}$ac_header_compiler" >&6
20569
# Is the header present?
20570
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20571
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20572
cat >conftest.$ac_ext <<_ACEOF
20575
cat confdefs.h >>conftest.$ac_ext
20576
cat >>conftest.$ac_ext <<_ACEOF
20577
/* end confdefs.h. */
20578
#include <$ac_header>
20580
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20581
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20583
grep -v '^ *+' conftest.er1 >conftest.err
20585
cat conftest.err >&5
20586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587
(exit $ac_status); } >/dev/null; then
20588
if test -s conftest.err; then
20589
ac_cpp_err=$ac_c_preproc_warn_flag
20590
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20597
if test -z "$ac_cpp_err"; then
20598
ac_header_preproc=yes
20600
echo "$as_me: failed program was:" >&5
20601
sed 's/^/| /' conftest.$ac_ext >&5
20603
ac_header_preproc=no
20605
rm -f conftest.err conftest.$ac_ext
20606
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20607
echo "${ECHO_T}$ac_header_preproc" >&6
20609
# So? What about this header?
20610
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20612
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20613
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20614
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20615
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20616
ac_header_preproc=yes
20619
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20620
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20621
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20622
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20623
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20624
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20625
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20626
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20627
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20628
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20629
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20630
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20633
## ---------------------------------------------------------------------- ##
20634
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
20635
## ---------------------------------------------------------------------- ##
20638
sed "s/^/$as_me: WARNING: /" >&2
20641
echo "$as_me:$LINENO: checking for $ac_header" >&5
20642
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20643
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20644
echo $ECHO_N "(cached) $ECHO_C" >&6
20646
eval "$as_ac_Header=\$ac_header_preproc"
20648
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20649
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20652
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20653
cat >>confdefs.h <<_ACEOF
20654
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20880
20662
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20881
20663
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20882
20664
if test "${ac_cv_type_signal+set}" = set; then