Commit f21fadcc authored by Jan Djärv's avatar Jan Djärv
Browse files

Added test for X Session Management (HAVE_X_SM).

parent d873ec96
......@@ -7573,14 +7573,124 @@ EOF
fi
fi
### Use session management (-lSM -lICE) if available
HAVE_X_SM=no
if test "${HAVE_X11}" = "yes"; then
echo "$as_me:7579: checking for X11/SM/SMlib.h" >&5
echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 7585 "configure"
#include "confdefs.h"
#include <X11/SM/SMlib.h>
_ACEOF
if { (eval echo "$as_me:7589: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
egrep -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:7595: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_cv_header_X11_SM_SMlib_h=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_X11_SM_SMlib_h=no
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:7614: result: $ac_cv_header_X11_SM_SMlib_h" >&5
echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
if test $ac_cv_header_X11_SM_SMlib_h = yes; then
echo "$as_me:7617: checking for SmcOpenConnection in -lSM" >&5
echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lSM $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7625 "configure"
#include "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 SmcOpenConnection ();
int
main ()
{
SmcOpenConnection ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7644: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:7647: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:7650: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:7653: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_SM_SmcOpenConnection=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_SM_SmcOpenConnection=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:7664: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
HAVE_X_SM=yes
else
-lICE
fi
fi
if test "${HAVE_X_SM}" = "yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_X_SM 1
EOF
case "$LIBS" in
*-lSM*) ;;
*) LIBS="-lSM -lICE $LIBS" ;;
esac
fi
fi
# If netdb.h doesn't declare h_errno, we must declare it by hand.
echo "$as_me:7577: checking whether netdb declares h_errno" >&5
echo "$as_me:7687: checking whether netdb declares h_errno" >&5
echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 7583 "configure"
#line 7693 "configure"
#include "confdefs.h"
#include <netdb.h>
int
......@@ -7592,16 +7702,16 @@ return h_errno;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7595: \"$ac_link\"") >&5
if { (eval echo "$as_me:7705: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:7598: \$? = $ac_status" >&5
echo "$as_me:7708: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:7601: \"$ac_try\"") >&5
{ (eval echo "$as_me:7711: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:7604: \$? = $ac_status" >&5
echo "$as_me:7714: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
emacs_cv_netdb_declares_h_errno=yes
else
......@@ -7611,7 +7721,7 @@ emacs_cv_netdb_declares_h_errno=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7614: result: $emacs_cv_netdb_declares_h_errno" >&5
echo "$as_me:7724: result: $emacs_cv_netdb_declares_h_errno" >&5
echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
if test $emacs_cv_netdb_declares_h_errno = yes; then
cat >>confdefs.h <<\EOF
......@@ -7622,13 +7732,13 @@ fi
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
echo "$as_me:7625: checking for working alloca.h" >&5
echo "$as_me:7735: checking for working alloca.h" >&5
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
if test "${ac_cv_working_alloca_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 7631 "configure"
#line 7741 "configure"
#include "confdefs.h"
#include <alloca.h>
int
......@@ -7640,16 +7750,16 @@ char *p = (char *) alloca (2 * sizeof (int));
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7643: \"$ac_link\"") >&5
if { (eval echo "$as_me:7753: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:7646: \$? = $ac_status" >&5
echo "$as_me:7756: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:7649: \"$ac_try\"") >&5
{ (eval echo "$as_me:7759: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:7652: \$? = $ac_status" >&5
echo "$as_me:7762: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_working_alloca_h=yes
else
......@@ -7659,7 +7769,7 @@ ac_cv_working_alloca_h=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7662: result: $ac_cv_working_alloca_h" >&5
echo "$as_me:7772: result: $ac_cv_working_alloca_h" >&5
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
if test $ac_cv_working_alloca_h = yes; then
......@@ -7669,13 +7779,13 @@ EOF
fi
echo "$as_me:7672: checking for alloca" >&5
echo "$as_me:7782: checking for alloca" >&5
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
if test "${ac_cv_func_alloca_works+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 7678 "configure"
#line 7788 "configure"
#include "confdefs.h"
#ifdef __GNUC__
# define alloca __builtin_alloca
......@@ -7707,16 +7817,16 @@ char *p = (char *) alloca (1);
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7710: \"$ac_link\"") >&5
if { (eval echo "$as_me:7820: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:7713: \$? = $ac_status" >&5
echo "$as_me:7823: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:7716: \"$ac_try\"") >&5
{ (eval echo "$as_me:7826: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:7719: \$? = $ac_status" >&5
echo "$as_me:7829: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_func_alloca_works=yes
else
......@@ -7726,7 +7836,7 @@ ac_cv_func_alloca_works=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7729: result: $ac_cv_func_alloca_works" >&5
echo "$as_me:7839: result: $ac_cv_func_alloca_works" >&5
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
if test $ac_cv_func_alloca_works = yes; then
......@@ -7747,13 +7857,13 @@ cat >>confdefs.h <<\EOF
#define C_ALLOCA 1
EOF
echo "$as_me:7750: checking whether \`alloca.c' needs Cray hooks" >&5
echo "$as_me:7860: checking whether \`alloca.c' needs Cray hooks" >&5
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
if test "${ac_cv_os_cray+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 7756 "configure"
#line 7866 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
......@@ -7771,18 +7881,18 @@ fi
rm -f conftest*
fi
echo "$as_me:7774: result: $ac_cv_os_cray" >&5
echo "$as_me:7884: result: $ac_cv_os_cray" >&5
echo "${ECHO_T}$ac_cv_os_cray" >&6
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:7779: checking for $ac_func" >&5
echo "$as_me:7889: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 7785 "configure"
#line 7895 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below. */
......@@ -7813,16 +7923,16 @@ f = $ac_func;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7816: \"$ac_link\"") >&5
if { (eval echo "$as_me:7926: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:7819: \$? = $ac_status" >&5
echo "$as_me:7929: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:7822: \"$ac_try\"") >&5
{ (eval echo "$as_me:7932: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:7825: \$? = $ac_status" >&5
echo "$as_me:7935: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
......@@ -7832,7 +7942,7 @@ eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:7835: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "$as_me:7945: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
......@@ -7846,7 +7956,7 @@ fi
done
fi
echo "$as_me:7849: checking stack direction for C alloca" >&5
echo "$as_me:7959: checking stack direction for C alloca" >&5
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
if test "${ac_cv_c_stack_direction+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
......@@ -7855,7 +7965,7 @@ else
ac_cv_c_stack_direction=0
else
cat >conftest.$ac_ext <<_ACEOF
#line 7858 "configure"
#line 7968 "configure"
#include "confdefs.h"
int
find_stack_direction ()
......@@ -7878,15 +7988,15 @@ main ()
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:7881: \"$ac_link\"") >&5
if { (eval echo "$as_me:7991: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:7884: \$? = $ac_status" >&5
echo "$as_me:7994: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:7886: \"$ac_try\"") >&5
{ (eval echo "$as_me:7996: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:7889: \$? = $ac_status" >&5
echo "$as_me:7999: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_c_stack_direction=1
else
......@@ -7898,7 +8008,7 @@ fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:7901: result: $ac_cv_c_stack_direction" >&5
echo "$as_me:8011: result: $ac_cv_c_stack_direction" >&5
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
cat >>confdefs.h <<EOF
......@@ -7910,7 +8020,7 @@ fi
# fmod, logb, and frexp are found in -lm on most systems.
# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
echo "$as_me:7913: checking for sqrt in -lm" >&5
echo "$as_me:8023: checking for sqrt in -lm" >&5
echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_sqrt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
......@@ -7918,7 +8028,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7921 "configure"
#line 8031 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
......@@ -7937,16 +8047,16 @@ sqrt ();
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:7940: \"$ac_link\"") >&5
if { (eval echo "$as_me:8050: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:7943: \$? = $ac_status" >&5
echo "$as_me:8053: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:7946: \"$ac_try\"") >&5
{ (eval echo "$as_me:8056: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:7949: \$? = $ac_status" >&5
echo "$as_me:8059: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_m_sqrt=yes
else
......@@ -7957,7 +8067,7 @@ fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:7960: result: $ac_cv_lib_m_sqrt" >&5
echo "$as_me:8070: result: $ac_cv_lib_m_sqrt" >&5
echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
if test $ac_cv_lib_m_sqrt = yes; then
cat >>confdefs.h <<EOF
......@@ -7970,7 +8080,7 @@ fi
# Check for mail-locking functions in a "mail" library
echo "$as_me:7973: checking for maillock in -lmail" >&5
echo "$as_me:8083: checking for maillock in -lmail" >&5
echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
if test "${ac_cv_lib_mail_maillock+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
......@@ -7978,7 +8088,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lmail $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 7981 "configure"
#line 8091 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
......@@ -7997,16 +8107,16 @@ maillock ();
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8000: \"$ac_link\"") >&5
if { (eval echo "$as_me:8110: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:8003: \$? = $ac_status" >&5
echo "$as_me:8113: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:8006: \"$ac_try\"") >&5
{ (eval echo "$as_me:8116: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:8009: \$? = $ac_status" >&5
echo "$as_me:8119: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_mail_maillock=yes
else
......@@ -8017,7 +8127,7 @@ fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:8020: result: $ac_cv_lib_mail_maillock" >&5
echo "$as_me:8130: result: $ac_cv_lib_mail_maillock" >&5
echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
if test $ac_cv_lib_mail_maillock = yes; then
cat >>confdefs.h <<EOF
......@@ -8028,7 +8138,7 @@ EOF
fi
echo "$as_me:8031: checking for maillock in -llockfile" >&5
echo "$as_me:8141: checking for maillock in -llockfile" >&5
echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
......@@ -8036,7 +8146,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-llockfile $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 8039 "configure"
#line 8149 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
......@@ -8055,16 +8165,16 @@ maillock ();
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8058: \"$ac_link\"") >&5
if { (eval echo "$as_me:8168: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:8061: \$? = $ac_status" >&5
echo "$as_me:8171: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:8064: \"$ac_try\"") >&5
{ (eval echo "$as_me:8174: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:8067: \$? = $ac_status" >&5
echo "$as_me:8177: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_lockfile_maillock=yes
else
......@@ -8075,7 +8185,7 @@ fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:8078: result: $ac_cv_lib_lockfile_maillock" >&5
echo "$as_me:8188: result: $ac_cv_lib_lockfile_maillock" >&5
echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
if test $ac_cv_lib_lockfile_maillock = yes; then
cat >>confdefs.h <<EOF
......@@ -8092,7 +8202,7 @@ fi
if test "$ac_cv_lib_lockfile_maillock" = no; then
# Extract the first word of "liblockfile.so", so it can be a program name with args.
set dummy liblockfile.so; ac_word=$2
echo "$as_me:8095: checking for $ac_word" >&5
echo "$as_me:8205: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_liblockfile+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
......@@ -8107,7 +8217,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_liblockfile="yes"
echo "$as_me:8110: found $ac_dir/$ac_word" >&5
echo "$as_me:8220: found $ac_dir/$ac_word" >&5
break
done
......@@ -8116,15 +8226,15 @@ fi
fi
liblockfile=$ac_cv_prog_liblockfile
if test -n "$liblockfile"; then
echo "$as_me:8119: result: $liblockfile" >&5
echo "$as_me:8229: result: $liblockfile" >&5
echo "${ECHO_T}$liblockfile" >&6
else
echo "$as_me:8122: result: no" >&5
echo "$as_me:8232: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test $ac_cv_prog_liblockfile = yes; then
{ { echo "$as_me:8127: error: Shared liblockfile found but can't link against it.
{ { echo "$as_me:8237: error: Shared liblockfile found but can't link against it.
This probably means that movemail could lose mail.
There may be a \`development' package to install containing liblockfile." >&5
echo "$as_me: error: Shared liblockfile found but can't link against it.
......@@ -8142,13 +8252,13 @@ fi
for ac_func in touchlock
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8145: checking for $ac_func" >&5
echo "$as_me:8255: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 8151 "configure"
#line 8261 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below. */
......@@ -8179,16 +8289,16 @@ f = $ac_func;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8182: \"$ac_link\"") >&5
if { (eval echo "$as_me:8292: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:8185: \$? = $ac_status" >&5
echo "$as_me:8295: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:8188: \"$ac_try\"") >&5
{ (eval echo "$as_me:8298: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:8191: \$? = $ac_status" >&5
echo "$as_me:8301: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
......@@ -8198,7 +8308,7 @@ eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8201: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "$as_me:8311: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
......@@ -8211,23 +8321,23 @@ done
for ac_header in maillock.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:8214: checking for $ac_header" >&5
echo "$as_me:8324: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 8220 "configure"
#line 8330 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:8224: \"$ac_cpp conftest.$ac_ext\"") >&5
if { (eval echo "$as_me:8334: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
egrep -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:8230: \$? = $ac_status" >&5
echo "$as_me:8340: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
......@@ -8246,7 +8356,7 @@ else
fi
rm -f conftest.err conftest.$ac_ext
fi
echo "$as_me:8249: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "$as_me:8359: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
......@@ -8265,13 +8375,13 @@ __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
gai_strerror mkstemp
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:8268: checking for $ac_func" >&5
echo "$as_me:8378: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 8274 "configure"
#line 8384 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below. */
......@@ -8302,16 +8412,16 @@ f = $ac_func;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:8305: \"$ac_link\"") >&5
if { (eval echo "$as_me:8415: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:8308: \$? = $ac_status" >&5
echo "$as_me:8418: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:8311: \"$ac_try\"") >&5
{ (eval echo "$as_me:8421: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:8314: \$? = $ac_status" >&5
echo "$as_me:8424: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
......@@ -8321,7 +8431,7 @@ eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:8324: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "$as_me:8434: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
......@@ -8334,23 +8444,23 @@ done
for ac_header in sys/time.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:8337: checking for $ac_header" >&5
echo "$as_me:8447: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line 8343 "configure"
#line 8453 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:8347: \"$ac_cpp conftest.$ac_ext\"") >&5
if { (eval echo "$as_me:8457: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
egrep -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:8353: \$? = $ac_status" >&5
echo "$as_me:8463: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then