|
|
|
|
@ -4818,14 +4818,13 @@ _ACEOF |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5 |
|
|
|
|
echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_lib_util_setproctitle+set}" = set; then |
|
|
|
|
echo "$as_me:$LINENO: checking for library containing setproctitle" >&5 |
|
|
|
|
echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_search_setproctitle+set}" = set; then |
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
|
|
else |
|
|
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
|
|
LIBS="-lutil $LIBS" |
|
|
|
|
ac_func_search_save_LIBS=$LIBS |
|
|
|
|
ac_cv_search_setproctitle=no |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
@ -4870,36 +4869,88 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_lib_util_setproctitle=yes |
|
|
|
|
ac_cv_search_setproctitle="none required" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
ac_cv_lib_util_setproctitle=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6 |
|
|
|
|
if test $ac_cv_lib_util_setproctitle = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define HAVE_LIBUTIL 1 |
|
|
|
|
if test "$ac_cv_search_setproctitle" = no; then |
|
|
|
|
for ac_lib in util; do |
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
LIBS="-lutil $LIBS" |
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char setproctitle (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
setproctitle (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
|
|
ac_status=$? |
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
|
|
rm -f conftest.er1 |
|
|
|
|
cat conftest.err >&5 |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); } && |
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|
|
|| test ! -s conftest.err' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; } && |
|
|
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_search_setproctitle="-l$ac_lib" |
|
|
|
|
break |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
done |
|
|
|
|
fi |
|
|
|
|
LIBS=$ac_func_search_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_search_setproctitle" >&6 |
|
|
|
|
if test "$ac_cv_search_setproctitle" != no; then |
|
|
|
|
test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS" |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for main in -lm" >&5 |
|
|
|
|
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_lib_m_main+set}" = set; then |
|
|
|
|
echo "$as_me:$LINENO: checking for library containing pow" >&5 |
|
|
|
|
echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_search_pow+set}" = set; then |
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
|
|
else |
|
|
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
|
|
LIBS="-lm $LIBS" |
|
|
|
|
ac_func_search_save_LIBS=$LIBS |
|
|
|
|
ac_cv_search_pow=no |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
@ -4907,11 +4958,17 @@ cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char pow (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
main (); |
|
|
|
|
pow (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
@ -4938,36 +4995,88 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_lib_m_main=yes |
|
|
|
|
ac_cv_search_pow="none required" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
ac_cv_lib_m_main=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
|
|
|
|
if test $ac_cv_lib_m_main = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define HAVE_LIBM 1 |
|
|
|
|
if test "$ac_cv_search_pow" = no; then |
|
|
|
|
for ac_lib in m; do |
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
LIBS="-lm $LIBS" |
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char pow (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
pow (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
|
|
ac_status=$? |
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
|
|
rm -f conftest.er1 |
|
|
|
|
cat conftest.err >&5 |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); } && |
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|
|
|| test ! -s conftest.err' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; } && |
|
|
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_search_pow="-l$ac_lib" |
|
|
|
|
break |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
done |
|
|
|
|
fi |
|
|
|
|
LIBS=$ac_func_search_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_search_pow" >&6 |
|
|
|
|
if test "$ac_cv_search_pow" != no; then |
|
|
|
|
test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS" |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for main in -ldl" >&5 |
|
|
|
|
echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_lib_dl_main+set}" = set; then |
|
|
|
|
echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
|
|
|
|
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_search_dlopen+set}" = set; then |
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
|
|
else |
|
|
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
|
|
LIBS="-ldl $LIBS" |
|
|
|
|
ac_func_search_save_LIBS=$LIBS |
|
|
|
|
ac_cv_search_dlopen=no |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
@ -4975,11 +5084,17 @@ cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char dlopen (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
main (); |
|
|
|
|
dlopen (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
@ -5006,25 +5121,78 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_lib_dl_main=yes |
|
|
|
|
ac_cv_search_dlopen="none required" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
ac_cv_lib_dl_main=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_lib_dl_main" >&6 |
|
|
|
|
if test $ac_cv_lib_dl_main = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define HAVE_LIBDL 1 |
|
|
|
|
if test "$ac_cv_search_dlopen" = no; then |
|
|
|
|
for ac_lib in dl; do |
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
LIBS="-ldl $LIBS" |
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char dlopen (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
dlopen (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
|
|
ac_status=$? |
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
|
|
rm -f conftest.er1 |
|
|
|
|
cat conftest.err >&5 |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); } && |
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|
|
|| test ! -s conftest.err' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; } && |
|
|
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_search_dlopen="-l$ac_lib" |
|
|
|
|
break |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
done |
|
|
|
|
fi |
|
|
|
|
LIBS=$ac_func_search_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
|
|
|
|
if test "$ac_cv_search_dlopen" != no; then |
|
|
|
|
test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
@ -5096,14 +5264,13 @@ _ACEOF |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for main in -lsocket" >&5 |
|
|
|
|
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_lib_socket_main+set}" = set; then |
|
|
|
|
echo "$as_me:$LINENO: checking for library containing socket" >&5 |
|
|
|
|
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_search_socket+set}" = set; then |
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
|
|
else |
|
|
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
|
|
LIBS="-lsocket $LIBS" |
|
|
|
|
ac_func_search_save_LIBS=$LIBS |
|
|
|
|
ac_cv_search_socket=no |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
@ -5111,11 +5278,17 @@ cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char socket (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
main (); |
|
|
|
|
socket (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
@ -5142,25 +5315,78 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_lib_socket_main=yes |
|
|
|
|
ac_cv_search_socket="none required" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
ac_cv_lib_socket_main=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 |
|
|
|
|
if test $ac_cv_lib_socket_main = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define HAVE_LIBSOCKET 1 |
|
|
|
|
if test "$ac_cv_search_socket" = no; then |
|
|
|
|
for ac_lib in socket wsock32; do |
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
LIBS="-lsocket $LIBS" |
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char socket (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
socket (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
|
|
ac_status=$? |
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
|
|
rm -f conftest.er1 |
|
|
|
|
cat conftest.err >&5 |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); } && |
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|
|
|| test ! -s conftest.err' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; } && |
|
|
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_search_socket="-l$ac_lib" |
|
|
|
|
break |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
done |
|
|
|
|
fi |
|
|
|
|
LIBS=$ac_func_search_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_search_socket" >&6 |
|
|
|
|
if test "$ac_cv_search_socket" != no; then |
|
|
|
|
test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
@ -5368,14 +5594,13 @@ _ACEOF |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for main in -ldld" >&5 |
|
|
|
|
echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_lib_dld_main+set}" = set; then |
|
|
|
|
echo "$as_me:$LINENO: checking for library containing shl_load" >&5 |
|
|
|
|
echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_search_shl_load+set}" = set; then |
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
|
|
else |
|
|
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
|
|
LIBS="-ldld $LIBS" |
|
|
|
|
ac_func_search_save_LIBS=$LIBS |
|
|
|
|
ac_cv_search_shl_load=no |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
@ -5383,11 +5608,17 @@ cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char shl_load (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
main (); |
|
|
|
|
shl_load (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
@ -5414,25 +5645,78 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_lib_dld_main=yes |
|
|
|
|
ac_cv_search_shl_load="none required" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
ac_cv_lib_dld_main=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_lib_dld_main" >&6 |
|
|
|
|
if test $ac_cv_lib_dld_main = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define HAVE_LIBDLD 1 |
|
|
|
|
if test "$ac_cv_search_shl_load" = no; then |
|
|
|
|
for ac_lib in dld; do |
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char shl_load (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
shl_load (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
|
|
ac_status=$? |
|
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
|
|
rm -f conftest.er1 |
|
|
|
|
cat conftest.err >&5 |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); } && |
|
|
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|
|
|| test ! -s conftest.err' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; } && |
|
|
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
|
|
(eval $ac_try) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_search_shl_load="-l$ac_lib" |
|
|
|
|
break |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
LIBS="-ldld $LIBS" |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
done |
|
|
|
|
fi |
|
|
|
|
LIBS=$ac_func_search_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_search_shl_load" >&6 |
|
|
|
|
if test "$ac_cv_search_shl_load" != no; then |
|
|
|
|
test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS" |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
@ -6293,14 +6577,13 @@ if test "$ac_cv_search_fdatasync" != no; then |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Cygwin: |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5 |
|
|
|
|
echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_lib_cygipc_shmget+set}" = set; then |
|
|
|
|
echo "$as_me:$LINENO: checking for library containing shmget" >&5 |
|
|
|
|
echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_search_shmget+set}" = set; then |
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
|
|
else |
|
|
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
|
|
LIBS="-lcygipc $LIBS" |
|
|
|
|
ac_func_search_save_LIBS=$LIBS |
|
|
|
|
ac_cv_search_shmget=no |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
@ -6345,51 +6628,35 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_lib_cygipc_shmget=yes |
|
|
|
|
ac_cv_search_shmget="none required" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
ac_cv_lib_cygipc_shmget=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6 |
|
|
|
|
if test $ac_cv_lib_cygipc_shmget = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define HAVE_LIBCYGIPC 1 |
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
LIBS="-lcygipc $LIBS" |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# WIN32: |
|
|
|
|
if test "$PORTNAME" = "win32" |
|
|
|
|
then |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for main in -lwsock32" >&5 |
|
|
|
|
echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_lib_wsock32_main+set}" = set; then |
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
|
|
else |
|
|
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
|
|
LIBS="-lwsock32 $LIBS" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
if test "$ac_cv_search_shmget" = no; then |
|
|
|
|
for ac_lib in cygipc; do |
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* confdefs.h. */ |
|
|
|
|
_ACEOF |
|
|
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
|
|
/* end confdefs.h. */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
#endif |
|
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
|
builtin and then its argument prototype would still apply. */ |
|
|
|
|
char shmget (); |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
main (); |
|
|
|
|
shmget (); |
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
@ -6416,30 +6683,27 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); }; }; then |
|
|
|
|
ac_cv_lib_wsock32_main=yes |
|
|
|
|
ac_cv_search_shmget="-l$ac_lib" |
|
|
|
|
break |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
ac_cv_lib_wsock32_main=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
|
|
done |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6 |
|
|
|
|
if test $ac_cv_lib_wsock32_main = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define HAVE_LIBWSOCK32 1 |
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
LIBS="-lwsock32 $LIBS" |
|
|
|
|
|
|
|
|
|
LIBS=$ac_func_search_save_LIBS |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_search_shmget" >&6 |
|
|
|
|
if test "$ac_cv_search_shmget" != no; then |
|
|
|
|
test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS" |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "$with_readline" = yes; then |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|