|
|
|
|
@ -8307,6 +8307,368 @@ fi |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in stdlib.h unistd.h |
|
|
|
|
do |
|
|
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
|
|
echo "$as_me:$LINENO: 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 |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
else |
|
|
|
|
# Is the header compilable? |
|
|
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
$ac_includes_default |
|
|
|
|
#include <$ac_header> |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
|
|
(eval $ac_compile) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); } && |
|
|
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
|
|
{ (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_header_compiler=yes |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
ac_header_compiler=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
|
|
|
|
# Is the header present? |
|
|
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
#include <$ac_header> |
|
|
|
|
_ACEOF |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$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:$LINENO: \$? = $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_header_preproc=yes |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
ac_header_preproc=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
|
|
|
|
|
|
# So? What about this header? |
|
|
|
|
case $ac_header_compiler:$ac_header_preproc in |
|
|
|
|
yes:no ) |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
|
|
no:yes ) |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
|
|
esac |
|
|
|
|
echo "$as_me:$LINENO: 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 |
|
|
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_func in getpagesize |
|
|
|
|
do |
|
|
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
|
|
echo "$as_me:$LINENO: 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 $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
|
|
which can conflict with char $ac_func (); below. */ |
|
|
|
|
#include <assert.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 $ac_func (); |
|
|
|
|
char (*f) (); |
|
|
|
|
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
|
|
# ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
# endif |
|
|
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
|
|
#endif |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
/* The GNU C library defines this for functions which it implements |
|
|
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
|
|
something starting with __ and the normal name is an alias. */ |
|
|
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
|
|
choke me |
|
|
|
|
#else |
|
|
|
|
f = $ac_func; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 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 |
|
|
|
|
eval "$as_ac_var=yes" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
eval "$as_ac_var=no" |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: 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 <<_ACEOF |
|
|
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for working mmap" >&5 |
|
|
|
|
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
|
|
|
|
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
|
|
else |
|
|
|
|
if test "$cross_compiling" = yes; then |
|
|
|
|
ac_cv_func_mmap_fixed_mapped=no |
|
|
|
|
else |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
$ac_includes_default |
|
|
|
|
/* malloc might have been renamed as rpl_malloc. */ |
|
|
|
|
#undef malloc |
|
|
|
|
|
|
|
|
|
/* Thanks to Mike Haertel and Jim Avera for this test. |
|
|
|
|
Here is a matrix of mmap possibilities: |
|
|
|
|
mmap private not fixed |
|
|
|
|
mmap private fixed at somewhere currently unmapped |
|
|
|
|
mmap private fixed at somewhere already mapped |
|
|
|
|
mmap shared not fixed |
|
|
|
|
mmap shared fixed at somewhere currently unmapped |
|
|
|
|
mmap shared fixed at somewhere already mapped |
|
|
|
|
For private mappings, we should verify that changes cannot be read() |
|
|
|
|
back from the file, nor mmap's back from the file at a different |
|
|
|
|
address. (There have been systems where private was not correctly |
|
|
|
|
implemented like the infamous i386 svr4.0, and systems where the |
|
|
|
|
VM page cache was not coherent with the file system buffer cache |
|
|
|
|
like early versions of FreeBSD and possibly contemporary NetBSD.) |
|
|
|
|
For shared mappings, we should conversely verify that changes get |
|
|
|
|
propagated back to all the places they're supposed to be. |
|
|
|
|
|
|
|
|
|
Grep wants private fixed already mapped. |
|
|
|
|
The main things grep needs to know about mmap are: |
|
|
|
|
* does it exist and is it safe to write into the mmap'd area |
|
|
|
|
* how to use it (BSD variants) */ |
|
|
|
|
|
|
|
|
|
#include <fcntl.h> |
|
|
|
|
#include <sys/mman.h> |
|
|
|
|
|
|
|
|
|
#if !STDC_HEADERS && !HAVE_STDLIB_H |
|
|
|
|
char *malloc (); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* This mess was copied from the GNU getpagesize.h. */ |
|
|
|
|
#if !HAVE_GETPAGESIZE |
|
|
|
|
/* Assume that all systems that can run configure have sys/param.h. */ |
|
|
|
|
# if !HAVE_SYS_PARAM_H |
|
|
|
|
# define HAVE_SYS_PARAM_H 1 |
|
|
|
|
# endif |
|
|
|
|
|
|
|
|
|
# ifdef _SC_PAGESIZE |
|
|
|
|
# define getpagesize() sysconf(_SC_PAGESIZE) |
|
|
|
|
# else /* no _SC_PAGESIZE */ |
|
|
|
|
# if HAVE_SYS_PARAM_H |
|
|
|
|
# include <sys/param.h> |
|
|
|
|
# ifdef EXEC_PAGESIZE |
|
|
|
|
# define getpagesize() EXEC_PAGESIZE |
|
|
|
|
# else /* no EXEC_PAGESIZE */ |
|
|
|
|
# ifdef NBPG |
|
|
|
|
# define getpagesize() NBPG * CLSIZE |
|
|
|
|
# ifndef CLSIZE |
|
|
|
|
# define CLSIZE 1 |
|
|
|
|
# endif /* no CLSIZE */ |
|
|
|
|
# else /* no NBPG */ |
|
|
|
|
# ifdef NBPC |
|
|
|
|
# define getpagesize() NBPC |
|
|
|
|
# else /* no NBPC */ |
|
|
|
|
# ifdef PAGESIZE |
|
|
|
|
# define getpagesize() PAGESIZE |
|
|
|
|
# endif /* PAGESIZE */ |
|
|
|
|
# endif /* no NBPC */ |
|
|
|
|
# endif /* no NBPG */ |
|
|
|
|
# endif /* no EXEC_PAGESIZE */ |
|
|
|
|
# else /* no HAVE_SYS_PARAM_H */ |
|
|
|
|
# define getpagesize() 8192 /* punt totally */ |
|
|
|
|
# endif /* no HAVE_SYS_PARAM_H */ |
|
|
|
|
# endif /* no _SC_PAGESIZE */ |
|
|
|
|
|
|
|
|
|
#endif /* no HAVE_GETPAGESIZE */ |
|
|
|
|
|
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
char *data, *data2, *data3; |
|
|
|
|
int i, pagesize; |
|
|
|
|
int fd; |
|
|
|
|
|
|
|
|
|
pagesize = getpagesize (); |
|
|
|
|
|
|
|
|
|
/* First, make a file with some known garbage in it. */ |
|
|
|
|
data = (char *) malloc (pagesize); |
|
|
|
|
if (!data) |
|
|
|
|
exit (1); |
|
|
|
|
for (i = 0; i < pagesize; ++i) |
|
|
|
|
*(data + i) = rand (); |
|
|
|
|
umask (0); |
|
|
|
|
fd = creat ("conftest.mmap", 0600); |
|
|
|
|
if (fd < 0) |
|
|
|
|
exit (1); |
|
|
|
|
if (write (fd, data, pagesize) != pagesize) |
|
|
|
|
exit (1); |
|
|
|
|
close (fd); |
|
|
|
|
|
|
|
|
|
/* Next, try to mmap the file at a fixed address which already has |
|
|
|
|
something else allocated at it. If we can, also make sure that |
|
|
|
|
we see the same garbage. */ |
|
|
|
|
fd = open ("conftest.mmap", O_RDWR); |
|
|
|
|
if (fd < 0) |
|
|
|
|
exit (1); |
|
|
|
|
data2 = (char *) malloc (2 * pagesize); |
|
|
|
|
if (!data2) |
|
|
|
|
exit (1); |
|
|
|
|
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
|
|
|
|
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
|
|
|
|
MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
|
|
|
|
exit (1); |
|
|
|
|
for (i = 0; i < pagesize; ++i) |
|
|
|
|
if (*(data + i) != *(data2 + i)) |
|
|
|
|
exit (1); |
|
|
|
|
|
|
|
|
|
/* Finally, make sure that changes to the mapped area do not |
|
|
|
|
percolate back to the file as seen by read(). (This is a bug on |
|
|
|
|
some variants of i386 svr4.0.) */ |
|
|
|
|
for (i = 0; i < pagesize; ++i) |
|
|
|
|
*(data2 + i) = *(data2 + i) + 1; |
|
|
|
|
data3 = (char *) malloc (pagesize); |
|
|
|
|
if (!data3) |
|
|
|
|
exit (1); |
|
|
|
|
if (read (fd, data3, pagesize) != pagesize) |
|
|
|
|
exit (1); |
|
|
|
|
for (i = 0; i < pagesize; ++i) |
|
|
|
|
if (*(data + i) != *(data3 + i)) |
|
|
|
|
exit (1); |
|
|
|
|
close (fd); |
|
|
|
|
exit (0); |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); } && { ac_try='./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_func_mmap_fixed_mapped=yes |
|
|
|
|
else |
|
|
|
|
echo "$as_me: program exited with status $ac_status" >&5 |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
( exit $ac_status ) |
|
|
|
|
ac_cv_func_mmap_fixed_mapped=no |
|
|
|
|
fi |
|
|
|
|
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
|
|
|
|
if test $ac_cv_func_mmap_fixed_mapped = yes; then |
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
|
|
#define HAVE_MMAP 1 |
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
rm -f conftest.mmap |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check for broken snprintf |
|
|
|
|
if test "x$ac_cv_func_snprintf" = "xyes" ; then |
|
|
|
|
echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 |
|
|
|
|
@ -9402,271 +9764,15 @@ else |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# tcpwrappers support |
|
|
|
|
# rules from http://ma.ph-freiburg.de/tng/tng-technical/2002-01/msg00094.html |
|
|
|
|
|
|
|
|
|
# Check whether --with-tcpwrappers or --without-tcpwrappers was given. |
|
|
|
|
if test "${with_tcpwrappers+set}" = set; then |
|
|
|
|
withval="$with_tcpwrappers" |
|
|
|
|
case "$withval" in |
|
|
|
|
yes|no) tcpw="$withval" ;; |
|
|
|
|
*) { { echo "$as_me:$LINENO: error: --with-tcpwrappers does not take an argument" >&5 |
|
|
|
|
echo "$as_me: error: --with-tcpwrappers does not take an argument" >&2;} |
|
|
|
|
{ (exit 1); exit 1; }; } ;; |
|
|
|
|
esac |
|
|
|
|
# check for in_port_t definition |
|
|
|
|
if test "$cross_compiling" = yes; then |
|
|
|
|
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
|
|
|
|
echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
|
|
|
|
{ (exit 1); exit 1; }; } |
|
|
|
|
else |
|
|
|
|
tcpw=auto |
|
|
|
|
fi; |
|
|
|
|
|
|
|
|
|
if test $tcpw != no ; then |
|
|
|
|
|
|
|
|
|
for ac_header in tcpd.h |
|
|
|
|
do |
|
|
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
|
|
echo "$as_me:$LINENO: 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 |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
else |
|
|
|
|
# Is the header compilable? |
|
|
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
$ac_includes_default |
|
|
|
|
#include <$ac_header> |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
|
|
(eval $ac_compile) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); } && |
|
|
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
|
|
{ (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_header_compiler=yes |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
ac_header_compiler=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
|
|
|
|
# Is the header present? |
|
|
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
#include <$ac_header> |
|
|
|
|
_ACEOF |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$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:$LINENO: \$? = $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_header_preproc=yes |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
ac_header_preproc=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
|
|
|
|
|
|
# So? What about this header? |
|
|
|
|
case $ac_header_compiler:$ac_header_preproc in |
|
|
|
|
yes:no ) |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
|
|
no:yes ) |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
|
|
esac |
|
|
|
|
echo "$as_me:$LINENO: 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 |
|
|
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for TCP wrappers library" >&5 |
|
|
|
|
echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6 |
|
|
|
|
save_LIBS="$LIBS" |
|
|
|
|
LIBS="$LIBS -lwrap" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
|
|
|
|
|
#include <tcpd.h> |
|
|
|
|
int allow_severity = 0; |
|
|
|
|
int deny_severity = 0; |
|
|
|
|
|
|
|
|
|
struct request_info *req; |
|
|
|
|
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
|
|
# ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
# endif |
|
|
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
|
|
#endif |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
hosts_access(req) |
|
|
|
|
|
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 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 |
|
|
|
|
echo "$as_me:$LINENO: result: -lwrap" >&5 |
|
|
|
|
echo "${ECHO_T}-lwrap" >&6 |
|
|
|
|
have_wrappers=yes |
|
|
|
|
LIBS="$save_LIBS" |
|
|
|
|
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lwrap" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
LIBS="$LIBS -lnsl" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
|
|
|
|
|
#include <tcpd.h> |
|
|
|
|
int allow_severity = 0; |
|
|
|
|
int deny_severity = 0; |
|
|
|
|
|
|
|
|
|
struct request_info *req; |
|
|
|
|
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
|
|
# ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
# endif |
|
|
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
|
|
#endif |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
hosts_access(req) |
|
|
|
|
|
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 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 |
|
|
|
|
echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5 |
|
|
|
|
echo "${ECHO_T}-lwrap -lnsl" >&6 |
|
|
|
|
have_wrappers=yes |
|
|
|
|
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lwrap" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
|
|
echo "${ECHO_T}no" >&6 |
|
|
|
|
have_wrappers=no |
|
|
|
|
LIBS=$save_LIBS |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
else |
|
|
|
|
have_wrappers=no |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test $have_wrappers = yes ; then |
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
|
|
#define WITH_TCPWRAP 1 |
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
elif test $tcpw = yes ; then |
|
|
|
|
{ { echo "$as_me:$LINENO: error: could not find TCP wrappers" >&5 |
|
|
|
|
echo "$as_me: error: could not find TCP wrappers" >&2;} |
|
|
|
|
{ (exit 1); exit 1; }; } |
|
|
|
|
else |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5 |
|
|
|
|
echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;} |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# check for in_port_t definition |
|
|
|
|
if test "$cross_compiling" = yes; then |
|
|
|
|
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
|
|
|
|
echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
|
|
|
|
{ (exit 1); exit 1; }; } |
|
|
|
|
else |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
|
|
|
|
|
#include <sys/types.h> |
|
|
|
|
#include <netinet/in.h> |
|
|
|
|
@ -10081,6 +10187,262 @@ fi |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# tcpwrappers support |
|
|
|
|
# rules from http://ma.ph-freiburg.de/tng/tng-technical/2002-01/msg00094.html |
|
|
|
|
|
|
|
|
|
# Check whether --with-tcpwrappers or --without-tcpwrappers was given. |
|
|
|
|
if test "${with_tcpwrappers+set}" = set; then |
|
|
|
|
withval="$with_tcpwrappers" |
|
|
|
|
case "$withval" in |
|
|
|
|
yes|no) tcpw="$withval" ;; |
|
|
|
|
*) { { echo "$as_me:$LINENO: error: --with-tcpwrappers does not take an argument" >&5 |
|
|
|
|
echo "$as_me: error: --with-tcpwrappers does not take an argument" >&2;} |
|
|
|
|
{ (exit 1); exit 1; }; } ;; |
|
|
|
|
esac |
|
|
|
|
else |
|
|
|
|
tcpw=auto |
|
|
|
|
fi; |
|
|
|
|
|
|
|
|
|
if test "$tcpw" != "no" && test "$have_milter" = "yes" ; then |
|
|
|
|
|
|
|
|
|
for ac_header in tcpd.h |
|
|
|
|
do |
|
|
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
|
|
echo "$as_me:$LINENO: 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 |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
else |
|
|
|
|
# Is the header compilable? |
|
|
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
$ac_includes_default |
|
|
|
|
#include <$ac_header> |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
|
|
(eval $ac_compile) 2>&5 |
|
|
|
|
ac_status=$? |
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
|
|
(exit $ac_status); } && |
|
|
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
|
|
{ (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_header_compiler=yes |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
ac_header_compiler=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.$ac_objext conftest.$ac_ext |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
|
|
|
|
|
|
|
# Is the header present? |
|
|
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
#include <$ac_header> |
|
|
|
|
_ACEOF |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$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:$LINENO: \$? = $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_header_preproc=yes |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
ac_header_preproc=no |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.err conftest.$ac_ext |
|
|
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
|
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
|
|
|
|
|
|
|
# So? What about this header? |
|
|
|
|
case $ac_header_compiler:$ac_header_preproc in |
|
|
|
|
yes:no ) |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
|
|
no:yes ) |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
|
|
|
|
esac |
|
|
|
|
echo "$as_me:$LINENO: 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 |
|
|
|
|
eval "$as_ac_Header=$ac_header_preproc" |
|
|
|
|
fi |
|
|
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
|
|
cat >>confdefs.h <<_ACEOF |
|
|
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for TCP wrappers library" >&5 |
|
|
|
|
echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6 |
|
|
|
|
save_LIBS="$LIBS" |
|
|
|
|
LIBS="$LIBS -lwrap $FRESHCLAM_LIBS" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
|
|
|
|
|
#include <tcpd.h> |
|
|
|
|
int allow_severity = 0; |
|
|
|
|
int deny_severity = 0; |
|
|
|
|
|
|
|
|
|
struct request_info *req; |
|
|
|
|
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
|
|
# ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
# endif |
|
|
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
|
|
#endif |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
hosts_access(req) |
|
|
|
|
|
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 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 |
|
|
|
|
echo "$as_me:$LINENO: result: -lwrap" >&5 |
|
|
|
|
echo "${ECHO_T}-lwrap" >&6 |
|
|
|
|
have_wrappers=yes |
|
|
|
|
LIBS="$save_LIBS" |
|
|
|
|
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lwrap" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
LIBS="$LIBS -lnsl $FRESHCLAM_LIBS" |
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
|
|
#line $LINENO "configure" |
|
|
|
|
#include "confdefs.h" |
|
|
|
|
|
|
|
|
|
#include <tcpd.h> |
|
|
|
|
int allow_severity = 0; |
|
|
|
|
int deny_severity = 0; |
|
|
|
|
|
|
|
|
|
struct request_info *req; |
|
|
|
|
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
|
|
# ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
# endif |
|
|
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
|
|
#endif |
|
|
|
|
int |
|
|
|
|
main () |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
hosts_access(req) |
|
|
|
|
|
|
|
|
|
; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
_ACEOF |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
|
|
(eval $ac_link) 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 |
|
|
|
|
echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5 |
|
|
|
|
echo "${ECHO_T}-lwrap -lnsl" >&6 |
|
|
|
|
have_wrappers=yes |
|
|
|
|
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lwrap" |
|
|
|
|
else |
|
|
|
|
echo "$as_me: failed program was:" >&5 |
|
|
|
|
cat conftest.$ac_ext >&5 |
|
|
|
|
|
|
|
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
|
|
echo "${ECHO_T}no" >&6 |
|
|
|
|
have_wrappers=no |
|
|
|
|
LIBS=$save_LIBS |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
fi |
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
|
|
else |
|
|
|
|
have_wrappers=no |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test $have_wrappers = yes ; then |
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF |
|
|
|
|
#define WITH_TCPWRAP 1 |
|
|
|
|
_ACEOF |
|
|
|
|
|
|
|
|
|
elif test $tcpw = yes ; then |
|
|
|
|
{ { echo "$as_me:$LINENO: error: could not find TCP wrappers" >&5 |
|
|
|
|
echo "$as_me: error: could not find TCP wrappers" >&2;} |
|
|
|
|
{ (exit 1); exit 1; }; } |
|
|
|
|
else |
|
|
|
|
{ echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5 |
|
|
|
|
echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;} |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "$test_clamav" = "yes" |
|
|
|
|
then |
|
|
|
|
|