git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@782 77e5149b-7576-45b1-b177-96237e5ba77b
| ... | ... |
@@ -46,7 +46,7 @@ while test $# -gt 0; do |
| 46 | 46 |
;; |
| 47 | 47 |
|
| 48 | 48 |
--version) |
| 49 |
- echo devel-20040821 |
|
| 49 |
+ echo devel-20040822 |
|
| 50 | 50 |
exit 0 |
| 51 | 51 |
;; |
| 52 | 52 |
|
| ... | ... |
@@ -59,7 +59,7 @@ while test $# -gt 0; do |
| 59 | 59 |
;; |
| 60 | 60 |
|
| 61 | 61 |
--libs) |
| 62 |
- echo -L${exec_prefix}/lib -lz -lgmp -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lpthread
|
|
| 62 |
+ echo -L${exec_prefix}/lib -lz -lbz2 -lgmp -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lpthread
|
|
| 63 | 63 |
;; |
| 64 | 64 |
|
| 65 | 65 |
*) |
| ... | ... |
@@ -75,6 +75,9 @@ |
| 75 | 75 |
/* "attrib packed" */ |
| 76 | 76 |
#undef HAVE_ATTRIB_PACKED |
| 77 | 77 |
|
| 78 |
+/* have bzip2 */ |
|
| 79 |
+#undef HAVE_BZLIB_H |
|
| 80 |
+ |
|
| 78 | 81 |
/* Define to 1 if you have the <dlfcn.h> header file. */ |
| 79 | 82 |
#undef HAVE_DLFCN_H |
| 80 | 83 |
|
| ... | ... |
@@ -207,6 +210,9 @@ |
| 207 | 207 |
/* zlib installed */ |
| 208 | 208 |
#undef HAVE_ZLIB_H |
| 209 | 209 |
|
| 210 |
+/* bzip funtions do not have bz2 prefix */ |
|
| 211 |
+#undef NOBZ2PREFIX |
|
| 212 |
+ |
|
| 210 | 213 |
/* "no fd_set" */ |
| 211 | 214 |
#undef NO_FD_SET |
| 212 | 215 |
|
| ... | ... |
@@ -8542,7 +8542,8 @@ fi |
| 8542 | 8542 |
|
| 8543 | 8543 |
|
| 8544 | 8544 |
|
| 8545 |
-for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h |
|
| 8545 |
+ |
|
| 8546 |
+for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h resolv.h |
|
| 8546 | 8547 |
do |
| 8547 | 8548 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8548 | 8549 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
| ... | ... |
@@ -10314,6 +10315,229 @@ if test "${enable_bzip2+set}" = set; then
|
| 10314 | 10314 |
want_bzip2="no" |
| 10315 | 10315 |
fi; |
| 10316 | 10316 |
|
| 10317 |
+if test "$want_bzip2" = "yes" |
|
| 10318 |
+then |
|
| 10319 |
+ echo "$as_me:$LINENO: checking for bzReadOpen in -lbz2" >&5 |
|
| 10320 |
+echo $ECHO_N "checking for bzReadOpen in -lbz2... $ECHO_C" >&6 |
|
| 10321 |
+if test "${ac_cv_lib_bz2_bzReadOpen+set}" = set; then
|
|
| 10322 |
+ echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 10323 |
+else |
|
| 10324 |
+ ac_check_lib_save_LIBS=$LIBS |
|
| 10325 |
+LIBS="-lbz2 $LIBS" |
|
| 10326 |
+cat >conftest.$ac_ext <<_ACEOF |
|
| 10327 |
+/* confdefs.h. */ |
|
| 10328 |
+_ACEOF |
|
| 10329 |
+cat confdefs.h >>conftest.$ac_ext |
|
| 10330 |
+cat >>conftest.$ac_ext <<_ACEOF |
|
| 10331 |
+/* end confdefs.h. */ |
|
| 10332 |
+ |
|
| 10333 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
|
| 10334 |
+#ifdef __cplusplus |
|
| 10335 |
+extern "C" |
|
| 10336 |
+#endif |
|
| 10337 |
+/* We use char because int might match the return type of a gcc2 |
|
| 10338 |
+ builtin and then its argument prototype would still apply. */ |
|
| 10339 |
+char bzReadOpen (); |
|
| 10340 |
+int |
|
| 10341 |
+main () |
|
| 10342 |
+{
|
|
| 10343 |
+bzReadOpen (); |
|
| 10344 |
+ ; |
|
| 10345 |
+ return 0; |
|
| 10346 |
+} |
|
| 10347 |
+_ACEOF |
|
| 10348 |
+rm -f conftest.$ac_objext conftest$ac_exeext |
|
| 10349 |
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
| 10350 |
+ (eval $ac_link) 2>conftest.er1 |
|
| 10351 |
+ ac_status=$? |
|
| 10352 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
|
| 10353 |
+ rm -f conftest.er1 |
|
| 10354 |
+ cat conftest.err >&5 |
|
| 10355 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10356 |
+ (exit $ac_status); } && |
|
| 10357 |
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
| 10358 |
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
| 10359 |
+ (eval $ac_try) 2>&5 |
|
| 10360 |
+ ac_status=$? |
|
| 10361 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10362 |
+ (exit $ac_status); }; } && |
|
| 10363 |
+ { ac_try='test -s conftest$ac_exeext'
|
|
| 10364 |
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
| 10365 |
+ (eval $ac_try) 2>&5 |
|
| 10366 |
+ ac_status=$? |
|
| 10367 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10368 |
+ (exit $ac_status); }; }; then |
|
| 10369 |
+ ac_cv_lib_bz2_bzReadOpen=yes |
|
| 10370 |
+else |
|
| 10371 |
+ echo "$as_me: failed program was:" >&5 |
|
| 10372 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 10373 |
+ |
|
| 10374 |
+ac_cv_lib_bz2_bzReadOpen=no |
|
| 10375 |
+fi |
|
| 10376 |
+rm -f conftest.err conftest.$ac_objext \ |
|
| 10377 |
+ conftest$ac_exeext conftest.$ac_ext |
|
| 10378 |
+LIBS=$ac_check_lib_save_LIBS |
|
| 10379 |
+fi |
|
| 10380 |
+echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_bzReadOpen" >&5 |
|
| 10381 |
+echo "${ECHO_T}$ac_cv_lib_bz2_bzReadOpen" >&6
|
|
| 10382 |
+if test $ac_cv_lib_bz2_bzReadOpen = yes; then |
|
| 10383 |
+ |
|
| 10384 |
+cat >>confdefs.h <<\_ACEOF |
|
| 10385 |
+#define NOBZ2PREFIX 1 |
|
| 10386 |
+_ACEOF |
|
| 10387 |
+ |
|
| 10388 |
+fi |
|
| 10389 |
+ |
|
| 10390 |
+ if test "${ac_cv_header_bzlib_h+set}" = set; then
|
|
| 10391 |
+ echo "$as_me:$LINENO: checking for bzlib.h" >&5 |
|
| 10392 |
+echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6 |
|
| 10393 |
+if test "${ac_cv_header_bzlib_h+set}" = set; then
|
|
| 10394 |
+ echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 10395 |
+fi |
|
| 10396 |
+echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 |
|
| 10397 |
+echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6
|
|
| 10398 |
+else |
|
| 10399 |
+ # Is the header compilable? |
|
| 10400 |
+echo "$as_me:$LINENO: checking bzlib.h usability" >&5 |
|
| 10401 |
+echo $ECHO_N "checking bzlib.h usability... $ECHO_C" >&6 |
|
| 10402 |
+cat >conftest.$ac_ext <<_ACEOF |
|
| 10403 |
+/* confdefs.h. */ |
|
| 10404 |
+_ACEOF |
|
| 10405 |
+cat confdefs.h >>conftest.$ac_ext |
|
| 10406 |
+cat >>conftest.$ac_ext <<_ACEOF |
|
| 10407 |
+/* end confdefs.h. */ |
|
| 10408 |
+$ac_includes_default |
|
| 10409 |
+#include <bzlib.h> |
|
| 10410 |
+_ACEOF |
|
| 10411 |
+rm -f conftest.$ac_objext |
|
| 10412 |
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
| 10413 |
+ (eval $ac_compile) 2>conftest.er1 |
|
| 10414 |
+ ac_status=$? |
|
| 10415 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
|
| 10416 |
+ rm -f conftest.er1 |
|
| 10417 |
+ cat conftest.err >&5 |
|
| 10418 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10419 |
+ (exit $ac_status); } && |
|
| 10420 |
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
| 10421 |
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
| 10422 |
+ (eval $ac_try) 2>&5 |
|
| 10423 |
+ ac_status=$? |
|
| 10424 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10425 |
+ (exit $ac_status); }; } && |
|
| 10426 |
+ { ac_try='test -s conftest.$ac_objext'
|
|
| 10427 |
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
| 10428 |
+ (eval $ac_try) 2>&5 |
|
| 10429 |
+ ac_status=$? |
|
| 10430 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10431 |
+ (exit $ac_status); }; }; then |
|
| 10432 |
+ ac_header_compiler=yes |
|
| 10433 |
+else |
|
| 10434 |
+ echo "$as_me: failed program was:" >&5 |
|
| 10435 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 10436 |
+ |
|
| 10437 |
+ac_header_compiler=no |
|
| 10438 |
+fi |
|
| 10439 |
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 10440 |
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
| 10441 |
+echo "${ECHO_T}$ac_header_compiler" >&6
|
|
| 10442 |
+ |
|
| 10443 |
+# Is the header present? |
|
| 10444 |
+echo "$as_me:$LINENO: checking bzlib.h presence" >&5 |
|
| 10445 |
+echo $ECHO_N "checking bzlib.h presence... $ECHO_C" >&6 |
|
| 10446 |
+cat >conftest.$ac_ext <<_ACEOF |
|
| 10447 |
+/* confdefs.h. */ |
|
| 10448 |
+_ACEOF |
|
| 10449 |
+cat confdefs.h >>conftest.$ac_ext |
|
| 10450 |
+cat >>conftest.$ac_ext <<_ACEOF |
|
| 10451 |
+/* end confdefs.h. */ |
|
| 10452 |
+#include <bzlib.h> |
|
| 10453 |
+_ACEOF |
|
| 10454 |
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
| 10455 |
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
| 10456 |
+ ac_status=$? |
|
| 10457 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
|
| 10458 |
+ rm -f conftest.er1 |
|
| 10459 |
+ cat conftest.err >&5 |
|
| 10460 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10461 |
+ (exit $ac_status); } >/dev/null; then |
|
| 10462 |
+ if test -s conftest.err; then |
|
| 10463 |
+ ac_cpp_err=$ac_c_preproc_warn_flag |
|
| 10464 |
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
| 10465 |
+ else |
|
| 10466 |
+ ac_cpp_err= |
|
| 10467 |
+ fi |
|
| 10468 |
+else |
|
| 10469 |
+ ac_cpp_err=yes |
|
| 10470 |
+fi |
|
| 10471 |
+if test -z "$ac_cpp_err"; then |
|
| 10472 |
+ ac_header_preproc=yes |
|
| 10473 |
+else |
|
| 10474 |
+ echo "$as_me: failed program was:" >&5 |
|
| 10475 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 10476 |
+ |
|
| 10477 |
+ ac_header_preproc=no |
|
| 10478 |
+fi |
|
| 10479 |
+rm -f conftest.err conftest.$ac_ext |
|
| 10480 |
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
| 10481 |
+echo "${ECHO_T}$ac_header_preproc" >&6
|
|
| 10482 |
+ |
|
| 10483 |
+# So? What about this header? |
|
| 10484 |
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
| 10485 |
+ yes:no: ) |
|
| 10486 |
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
| 10487 |
+echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
| 10488 |
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
|
|
| 10489 |
+echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;} |
|
| 10490 |
+ ac_header_preproc=yes |
|
| 10491 |
+ ;; |
|
| 10492 |
+ no:yes:* ) |
|
| 10493 |
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
|
|
| 10494 |
+echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;} |
|
| 10495 |
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
|
|
| 10496 |
+echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;} |
|
| 10497 |
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
|
|
| 10498 |
+echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;} |
|
| 10499 |
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
| 10500 |
+echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
| 10501 |
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
|
|
| 10502 |
+echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;} |
|
| 10503 |
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
|
|
| 10504 |
+echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;} |
|
| 10505 |
+ ( |
|
| 10506 |
+ cat <<\_ASBOX |
|
| 10507 |
+## ------------------------------------------ ## |
|
| 10508 |
+## Report this to the AC_PACKAGE_NAME lists. ## |
|
| 10509 |
+## ------------------------------------------ ## |
|
| 10510 |
+_ASBOX |
|
| 10511 |
+ ) | |
|
| 10512 |
+ sed "s/^/$as_me: WARNING: /" >&2 |
|
| 10513 |
+ ;; |
|
| 10514 |
+esac |
|
| 10515 |
+echo "$as_me:$LINENO: checking for bzlib.h" >&5 |
|
| 10516 |
+echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6 |
|
| 10517 |
+if test "${ac_cv_header_bzlib_h+set}" = set; then
|
|
| 10518 |
+ echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 10519 |
+else |
|
| 10520 |
+ ac_cv_header_bzlib_h=$ac_header_preproc |
|
| 10521 |
+fi |
|
| 10522 |
+echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 |
|
| 10523 |
+echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6
|
|
| 10524 |
+ |
|
| 10525 |
+fi |
|
| 10526 |
+if test $ac_cv_header_bzlib_h = yes; then |
|
| 10527 |
+ LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lbz2"; |
|
| 10528 |
+cat >>confdefs.h <<\_ACEOF |
|
| 10529 |
+#define HAVE_BZLIB_H 1 |
|
| 10530 |
+_ACEOF |
|
| 10531 |
+ |
|
| 10532 |
+else |
|
| 10533 |
+ { echo "$as_me:$LINENO: WARNING: ****** bzip2 support disabled" >&5
|
|
| 10534 |
+echo "$as_me: WARNING: ****** bzip2 support disabled" >&2;} |
|
| 10535 |
+fi |
|
| 10536 |
+ |
|
| 10537 |
+ |
|
| 10538 |
+fi |
|
| 10539 |
+ |
|
| 10317 | 10540 |
want_dns="yes" |
| 10318 | 10541 |
# Check whether --enable-dns or --disable-dns was given. |
| 10319 | 10542 |
if test "${enable_dns+set}" = set; then
|
| ... | ... |
@@ -10323,6 +10547,73 @@ fi; |
| 10323 | 10323 |
|
| 10324 | 10324 |
if test "$want_dns" = "yes" |
| 10325 | 10325 |
then |
| 10326 |
+ echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 |
|
| 10327 |
+echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 |
|
| 10328 |
+if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
|
|
| 10329 |
+ echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 10330 |
+else |
|
| 10331 |
+ ac_check_lib_save_LIBS=$LIBS |
|
| 10332 |
+LIBS="-lresolv $LIBS" |
|
| 10333 |
+cat >conftest.$ac_ext <<_ACEOF |
|
| 10334 |
+/* confdefs.h. */ |
|
| 10335 |
+_ACEOF |
|
| 10336 |
+cat confdefs.h >>conftest.$ac_ext |
|
| 10337 |
+cat >>conftest.$ac_ext <<_ACEOF |
|
| 10338 |
+/* end confdefs.h. */ |
|
| 10339 |
+ |
|
| 10340 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
|
| 10341 |
+#ifdef __cplusplus |
|
| 10342 |
+extern "C" |
|
| 10343 |
+#endif |
|
| 10344 |
+/* We use char because int might match the return type of a gcc2 |
|
| 10345 |
+ builtin and then its argument prototype would still apply. */ |
|
| 10346 |
+char dn_expand (); |
|
| 10347 |
+int |
|
| 10348 |
+main () |
|
| 10349 |
+{
|
|
| 10350 |
+dn_expand (); |
|
| 10351 |
+ ; |
|
| 10352 |
+ return 0; |
|
| 10353 |
+} |
|
| 10354 |
+_ACEOF |
|
| 10355 |
+rm -f conftest.$ac_objext conftest$ac_exeext |
|
| 10356 |
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
| 10357 |
+ (eval $ac_link) 2>conftest.er1 |
|
| 10358 |
+ ac_status=$? |
|
| 10359 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
|
| 10360 |
+ rm -f conftest.er1 |
|
| 10361 |
+ cat conftest.err >&5 |
|
| 10362 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10363 |
+ (exit $ac_status); } && |
|
| 10364 |
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
| 10365 |
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
| 10366 |
+ (eval $ac_try) 2>&5 |
|
| 10367 |
+ ac_status=$? |
|
| 10368 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10369 |
+ (exit $ac_status); }; } && |
|
| 10370 |
+ { ac_try='test -s conftest$ac_exeext'
|
|
| 10371 |
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
| 10372 |
+ (eval $ac_try) 2>&5 |
|
| 10373 |
+ ac_status=$? |
|
| 10374 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 10375 |
+ (exit $ac_status); }; }; then |
|
| 10376 |
+ ac_cv_lib_resolv_dn_expand=yes |
|
| 10377 |
+else |
|
| 10378 |
+ echo "$as_me: failed program was:" >&5 |
|
| 10379 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 10380 |
+ |
|
| 10381 |
+ac_cv_lib_resolv_dn_expand=no |
|
| 10382 |
+fi |
|
| 10383 |
+rm -f conftest.err conftest.$ac_objext \ |
|
| 10384 |
+ conftest$ac_exeext conftest.$ac_ext |
|
| 10385 |
+LIBS=$ac_check_lib_save_LIBS |
|
| 10386 |
+fi |
|
| 10387 |
+echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 |
|
| 10388 |
+echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
|
|
| 10389 |
+if test $ac_cv_lib_resolv_dn_expand = yes; then |
|
| 10390 |
+ resolv_lib="-lresolv" |
|
| 10391 |
+fi |
|
| 10392 |
+ |
|
| 10326 | 10393 |
if test "${ac_cv_header_resolv_h+set}" = set; then
|
| 10327 | 10394 |
echo "$as_me:$LINENO: checking for resolv.h" >&5 |
| 10328 | 10395 |
echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6 |
| ... | ... |
@@ -10460,7 +10751,7 @@ echo "${ECHO_T}$ac_cv_header_resolv_h" >&6
|
| 10460 | 10460 |
|
| 10461 | 10461 |
fi |
| 10462 | 10462 |
if test $ac_cv_header_resolv_h = yes; then |
| 10463 |
- FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lresolv"; |
|
| 10463 |
+ FRESHCLAM_LIBS="$FRESHCLAM_LIBS $resolv_lib"; |
|
| 10464 | 10464 |
cat >>confdefs.h <<\_ACEOF |
| 10465 | 10465 |
#define HAVE_RESOLV_H 1 |
| 10466 | 10466 |
_ACEOF |
| ... | ... |
@@ -37,7 +37,7 @@ AC_DEFINE(SCANBUFF, 131072, [scan buffer size]) |
| 37 | 37 |
AC_DEFINE(FILEBUFF, 8192, [file i/o buffer size]) |
| 38 | 38 |
|
| 39 | 39 |
AC_HEADER_STDC |
| 40 |
-AC_CHECK_HEADERS(stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h) |
|
| 40 |
+AC_CHECK_HEADERS(stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h regex.h limits.h resolv.h) |
|
| 41 | 41 |
AC_CHECK_HEADER(syslog.h,AC_DEFINE(USE_SYSLOG,1,[use syslog]),) |
| 42 | 42 |
|
| 43 | 43 |
AC_TYPE_OFF_T |
| ... | ... |
@@ -79,6 +79,12 @@ AC_ARG_ENABLE(bzip2, |
| 79 | 79 |
[ --disable-bzip2 Disable bzip2 support.], |
| 80 | 80 |
want_bzip2="no",) |
| 81 | 81 |
|
| 82 |
+if test "$want_bzip2" = "yes" |
|
| 83 |
+then |
|
| 84 |
+ AC_CHECK_LIB(bz2, bzReadOpen, AC_DEFINE(NOBZ2PREFIX,1,bzip funtions do not have bz2 prefix),) |
|
| 85 |
+ AC_CHECK_HEADER(bzlib.h,[LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lbz2"; AC_DEFINE(HAVE_BZLIB_H,1,have bzip2)], AC_MSG_WARN([****** bzip2 support disabled])) |
|
| 86 |
+fi |
|
| 87 |
+ |
|
| 82 | 88 |
want_dns="yes" |
| 83 | 89 |
AC_ARG_ENABLE(dns, |
| 84 | 90 |
[ --disable-dns Disable support for database verification with DNS], |
| ... | ... |
@@ -86,7 +92,8 @@ want_dns="no",) |
| 86 | 86 |
|
| 87 | 87 |
if test "$want_dns" = "yes" |
| 88 | 88 |
then |
| 89 |
- AC_CHECK_HEADER(resolv.h,[FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lresolv"; AC_DEFINE(HAVE_RESOLV_H,1,have resolv.h)], AC_MSG_WARN([****** DNS support disabled])) |
|
| 89 |
+ AC_CHECK_LIB(resolv, dn_expand, resolv_lib="-lresolv",) |
|
| 90 |
+ AC_CHECK_HEADER(resolv.h,[FRESHCLAM_LIBS="$FRESHCLAM_LIBS $resolv_lib"; AC_DEFINE(HAVE_RESOLV_H,1,have resolv.h)], AC_MSG_WARN([****** DNS support disabled])) |
|
| 90 | 91 |
fi |
| 91 | 92 |
|
| 92 | 93 |
want_clamuko="yes" |