11859
12462
enable_fast_install=needless
11864
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11865
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11866
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11867
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11868
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11869
echo "$as_me:$LINENO: result: yes" >&5
11870
echo "${ECHO_T}yes" >&6
11872
# FIXME - insert some real tests, host_os isn't really good enough
11875
if test -n "$STRIP" ; then
11876
striplib="$STRIP -x"
11877
echo "$as_me:$LINENO: result: yes" >&5
11878
echo "${ECHO_T}yes" >&6
11880
echo "$as_me:$LINENO: result: no" >&5
11881
echo "${ECHO_T}no" >&6
11885
echo "$as_me:$LINENO: result: no" >&5
11886
echo "${ECHO_T}no" >&6
11891
if test "x$enable_dlopen" != xyes; then
11892
enable_dlopen=unknown
11893
enable_dlopen_self=unknown
11894
enable_dlopen_self_static=unknown
11901
lt_cv_dlopen="load_add_on"
11903
lt_cv_dlopen_self=yes
11907
lt_cv_dlopen="LoadLibrary"
11912
lt_cv_dlopen="dlopen"
11917
# if libdl is installed we need to link against it
11918
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11919
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11920
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11921
echo $ECHO_N "(cached) $ECHO_C" >&6
11923
ac_check_lib_save_LIBS=$LIBS
11925
cat >conftest.$ac_ext <<_ACEOF
11928
cat confdefs.h >>conftest.$ac_ext
11929
cat >>conftest.$ac_ext <<_ACEOF
11930
/* end confdefs.h. */
11932
/* Override any gcc2 internal prototype to avoid an error. */
11936
/* We use char because int might match the return type of a gcc2
11937
builtin and then its argument prototype would still apply. */
11947
rm -f conftest.$ac_objext conftest$ac_exeext
11948
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11949
(eval $ac_link) 2>conftest.er1
11951
grep -v '^ *+' conftest.er1 >conftest.err
11953
cat conftest.err >&5
11954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955
(exit $ac_status); } &&
11956
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11957
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958
(eval $ac_try) 2>&5
11960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961
(exit $ac_status); }; } &&
11962
{ ac_try='test -s conftest$ac_exeext'
11963
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964
(eval $ac_try) 2>&5
11966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967
(exit $ac_status); }; }; then
11968
ac_cv_lib_dl_dlopen=yes
11970
echo "$as_me: failed program was:" >&5
11971
sed 's/^/| /' conftest.$ac_ext >&5
11973
ac_cv_lib_dl_dlopen=no
11975
rm -f conftest.err conftest.$ac_objext \
11976
conftest$ac_exeext conftest.$ac_ext
11977
LIBS=$ac_check_lib_save_LIBS
11979
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11980
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11981
if test $ac_cv_lib_dl_dlopen = yes; then
11982
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11985
lt_cv_dlopen="dyld"
11987
lt_cv_dlopen_self=yes
11994
echo "$as_me:$LINENO: checking for shl_load" >&5
11995
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11996
if test "${ac_cv_func_shl_load+set}" = set; then
11997
echo $ECHO_N "(cached) $ECHO_C" >&6
11999
cat >conftest.$ac_ext <<_ACEOF
12002
cat confdefs.h >>conftest.$ac_ext
12003
cat >>conftest.$ac_ext <<_ACEOF
12004
/* end confdefs.h. */
12005
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12006
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12007
#define shl_load innocuous_shl_load
12009
/* System header to define __stub macros and hopefully few prototypes,
12010
which can conflict with char shl_load (); below.
12011
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12012
<limits.h> exists even on freestanding compilers. */
12015
# include <limits.h>
12017
# include <assert.h>
12022
/* Override any gcc2 internal prototype to avoid an error. */
12027
/* We use char because int might match the return type of a gcc2
12028
builtin and then its argument prototype would still apply. */
12030
/* The GNU C library defines this for functions which it implements
12031
to always fail with ENOSYS. Some functions are actually named
12032
something starting with __ and the normal name is an alias. */
12033
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12036
char (*f) () = shl_load;
12045
return f != shl_load;
12050
rm -f conftest.$ac_objext conftest$ac_exeext
12051
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12052
(eval $ac_link) 2>conftest.er1
12054
grep -v '^ *+' conftest.er1 >conftest.err
12056
cat conftest.err >&5
12057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058
(exit $ac_status); } &&
12059
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12060
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061
(eval $ac_try) 2>&5
12063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064
(exit $ac_status); }; } &&
12065
{ ac_try='test -s conftest$ac_exeext'
12066
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067
(eval $ac_try) 2>&5
12069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070
(exit $ac_status); }; }; then
12071
ac_cv_func_shl_load=yes
12073
echo "$as_me: failed program was:" >&5
12074
sed 's/^/| /' conftest.$ac_ext >&5
12076
ac_cv_func_shl_load=no
12078
rm -f conftest.err conftest.$ac_objext \
12079
conftest$ac_exeext conftest.$ac_ext
12081
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12082
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12083
if test $ac_cv_func_shl_load = yes; then
12084
lt_cv_dlopen="shl_load"
12086
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12087
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12088
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12089
echo $ECHO_N "(cached) $ECHO_C" >&6
12091
ac_check_lib_save_LIBS=$LIBS
12093
cat >conftest.$ac_ext <<_ACEOF
12096
cat confdefs.h >>conftest.$ac_ext
12097
cat >>conftest.$ac_ext <<_ACEOF
12098
/* end confdefs.h. */
12100
/* Override any gcc2 internal prototype to avoid an error. */
12104
/* We use char because int might match the return type of a gcc2
12105
builtin and then its argument prototype would still apply. */
12115
rm -f conftest.$ac_objext conftest$ac_exeext
12116
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12117
(eval $ac_link) 2>conftest.er1
12119
grep -v '^ *+' conftest.er1 >conftest.err
12121
cat conftest.err >&5
12122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123
(exit $ac_status); } &&
12124
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12125
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126
(eval $ac_try) 2>&5
12128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129
(exit $ac_status); }; } &&
12130
{ ac_try='test -s conftest$ac_exeext'
12131
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132
(eval $ac_try) 2>&5
12134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135
(exit $ac_status); }; }; then
12136
ac_cv_lib_dld_shl_load=yes
12138
echo "$as_me: failed program was:" >&5
12139
sed 's/^/| /' conftest.$ac_ext >&5
12141
ac_cv_lib_dld_shl_load=no
12143
rm -f conftest.err conftest.$ac_objext \
12144
conftest$ac_exeext conftest.$ac_ext
12145
LIBS=$ac_check_lib_save_LIBS
12147
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12148
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12149
if test $ac_cv_lib_dld_shl_load = yes; then
12150
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12152
echo "$as_me:$LINENO: checking for dlopen" >&5
12153
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12154
if test "${ac_cv_func_dlopen+set}" = set; then
12155
echo $ECHO_N "(cached) $ECHO_C" >&6
12157
cat >conftest.$ac_ext <<_ACEOF
12160
cat confdefs.h >>conftest.$ac_ext
12161
cat >>conftest.$ac_ext <<_ACEOF
12162
/* end confdefs.h. */
12163
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12164
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12165
#define dlopen innocuous_dlopen
12167
/* System header to define __stub macros and hopefully few prototypes,
12168
which can conflict with char dlopen (); below.
12169
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12170
<limits.h> exists even on freestanding compilers. */
12173
# include <limits.h>
12175
# include <assert.h>
12180
/* Override any gcc2 internal prototype to avoid an error. */
12185
/* We use char because int might match the return type of a gcc2
12186
builtin and then its argument prototype would still apply. */
12188
/* The GNU C library defines this for functions which it implements
12189
to always fail with ENOSYS. Some functions are actually named
12190
something starting with __ and the normal name is an alias. */
12191
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12194
char (*f) () = dlopen;
12203
return f != dlopen;
12208
rm -f conftest.$ac_objext conftest$ac_exeext
12209
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12210
(eval $ac_link) 2>conftest.er1
12212
grep -v '^ *+' conftest.er1 >conftest.err
12214
cat conftest.err >&5
12215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216
(exit $ac_status); } &&
12217
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219
(eval $ac_try) 2>&5
12221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222
(exit $ac_status); }; } &&
12223
{ ac_try='test -s conftest$ac_exeext'
12224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225
(eval $ac_try) 2>&5
12227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228
(exit $ac_status); }; }; then
12229
ac_cv_func_dlopen=yes
12231
echo "$as_me: failed program was:" >&5
12232
sed 's/^/| /' conftest.$ac_ext >&5
12234
ac_cv_func_dlopen=no
12236
rm -f conftest.err conftest.$ac_objext \
12237
conftest$ac_exeext conftest.$ac_ext
12239
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12240
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12241
if test $ac_cv_func_dlopen = yes; then
12242
lt_cv_dlopen="dlopen"
12244
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12245
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12246
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12247
echo $ECHO_N "(cached) $ECHO_C" >&6
12249
ac_check_lib_save_LIBS=$LIBS
12251
cat >conftest.$ac_ext <<_ACEOF
12254
cat confdefs.h >>conftest.$ac_ext
12255
cat >>conftest.$ac_ext <<_ACEOF
12256
/* end confdefs.h. */
12258
/* Override any gcc2 internal prototype to avoid an error. */
12262
/* We use char because int might match the return type of a gcc2
12263
builtin and then its argument prototype would still apply. */
12273
rm -f conftest.$ac_objext conftest$ac_exeext
12274
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275
(eval $ac_link) 2>conftest.er1
12277
grep -v '^ *+' conftest.er1 >conftest.err
12279
cat conftest.err >&5
12280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281
(exit $ac_status); } &&
12282
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284
(eval $ac_try) 2>&5
12286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287
(exit $ac_status); }; } &&
12288
{ ac_try='test -s conftest$ac_exeext'
12289
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290
(eval $ac_try) 2>&5
12292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293
(exit $ac_status); }; }; then
12294
ac_cv_lib_dl_dlopen=yes
12296
echo "$as_me: failed program was:" >&5
12297
sed 's/^/| /' conftest.$ac_ext >&5
12299
ac_cv_lib_dl_dlopen=no
12301
rm -f conftest.err conftest.$ac_objext \
12302
conftest$ac_exeext conftest.$ac_ext
12303
LIBS=$ac_check_lib_save_LIBS
12305
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12306
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12307
if test $ac_cv_lib_dl_dlopen = yes; then
12308
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12310
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12311
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12312
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12313
echo $ECHO_N "(cached) $ECHO_C" >&6
12315
ac_check_lib_save_LIBS=$LIBS
12316
LIBS="-lsvld $LIBS"
12317
cat >conftest.$ac_ext <<_ACEOF
12320
cat confdefs.h >>conftest.$ac_ext
12321
cat >>conftest.$ac_ext <<_ACEOF
12322
/* end confdefs.h. */
12324
/* Override any gcc2 internal prototype to avoid an error. */
12328
/* We use char because int might match the return type of a gcc2
12329
builtin and then its argument prototype would still apply. */
12339
rm -f conftest.$ac_objext conftest$ac_exeext
12340
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341
(eval $ac_link) 2>conftest.er1
12343
grep -v '^ *+' conftest.er1 >conftest.err
12345
cat conftest.err >&5
12346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347
(exit $ac_status); } &&
12348
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350
(eval $ac_try) 2>&5
12352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353
(exit $ac_status); }; } &&
12354
{ ac_try='test -s conftest$ac_exeext'
12355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356
(eval $ac_try) 2>&5
12358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359
(exit $ac_status); }; }; then
12360
ac_cv_lib_svld_dlopen=yes
12362
echo "$as_me: failed program was:" >&5
12363
sed 's/^/| /' conftest.$ac_ext >&5
12365
ac_cv_lib_svld_dlopen=no
12367
rm -f conftest.err conftest.$ac_objext \
12368
conftest$ac_exeext conftest.$ac_ext
12369
LIBS=$ac_check_lib_save_LIBS
12371
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12372
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12373
if test $ac_cv_lib_svld_dlopen = yes; then
12374
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12376
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12377
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12378
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12379
echo $ECHO_N "(cached) $ECHO_C" >&6
12381
ac_check_lib_save_LIBS=$LIBS
12383
cat >conftest.$ac_ext <<_ACEOF
12386
cat confdefs.h >>conftest.$ac_ext
12387
cat >>conftest.$ac_ext <<_ACEOF
12388
/* end confdefs.h. */
12390
/* 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. */
12405
rm -f conftest.$ac_objext conftest$ac_exeext
12406
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407
(eval $ac_link) 2>conftest.er1
12409
grep -v '^ *+' conftest.er1 >conftest.err
12411
cat conftest.err >&5
12412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413
(exit $ac_status); } &&
12414
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12415
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416
(eval $ac_try) 2>&5
12418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419
(exit $ac_status); }; } &&
12420
{ ac_try='test -s conftest$ac_exeext'
12421
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422
(eval $ac_try) 2>&5
12424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425
(exit $ac_status); }; }; then
12426
ac_cv_lib_dld_dld_link=yes
12428
echo "$as_me: failed program was:" >&5
12429
sed 's/^/| /' conftest.$ac_ext >&5
12431
ac_cv_lib_dld_dld_link=no
12433
rm -f conftest.err conftest.$ac_objext \
12434
conftest$ac_exeext conftest.$ac_ext
12435
LIBS=$ac_check_lib_save_LIBS
12437
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12438
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12439
if test $ac_cv_lib_dld_dld_link = yes; then
12440
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12461
if test "x$lt_cv_dlopen" != xno; then
12467
case $lt_cv_dlopen in
12469
save_CPPFLAGS="$CPPFLAGS"
12470
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12472
save_LDFLAGS="$LDFLAGS"
12473
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12476
LIBS="$lt_cv_dlopen_libs $LIBS"
12478
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12479
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12480
if test "${lt_cv_dlopen_self+set}" = set; then
12481
echo $ECHO_N "(cached) $ECHO_C" >&6
12483
if test "$cross_compiling" = yes; then :
12484
lt_cv_dlopen_self=cross
12486
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12487
lt_status=$lt_dlunknown
12488
cat > conftest.$ac_ext <<EOF
12489
#line 12489 "configure"
12490
#include "confdefs.h"
12499
# define LT_DLGLOBAL RTLD_GLOBAL
12502
# define LT_DLGLOBAL DL_GLOBAL
12504
# define LT_DLGLOBAL 0
12508
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12509
find out it does not work in some platform. */
12510
#ifndef LT_DLLAZY_OR_NOW
12512
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12515
# define LT_DLLAZY_OR_NOW DL_LAZY
12518
# define LT_DLLAZY_OR_NOW RTLD_NOW
12521
# define LT_DLLAZY_OR_NOW DL_NOW
12523
# define LT_DLLAZY_OR_NOW 0
12531
extern "C" void exit (int);
12534
void fnord() { int i=42;}
12537
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12538
int status = $lt_dlunknown;
12542
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12543
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12544
/* dlclose (self); */
12550
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551
(eval $ac_link) 2>&5
12553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12555
(./conftest; exit; ) 2>/dev/null
12557
case x$lt_status in
12558
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12559
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12560
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12563
# compilation failed
12564
lt_cv_dlopen_self=no
12571
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12572
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12574
if test "x$lt_cv_dlopen_self" = xyes; then
12575
LDFLAGS="$LDFLAGS $link_static_flag"
12576
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12577
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12578
if test "${lt_cv_dlopen_self_static+set}" = set; then
12579
echo $ECHO_N "(cached) $ECHO_C" >&6
12581
if test "$cross_compiling" = yes; then :
12582
lt_cv_dlopen_self_static=cross
12584
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12585
lt_status=$lt_dlunknown
12586
cat > conftest.$ac_ext <<EOF
12587
#line 12587 "configure"
12588
#include "confdefs.h"
12597
# define LT_DLGLOBAL RTLD_GLOBAL
12600
# define LT_DLGLOBAL DL_GLOBAL
12602
# define LT_DLGLOBAL 0
12606
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12607
find out it does not work in some platform. */
12608
#ifndef LT_DLLAZY_OR_NOW
12610
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12613
# define LT_DLLAZY_OR_NOW DL_LAZY
12616
# define LT_DLLAZY_OR_NOW RTLD_NOW
12619
# define LT_DLLAZY_OR_NOW DL_NOW
12621
# define LT_DLLAZY_OR_NOW 0
12629
extern "C" void exit (int);
12632
void fnord() { int i=42;}
12635
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12636
int status = $lt_dlunknown;
12640
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12641
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12642
/* dlclose (self); */
12648
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649
(eval $ac_link) 2>&5
12651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12653
(./conftest; exit; ) 2>/dev/null
12655
case x$lt_status in
12656
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12657
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12658
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12661
# compilation failed
12662
lt_cv_dlopen_self_static=no
12669
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12670
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12673
CPPFLAGS="$save_CPPFLAGS"
12674
LDFLAGS="$save_LDFLAGS"
12679
case $lt_cv_dlopen_self in
12680
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12681
*) enable_dlopen_self=unknown ;;
12684
case $lt_cv_dlopen_self_static in
12685
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12686
*) enable_dlopen_self_static=unknown ;;
12691
12466
# The else clause should only fire when bootstrapping the
12692
12467
# libtool distribution, otherwise you forgot to ship ltmain.sh
17370
17686
enable_fast_install=needless
17375
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17376
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17377
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17378
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17379
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17380
echo "$as_me:$LINENO: result: yes" >&5
17381
echo "${ECHO_T}yes" >&6
17383
# FIXME - insert some real tests, host_os isn't really good enough
17386
if test -n "$STRIP" ; then
17387
striplib="$STRIP -x"
17388
echo "$as_me:$LINENO: result: yes" >&5
17389
echo "${ECHO_T}yes" >&6
17391
echo "$as_me:$LINENO: result: no" >&5
17392
echo "${ECHO_T}no" >&6
17396
echo "$as_me:$LINENO: result: no" >&5
17397
echo "${ECHO_T}no" >&6
17402
if test "x$enable_dlopen" != xyes; then
17403
enable_dlopen=unknown
17404
enable_dlopen_self=unknown
17405
enable_dlopen_self_static=unknown
17412
lt_cv_dlopen="load_add_on"
17414
lt_cv_dlopen_self=yes
17418
lt_cv_dlopen="LoadLibrary"
17423
lt_cv_dlopen="dlopen"
17428
# if libdl is installed we need to link against it
17429
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17430
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17431
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17432
echo $ECHO_N "(cached) $ECHO_C" >&6
17434
ac_check_lib_save_LIBS=$LIBS
17436
cat >conftest.$ac_ext <<_ACEOF
17439
cat confdefs.h >>conftest.$ac_ext
17440
cat >>conftest.$ac_ext <<_ACEOF
17441
/* end confdefs.h. */
17443
/* Override any gcc2 internal prototype to avoid an error. */
17447
/* We use char because int might match the return type of a gcc2
17448
builtin and then its argument prototype would still apply. */
17458
rm -f conftest.$ac_objext conftest$ac_exeext
17459
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460
(eval $ac_link) 2>conftest.er1
17462
grep -v '^ *+' conftest.er1 >conftest.err
17464
cat conftest.err >&5
17465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466
(exit $ac_status); } &&
17467
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469
(eval $ac_try) 2>&5
17471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472
(exit $ac_status); }; } &&
17473
{ ac_try='test -s conftest$ac_exeext'
17474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475
(eval $ac_try) 2>&5
17477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478
(exit $ac_status); }; }; then
17479
ac_cv_lib_dl_dlopen=yes
17481
echo "$as_me: failed program was:" >&5
17482
sed 's/^/| /' conftest.$ac_ext >&5
17484
ac_cv_lib_dl_dlopen=no
17486
rm -f conftest.err conftest.$ac_objext \
17487
conftest$ac_exeext conftest.$ac_ext
17488
LIBS=$ac_check_lib_save_LIBS
17490
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17491
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17492
if test $ac_cv_lib_dl_dlopen = yes; then
17493
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17496
lt_cv_dlopen="dyld"
17498
lt_cv_dlopen_self=yes
17505
echo "$as_me:$LINENO: checking for shl_load" >&5
17506
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17507
if test "${ac_cv_func_shl_load+set}" = set; then
17508
echo $ECHO_N "(cached) $ECHO_C" >&6
17510
cat >conftest.$ac_ext <<_ACEOF
17513
cat confdefs.h >>conftest.$ac_ext
17514
cat >>conftest.$ac_ext <<_ACEOF
17515
/* end confdefs.h. */
17516
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17517
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17518
#define shl_load innocuous_shl_load
17520
/* System header to define __stub macros and hopefully few prototypes,
17521
which can conflict with char shl_load (); below.
17522
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523
<limits.h> exists even on freestanding compilers. */
17526
# include <limits.h>
17528
# include <assert.h>
17533
/* Override any gcc2 internal prototype to avoid an error. */
17538
/* We use char because int might match the return type of a gcc2
17539
builtin and then its argument prototype would still apply. */
17541
/* The GNU C library defines this for functions which it implements
17542
to always fail with ENOSYS. Some functions are actually named
17543
something starting with __ and the normal name is an alias. */
17544
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17547
char (*f) () = shl_load;
17556
return f != shl_load;
17561
rm -f conftest.$ac_objext conftest$ac_exeext
17562
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563
(eval $ac_link) 2>conftest.er1
17565
grep -v '^ *+' conftest.er1 >conftest.err
17567
cat conftest.err >&5
17568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569
(exit $ac_status); } &&
17570
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572
(eval $ac_try) 2>&5
17574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575
(exit $ac_status); }; } &&
17576
{ ac_try='test -s conftest$ac_exeext'
17577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578
(eval $ac_try) 2>&5
17580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581
(exit $ac_status); }; }; then
17582
ac_cv_func_shl_load=yes
17584
echo "$as_me: failed program was:" >&5
17585
sed 's/^/| /' conftest.$ac_ext >&5
17587
ac_cv_func_shl_load=no
17589
rm -f conftest.err conftest.$ac_objext \
17590
conftest$ac_exeext conftest.$ac_ext
17592
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17593
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17594
if test $ac_cv_func_shl_load = yes; then
17595
lt_cv_dlopen="shl_load"
17597
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17598
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17599
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17600
echo $ECHO_N "(cached) $ECHO_C" >&6
17602
ac_check_lib_save_LIBS=$LIBS
17604
cat >conftest.$ac_ext <<_ACEOF
17607
cat confdefs.h >>conftest.$ac_ext
17608
cat >>conftest.$ac_ext <<_ACEOF
17609
/* end confdefs.h. */
17611
/* Override any gcc2 internal prototype to avoid an error. */
17615
/* We use char because int might match the return type of a gcc2
17616
builtin and then its argument prototype would still apply. */
17626
rm -f conftest.$ac_objext conftest$ac_exeext
17627
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17628
(eval $ac_link) 2>conftest.er1
17630
grep -v '^ *+' conftest.er1 >conftest.err
17632
cat conftest.err >&5
17633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634
(exit $ac_status); } &&
17635
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637
(eval $ac_try) 2>&5
17639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640
(exit $ac_status); }; } &&
17641
{ ac_try='test -s conftest$ac_exeext'
17642
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643
(eval $ac_try) 2>&5
17645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646
(exit $ac_status); }; }; then
17647
ac_cv_lib_dld_shl_load=yes
17649
echo "$as_me: failed program was:" >&5
17650
sed 's/^/| /' conftest.$ac_ext >&5
17652
ac_cv_lib_dld_shl_load=no
17654
rm -f conftest.err conftest.$ac_objext \
17655
conftest$ac_exeext conftest.$ac_ext
17656
LIBS=$ac_check_lib_save_LIBS
17658
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17659
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17660
if test $ac_cv_lib_dld_shl_load = yes; then
17661
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17663
echo "$as_me:$LINENO: checking for dlopen" >&5
17664
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17665
if test "${ac_cv_func_dlopen+set}" = set; then
17666
echo $ECHO_N "(cached) $ECHO_C" >&6
17668
cat >conftest.$ac_ext <<_ACEOF
17671
cat confdefs.h >>conftest.$ac_ext
17672
cat >>conftest.$ac_ext <<_ACEOF
17673
/* end confdefs.h. */
17674
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17675
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17676
#define dlopen innocuous_dlopen
17678
/* System header to define __stub macros and hopefully few prototypes,
17679
which can conflict with char dlopen (); below.
17680
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17681
<limits.h> exists even on freestanding compilers. */
17684
# include <limits.h>
17686
# include <assert.h>
17691
/* Override any gcc2 internal prototype to avoid an error. */
17696
/* We use char because int might match the return type of a gcc2
17697
builtin and then its argument prototype would still apply. */
17699
/* The GNU C library defines this for functions which it implements
17700
to always fail with ENOSYS. Some functions are actually named
17701
something starting with __ and the normal name is an alias. */
17702
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17705
char (*f) () = dlopen;
17714
return f != dlopen;
17719
rm -f conftest.$ac_objext conftest$ac_exeext
17720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17721
(eval $ac_link) 2>conftest.er1
17723
grep -v '^ *+' conftest.er1 >conftest.err
17725
cat conftest.err >&5
17726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727
(exit $ac_status); } &&
17728
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730
(eval $ac_try) 2>&5
17732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733
(exit $ac_status); }; } &&
17734
{ ac_try='test -s conftest$ac_exeext'
17735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736
(eval $ac_try) 2>&5
17738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739
(exit $ac_status); }; }; then
17740
ac_cv_func_dlopen=yes
17742
echo "$as_me: failed program was:" >&5
17743
sed 's/^/| /' conftest.$ac_ext >&5
17745
ac_cv_func_dlopen=no
17747
rm -f conftest.err conftest.$ac_objext \
17748
conftest$ac_exeext conftest.$ac_ext
17750
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17751
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17752
if test $ac_cv_func_dlopen = yes; then
17753
lt_cv_dlopen="dlopen"
17755
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17756
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17757
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17758
echo $ECHO_N "(cached) $ECHO_C" >&6
17760
ac_check_lib_save_LIBS=$LIBS
17762
cat >conftest.$ac_ext <<_ACEOF
17765
cat confdefs.h >>conftest.$ac_ext
17766
cat >>conftest.$ac_ext <<_ACEOF
17767
/* end confdefs.h. */
17769
/* Override any gcc2 internal prototype to avoid an error. */
17773
/* We use char because int might match the return type of a gcc2
17774
builtin and then its argument prototype would still apply. */
17784
rm -f conftest.$ac_objext conftest$ac_exeext
17785
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786
(eval $ac_link) 2>conftest.er1
17788
grep -v '^ *+' conftest.er1 >conftest.err
17790
cat conftest.err >&5
17791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792
(exit $ac_status); } &&
17793
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795
(eval $ac_try) 2>&5
17797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798
(exit $ac_status); }; } &&
17799
{ ac_try='test -s conftest$ac_exeext'
17800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801
(eval $ac_try) 2>&5
17803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804
(exit $ac_status); }; }; then
17805
ac_cv_lib_dl_dlopen=yes
17807
echo "$as_me: failed program was:" >&5
17808
sed 's/^/| /' conftest.$ac_ext >&5
17810
ac_cv_lib_dl_dlopen=no
17812
rm -f conftest.err conftest.$ac_objext \
17813
conftest$ac_exeext conftest.$ac_ext
17814
LIBS=$ac_check_lib_save_LIBS
17816
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17817
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17818
if test $ac_cv_lib_dl_dlopen = yes; then
17819
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17821
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17822
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17823
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17824
echo $ECHO_N "(cached) $ECHO_C" >&6
17826
ac_check_lib_save_LIBS=$LIBS
17827
LIBS="-lsvld $LIBS"
17828
cat >conftest.$ac_ext <<_ACEOF
17831
cat confdefs.h >>conftest.$ac_ext
17832
cat >>conftest.$ac_ext <<_ACEOF
17833
/* end confdefs.h. */
17835
/* Override any gcc2 internal prototype to avoid an error. */
17839
/* We use char because int might match the return type of a gcc2
17840
builtin and then its argument prototype would still apply. */
17850
rm -f conftest.$ac_objext conftest$ac_exeext
17851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852
(eval $ac_link) 2>conftest.er1
17854
grep -v '^ *+' conftest.er1 >conftest.err
17856
cat conftest.err >&5
17857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858
(exit $ac_status); } &&
17859
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861
(eval $ac_try) 2>&5
17863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864
(exit $ac_status); }; } &&
17865
{ ac_try='test -s conftest$ac_exeext'
17866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867
(eval $ac_try) 2>&5
17869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870
(exit $ac_status); }; }; then
17871
ac_cv_lib_svld_dlopen=yes
17873
echo "$as_me: failed program was:" >&5
17874
sed 's/^/| /' conftest.$ac_ext >&5
17876
ac_cv_lib_svld_dlopen=no
17878
rm -f conftest.err conftest.$ac_objext \
17879
conftest$ac_exeext conftest.$ac_ext
17880
LIBS=$ac_check_lib_save_LIBS
17882
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17883
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17884
if test $ac_cv_lib_svld_dlopen = yes; then
17885
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17887
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17888
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17889
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17890
echo $ECHO_N "(cached) $ECHO_C" >&6
17892
ac_check_lib_save_LIBS=$LIBS
17894
cat >conftest.$ac_ext <<_ACEOF
17897
cat confdefs.h >>conftest.$ac_ext
17898
cat >>conftest.$ac_ext <<_ACEOF
17899
/* end confdefs.h. */
17901
/* Override any gcc2 internal prototype to avoid an error. */
17905
/* We use char because int might match the return type of a gcc2
17906
builtin and then its argument prototype would still apply. */
17916
rm -f conftest.$ac_objext conftest$ac_exeext
17917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918
(eval $ac_link) 2>conftest.er1
17920
grep -v '^ *+' conftest.er1 >conftest.err
17922
cat conftest.err >&5
17923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924
(exit $ac_status); } &&
17925
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927
(eval $ac_try) 2>&5
17929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930
(exit $ac_status); }; } &&
17931
{ ac_try='test -s conftest$ac_exeext'
17932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933
(eval $ac_try) 2>&5
17935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936
(exit $ac_status); }; }; then
17937
ac_cv_lib_dld_dld_link=yes
17939
echo "$as_me: failed program was:" >&5
17940
sed 's/^/| /' conftest.$ac_ext >&5
17942
ac_cv_lib_dld_dld_link=no
17944
rm -f conftest.err conftest.$ac_objext \
17945
conftest$ac_exeext conftest.$ac_ext
17946
LIBS=$ac_check_lib_save_LIBS
17948
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17949
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17950
if test $ac_cv_lib_dld_dld_link = yes; then
17951
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17972
if test "x$lt_cv_dlopen" != xno; then
17978
case $lt_cv_dlopen in
17980
save_CPPFLAGS="$CPPFLAGS"
17981
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17983
save_LDFLAGS="$LDFLAGS"
17984
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17987
LIBS="$lt_cv_dlopen_libs $LIBS"
17989
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17990
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17991
if test "${lt_cv_dlopen_self+set}" = set; then
17992
echo $ECHO_N "(cached) $ECHO_C" >&6
17994
if test "$cross_compiling" = yes; then :
17995
lt_cv_dlopen_self=cross
17997
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17998
lt_status=$lt_dlunknown
17999
cat > conftest.$ac_ext <<EOF
18000
#line 18000 "configure"
18001
#include "confdefs.h"
18010
# define LT_DLGLOBAL RTLD_GLOBAL
18013
# define LT_DLGLOBAL DL_GLOBAL
18015
# define LT_DLGLOBAL 0
18019
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18020
find out it does not work in some platform. */
18021
#ifndef LT_DLLAZY_OR_NOW
18023
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18026
# define LT_DLLAZY_OR_NOW DL_LAZY
18029
# define LT_DLLAZY_OR_NOW RTLD_NOW
18032
# define LT_DLLAZY_OR_NOW DL_NOW
18034
# define LT_DLLAZY_OR_NOW 0
18042
extern "C" void exit (int);
18045
void fnord() { int i=42;}
18048
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18049
int status = $lt_dlunknown;
18053
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18054
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18055
/* dlclose (self); */
18061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062
(eval $ac_link) 2>&5
18064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18066
(./conftest; exit; ) 2>/dev/null
18068
case x$lt_status in
18069
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18070
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18071
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18074
# compilation failed
18075
lt_cv_dlopen_self=no
18082
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18083
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18085
if test "x$lt_cv_dlopen_self" = xyes; then
18086
LDFLAGS="$LDFLAGS $link_static_flag"
18087
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18088
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18089
if test "${lt_cv_dlopen_self_static+set}" = set; then
18090
echo $ECHO_N "(cached) $ECHO_C" >&6
18092
if test "$cross_compiling" = yes; then :
18093
lt_cv_dlopen_self_static=cross
18095
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18096
lt_status=$lt_dlunknown
18097
cat > conftest.$ac_ext <<EOF
18098
#line 18098 "configure"
18099
#include "confdefs.h"
18108
# define LT_DLGLOBAL RTLD_GLOBAL
18111
# define LT_DLGLOBAL DL_GLOBAL
18113
# define LT_DLGLOBAL 0
18117
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18118
find out it does not work in some platform. */
18119
#ifndef LT_DLLAZY_OR_NOW
18121
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18124
# define LT_DLLAZY_OR_NOW DL_LAZY
18127
# define LT_DLLAZY_OR_NOW RTLD_NOW
18130
# define LT_DLLAZY_OR_NOW DL_NOW
18132
# define LT_DLLAZY_OR_NOW 0
18140
extern "C" void exit (int);
18143
void fnord() { int i=42;}
18146
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18147
int status = $lt_dlunknown;
18151
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18152
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18153
/* dlclose (self); */
18159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18160
(eval $ac_link) 2>&5
18162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18164
(./conftest; exit; ) 2>/dev/null
18166
case x$lt_status in
18167
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18168
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18169
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18172
# compilation failed
18173
lt_cv_dlopen_self_static=no
18180
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18181
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18184
CPPFLAGS="$save_CPPFLAGS"
18185
LDFLAGS="$save_LDFLAGS"
18190
case $lt_cv_dlopen_self in
18191
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18192
*) enable_dlopen_self=unknown ;;
18195
case $lt_cv_dlopen_self_static in
18196
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18197
*) enable_dlopen_self_static=unknown ;;
18202
17690
# The else clause should only fire when bootstrapping the
18203
17691
# libtool distribution, otherwise you forgot to ship ltmain.sh
19220
18760
pkg_failed=no
19221
echo "$as_me:$LINENO: checking for X" >&5
19222
echo $ECHO_N "checking for X... $ECHO_C" >&6
19224
if test -n "$PKG_CONFIG"; then
19225
if test -n "$PKG_CONFIG" && \
19226
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
19227
($PKG_CONFIG --exists --print-errors "x11") 2>&5
19229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230
(exit $ac_status); }; then
19231
pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
19238
if test -n "$PKG_CONFIG"; then
19239
if test -n "$PKG_CONFIG" && \
19240
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
19241
($PKG_CONFIG --exists --print-errors "x11") 2>&5
19243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244
(exit $ac_status); }; then
19245
pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
19253
if test $pkg_failed = yes; then
19254
X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
19255
# Put the nasty error message in config.log where it belongs
19256
echo "$X_PKG_ERRORS" 1>&5
19258
x_found_with_pkgconfig=no
19259
elif test $pkg_failed = untried; then
19260
x_found_with_pkgconfig=no
19262
X_CFLAGS=$pkg_cv_X_CFLAGS
19263
X_LIBS=$pkg_cv_X_LIBS
19264
x_found_with_pkgconfig=yes
19267
if test "$x_found_with_pkgconfig" = "no"
19270
if test "x$ac_path_x_has_been_run" != xyes; then
19271
echo "$as_me:$LINENO: checking for X" >&5
19272
echo $ECHO_N "checking for X... $ECHO_C" >&6
19274
ac_path_x_has_been_run=yes
19276
# Check whether --with-x or --without-x was given.
19277
if test "${with_x+set}" = set; then
19281
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19282
if test "x$with_x" = xno; then
19283
# The user explicitly disabled X.
19286
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19287
# Both variables are already set.
19290
if test "${ac_cv_have_x+set}" = set; then
19291
echo $ECHO_N "(cached) $ECHO_C" >&6
19293
# One or both of the vars are not set, and there is no cached value.
19294
ac_x_includes=no ac_x_libraries=no
19295
rm -fr conftest.dir
19296
if mkdir conftest.dir; then
19298
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
19299
cat >Imakefile <<'_ACEOF'
19301
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19303
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19304
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19305
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19306
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19307
for ac_extension in a so sl; do
19308
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19309
test -f $ac_im_libdir/libX11.$ac_extension; then
19310
ac_im_usrlibdir=$ac_im_libdir; break
19313
# Screen out bogus values from the imake configuration. They are
19314
# bogus both because they are the default anyway, and because
19315
# using them would break gcc on systems where it needs fixed includes.
19316
case $ac_im_incroot in
19318
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19320
case $ac_im_usrlibdir in
19321
/usr/lib | /lib) ;;
19322
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19326
rm -fr conftest.dir
19329
# Standard set of common directories for X headers.
19330
# Check X11 before X11Rn because it is often a symlink to the current release.
19342
/usr/local/X11/include
19343
/usr/local/X11R6/include
19344
/usr/local/X11R5/include
19345
/usr/local/X11R4/include
19347
/usr/local/include/X11
19348
/usr/local/include/X11R6
19349
/usr/local/include/X11R5
19350
/usr/local/include/X11R4
19354
/usr/XFree86/include/X11
19358
/usr/unsupported/include
19359
/usr/athena/include
19360
/usr/local/x11r5/include
19361
/usr/lpp/Xamples/include
19363
/usr/openwin/include
19364
/usr/openwin/share/include'
19366
if test "$ac_x_includes" = no; then
19367
# Guess where to find include files, by looking for a specified header file.
19368
# First, try using that file with no special directory specified.
19369
cat >conftest.$ac_ext <<_ACEOF
19372
cat confdefs.h >>conftest.$ac_ext
19373
cat >>conftest.$ac_ext <<_ACEOF
19374
/* end confdefs.h. */
19375
#include <X11/Intrinsic.h>
19377
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19378
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19380
grep -v '^ *+' conftest.er1 >conftest.err
19382
cat conftest.err >&5
19383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384
(exit $ac_status); } >/dev/null; then
19385
if test -s conftest.err; then
19386
ac_cpp_err=$ac_c_preproc_warn_flag
19387
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19394
if test -z "$ac_cpp_err"; then
19395
# We can compile using X headers with no special include directory.
19398
echo "$as_me: failed program was:" >&5
19399
sed 's/^/| /' conftest.$ac_ext >&5
19401
for ac_dir in $ac_x_header_dirs; do
19402
if test -r "$ac_dir/X11/Intrinsic.h"; then
19403
ac_x_includes=$ac_dir
19408
rm -f conftest.err conftest.$ac_ext
19409
fi # $ac_x_includes = no
19411
if test "$ac_x_libraries" = no; then
19412
# Check for the libraries.
19413
# See if we find them without any special options.
19414
# Don't add to $LIBS permanently.
19417
cat >conftest.$ac_ext <<_ACEOF
19420
cat confdefs.h >>conftest.$ac_ext
19421
cat >>conftest.$ac_ext <<_ACEOF
19422
/* end confdefs.h. */
19423
#include <X11/Intrinsic.h>
19432
rm -f conftest.$ac_objext conftest$ac_exeext
19433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19434
(eval $ac_link) 2>conftest.er1
19436
grep -v '^ *+' conftest.er1 >conftest.err
19438
cat conftest.err >&5
19439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440
(exit $ac_status); } &&
19441
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443
(eval $ac_try) 2>&5
19445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446
(exit $ac_status); }; } &&
19447
{ ac_try='test -s conftest$ac_exeext'
19448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449
(eval $ac_try) 2>&5
19451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452
(exit $ac_status); }; }; then
19454
# We can link X programs with no special library path.
19457
echo "$as_me: failed program was:" >&5
19458
sed 's/^/| /' conftest.$ac_ext >&5
19461
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19463
# Don't even attempt the hair of trying to link an X program!
19464
for ac_extension in a so sl; do
19465
if test -r $ac_dir/libXt.$ac_extension; then
19466
ac_x_libraries=$ac_dir
19472
rm -f conftest.err conftest.$ac_objext \
19473
conftest$ac_exeext conftest.$ac_ext
19474
fi # $ac_x_libraries = no
19476
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19477
# Didn't find X anywhere. Cache the known absence of X.
19478
ac_cv_have_x="have_x=no"
19480
# Record where we found X for the cache.
19481
ac_cv_have_x="have_x=yes \
19482
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19487
eval "$ac_cv_have_x"
19490
if test "$have_x" != yes; then
19491
echo "$as_me:$LINENO: result: $have_x" >&5
19492
echo "${ECHO_T}$have_x" >&6
19495
# If each of the values was on the command line, it overrides each guess.
19496
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19497
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19498
# Update the cache value to reflect the command line values.
19499
ac_cv_have_x="have_x=yes \
19500
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19501
# It might be that x_includes is empty (headers are found in the
19502
# standard search path. Then output the corresponding message
19503
ac_out_x_includes=$x_includes
19504
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
19505
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
19506
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
19510
if test "$no_x" = yes; then
19511
# Not all programs may use this symbol, but it does not hurt to define it.
19513
cat >>confdefs.h <<\_ACEOF
19514
#define X_DISPLAY_MISSING 1
19517
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19519
if test -n "$x_includes"; then
19520
X_CFLAGS="$X_CFLAGS -I$x_includes"
19523
# It would also be nice to do this for all -L options, not just this one.
19524
if test -n "$x_libraries"; then
19525
X_LIBS="$X_LIBS -L$x_libraries"
19526
# For Solaris; some versions of Sun CC require a space after -R and
19527
# others require no space. Words are not sufficient . . . .
19528
case `(uname -sr) 2>/dev/null` in
19530
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19531
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19532
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19533
cat >conftest.$ac_ext <<_ACEOF
19536
cat confdefs.h >>conftest.$ac_ext
19537
cat >>conftest.$ac_ext <<_ACEOF
19538
/* end confdefs.h. */
19548
rm -f conftest.$ac_objext conftest$ac_exeext
19549
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550
(eval $ac_link) 2>conftest.er1
19552
grep -v '^ *+' conftest.er1 >conftest.err
19554
cat conftest.err >&5
19555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556
(exit $ac_status); } &&
19557
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19558
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559
(eval $ac_try) 2>&5
19561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562
(exit $ac_status); }; } &&
19563
{ ac_try='test -s conftest$ac_exeext'
19564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565
(eval $ac_try) 2>&5
19567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568
(exit $ac_status); }; }; then
19571
echo "$as_me: failed program was:" >&5
19572
sed 's/^/| /' conftest.$ac_ext >&5
19576
rm -f conftest.err conftest.$ac_objext \
19577
conftest$ac_exeext conftest.$ac_ext
19578
if test $ac_R_nospace = yes; then
19579
echo "$as_me:$LINENO: result: no" >&5
19580
echo "${ECHO_T}no" >&6
19581
X_LIBS="$X_LIBS -R$x_libraries"
19583
LIBS="$ac_xsave_LIBS -R $x_libraries"
19584
cat >conftest.$ac_ext <<_ACEOF
19587
cat confdefs.h >>conftest.$ac_ext
19588
cat >>conftest.$ac_ext <<_ACEOF
19589
/* end confdefs.h. */
19599
rm -f conftest.$ac_objext conftest$ac_exeext
19600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19601
(eval $ac_link) 2>conftest.er1
19603
grep -v '^ *+' conftest.er1 >conftest.err
19605
cat conftest.err >&5
19606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607
(exit $ac_status); } &&
19608
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610
(eval $ac_try) 2>&5
19612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613
(exit $ac_status); }; } &&
19614
{ ac_try='test -s conftest$ac_exeext'
19615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616
(eval $ac_try) 2>&5
19618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619
(exit $ac_status); }; }; then
19622
echo "$as_me: failed program was:" >&5
19623
sed 's/^/| /' conftest.$ac_ext >&5
19627
rm -f conftest.err conftest.$ac_objext \
19628
conftest$ac_exeext conftest.$ac_ext
19629
if test $ac_R_space = yes; then
19630
echo "$as_me:$LINENO: result: yes" >&5
19631
echo "${ECHO_T}yes" >&6
19632
X_LIBS="$X_LIBS -R $x_libraries"
19634
echo "$as_me:$LINENO: result: neither works" >&5
19635
echo "${ECHO_T}neither works" >&6
19638
LIBS=$ac_xsave_LIBS
19642
# Check for system-dependent libraries X programs must link with.
19643
# Do this before checking for the system-independent R6 libraries
19644
# (-lICE), since we may need -lsocket or whatever for X linking.
19646
if test "$ISC" = yes; then
19647
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19649
# Martyn Johnson says this is needed for Ultrix, if the X
19650
# libraries were built with DECnet support. And Karl Berry says
19651
# the Alpha needs dnet_stub (dnet does not exist).
19652
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19653
cat >conftest.$ac_ext <<_ACEOF
19656
cat confdefs.h >>conftest.$ac_ext
19657
cat >>conftest.$ac_ext <<_ACEOF
19658
/* end confdefs.h. */
19660
/* Override any gcc2 internal prototype to avoid an error. */
19664
/* We use char because int might match the return type of a gcc2
19665
builtin and then its argument prototype would still apply. */
19666
char XOpenDisplay ();
19675
rm -f conftest.$ac_objext conftest$ac_exeext
19676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677
(eval $ac_link) 2>conftest.er1
19679
grep -v '^ *+' conftest.er1 >conftest.err
19681
cat conftest.err >&5
19682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683
(exit $ac_status); } &&
19684
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19685
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686
(eval $ac_try) 2>&5
19688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689
(exit $ac_status); }; } &&
19690
{ ac_try='test -s conftest$ac_exeext'
19691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692
(eval $ac_try) 2>&5
19694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695
(exit $ac_status); }; }; then
19698
echo "$as_me: failed program was:" >&5
19699
sed 's/^/| /' conftest.$ac_ext >&5
19701
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19702
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19703
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19704
echo $ECHO_N "(cached) $ECHO_C" >&6
19706
ac_check_lib_save_LIBS=$LIBS
19707
LIBS="-ldnet $LIBS"
19708
cat >conftest.$ac_ext <<_ACEOF
19711
cat confdefs.h >>conftest.$ac_ext
19712
cat >>conftest.$ac_ext <<_ACEOF
19713
/* end confdefs.h. */
19715
/* Override any gcc2 internal prototype to avoid an error. */
19719
/* We use char because int might match the return type of a gcc2
19720
builtin and then its argument prototype would still apply. */
19730
rm -f conftest.$ac_objext conftest$ac_exeext
19731
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19732
(eval $ac_link) 2>conftest.er1
19734
grep -v '^ *+' conftest.er1 >conftest.err
19736
cat conftest.err >&5
19737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738
(exit $ac_status); } &&
19739
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741
(eval $ac_try) 2>&5
19743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744
(exit $ac_status); }; } &&
19745
{ ac_try='test -s conftest$ac_exeext'
19746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747
(eval $ac_try) 2>&5
19749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750
(exit $ac_status); }; }; then
19751
ac_cv_lib_dnet_dnet_ntoa=yes
19753
echo "$as_me: failed program was:" >&5
19754
sed 's/^/| /' conftest.$ac_ext >&5
19756
ac_cv_lib_dnet_dnet_ntoa=no
19758
rm -f conftest.err conftest.$ac_objext \
19759
conftest$ac_exeext conftest.$ac_ext
19760
LIBS=$ac_check_lib_save_LIBS
19762
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19763
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19764
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19765
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19768
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19769
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19770
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19771
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19772
echo $ECHO_N "(cached) $ECHO_C" >&6
19774
ac_check_lib_save_LIBS=$LIBS
19775
LIBS="-ldnet_stub $LIBS"
19776
cat >conftest.$ac_ext <<_ACEOF
19779
cat confdefs.h >>conftest.$ac_ext
19780
cat >>conftest.$ac_ext <<_ACEOF
19781
/* end confdefs.h. */
19783
/* Override any gcc2 internal prototype to avoid an error. */
19787
/* We use char because int might match the return type of a gcc2
19788
builtin and then its argument prototype would still apply. */
19798
rm -f conftest.$ac_objext conftest$ac_exeext
19799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19800
(eval $ac_link) 2>conftest.er1
19802
grep -v '^ *+' conftest.er1 >conftest.err
19804
cat conftest.err >&5
19805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806
(exit $ac_status); } &&
19807
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809
(eval $ac_try) 2>&5
19811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812
(exit $ac_status); }; } &&
19813
{ ac_try='test -s conftest$ac_exeext'
19814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815
(eval $ac_try) 2>&5
19817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818
(exit $ac_status); }; }; then
19819
ac_cv_lib_dnet_stub_dnet_ntoa=yes
19821
echo "$as_me: failed program was:" >&5
19822
sed 's/^/| /' conftest.$ac_ext >&5
19824
ac_cv_lib_dnet_stub_dnet_ntoa=no
19826
rm -f conftest.err conftest.$ac_objext \
19827
conftest$ac_exeext conftest.$ac_ext
19828
LIBS=$ac_check_lib_save_LIBS
19830
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19831
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19832
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19833
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19838
rm -f conftest.err conftest.$ac_objext \
19839
conftest$ac_exeext conftest.$ac_ext
19840
LIBS="$ac_xsave_LIBS"
19842
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19843
# to get the SysV transport functions.
19844
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19846
# The nsl library prevents programs from opening the X display
19847
# on Irix 5.2, according to T.E. Dickey.
19848
# The functions gethostbyname, getservbyname, and inet_addr are
19849
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19850
echo "$as_me:$LINENO: checking for gethostbyname" >&5
19851
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19852
if test "${ac_cv_func_gethostbyname+set}" = set; then
19853
echo $ECHO_N "(cached) $ECHO_C" >&6
19855
cat >conftest.$ac_ext <<_ACEOF
19858
cat confdefs.h >>conftest.$ac_ext
19859
cat >>conftest.$ac_ext <<_ACEOF
19860
/* end confdefs.h. */
19861
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19862
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19863
#define gethostbyname innocuous_gethostbyname
19865
/* System header to define __stub macros and hopefully few prototypes,
19866
which can conflict with char gethostbyname (); below.
19867
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868
<limits.h> exists even on freestanding compilers. */
19871
# include <limits.h>
19873
# include <assert.h>
19876
#undef gethostbyname
19878
/* Override any gcc2 internal prototype to avoid an error. */
19883
/* We use char because int might match the return type of a gcc2
19884
builtin and then its argument prototype would still apply. */
19885
char gethostbyname ();
19886
/* The GNU C library defines this for functions which it implements
19887
to always fail with ENOSYS. Some functions are actually named
19888
something starting with __ and the normal name is an alias. */
19889
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19892
char (*f) () = gethostbyname;
19901
return f != gethostbyname;
19906
rm -f conftest.$ac_objext conftest$ac_exeext
19907
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19908
(eval $ac_link) 2>conftest.er1
19910
grep -v '^ *+' conftest.er1 >conftest.err
19912
cat conftest.err >&5
19913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914
(exit $ac_status); } &&
19915
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917
(eval $ac_try) 2>&5
19919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920
(exit $ac_status); }; } &&
19921
{ ac_try='test -s conftest$ac_exeext'
19922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923
(eval $ac_try) 2>&5
19925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926
(exit $ac_status); }; }; then
19927
ac_cv_func_gethostbyname=yes
19929
echo "$as_me: failed program was:" >&5
19930
sed 's/^/| /' conftest.$ac_ext >&5
19932
ac_cv_func_gethostbyname=no
19934
rm -f conftest.err conftest.$ac_objext \
19935
conftest$ac_exeext conftest.$ac_ext
19937
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19938
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19940
if test $ac_cv_func_gethostbyname = no; then
19941
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19942
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19943
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19944
echo $ECHO_N "(cached) $ECHO_C" >&6
19946
ac_check_lib_save_LIBS=$LIBS
19948
cat >conftest.$ac_ext <<_ACEOF
19951
cat confdefs.h >>conftest.$ac_ext
19952
cat >>conftest.$ac_ext <<_ACEOF
19953
/* end confdefs.h. */
19955
/* Override any gcc2 internal prototype to avoid an error. */
19959
/* We use char because int might match the return type of a gcc2
19960
builtin and then its argument prototype would still apply. */
19961
char gethostbyname ();
19970
rm -f conftest.$ac_objext conftest$ac_exeext
19971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19972
(eval $ac_link) 2>conftest.er1
19974
grep -v '^ *+' conftest.er1 >conftest.err
19976
cat conftest.err >&5
19977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978
(exit $ac_status); } &&
19979
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981
(eval $ac_try) 2>&5
19983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984
(exit $ac_status); }; } &&
19985
{ ac_try='test -s conftest$ac_exeext'
19986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987
(eval $ac_try) 2>&5
19989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990
(exit $ac_status); }; }; then
19991
ac_cv_lib_nsl_gethostbyname=yes
19993
echo "$as_me: failed program was:" >&5
19994
sed 's/^/| /' conftest.$ac_ext >&5
19996
ac_cv_lib_nsl_gethostbyname=no
19998
rm -f conftest.err conftest.$ac_objext \
19999
conftest$ac_exeext conftest.$ac_ext
20000
LIBS=$ac_check_lib_save_LIBS
20002
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20003
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20004
if test $ac_cv_lib_nsl_gethostbyname = yes; then
20005
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20008
if test $ac_cv_lib_nsl_gethostbyname = no; then
20009
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20010
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
20011
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20012
echo $ECHO_N "(cached) $ECHO_C" >&6
20014
ac_check_lib_save_LIBS=$LIBS
20016
cat >conftest.$ac_ext <<_ACEOF
20019
cat confdefs.h >>conftest.$ac_ext
20020
cat >>conftest.$ac_ext <<_ACEOF
20021
/* end confdefs.h. */
20023
/* Override any gcc2 internal prototype to avoid an error. */
20027
/* We use char because int might match the return type of a gcc2
20028
builtin and then its argument prototype would still apply. */
20029
char gethostbyname ();
20038
rm -f conftest.$ac_objext conftest$ac_exeext
20039
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20040
(eval $ac_link) 2>conftest.er1
20042
grep -v '^ *+' conftest.er1 >conftest.err
20044
cat conftest.err >&5
20045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046
(exit $ac_status); } &&
20047
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049
(eval $ac_try) 2>&5
20051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052
(exit $ac_status); }; } &&
20053
{ ac_try='test -s conftest$ac_exeext'
20054
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055
(eval $ac_try) 2>&5
20057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058
(exit $ac_status); }; }; then
20059
ac_cv_lib_bsd_gethostbyname=yes
20061
echo "$as_me: failed program was:" >&5
20062
sed 's/^/| /' conftest.$ac_ext >&5
20064
ac_cv_lib_bsd_gethostbyname=no
20066
rm -f conftest.err conftest.$ac_objext \
20067
conftest$ac_exeext conftest.$ac_ext
20068
LIBS=$ac_check_lib_save_LIBS
20070
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20071
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20072
if test $ac_cv_lib_bsd_gethostbyname = yes; then
20073
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20079
# lieder@skyler.mavd.honeywell.com says without -lsocket,
20080
# socket/setsockopt and other routines are undefined under SCO ODT
20081
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20082
# on later versions), says Simon Leinen: it contains gethostby*
20083
# variants that don't use the name server (or something). -lsocket
20084
# must be given before -lnsl if both are needed. We assume that
20085
# if connect needs -lnsl, so does gethostbyname.
20086
echo "$as_me:$LINENO: checking for connect" >&5
20087
echo $ECHO_N "checking for connect... $ECHO_C" >&6
20088
if test "${ac_cv_func_connect+set}" = set; then
20089
echo $ECHO_N "(cached) $ECHO_C" >&6
20091
cat >conftest.$ac_ext <<_ACEOF
20094
cat confdefs.h >>conftest.$ac_ext
20095
cat >>conftest.$ac_ext <<_ACEOF
20096
/* end confdefs.h. */
20097
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
20098
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20099
#define connect innocuous_connect
20101
/* System header to define __stub macros and hopefully few prototypes,
20102
which can conflict with char connect (); below.
20103
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104
<limits.h> exists even on freestanding compilers. */
20107
# include <limits.h>
20109
# include <assert.h>
20114
/* Override any gcc2 internal prototype to avoid an error. */
20119
/* We use char because int might match the return type of a gcc2
20120
builtin and then its argument prototype would still apply. */
20122
/* The GNU C library defines this for functions which it implements
20123
to always fail with ENOSYS. Some functions are actually named
20124
something starting with __ and the normal name is an alias. */
20125
#if defined (__stub_connect) || defined (__stub___connect)
20128
char (*f) () = connect;
20137
return f != connect;
20142
rm -f conftest.$ac_objext conftest$ac_exeext
20143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20144
(eval $ac_link) 2>conftest.er1
20146
grep -v '^ *+' conftest.er1 >conftest.err
20148
cat conftest.err >&5
20149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150
(exit $ac_status); } &&
20151
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153
(eval $ac_try) 2>&5
20155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156
(exit $ac_status); }; } &&
20157
{ ac_try='test -s conftest$ac_exeext'
20158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159
(eval $ac_try) 2>&5
20161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162
(exit $ac_status); }; }; then
20163
ac_cv_func_connect=yes
20165
echo "$as_me: failed program was:" >&5
20166
sed 's/^/| /' conftest.$ac_ext >&5
20168
ac_cv_func_connect=no
20170
rm -f conftest.err conftest.$ac_objext \
20171
conftest$ac_exeext conftest.$ac_ext
20173
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20174
echo "${ECHO_T}$ac_cv_func_connect" >&6
20176
if test $ac_cv_func_connect = no; then
20177
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20178
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20179
if test "${ac_cv_lib_socket_connect+set}" = set; then
20180
echo $ECHO_N "(cached) $ECHO_C" >&6
20182
ac_check_lib_save_LIBS=$LIBS
20183
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20184
cat >conftest.$ac_ext <<_ACEOF
20187
cat confdefs.h >>conftest.$ac_ext
20188
cat >>conftest.$ac_ext <<_ACEOF
20189
/* end confdefs.h. */
20191
/* Override any gcc2 internal prototype to avoid an error. */
20195
/* We use char because int might match the return type of a gcc2
20196
builtin and then its argument prototype would still apply. */
20206
rm -f conftest.$ac_objext conftest$ac_exeext
20207
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20208
(eval $ac_link) 2>conftest.er1
20210
grep -v '^ *+' conftest.er1 >conftest.err
20212
cat conftest.err >&5
20213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214
(exit $ac_status); } &&
20215
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217
(eval $ac_try) 2>&5
20219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220
(exit $ac_status); }; } &&
20221
{ ac_try='test -s conftest$ac_exeext'
20222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223
(eval $ac_try) 2>&5
20225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226
(exit $ac_status); }; }; then
20227
ac_cv_lib_socket_connect=yes
20229
echo "$as_me: failed program was:" >&5
20230
sed 's/^/| /' conftest.$ac_ext >&5
20232
ac_cv_lib_socket_connect=no
20234
rm -f conftest.err conftest.$ac_objext \
20235
conftest$ac_exeext conftest.$ac_ext
20236
LIBS=$ac_check_lib_save_LIBS
20238
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20239
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20240
if test $ac_cv_lib_socket_connect = yes; then
20241
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20246
# Guillermo Gomez says -lposix is necessary on A/UX.
20247
echo "$as_me:$LINENO: checking for remove" >&5
20248
echo $ECHO_N "checking for remove... $ECHO_C" >&6
20249
if test "${ac_cv_func_remove+set}" = set; then
20250
echo $ECHO_N "(cached) $ECHO_C" >&6
20252
cat >conftest.$ac_ext <<_ACEOF
20255
cat confdefs.h >>conftest.$ac_ext
20256
cat >>conftest.$ac_ext <<_ACEOF
20257
/* end confdefs.h. */
20258
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
20259
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20260
#define remove innocuous_remove
20262
/* System header to define __stub macros and hopefully few prototypes,
20263
which can conflict with char remove (); below.
20264
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20265
<limits.h> exists even on freestanding compilers. */
20268
# include <limits.h>
20270
# include <assert.h>
20275
/* Override any gcc2 internal prototype to avoid an error. */
20280
/* We use char because int might match the return type of a gcc2
20281
builtin and then its argument prototype would still apply. */
20283
/* The GNU C library defines this for functions which it implements
20284
to always fail with ENOSYS. Some functions are actually named
20285
something starting with __ and the normal name is an alias. */
20286
#if defined (__stub_remove) || defined (__stub___remove)
20289
char (*f) () = remove;
20298
return f != remove;
20303
rm -f conftest.$ac_objext conftest$ac_exeext
20304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20305
(eval $ac_link) 2>conftest.er1
20307
grep -v '^ *+' conftest.er1 >conftest.err
20309
cat conftest.err >&5
20310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311
(exit $ac_status); } &&
20312
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314
(eval $ac_try) 2>&5
20316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317
(exit $ac_status); }; } &&
20318
{ ac_try='test -s conftest$ac_exeext'
20319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320
(eval $ac_try) 2>&5
20322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323
(exit $ac_status); }; }; then
20324
ac_cv_func_remove=yes
20326
echo "$as_me: failed program was:" >&5
20327
sed 's/^/| /' conftest.$ac_ext >&5
20329
ac_cv_func_remove=no
20331
rm -f conftest.err conftest.$ac_objext \
20332
conftest$ac_exeext conftest.$ac_ext
20334
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20335
echo "${ECHO_T}$ac_cv_func_remove" >&6
20337
if test $ac_cv_func_remove = no; then
20338
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20339
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20340
if test "${ac_cv_lib_posix_remove+set}" = set; then
20341
echo $ECHO_N "(cached) $ECHO_C" >&6
20343
ac_check_lib_save_LIBS=$LIBS
20344
LIBS="-lposix $LIBS"
20345
cat >conftest.$ac_ext <<_ACEOF
20348
cat confdefs.h >>conftest.$ac_ext
20349
cat >>conftest.$ac_ext <<_ACEOF
20350
/* end confdefs.h. */
20352
/* Override any gcc2 internal prototype to avoid an error. */
20356
/* We use char because int might match the return type of a gcc2
20357
builtin and then its argument prototype would still apply. */
20367
rm -f conftest.$ac_objext conftest$ac_exeext
20368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369
(eval $ac_link) 2>conftest.er1
20371
grep -v '^ *+' conftest.er1 >conftest.err
20373
cat conftest.err >&5
20374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375
(exit $ac_status); } &&
20376
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378
(eval $ac_try) 2>&5
20380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381
(exit $ac_status); }; } &&
20382
{ ac_try='test -s conftest$ac_exeext'
20383
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384
(eval $ac_try) 2>&5
20386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387
(exit $ac_status); }; }; then
20388
ac_cv_lib_posix_remove=yes
20390
echo "$as_me: failed program was:" >&5
20391
sed 's/^/| /' conftest.$ac_ext >&5
20393
ac_cv_lib_posix_remove=no
20395
rm -f conftest.err conftest.$ac_objext \
20396
conftest$ac_exeext conftest.$ac_ext
20397
LIBS=$ac_check_lib_save_LIBS
20399
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20400
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20401
if test $ac_cv_lib_posix_remove = yes; then
20402
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20407
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20408
echo "$as_me:$LINENO: checking for shmat" >&5
20409
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20410
if test "${ac_cv_func_shmat+set}" = set; then
20411
echo $ECHO_N "(cached) $ECHO_C" >&6
20413
cat >conftest.$ac_ext <<_ACEOF
20416
cat confdefs.h >>conftest.$ac_ext
20417
cat >>conftest.$ac_ext <<_ACEOF
20418
/* end confdefs.h. */
20419
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20420
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20421
#define shmat innocuous_shmat
20423
/* System header to define __stub macros and hopefully few prototypes,
20424
which can conflict with char shmat (); below.
20425
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20426
<limits.h> exists even on freestanding compilers. */
20429
# include <limits.h>
20431
# include <assert.h>
20436
/* Override any gcc2 internal prototype to avoid an error. */
20441
/* We use char because int might match the return type of a gcc2
20442
builtin and then its argument prototype would still apply. */
20444
/* The GNU C library defines this for functions which it implements
20445
to always fail with ENOSYS. Some functions are actually named
20446
something starting with __ and the normal name is an alias. */
20447
#if defined (__stub_shmat) || defined (__stub___shmat)
20450
char (*f) () = shmat;
20464
rm -f conftest.$ac_objext conftest$ac_exeext
20465
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20466
(eval $ac_link) 2>conftest.er1
20468
grep -v '^ *+' conftest.er1 >conftest.err
20470
cat conftest.err >&5
20471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472
(exit $ac_status); } &&
20473
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475
(eval $ac_try) 2>&5
20477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478
(exit $ac_status); }; } &&
20479
{ ac_try='test -s conftest$ac_exeext'
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); }; }; then
20485
ac_cv_func_shmat=yes
20487
echo "$as_me: failed program was:" >&5
20488
sed 's/^/| /' conftest.$ac_ext >&5
20490
ac_cv_func_shmat=no
20492
rm -f conftest.err conftest.$ac_objext \
20493
conftest$ac_exeext conftest.$ac_ext
20495
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20496
echo "${ECHO_T}$ac_cv_func_shmat" >&6
20498
if test $ac_cv_func_shmat = no; then
20499
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20500
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20501
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20502
echo $ECHO_N "(cached) $ECHO_C" >&6
20504
ac_check_lib_save_LIBS=$LIBS
20506
cat >conftest.$ac_ext <<_ACEOF
20509
cat confdefs.h >>conftest.$ac_ext
20510
cat >>conftest.$ac_ext <<_ACEOF
20511
/* end confdefs.h. */
20513
/* Override any gcc2 internal prototype to avoid an error. */
20517
/* We use char because int might match the return type of a gcc2
20518
builtin and then its argument prototype would still apply. */
20528
rm -f conftest.$ac_objext conftest$ac_exeext
20529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20530
(eval $ac_link) 2>conftest.er1
20532
grep -v '^ *+' conftest.er1 >conftest.err
20534
cat conftest.err >&5
20535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536
(exit $ac_status); } &&
20537
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539
(eval $ac_try) 2>&5
20541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542
(exit $ac_status); }; } &&
20543
{ ac_try='test -s conftest$ac_exeext'
20544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545
(eval $ac_try) 2>&5
20547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548
(exit $ac_status); }; }; then
20549
ac_cv_lib_ipc_shmat=yes
20551
echo "$as_me: failed program was:" >&5
20552
sed 's/^/| /' conftest.$ac_ext >&5
20554
ac_cv_lib_ipc_shmat=no
20556
rm -f conftest.err conftest.$ac_objext \
20557
conftest$ac_exeext conftest.$ac_ext
20558
LIBS=$ac_check_lib_save_LIBS
20560
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20561
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20562
if test $ac_cv_lib_ipc_shmat = yes; then
20563
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20569
# Check for libraries that X11R6 Xt/Xaw programs need.
20570
ac_save_LDFLAGS=$LDFLAGS
20571
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20572
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20573
# check for ICE first), but we must link in the order -lSM -lICE or
20574
# we get undefined symbols. So assume we have SM if we have ICE.
20575
# These have to be linked with before -lX11, unlike the other
20576
# libraries we check for below, so use a different variable.
20577
# John Interrante, Karl Berry
20578
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20579
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20580
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20581
echo $ECHO_N "(cached) $ECHO_C" >&6
20583
ac_check_lib_save_LIBS=$LIBS
20584
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20585
cat >conftest.$ac_ext <<_ACEOF
20588
cat confdefs.h >>conftest.$ac_ext
20589
cat >>conftest.$ac_ext <<_ACEOF
20590
/* end confdefs.h. */
20592
/* Override any gcc2 internal prototype to avoid an error. */
20596
/* We use char because int might match the return type of a gcc2
20597
builtin and then its argument prototype would still apply. */
20598
char IceConnectionNumber ();
20602
IceConnectionNumber ();
20607
rm -f conftest.$ac_objext conftest$ac_exeext
20608
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609
(eval $ac_link) 2>conftest.er1
20611
grep -v '^ *+' conftest.er1 >conftest.err
20613
cat conftest.err >&5
20614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615
(exit $ac_status); } &&
20616
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618
(eval $ac_try) 2>&5
20620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621
(exit $ac_status); }; } &&
20622
{ ac_try='test -s conftest$ac_exeext'
20623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624
(eval $ac_try) 2>&5
20626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627
(exit $ac_status); }; }; then
20628
ac_cv_lib_ICE_IceConnectionNumber=yes
20630
echo "$as_me: failed program was:" >&5
20631
sed 's/^/| /' conftest.$ac_ext >&5
20633
ac_cv_lib_ICE_IceConnectionNumber=no
20635
rm -f conftest.err conftest.$ac_objext \
20636
conftest$ac_exeext conftest.$ac_ext
20637
LIBS=$ac_check_lib_save_LIBS
20639
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20640
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20641
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20642
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20645
LDFLAGS=$ac_save_LDFLAGS
20649
X_LIBS="$X_LIBS -lX11"
20651
if test "x$no_x" = "xyes"
20653
{ { echo "$as_me:$LINENO: error: X is required, but it was either disabled or not found." >&5
20654
echo "$as_me: error: X is required, but it was either disabled or not found." >&2;}
20655
{ (exit 1); exit 1; }; }
20659
save_CFLAGS="$CFLAGS"
20660
CFLAGS="$CFLAGS $X_CFLAGS"
20661
LIBS="$LIBS $X_LIBS"
20663
echo "$as_me:$LINENO: checking for XTHREADS in Xlib" >&5
20664
echo $ECHO_N "checking for XTHREADS in Xlib... $ECHO_C" >&6
20665
if test "$cross_compiling" = yes; then
20668
cat >conftest.$ac_ext <<_ACEOF
20671
cat confdefs.h >>conftest.$ac_ext
20672
cat >>conftest.$ac_ext <<_ACEOF
20673
/* end confdefs.h. */
20674
#include <X11/Xlib.h>
20678
return XInitThreads() == 0 ? 0 : 1;
20683
rm -f conftest$ac_exeext
20684
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20685
(eval $ac_link) 2>&5
20687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690
(eval $ac_try) 2>&5
20692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693
(exit $ac_status); }; }; then
20696
echo "$as_me: program exited with status $ac_status" >&5
20697
echo "$as_me: failed program was:" >&5
20698
sed 's/^/| /' conftest.$ac_ext >&5
20700
( exit $ac_status )
20703
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20706
echo "$as_me:$LINENO: result: $xthreads" >&5
20707
echo "${ECHO_T}$xthreads" >&6
20710
CFLAGS="$save_CFLAGS"
20712
if test "x$xthreads" = "xyes"
20714
X_CFLAGS="$X_CFLAGS -DXTHREADS"
20718
# Check compositeext configuration, strip extra digits from package version to
20719
# find the required protocol version
20721
COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
20724
18761
echo "$as_me:$LINENO: checking for XCOMPOSITE" >&5
20725
18762
echo $ECHO_N "checking for XCOMPOSITE... $ECHO_C" >&6
20727
18764
if test -n "$PKG_CONFIG"; then
18765
if test -n "$XCOMPOSITE_CFLAGS"; then
18766
pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS"
20728
18768
if test -n "$PKG_CONFIG" && \
20729
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION xdamage\"") >&5
20730
($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xdamage") 2>&5
18769
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11 xfixes xext fixesproto\"") >&5
18770
($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto") 2>&5
20732
18772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733
18773
(exit $ac_status); }; then
20734
pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION xdamage" 2>/dev/null`
18774
pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>/dev/null`
20736
18776
pkg_failed=yes
20739
18780
pkg_failed=untried
20741
18782
if test -n "$PKG_CONFIG"; then
18783
if test -n "$XCOMPOSITE_LIBS"; then
18784
pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS"
20742
18786
if test -n "$PKG_CONFIG" && \
20743
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION xdamage\"") >&5
20744
($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xdamage") 2>&5
18787
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11 xfixes xext fixesproto\"") >&5
18788
($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto") 2>&5
20746
18790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747
18791
(exit $ac_status); }; then
20748
pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION xdamage" 2>/dev/null`
18792
pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>/dev/null`
20750
18794
pkg_failed=yes
20753
18798
pkg_failed=untried
20756
18803
if test $pkg_failed = yes; then
20757
XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xdamage"`
18805
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18806
_pkg_short_errors_supported=yes
18808
_pkg_short_errors_supported=no
18810
if test $_pkg_short_errors_supported = yes; then
18811
XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto"`
18813
XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto"`
20758
18815
# Put the nasty error message in config.log where it belongs
20759
echo "$XCOMPOSITE_PKG_ERRORS" 1>&5
20761
{ { echo "$as_me:$LINENO: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION xdamage) were not met.
20762
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20763
installed software in a non-standard prefix.
20765
Alternatively you may set the XCOMPOSITE_CFLAGS and XCOMPOSITE_LIBS environment variables
20766
to avoid the need to call pkg-config. See the pkg-config man page for
20768
echo "$as_me: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION xdamage) were not met.
20769
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20770
installed software in a non-standard prefix.
20772
Alternatively you may set the XCOMPOSITE_CFLAGS and XCOMPOSITE_LIBS environment variables
20773
to avoid the need to call pkg-config. See the pkg-config man page for
20774
more details." >&2;}
18816
echo "$XCOMPOSITE_PKG_ERRORS" >&5
18818
{ { echo "$as_me:$LINENO: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto) were not met:
18820
$XCOMPOSITE_PKG_ERRORS
18822
Consider adjusting the PKG_CONFIG_PATH environment variable if you
18823
installed software in a non-standard prefix.
18825
Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
18826
and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
18827
See the pkg-config man page for more details.
18829
echo "$as_me: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto) were not met:
18831
$XCOMPOSITE_PKG_ERRORS
18833
Consider adjusting the PKG_CONFIG_PATH environment variable if you
18834
installed software in a non-standard prefix.
18836
Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
18837
and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
18838
See the pkg-config man page for more details.
20775
18840
{ (exit 1); exit 1; }; }
20776
18841
elif test $pkg_failed = untried; then
20777
18842
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20778
18843
is in your PATH or set the PKG_CONFIG environment variable to the full
20779
18844
path to pkg-config.
20781
Alternatively you may set the XCOMPOSITE_CFLAGS and XCOMPOSITE_LIBS environment variables
20782
to avoid the need to call pkg-config. See the pkg-config man page for
18846
Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
18847
and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
18848
See the pkg-config man page for more details.
20785
18850
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20786
18851
See \`config.log' for more details." >&5