git-svn: trunk@4545
aCaB authored on 2008/12/08 00:12:07... | ... |
@@ -269,7 +269,6 @@ prefix = @prefix@ |
269 | 269 |
program_transform_name = @program_transform_name@ |
270 | 270 |
psdir = @psdir@ |
271 | 271 |
sbindir = @sbindir@ |
272 |
-sendmailprog = @sendmailprog@ |
|
273 | 272 |
sharedstatedir = @sharedstatedir@ |
274 | 273 |
srcdir = @srcdir@ |
275 | 274 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -232,9 +232,6 @@ |
232 | 232 |
/* Define to 1 if you have the <limits.h> header file. */ |
233 | 233 |
#undef HAVE_LIMITS_H |
234 | 234 |
|
235 |
-/* Define to 1 if -lresolv provides thread safe API's like res_nquery */ |
|
236 |
-#undef HAVE_LRESOLV_R |
|
237 |
- |
|
238 | 235 |
/* Define this if a modern libltdl is already installed */ |
239 | 236 |
#undef HAVE_LTDL |
240 | 237 |
|
... | ... |
@@ -377,9 +374,6 @@ |
377 | 377 |
/* Define to 1 if you have the <sys/uio.h> header file. */ |
378 | 378 |
#undef HAVE_SYS_UIO_H |
379 | 379 |
|
380 |
-/* Define to 1 if you have the <tcpd.h> header file. */ |
|
381 |
-#undef HAVE_TCPD_H |
|
382 |
- |
|
383 | 380 |
/* Define to 1 if you have the <termios.h> header file. */ |
384 | 381 |
#undef HAVE_TERMIOS_H |
385 | 382 |
|
... | ... |
@@ -448,18 +442,6 @@ |
448 | 448 |
/* scan buffer size */ |
449 | 449 |
#undef SCANBUFF |
450 | 450 |
|
451 |
-/* location of Sendmail binary */ |
|
452 |
-#undef SENDMAIL_BIN |
|
453 |
- |
|
454 |
-/* major version of Sendmail */ |
|
455 |
-#undef SENDMAIL_VERSION_A |
|
456 |
- |
|
457 |
-/* minor version of Sendmail */ |
|
458 |
-#undef SENDMAIL_VERSION_B |
|
459 |
- |
|
460 |
-/* subversion of Sendmail */ |
|
461 |
-#undef SENDMAIL_VERSION_C |
|
462 |
- |
|
463 | 451 |
/* Define to 1 if the `setpgrp' function takes no argument. */ |
464 | 452 |
#undef SETPGRP_VOID |
465 | 453 |
|
... | ... |
@@ -496,9 +478,6 @@ |
496 | 496 |
/* Version suffix for package */ |
497 | 497 |
#undef VERSION_SUFFIX |
498 | 498 |
|
499 |
-/* tcpwrappers support */ |
|
500 |
-#undef WITH_TCPWRAP |
|
501 |
- |
|
502 | 499 |
/* endianess */ |
503 | 500 |
#undef WORDS_BIGENDIAN |
504 | 501 |
|
... | ... |
@@ -258,7 +258,6 @@ prefix = @prefix@ |
258 | 258 |
program_transform_name = @program_transform_name@ |
259 | 259 |
psdir = @psdir@ |
260 | 260 |
sbindir = @sbindir@ |
261 |
-sendmailprog = @sendmailprog@ |
|
262 | 261 |
sharedstatedir = @sharedstatedir@ |
263 | 262 |
srcdir = @srcdir@ |
264 | 263 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -237,7 +237,6 @@ prefix = @prefix@ |
237 | 237 |
program_transform_name = @program_transform_name@ |
238 | 238 |
psdir = @psdir@ |
239 | 239 |
sbindir = @sbindir@ |
240 |
-sendmailprog = @sendmailprog@ |
|
241 | 240 |
sharedstatedir = @sharedstatedir@ |
242 | 241 |
srcdir = @srcdir@ |
243 | 242 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -257,7 +257,6 @@ prefix = @prefix@ |
257 | 257 |
program_transform_name = @program_transform_name@ |
258 | 258 |
psdir = @psdir@ |
259 | 259 |
sbindir = @sbindir@ |
260 |
-sendmailprog = @sendmailprog@ |
|
261 | 260 |
sharedstatedir = @sharedstatedir@ |
262 | 261 |
srcdir = @srcdir@ |
263 | 262 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -248,7 +248,6 @@ prefix = @prefix@ |
248 | 248 |
program_transform_name = @program_transform_name@ |
249 | 249 |
psdir = @psdir@ |
250 | 250 |
sbindir = @sbindir@ |
251 |
-sendmailprog = @sendmailprog@ |
|
252 | 251 |
sharedstatedir = @sharedstatedir@ |
253 | 252 |
srcdir = @srcdir@ |
254 | 253 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -239,7 +239,6 @@ prefix = @prefix@ |
239 | 239 |
program_transform_name = @program_transform_name@ |
240 | 240 |
psdir = @psdir@ |
241 | 241 |
sbindir = @sbindir@ |
242 |
-sendmailprog = @sendmailprog@ |
|
243 | 242 |
sharedstatedir = @sharedstatedir@ |
244 | 243 |
srcdir = @srcdir@ |
245 | 244 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -927,7 +927,6 @@ CLAMAV_MILTER_LIBS |
927 | 927 |
FRESHCLAM_LIBS |
928 | 928 |
TH_SAFE |
929 | 929 |
THREAD_LIBS |
930 |
-sendmailprog |
|
931 | 930 |
BUILD_CLAMD_TRUE |
932 | 931 |
BUILD_CLAMD_FALSE |
933 | 932 |
HAVE_MILTER_TRUE |
... | ... |
@@ -1591,9 +1590,6 @@ Optional Packages: |
1591 | 1591 |
--with-user=uid name of the clamav user (default=clamav) |
1592 | 1592 |
--with-group=gid name of the clamav group (default=clamav) |
1593 | 1593 |
--with-dbdir=path path to virus database directory |
1594 |
- --with-sendmail=PATH specify location of Sendmail binary (default=auto find) |
|
1595 |
- --with-sendmail-version=VERSION specify version of Sendmail (default=auto find) |
|
1596 |
- --with-tcpwrappers support hosts.allow / hosts.deny (default=auto) |
|
1597 | 1594 |
|
1598 | 1595 |
Some influential environment variables: |
1599 | 1596 |
CC C compiler command |
... | ... |
@@ -4789,13 +4785,13 @@ if test "${lt_cv_nm_interface+set}" = set; then |
4789 | 4789 |
else |
4790 | 4790 |
lt_cv_nm_interface="BSD nm" |
4791 | 4791 |
echo "int some_variable = 0;" > conftest.$ac_ext |
4792 |
- (eval echo "\"\$as_me:4792: $ac_compile\"" >&5) |
|
4792 |
+ (eval echo "\"\$as_me:4788: $ac_compile\"" >&5) |
|
4793 | 4793 |
(eval "$ac_compile" 2>conftest.err) |
4794 | 4794 |
cat conftest.err >&5 |
4795 |
- (eval echo "\"\$as_me:4795: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
|
4795 |
+ (eval echo "\"\$as_me:4791: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
|
4796 | 4796 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4797 | 4797 |
cat conftest.err >&5 |
4798 |
- (eval echo "\"\$as_me:4798: output\"" >&5) |
|
4798 |
+ (eval echo "\"\$as_me:4794: output\"" >&5) |
|
4799 | 4799 |
cat conftest.out >&5 |
4800 | 4800 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
4801 | 4801 |
lt_cv_nm_interface="MS dumpbin" |
... | ... |
@@ -6006,7 +6002,7 @@ ia64-*-hpux*) |
6006 | 6006 |
;; |
6007 | 6007 |
*-*-irix6*) |
6008 | 6008 |
# Find out which ABI we are using. |
6009 |
- echo '#line 6009 "configure"' > conftest.$ac_ext |
|
6009 |
+ echo '#line 6005 "configure"' > conftest.$ac_ext |
|
6010 | 6010 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6011 | 6011 |
(eval $ac_compile) 2>&5 |
6012 | 6012 |
ac_status=$? |
... | ... |
@@ -7856,11 +7852,11 @@ else |
7856 | 7856 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7857 | 7857 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7858 | 7858 |
-e 's:$: $lt_compiler_flag:'` |
7859 |
- (eval echo "\"\$as_me:7859: $lt_compile\"" >&5) |
|
7859 |
+ (eval echo "\"\$as_me:7855: $lt_compile\"" >&5) |
|
7860 | 7860 |
(eval "$lt_compile" 2>conftest.err) |
7861 | 7861 |
ac_status=$? |
7862 | 7862 |
cat conftest.err >&5 |
7863 |
- echo "$as_me:7863: \$? = $ac_status" >&5 |
|
7863 |
+ echo "$as_me:7859: \$? = $ac_status" >&5 |
|
7864 | 7864 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7865 | 7865 |
# The compiler can only warn and ignore the option if not recognized |
7866 | 7866 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -8195,11 +8191,11 @@ else |
8195 | 8195 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8196 | 8196 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8197 | 8197 |
-e 's:$: $lt_compiler_flag:'` |
8198 |
- (eval echo "\"\$as_me:8198: $lt_compile\"" >&5) |
|
8198 |
+ (eval echo "\"\$as_me:8194: $lt_compile\"" >&5) |
|
8199 | 8199 |
(eval "$lt_compile" 2>conftest.err) |
8200 | 8200 |
ac_status=$? |
8201 | 8201 |
cat conftest.err >&5 |
8202 |
- echo "$as_me:8202: \$? = $ac_status" >&5 |
|
8202 |
+ echo "$as_me:8198: \$? = $ac_status" >&5 |
|
8203 | 8203 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8204 | 8204 |
# The compiler can only warn and ignore the option if not recognized |
8205 | 8205 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -8300,11 +8296,11 @@ else |
8300 | 8300 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8301 | 8301 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8302 | 8302 |
-e 's:$: $lt_compiler_flag:'` |
8303 |
- (eval echo "\"\$as_me:8303: $lt_compile\"" >&5) |
|
8303 |
+ (eval echo "\"\$as_me:8299: $lt_compile\"" >&5) |
|
8304 | 8304 |
(eval "$lt_compile" 2>out/conftest.err) |
8305 | 8305 |
ac_status=$? |
8306 | 8306 |
cat out/conftest.err >&5 |
8307 |
- echo "$as_me:8307: \$? = $ac_status" >&5 |
|
8307 |
+ echo "$as_me:8303: \$? = $ac_status" >&5 |
|
8308 | 8308 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8309 | 8309 |
then |
8310 | 8310 |
# The compiler can only warn and ignore the option if not recognized |
... | ... |
@@ -8355,11 +8351,11 @@ else |
8355 | 8355 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8356 | 8356 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8357 | 8357 |
-e 's:$: $lt_compiler_flag:'` |
8358 |
- (eval echo "\"\$as_me:8358: $lt_compile\"" >&5) |
|
8358 |
+ (eval echo "\"\$as_me:8354: $lt_compile\"" >&5) |
|
8359 | 8359 |
(eval "$lt_compile" 2>out/conftest.err) |
8360 | 8360 |
ac_status=$? |
8361 | 8361 |
cat out/conftest.err >&5 |
8362 |
- echo "$as_me:8362: \$? = $ac_status" >&5 |
|
8362 |
+ echo "$as_me:8358: \$? = $ac_status" >&5 |
|
8363 | 8363 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8364 | 8364 |
then |
8365 | 8365 |
# The compiler can only warn and ignore the option if not recognized |
... | ... |
@@ -11111,7 +11107,7 @@ else |
11111 | 11111 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11112 | 11112 |
lt_status=$lt_dlunknown |
11113 | 11113 |
cat > conftest.$ac_ext <<_LT_EOF |
11114 |
-#line 11114 "configure" |
|
11114 |
+#line 11110 "configure" |
|
11115 | 11115 |
#include "confdefs.h" |
11116 | 11116 |
|
11117 | 11117 |
#if HAVE_DLFCN_H |
... | ... |
@@ -11207,7 +11203,7 @@ else |
11207 | 11207 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11208 | 11208 |
lt_status=$lt_dlunknown |
11209 | 11209 |
cat > conftest.$ac_ext <<_LT_EOF |
11210 |
-#line 11210 "configure" |
|
11210 |
+#line 11206 "configure" |
|
11211 | 11211 |
#include "confdefs.h" |
11212 | 11212 |
|
11213 | 11213 |
#if HAVE_DLFCN_H |
... | ... |
@@ -12322,7 +12318,7 @@ else |
12322 | 12322 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12323 | 12323 |
lt_status=$lt_dlunknown |
12324 | 12324 |
cat > conftest.$ac_ext <<_LT_EOF |
12325 |
-#line 12325 "configure" |
|
12325 |
+#line 12321 "configure" |
|
12326 | 12326 |
#include "confdefs.h" |
12327 | 12327 |
|
12328 | 12328 |
#if HAVE_DLFCN_H |
... | ... |
@@ -19133,72 +19129,11 @@ fi |
19133 | 19133 |
|
19134 | 19134 |
if test "x$ac_cv_have_lresolv" != "xno"; then |
19135 | 19135 |
FRESHCLAM_LIBS="$FRESHCLAM_LIBS$ac_cv_have_lresolv" |
19136 |
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS$ac_cv_have_lresolv" |
|
19137 |
- bklibs=$LIBS |
|
19138 |
- LIBS=$ac_cv_have_lresolv |
|
19139 | 19136 |
|
19140 | 19137 |
cat >>confdefs.h <<\_ACEOF |
19141 | 19138 |
#define HAVE_RESOLV_H 1 |
19142 | 19139 |
_ACEOF |
19143 | 19140 |
|
19144 |
- { echo "$as_me:$LINENO: checking for res_nquery in -lresolv" >&5 |
|
19145 |
-echo $ECHO_N "checking for res_nquery in -lresolv... $ECHO_C" >&6; } |
|
19146 |
-if test "${ac_cv_have_lresolv_r+set}" = set; then |
|
19147 |
- echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
19148 |
-else |
|
19149 |
- |
|
19150 |
- ac_cv_have_lresolv_r='no' |
|
19151 |
- cat >conftest.$ac_ext <<_ACEOF |
|
19152 |
- |
|
19153 |
-#include <sys/types.h> |
|
19154 |
-#include <netinet/in.h> |
|
19155 |
-#include <arpa/nameser.h> |
|
19156 |
-#include <resolv.h> |
|
19157 |
-int main() { return (long)res_nquery; } |
|
19158 |
- |
|
19159 |
-_ACEOF |
|
19160 |
-rm -f conftest.$ac_objext conftest$ac_exeext |
|
19161 |
-if { (ac_try="$ac_link" |
|
19162 |
-case "(($ac_try" in |
|
19163 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
19164 |
- *) ac_try_echo=$ac_try;; |
|
19165 |
-esac |
|
19166 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
19167 |
- (eval "$ac_link") 2>conftest.er1 |
|
19168 |
- ac_status=$? |
|
19169 |
- grep -v '^ *+' conftest.er1 >conftest.err |
|
19170 |
- rm -f conftest.er1 |
|
19171 |
- cat conftest.err >&5 |
|
19172 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
19173 |
- (exit $ac_status); } && { |
|
19174 |
- test -z "$ac_c_werror_flag" || |
|
19175 |
- test ! -s conftest.err |
|
19176 |
- } && test -s conftest$ac_exeext && |
|
19177 |
- $as_test_x conftest$ac_exeext; then |
|
19178 |
- |
|
19179 |
- ac_cv_have_lresolv_r='yes' |
|
19180 |
- |
|
19181 |
-else |
|
19182 |
- echo "$as_me: failed program was:" >&5 |
|
19183 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
19184 |
- |
|
19185 |
- |
|
19186 |
-fi |
|
19187 |
- |
|
19188 |
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
19189 |
- conftest$ac_exeext conftest.$ac_ext, |
|
19190 |
- |
|
19191 |
-fi |
|
19192 |
-{ echo "$as_me:$LINENO: result: $ac_cv_have_lresolv_r" >&5 |
|
19193 |
-echo "${ECHO_T}$ac_cv_have_lresolv_r" >&6; } |
|
19194 |
- LIBS=$bklibs |
|
19195 |
- if test "x$ac_cv_have_lresolv_r" = "xyes"; then |
|
19196 |
- |
|
19197 |
-cat >>confdefs.h <<\_ACEOF |
|
19198 |
-#define HAVE_LRESOLV_R 1 |
|
19199 |
-_ACEOF |
|
19200 |
- |
|
19201 |
- fi |
|
19202 | 19141 |
else |
19203 | 19142 |
{ echo "$as_me:$LINENO: WARNING: ****** DNS support disabled" >&5 |
19204 | 19143 |
echo "$as_me: WARNING: ****** DNS support disabled" >&2;} |
... | ... |
@@ -21242,181 +21177,6 @@ done |
21242 | 21242 |
|
21243 | 21243 |
fi |
21244 | 21244 |
|
21245 |
-if test "$have_milter" = "yes"; then |
|
21246 |
- sendmailprog=no |
|
21247 |
- |
|
21248 |
-# Check whether --with-sendmail was given. |
|
21249 |
-if test "${with_sendmail+set}" = set; then |
|
21250 |
- withval=$with_sendmail; sendmailprog=$with_sendmail |
|
21251 |
-else |
|
21252 |
- sendmailprog=no |
|
21253 |
-fi |
|
21254 |
- |
|
21255 |
- |
|
21256 |
- if test "$sendmailprog" = "no" ; then |
|
21257 |
- # Extract the first word of "sendmail", so it can be a program name with args. |
|
21258 |
-set dummy sendmail; ac_word=$2 |
|
21259 |
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
21260 |
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
21261 |
-if test "${ac_cv_path_sendmailprog+set}" = set; then |
|
21262 |
- echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21263 |
-else |
|
21264 |
- case $sendmailprog in |
|
21265 |
- [\\/]* | ?:[\\/]*) |
|
21266 |
- ac_cv_path_sendmailprog="$sendmailprog" # Let the user override the test with a path. |
|
21267 |
- ;; |
|
21268 |
- *) |
|
21269 |
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
21270 |
-as_dummy="$PATH:/sbin:/usr/sbin:/usr/lib:/usr/libexec" |
|
21271 |
-for as_dir in $as_dummy |
|
21272 |
-do |
|
21273 |
- IFS=$as_save_IFS |
|
21274 |
- test -z "$as_dir" && as_dir=. |
|
21275 |
- for ac_exec_ext in '' $ac_executable_extensions; do |
|
21276 |
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
21277 |
- ac_cv_path_sendmailprog="$as_dir/$ac_word$ac_exec_ext" |
|
21278 |
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
21279 |
- break 2 |
|
21280 |
- fi |
|
21281 |
-done |
|
21282 |
-done |
|
21283 |
-IFS=$as_save_IFS |
|
21284 |
- |
|
21285 |
- test -z "$ac_cv_path_sendmailprog" && ac_cv_path_sendmailprog="no" |
|
21286 |
- ;; |
|
21287 |
-esac |
|
21288 |
-fi |
|
21289 |
-sendmailprog=$ac_cv_path_sendmailprog |
|
21290 |
-if test -n "$sendmailprog"; then |
|
21291 |
- { echo "$as_me:$LINENO: result: $sendmailprog" >&5 |
|
21292 |
-echo "${ECHO_T}$sendmailprog" >&6; } |
|
21293 |
-else |
|
21294 |
- { echo "$as_me:$LINENO: result: no" >&5 |
|
21295 |
-echo "${ECHO_T}no" >&6; } |
|
21296 |
-fi |
|
21297 |
- |
|
21298 |
- |
|
21299 |
- fi |
|
21300 |
- |
|
21301 |
- |
|
21302 |
-cat >>confdefs.h <<_ACEOF |
|
21303 |
-#define SENDMAIL_BIN "$sendmailprog" |
|
21304 |
-_ACEOF |
|
21305 |
- |
|
21306 |
- |
|
21307 |
- |
|
21308 |
-# Check whether --with-sendmail-version was given. |
|
21309 |
-if test "${with_sendmail_version+set}" = set; then |
|
21310 |
- withval=$with_sendmail_version; sendmailvers=$with_sendmail_version |
|
21311 |
-else |
|
21312 |
- sendmailvers=no |
|
21313 |
-fi |
|
21314 |
- |
|
21315 |
- |
|
21316 |
- if test "$sendmailvers" = "no" ; then |
|
21317 |
- sendmailver=`$sendmailprog -d0 < /dev/null | head -1 | awk '{print $2}'` |
|
21318 |
- fi |
|
21319 |
- |
|
21320 |
- if test -z "$sendmailver"; then |
|
21321 |
- # example: postfix |
|
21322 |
- LDFLAGS="$LDFLAGS $CLAMAV_MILTER_LIBS" |
|
21323 |
- { echo "$as_me:$LINENO: checking for smfi_opensocket in -lmilter" >&5 |
|
21324 |
-echo $ECHO_N "checking for smfi_opensocket in -lmilter... $ECHO_C" >&6; } |
|
21325 |
-if test "${ac_cv_lib_milter_smfi_opensocket+set}" = set; then |
|
21326 |
- echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21327 |
-else |
|
21328 |
- ac_check_lib_save_LIBS=$LIBS |
|
21329 |
-LIBS="-lmilter $LIBS" |
|
21330 |
-cat >conftest.$ac_ext <<_ACEOF |
|
21331 |
-/* confdefs.h. */ |
|
21332 |
-_ACEOF |
|
21333 |
-cat confdefs.h >>conftest.$ac_ext |
|
21334 |
-cat >>conftest.$ac_ext <<_ACEOF |
|
21335 |
-/* end confdefs.h. */ |
|
21336 |
- |
|
21337 |
-/* Override any GCC internal prototype to avoid an error. |
|
21338 |
- Use char because int might match the return type of a GCC |
|
21339 |
- builtin and then its argument prototype would still apply. */ |
|
21340 |
-#ifdef __cplusplus |
|
21341 |
-extern "C" |
|
21342 |
-#endif |
|
21343 |
-char smfi_opensocket (); |
|
21344 |
-int |
|
21345 |
-main () |
|
21346 |
-{ |
|
21347 |
-return smfi_opensocket (); |
|
21348 |
- ; |
|
21349 |
- return 0; |
|
21350 |
-} |
|
21351 |
-_ACEOF |
|
21352 |
-rm -f conftest.$ac_objext conftest$ac_exeext |
|
21353 |
-if { (ac_try="$ac_link" |
|
21354 |
-case "(($ac_try" in |
|
21355 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21356 |
- *) ac_try_echo=$ac_try;; |
|
21357 |
-esac |
|
21358 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21359 |
- (eval "$ac_link") 2>conftest.er1 |
|
21360 |
- ac_status=$? |
|
21361 |
- grep -v '^ *+' conftest.er1 >conftest.err |
|
21362 |
- rm -f conftest.er1 |
|
21363 |
- cat conftest.err >&5 |
|
21364 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21365 |
- (exit $ac_status); } && { |
|
21366 |
- test -z "$ac_c_werror_flag" || |
|
21367 |
- test ! -s conftest.err |
|
21368 |
- } && test -s conftest$ac_exeext && |
|
21369 |
- $as_test_x conftest$ac_exeext; then |
|
21370 |
- ac_cv_lib_milter_smfi_opensocket=yes |
|
21371 |
-else |
|
21372 |
- echo "$as_me: failed program was:" >&5 |
|
21373 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
21374 |
- |
|
21375 |
- ac_cv_lib_milter_smfi_opensocket=no |
|
21376 |
-fi |
|
21377 |
- |
|
21378 |
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
21379 |
- conftest$ac_exeext conftest.$ac_ext |
|
21380 |
-LIBS=$ac_check_lib_save_LIBS |
|
21381 |
-fi |
|
21382 |
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_milter_smfi_opensocket" >&5 |
|
21383 |
-echo "${ECHO_T}$ac_cv_lib_milter_smfi_opensocket" >&6; } |
|
21384 |
-if test $ac_cv_lib_milter_smfi_opensocket = yes; then |
|
21385 |
- sendmailver="8.13.0" |
|
21386 |
-else |
|
21387 |
- { echo "$as_me:$LINENO: WARNING: cannot determine sendmail version" >&5 |
|
21388 |
-echo "$as_me: WARNING: cannot determine sendmail version" >&2;} |
|
21389 |
-fi |
|
21390 |
- |
|
21391 |
- LDFLAGS="$save_LDFLAGS" |
|
21392 |
- fi |
|
21393 |
- if test -n "$sendmailver"; then |
|
21394 |
- sendmailver_a=`echo $sendmailver | awk -F. '{printf $1}'` |
|
21395 |
- sendmailver_b=`echo $sendmailver | awk -F. '{printf $2}'` |
|
21396 |
- sendmailver_c=`echo $sendmailver | awk -F. '{printf $3}'` |
|
21397 |
- |
|
21398 |
- |
|
21399 |
-cat >>confdefs.h <<_ACEOF |
|
21400 |
-#define SENDMAIL_VERSION_A $sendmailver_a |
|
21401 |
-_ACEOF |
|
21402 |
- |
|
21403 |
- |
|
21404 |
-cat >>confdefs.h <<_ACEOF |
|
21405 |
-#define SENDMAIL_VERSION_B $sendmailver_b |
|
21406 |
-_ACEOF |
|
21407 |
- |
|
21408 |
- |
|
21409 |
-cat >>confdefs.h <<_ACEOF |
|
21410 |
-#define SENDMAIL_VERSION_C $sendmailver_c |
|
21411 |
-_ACEOF |
|
21412 |
- |
|
21413 |
- fi |
|
21414 |
- if test "x$ac_cv_have_lresolv_r" != "xyes"; then |
|
21415 |
- { echo "$as_me:$LINENO: WARNING: ****** Your libresolv is not thread safe, SPF queries in clamav-milter will block" >&5 |
|
21416 |
-echo "$as_me: WARNING: ****** Your libresolv is not thread safe, SPF queries in clamav-milter will block" >&2;} |
|
21417 |
- fi |
|
21418 |
-fi |
|
21419 |
- |
|
21420 | 21245 |
if test "$have_pthreads" = "yes"; then |
21421 | 21246 |
BUILD_CLAMD_TRUE= |
21422 | 21247 |
BUILD_CLAMD_FALSE='#' |
... | ... |
@@ -21541,309 +21301,6 @@ _ACEOF |
21541 | 21541 |
|
21542 | 21542 |
fi |
21543 | 21543 |
|
21544 |
- |
|
21545 |
-# Check whether --with-tcpwrappers was given. |
|
21546 |
-if test "${with_tcpwrappers+set}" = set; then |
|
21547 |
- withval=$with_tcpwrappers; case "$withval" in |
|
21548 |
- yes|no) tcpw="$withval" ;; |
|
21549 |
- *) { { echo "$as_me:$LINENO: error: --with-tcpwrappers does not take an argument" >&5 |
|
21550 |
-echo "$as_me: error: --with-tcpwrappers does not take an argument" >&2;} |
|
21551 |
- { (exit 1); exit 1; }; } ;; |
|
21552 |
- esac |
|
21553 |
-else |
|
21554 |
- tcpw=auto |
|
21555 |
-fi |
|
21556 |
- |
|
21557 |
- |
|
21558 |
-if test "$tcpw" != "no" && test "$have_milter" = "yes" ; then |
|
21559 |
- |
|
21560 |
-for ac_header in tcpd.h |
|
21561 |
-do |
|
21562 |
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
21563 |
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21564 |
- { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
21565 |
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
21566 |
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21567 |
- echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21568 |
-fi |
|
21569 |
-ac_res=`eval echo '${'$as_ac_Header'}'` |
|
21570 |
- { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21571 |
-echo "${ECHO_T}$ac_res" >&6; } |
|
21572 |
-else |
|
21573 |
- # Is the header compilable? |
|
21574 |
-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
21575 |
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
21576 |
-cat >conftest.$ac_ext <<_ACEOF |
|
21577 |
-/* confdefs.h. */ |
|
21578 |
-_ACEOF |
|
21579 |
-cat confdefs.h >>conftest.$ac_ext |
|
21580 |
-cat >>conftest.$ac_ext <<_ACEOF |
|
21581 |
-/* end confdefs.h. */ |
|
21582 |
-$ac_includes_default |
|
21583 |
-#include <$ac_header> |
|
21584 |
-_ACEOF |
|
21585 |
-rm -f conftest.$ac_objext |
|
21586 |
-if { (ac_try="$ac_compile" |
|
21587 |
-case "(($ac_try" in |
|
21588 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21589 |
- *) ac_try_echo=$ac_try;; |
|
21590 |
-esac |
|
21591 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21592 |
- (eval "$ac_compile") 2>conftest.er1 |
|
21593 |
- ac_status=$? |
|
21594 |
- grep -v '^ *+' conftest.er1 >conftest.err |
|
21595 |
- rm -f conftest.er1 |
|
21596 |
- cat conftest.err >&5 |
|
21597 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21598 |
- (exit $ac_status); } && { |
|
21599 |
- test -z "$ac_c_werror_flag" || |
|
21600 |
- test ! -s conftest.err |
|
21601 |
- } && test -s conftest.$ac_objext; then |
|
21602 |
- ac_header_compiler=yes |
|
21603 |
-else |
|
21604 |
- echo "$as_me: failed program was:" >&5 |
|
21605 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
21606 |
- |
|
21607 |
- ac_header_compiler=no |
|
21608 |
-fi |
|
21609 |
- |
|
21610 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
21611 |
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
21612 |
-echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
21613 |
- |
|
21614 |
-# Is the header present? |
|
21615 |
-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
21616 |
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
21617 |
-cat >conftest.$ac_ext <<_ACEOF |
|
21618 |
-/* confdefs.h. */ |
|
21619 |
-_ACEOF |
|
21620 |
-cat confdefs.h >>conftest.$ac_ext |
|
21621 |
-cat >>conftest.$ac_ext <<_ACEOF |
|
21622 |
-/* end confdefs.h. */ |
|
21623 |
-#include <$ac_header> |
|
21624 |
-_ACEOF |
|
21625 |
-if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
21626 |
-case "(($ac_try" in |
|
21627 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21628 |
- *) ac_try_echo=$ac_try;; |
|
21629 |
-esac |
|
21630 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21631 |
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
21632 |
- ac_status=$? |
|
21633 |
- grep -v '^ *+' conftest.er1 >conftest.err |
|
21634 |
- rm -f conftest.er1 |
|
21635 |
- cat conftest.err >&5 |
|
21636 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21637 |
- (exit $ac_status); } >/dev/null && { |
|
21638 |
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
21639 |
- test ! -s conftest.err |
|
21640 |
- }; then |
|
21641 |
- ac_header_preproc=yes |
|
21642 |
-else |
|
21643 |
- echo "$as_me: failed program was:" >&5 |
|
21644 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
21645 |
- |
|
21646 |
- ac_header_preproc=no |
|
21647 |
-fi |
|
21648 |
- |
|
21649 |
-rm -f conftest.err conftest.$ac_ext |
|
21650 |
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
21651 |
-echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
21652 |
- |
|
21653 |
-# So? What about this header? |
|
21654 |
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
21655 |
- yes:no: ) |
|
21656 |
- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
21657 |
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
21658 |
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
21659 |
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
21660 |
- ac_header_preproc=yes |
|
21661 |
- ;; |
|
21662 |
- no:yes:* ) |
|
21663 |
- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
21664 |
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
21665 |
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
21666 |
-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
21667 |
- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
21668 |
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
21669 |
- { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
21670 |
-echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
21671 |
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
21672 |
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
21673 |
- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
21674 |
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
21675 |
- ( cat <<\_ASBOX |
|
21676 |
-## -------------------------------------- ## |
|
21677 |
-## Report this to http://bugs.clamav.net/ ## |
|
21678 |
-## -------------------------------------- ## |
|
21679 |
-_ASBOX |
|
21680 |
- ) | sed "s/^/$as_me: WARNING: /" >&2 |
|
21681 |
- ;; |
|
21682 |
-esac |
|
21683 |
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
21684 |
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
21685 |
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
21686 |
- echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
21687 |
-else |
|
21688 |
- eval "$as_ac_Header=\$ac_header_preproc" |
|
21689 |
-fi |
|
21690 |
-ac_res=`eval echo '${'$as_ac_Header'}'` |
|
21691 |
- { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
21692 |
-echo "${ECHO_T}$ac_res" >&6; } |
|
21693 |
- |
|
21694 |
-fi |
|
21695 |
-if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
21696 |
- cat >>confdefs.h <<_ACEOF |
|
21697 |
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
21698 |
-_ACEOF |
|
21699 |
- |
|
21700 |
- { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5 |
|
21701 |
-echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; } |
|
21702 |
- save_LIBS="$LIBS" |
|
21703 |
- LIBS="$LIBS -lwrap $FRESHCLAM_LIBS" |
|
21704 |
- cat >conftest.$ac_ext <<_ACEOF |
|
21705 |
-/* confdefs.h. */ |
|
21706 |
-_ACEOF |
|
21707 |
-cat confdefs.h >>conftest.$ac_ext |
|
21708 |
-cat >>conftest.$ac_ext <<_ACEOF |
|
21709 |
-/* end confdefs.h. */ |
|
21710 |
- |
|
21711 |
-#ifdef HAVE_SYS_TYPES_H |
|
21712 |
-#include <sys/types.h> |
|
21713 |
-#endif |
|
21714 |
-#include <tcpd.h> |
|
21715 |
-int allow_severity = 0; |
|
21716 |
-int deny_severity = 0; |
|
21717 |
- |
|
21718 |
-struct request_info *req; |
|
21719 |
- |
|
21720 |
-int |
|
21721 |
-main () |
|
21722 |
-{ |
|
21723 |
- |
|
21724 |
-hosts_access(req) |
|
21725 |
- |
|
21726 |
- ; |
|
21727 |
- return 0; |
|
21728 |
-} |
|
21729 |
-_ACEOF |
|
21730 |
-rm -f conftest.$ac_objext conftest$ac_exeext |
|
21731 |
-if { (ac_try="$ac_link" |
|
21732 |
-case "(($ac_try" in |
|
21733 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21734 |
- *) ac_try_echo=$ac_try;; |
|
21735 |
-esac |
|
21736 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21737 |
- (eval "$ac_link") 2>conftest.er1 |
|
21738 |
- ac_status=$? |
|
21739 |
- grep -v '^ *+' conftest.er1 >conftest.err |
|
21740 |
- rm -f conftest.er1 |
|
21741 |
- cat conftest.err >&5 |
|
21742 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21743 |
- (exit $ac_status); } && { |
|
21744 |
- test -z "$ac_c_werror_flag" || |
|
21745 |
- test ! -s conftest.err |
|
21746 |
- } && test -s conftest$ac_exeext && |
|
21747 |
- $as_test_x conftest$ac_exeext; then |
|
21748 |
- { echo "$as_me:$LINENO: result: -lwrap" >&5 |
|
21749 |
-echo "${ECHO_T}-lwrap" >&6; } |
|
21750 |
- have_wrappers=yes |
|
21751 |
- LIBS="$save_LIBS" |
|
21752 |
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lwrap" |
|
21753 |
-else |
|
21754 |
- echo "$as_me: failed program was:" >&5 |
|
21755 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
21756 |
- |
|
21757 |
- |
|
21758 |
- LIBS="$LIBS -lnsl $FRESHCLAM_LIBS" |
|
21759 |
- cat >conftest.$ac_ext <<_ACEOF |
|
21760 |
-/* confdefs.h. */ |
|
21761 |
-_ACEOF |
|
21762 |
-cat confdefs.h >>conftest.$ac_ext |
|
21763 |
-cat >>conftest.$ac_ext <<_ACEOF |
|
21764 |
-/* end confdefs.h. */ |
|
21765 |
- |
|
21766 |
-#ifdef HAVE_SYS_TYPES_H |
|
21767 |
-#include <sys/types.h> |
|
21768 |
-#endif |
|
21769 |
-#include <tcpd.h> |
|
21770 |
-int allow_severity = 0; |
|
21771 |
-int deny_severity = 0; |
|
21772 |
- |
|
21773 |
-struct request_info *req; |
|
21774 |
- |
|
21775 |
-int |
|
21776 |
-main () |
|
21777 |
-{ |
|
21778 |
- |
|
21779 |
-hosts_access(req) |
|
21780 |
- |
|
21781 |
- ; |
|
21782 |
- return 0; |
|
21783 |
-} |
|
21784 |
-_ACEOF |
|
21785 |
-rm -f conftest.$ac_objext conftest$ac_exeext |
|
21786 |
-if { (ac_try="$ac_link" |
|
21787 |
-case "(($ac_try" in |
|
21788 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
21789 |
- *) ac_try_echo=$ac_try;; |
|
21790 |
-esac |
|
21791 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
21792 |
- (eval "$ac_link") 2>conftest.er1 |
|
21793 |
- ac_status=$? |
|
21794 |
- grep -v '^ *+' conftest.er1 >conftest.err |
|
21795 |
- rm -f conftest.er1 |
|
21796 |
- cat conftest.err >&5 |
|
21797 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
21798 |
- (exit $ac_status); } && { |
|
21799 |
- test -z "$ac_c_werror_flag" || |
|
21800 |
- test ! -s conftest.err |
|
21801 |
- } && test -s conftest$ac_exeext && |
|
21802 |
- $as_test_x conftest$ac_exeext; then |
|
21803 |
- { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5 |
|
21804 |
-echo "${ECHO_T}-lwrap -lnsl" >&6; } |
|
21805 |
- have_wrappers=yes |
|
21806 |
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lwrap" |
|
21807 |
-else |
|
21808 |
- echo "$as_me: failed program was:" >&5 |
|
21809 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
21810 |
- |
|
21811 |
- |
|
21812 |
- { echo "$as_me:$LINENO: result: no" >&5 |
|
21813 |
-echo "${ECHO_T}no" >&6; } |
|
21814 |
- have_wrappers=no |
|
21815 |
- LIBS=$save_LIBS |
|
21816 |
-fi |
|
21817 |
- |
|
21818 |
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
21819 |
- conftest$ac_exeext conftest.$ac_ext |
|
21820 |
-fi |
|
21821 |
- |
|
21822 |
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
21823 |
- conftest$ac_exeext conftest.$ac_ext |
|
21824 |
-else |
|
21825 |
- have_wrappers=no |
|
21826 |
-fi |
|
21827 |
- |
|
21828 |
-done |
|
21829 |
- |
|
21830 |
- |
|
21831 |
- if test $have_wrappers = yes ; then |
|
21832 |
- |
|
21833 |
-cat >>confdefs.h <<\_ACEOF |
|
21834 |
-#define WITH_TCPWRAP 1 |
|
21835 |
-_ACEOF |
|
21836 |
- |
|
21837 |
- elif test $tcpw = yes ; then |
|
21838 |
- { { echo "$as_me:$LINENO: error: could not find TCP wrappers" >&5 |
|
21839 |
-echo "$as_me: error: could not find TCP wrappers" >&2;} |
|
21840 |
- { (exit 1); exit 1; }; } |
|
21841 |
- else |
|
21842 |
- { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5 |
|
21843 |
-echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;} |
|
21844 |
- fi |
|
21845 |
-fi |
|
21846 |
- |
|
21847 | 21544 |
{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
21848 | 21545 |
echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
21849 | 21546 |
if test -z "$ac_cv_gethostbyname_args"; then |
... | ... |
@@ -24780,7 +24237,6 @@ CLAMAV_MILTER_LIBS!$CLAMAV_MILTER_LIBS$ac_delim |
24780 | 24780 |
FRESHCLAM_LIBS!$FRESHCLAM_LIBS$ac_delim |
24781 | 24781 |
TH_SAFE!$TH_SAFE$ac_delim |
24782 | 24782 |
THREAD_LIBS!$THREAD_LIBS$ac_delim |
24783 |
-sendmailprog!$sendmailprog$ac_delim |
|
24784 | 24783 |
BUILD_CLAMD_TRUE!$BUILD_CLAMD_TRUE$ac_delim |
24785 | 24784 |
BUILD_CLAMD_FALSE!$BUILD_CLAMD_FALSE$ac_delim |
24786 | 24785 |
HAVE_MILTER_TRUE!$HAVE_MILTER_TRUE$ac_delim |
... | ... |
@@ -24794,7 +24250,7 @@ ltdl_LIBOBJS!$ltdl_LIBOBJS$ac_delim |
24794 | 24794 |
ltdl_LTLIBOBJS!$ltdl_LTLIBOBJS$ac_delim |
24795 | 24795 |
_ACEOF |
24796 | 24796 |
|
24797 |
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
|
24797 |
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then |
|
24798 | 24798 |
break |
24799 | 24799 |
elif $ac_last_try; then |
24800 | 24800 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
... | ... |
@@ -1133,47 +1133,6 @@ if test "$have_milter" = "yes"; then |
1133 | 1133 |
]) |
1134 | 1134 |
fi |
1135 | 1135 |
|
1136 |
-if test "$have_milter" = "yes"; then |
|
1137 |
- sendmailprog=no |
|
1138 |
- AC_ARG_WITH([sendmail], |
|
1139 |
- [ --with-sendmail=PATH specify location of Sendmail binary (default=auto find)], |
|
1140 |
- sendmailprog=$with_sendmail, sendmailprog=no) |
|
1141 |
- |
|
1142 |
- if test "$sendmailprog" = "no" ; then |
|
1143 |
- AC_PATH_PROG([sendmailprog], sendmail, no, $PATH:/sbin:/usr/sbin:/usr/lib:/usr/libexec) |
|
1144 |
- fi |
|
1145 |
- |
|
1146 |
- AC_DEFINE_UNQUOTED([SENDMAIL_BIN], "$sendmailprog", [location of Sendmail binary]) |
|
1147 |
- |
|
1148 |
- AC_ARG_WITH(sendmail-version, |
|
1149 |
- [ --with-sendmail-version=VERSION specify version of Sendmail (default=auto find)], |
|
1150 |
- sendmailvers=$with_sendmail_version, sendmailvers=no) |
|
1151 |
- |
|
1152 |
- if test "$sendmailvers" = "no" ; then |
|
1153 |
- sendmailver=`$sendmailprog -d0 < /dev/null | head -1 | awk '{print $2}'` |
|
1154 |
- fi |
|
1155 |
- |
|
1156 |
- if test -z "$sendmailver"; then |
|
1157 |
- # example: postfix |
|
1158 |
- LDFLAGS="$LDFLAGS $CLAMAV_MILTER_LIBS" |
|
1159 |
- AC_CHECK_LIB([milter],[smfi_opensocket],[sendmailver="8.13.0"], |
|
1160 |
- [AC_MSG_WARN([cannot determine sendmail version])]) |
|
1161 |
- LDFLAGS="$save_LDFLAGS" |
|
1162 |
- fi |
|
1163 |
- if test -n "$sendmailver"; then |
|
1164 |
- sendmailver_a=`echo $sendmailver | awk -F. '{printf $1}'` |
|
1165 |
- sendmailver_b=`echo $sendmailver | awk -F. '{printf $2}'` |
|
1166 |
- sendmailver_c=`echo $sendmailver | awk -F. '{printf $3}'` |
|
1167 |
- |
|
1168 |
- AC_DEFINE_UNQUOTED([SENDMAIL_VERSION_A], $sendmailver_a, [major version of Sendmail]) |
|
1169 |
- AC_DEFINE_UNQUOTED([SENDMAIL_VERSION_B], $sendmailver_b, [minor version of Sendmail]) |
|
1170 |
- AC_DEFINE_UNQUOTED([SENDMAIL_VERSION_C], $sendmailver_c, [subversion of Sendmail]) |
|
1171 |
- fi |
|
1172 |
- if test "x$ac_cv_have_lresolv_r" != "xyes"; then |
|
1173 |
- AC_MSG_WARN([****** Your libresolv is not thread safe, SPF queries in clamav-milter will block]) |
|
1174 |
- fi |
|
1175 |
-fi |
|
1176 |
- |
|
1177 | 1136 |
AM_CONDITIONAL([BUILD_CLAMD],[test "$have_pthreads" = "yes"]) |
1178 | 1137 |
AM_CONDITIONAL([HAVE_MILTER],[test "$have_milter" = "yes"]) |
1179 | 1138 |
|
... | ... |
@@ -1186,66 +1145,6 @@ then |
1186 | 1186 |
AC_DEFINE([BUILD_CLAMD], 1, "build clamd") |
1187 | 1187 |
fi |
1188 | 1188 |
|
1189 |
-dnl tcpwrappers support |
|
1190 |
-dnl rules from http://ma.ph-freiburg.de/tng/tng-technical/2002-01/msg00094.html |
|
1191 |
-AC_ARG_WITH([tcpwrappers], |
|
1192 |
-[ --with-tcpwrappers support hosts.allow / hosts.deny (default=auto)], |
|
1193 |
-[ case "$withval" in |
|
1194 |
- yes|no) tcpw="$withval" ;; |
|
1195 |
- *) AC_MSG_ERROR([--with-tcpwrappers does not take an argument]) ;; |
|
1196 |
- esac], |
|
1197 |
-[ tcpw=auto ]) |
|
1198 |
- |
|
1199 |
-if test "$tcpw" != "no" && test "$have_milter" = "yes" ; then |
|
1200 |
- AC_CHECK_HEADERS([tcpd.h],[ |
|
1201 |
- AC_MSG_CHECKING([for TCP wrappers library]) |
|
1202 |
- save_LIBS="$LIBS" |
|
1203 |
- LIBS="$LIBS -lwrap $FRESHCLAM_LIBS" |
|
1204 |
- AC_TRY_LINK([ |
|
1205 |
-#ifdef HAVE_SYS_TYPES_H |
|
1206 |
-#include <sys/types.h> |
|
1207 |
-#endif |
|
1208 |
-#include <tcpd.h> |
|
1209 |
-int allow_severity = 0; |
|
1210 |
-int deny_severity = 0; |
|
1211 |
- |
|
1212 |
-struct request_info *req; |
|
1213 |
- ],[ |
|
1214 |
-hosts_access(req) |
|
1215 |
- ],[AC_MSG_RESULT([-lwrap]) |
|
1216 |
- have_wrappers=yes |
|
1217 |
- LIBS="$save_LIBS" |
|
1218 |
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lwrap"],[ |
|
1219 |
- dnl try with -lnsl |
|
1220 |
- LIBS="$LIBS -lnsl $FRESHCLAM_LIBS" |
|
1221 |
- AC_TRY_LINK([ |
|
1222 |
-#ifdef HAVE_SYS_TYPES_H |
|
1223 |
-#include <sys/types.h> |
|
1224 |
-#endif |
|
1225 |
-#include <tcpd.h> |
|
1226 |
-int allow_severity = 0; |
|
1227 |
-int deny_severity = 0; |
|
1228 |
- |
|
1229 |
-struct request_info *req; |
|
1230 |
- ],[ |
|
1231 |
-hosts_access(req) |
|
1232 |
- ],[AC_MSG_RESULT([-lwrap -lnsl]) |
|
1233 |
- have_wrappers=yes |
|
1234 |
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lwrap"],[ |
|
1235 |
- AC_MSG_RESULT(no) |
|
1236 |
- have_wrappers=no |
|
1237 |
- LIBS=$save_LIBS])],[ |
|
1238 |
- have_wrappers=no])],[have_wrappers=no]) |
|
1239 |
- |
|
1240 |
- if test $have_wrappers = yes ; then |
|
1241 |
- AC_DEFINE([WITH_TCPWRAP],1, [tcpwrappers support]) |
|
1242 |
- elif test $tcpw = yes ; then |
|
1243 |
- AC_MSG_ERROR([could not find TCP wrappers]) |
|
1244 |
- else |
|
1245 |
- AC_MSG_WARN([could not find TCP wrappers, support disabled]) |
|
1246 |
- fi |
|
1247 |
-fi |
|
1248 |
- |
|
1249 | 1189 |
dnl Check for gethostbyname_r and number of its arguments |
1250 | 1190 |
dnl Code from libwww/configure.in |
1251 | 1191 |
AC_MSG_CHECKING([for gethostbyname_r]) |
... | ... |
@@ -215,7 +215,6 @@ prefix = @prefix@ |
215 | 215 |
program_transform_name = @program_transform_name@ |
216 | 216 |
psdir = @psdir@ |
217 | 217 |
sbindir = @sbindir@ |
218 |
-sendmailprog = @sendmailprog@ |
|
219 | 218 |
sharedstatedir = @sharedstatedir@ |
220 | 219 |
srcdir = @srcdir@ |
221 | 220 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -221,7 +221,6 @@ prefix = @prefix@ |
221 | 221 |
program_transform_name = @program_transform_name@ |
222 | 222 |
psdir = @psdir@ |
223 | 223 |
sbindir = @sbindir@ |
224 |
-sendmailprog = @sendmailprog@ |
|
225 | 224 |
sharedstatedir = @sharedstatedir@ |
226 | 225 |
srcdir = @srcdir@ |
227 | 226 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -214,7 +214,6 @@ prefix = @prefix@ |
214 | 214 |
program_transform_name = @program_transform_name@ |
215 | 215 |
psdir = @psdir@ |
216 | 216 |
sbindir = @sbindir@ |
217 |
-sendmailprog = @sendmailprog@ |
|
218 | 217 |
sharedstatedir = @sharedstatedir@ |
219 | 218 |
srcdir = @srcdir@ |
220 | 219 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -242,7 +242,6 @@ prefix = @prefix@ |
242 | 242 |
program_transform_name = @program_transform_name@ |
243 | 243 |
psdir = @psdir@ |
244 | 244 |
sbindir = @sbindir@ |
245 |
-sendmailprog = @sendmailprog@ |
|
246 | 245 |
sharedstatedir = @sharedstatedir@ |
247 | 246 |
srcdir = @srcdir@ |
248 | 247 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -324,7 +324,6 @@ prefix = @prefix@ |
324 | 324 |
program_transform_name = @program_transform_name@ |
325 | 325 |
psdir = @psdir@ |
326 | 326 |
sbindir = @sbindir@ |
327 |
-sendmailprog = @sendmailprog@ |
|
328 | 327 |
sharedstatedir = @sharedstatedir@ |
329 | 328 |
srcdir = @srcdir@ |
330 | 329 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -234,7 +234,6 @@ prefix = @prefix@ |
234 | 234 |
program_transform_name = @program_transform_name@ |
235 | 235 |
psdir = @psdir@ |
236 | 236 |
sbindir = @sbindir@ |
237 |
-sendmailprog = @sendmailprog@ |
|
238 | 237 |
sharedstatedir = @sharedstatedir@ |
239 | 238 |
srcdir = @srcdir@ |
240 | 239 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -298,7 +298,6 @@ prefix = @prefix@ |
298 | 298 |
program_transform_name = @program_transform_name@ |
299 | 299 |
psdir = @psdir@ |
300 | 300 |
sbindir = @sbindir@ |
301 |
-sendmailprog = @sendmailprog@ |
|
302 | 301 |
sharedstatedir = @sharedstatedir@ |
303 | 302 |
srcdir = @srcdir@ |
304 | 303 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -58,27 +58,7 @@ int main() { return (long)dn_expand; } |
58 | 58 |
]) |
59 | 59 |
if test "x$ac_cv_have_lresolv" != "xno"; then |
60 | 60 |
FRESHCLAM_LIBS="$FRESHCLAM_LIBS$ac_cv_have_lresolv" |
61 |
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS$ac_cv_have_lresolv" |
|
62 |
- bklibs=$LIBS |
|
63 |
- LIBS=$ac_cv_have_lresolv |
|
64 | 61 |
AC_DEFINE([HAVE_RESOLV_H],1,[have resolv.h]) |
65 |
- AC_CACHE_CHECK([for res_nquery in -lresolv], [ac_cv_have_lresolv_r], [ |
|
66 |
- ac_cv_have_lresolv_r='no' |
|
67 |
- AC_LINK_IFELSE([ |
|
68 |
-#include <sys/types.h> |
|
69 |
-#include <netinet/in.h> |
|
70 |
-#include <arpa/nameser.h> |
|
71 |
-#include <resolv.h> |
|
72 |
-int main() { return (long)res_nquery; } |
|
73 |
- ], |
|
74 |
- [ |
|
75 |
- ac_cv_have_lresolv_r='yes' |
|
76 |
- ]), |
|
77 |
- ]) |
|
78 |
- LIBS=$bklibs |
|
79 |
- if test "x$ac_cv_have_lresolv_r" = "xyes"; then |
|
80 |
- AC_DEFINE([HAVE_LRESOLV_R],1,[Define to 1 if -lresolv provides thread safe API's like res_nquery]) |
|
81 |
- fi |
|
82 | 62 |
else |
83 | 63 |
AC_MSG_WARN([****** DNS support disabled]) |
84 | 64 |
fi |
... | ... |
@@ -241,7 +241,6 @@ prefix = @prefix@ |
241 | 241 |
program_transform_name = @program_transform_name@ |
242 | 242 |
psdir = @psdir@ |
243 | 243 |
sbindir = @sbindir@ |
244 |
-sendmailprog = @sendmailprog@ |
|
245 | 244 |
sharedstatedir = @sharedstatedir@ |
246 | 245 |
srcdir = @srcdir@ |
247 | 246 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -196,7 +196,6 @@ prefix = @prefix@ |
196 | 196 |
program_transform_name = @program_transform_name@ |
197 | 197 |
psdir = @psdir@ |
198 | 198 |
sbindir = @sbindir@ |
199 |
-sendmailprog = @sendmailprog@ |
|
200 | 199 |
sharedstatedir = @sharedstatedir@ |
201 | 200 |
srcdir = @srcdir@ |
202 | 201 |
sys_symbol_underscore = @sys_symbol_underscore@ |
... | ... |
@@ -232,7 +232,6 @@ prefix = @prefix@ |
232 | 232 |
program_transform_name = @program_transform_name@ |
233 | 233 |
psdir = @psdir@ |
234 | 234 |
sbindir = @sbindir@ |
235 |
-sendmailprog = @sendmailprog@ |
|
236 | 235 |
sharedstatedir = @sharedstatedir@ |
237 | 236 |
srcdir = @srcdir@ |
238 | 237 |
sys_symbol_underscore = @sys_symbol_underscore@ |