7442
7440
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7443
7441
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7444
7442
-e 's:$: $lt_compiler_flag:'`
7445
(eval echo "\"\$as_me:7445: $lt_compile\"" >&5)
7443
(eval echo "\"\$as_me:7443: $lt_compile\"" >&5)
7446
7444
(eval "$lt_compile" 2>conftest.err)
7448
7446
cat conftest.err >&5
7449
echo "$as_me:7449: \$? = $ac_status" >&5
7447
echo "$as_me:7447: \$? = $ac_status" >&5
7450
7448
if (exit $ac_status) && test -s "$ac_outfile"; then
7451
7449
# The compiler can only warn and ignore the option if not recognized
7452
7450
# So say no if there are warnings other than the usual output.
7710
7708
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7711
7709
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7712
7710
-e 's:$: $lt_compiler_flag:'`
7713
(eval echo "\"\$as_me:7713: $lt_compile\"" >&5)
7711
(eval echo "\"\$as_me:7711: $lt_compile\"" >&5)
7714
7712
(eval "$lt_compile" 2>conftest.err)
7716
7714
cat conftest.err >&5
7717
echo "$as_me:7717: \$? = $ac_status" >&5
7715
echo "$as_me:7715: \$? = $ac_status" >&5
7718
7716
if (exit $ac_status) && test -s "$ac_outfile"; then
7719
7717
# The compiler can only warn and ignore the option if not recognized
7720
7718
# So say no if there are warnings other than the usual output.
7814
7812
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7815
7813
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7816
7814
-e 's:$: $lt_compiler_flag:'`
7817
(eval echo "\"\$as_me:7817: $lt_compile\"" >&5)
7815
(eval echo "\"\$as_me:7815: $lt_compile\"" >&5)
7818
7816
(eval "$lt_compile" 2>out/conftest.err)
7820
7818
cat out/conftest.err >&5
7821
echo "$as_me:7821: \$? = $ac_status" >&5
7819
echo "$as_me:7819: \$? = $ac_status" >&5
7822
7820
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7824
7822
# The compiler can only warn and ignore the option if not recognized
12547
12545
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12548
12546
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12549
12547
-e 's:$: $lt_compiler_flag:'`
12550
(eval echo "\"\$as_me:12550: $lt_compile\"" >&5)
12548
(eval echo "\"\$as_me:12548: $lt_compile\"" >&5)
12551
12549
(eval "$lt_compile" 2>conftest.err)
12553
12551
cat conftest.err >&5
12554
echo "$as_me:12554: \$? = $ac_status" >&5
12552
echo "$as_me:12552: \$? = $ac_status" >&5
12555
12553
if (exit $ac_status) && test -s "$ac_outfile"; then
12556
12554
# The compiler can only warn and ignore the option if not recognized
12557
12555
# So say no if there are warnings other than the usual output.
12651
12649
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12652
12650
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12653
12651
-e 's:$: $lt_compiler_flag:'`
12654
(eval echo "\"\$as_me:12654: $lt_compile\"" >&5)
12652
(eval echo "\"\$as_me:12652: $lt_compile\"" >&5)
12655
12653
(eval "$lt_compile" 2>out/conftest.err)
12657
12655
cat out/conftest.err >&5
12658
echo "$as_me:12658: \$? = $ac_status" >&5
12656
echo "$as_me:12656: \$? = $ac_status" >&5
12659
12657
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12661
12659
# The compiler can only warn and ignore the option if not recognized
14212
14210
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14213
14211
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14214
14212
-e 's:$: $lt_compiler_flag:'`
14215
(eval echo "\"\$as_me:14215: $lt_compile\"" >&5)
14213
(eval echo "\"\$as_me:14213: $lt_compile\"" >&5)
14216
14214
(eval "$lt_compile" 2>conftest.err)
14218
14216
cat conftest.err >&5
14219
echo "$as_me:14219: \$? = $ac_status" >&5
14217
echo "$as_me:14217: \$? = $ac_status" >&5
14220
14218
if (exit $ac_status) && test -s "$ac_outfile"; then
14221
14219
# The compiler can only warn and ignore the option if not recognized
14222
14220
# So say no if there are warnings other than the usual output.
14316
14314
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14317
14315
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14318
14316
-e 's:$: $lt_compiler_flag:'`
14319
(eval echo "\"\$as_me:14319: $lt_compile\"" >&5)
14317
(eval echo "\"\$as_me:14317: $lt_compile\"" >&5)
14320
14318
(eval "$lt_compile" 2>out/conftest.err)
14322
14320
cat out/conftest.err >&5
14323
echo "$as_me:14323: \$? = $ac_status" >&5
14321
echo "$as_me:14321: \$? = $ac_status" >&5
14324
14322
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14326
14324
# The compiler can only warn and ignore the option if not recognized
16503
16501
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16504
16502
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16505
16503
-e 's:$: $lt_compiler_flag:'`
16506
(eval echo "\"\$as_me:16506: $lt_compile\"" >&5)
16504
(eval echo "\"\$as_me:16504: $lt_compile\"" >&5)
16507
16505
(eval "$lt_compile" 2>conftest.err)
16509
16507
cat conftest.err >&5
16510
echo "$as_me:16510: \$? = $ac_status" >&5
16508
echo "$as_me:16508: \$? = $ac_status" >&5
16511
16509
if (exit $ac_status) && test -s "$ac_outfile"; then
16512
16510
# The compiler can only warn and ignore the option if not recognized
16513
16511
# So say no if there are warnings other than the usual output.
16771
16769
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16772
16770
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16773
16771
-e 's:$: $lt_compiler_flag:'`
16774
(eval echo "\"\$as_me:16774: $lt_compile\"" >&5)
16772
(eval echo "\"\$as_me:16772: $lt_compile\"" >&5)
16775
16773
(eval "$lt_compile" 2>conftest.err)
16777
16775
cat conftest.err >&5
16778
echo "$as_me:16778: \$? = $ac_status" >&5
16776
echo "$as_me:16776: \$? = $ac_status" >&5
16779
16777
if (exit $ac_status) && test -s "$ac_outfile"; then
16780
16778
# The compiler can only warn and ignore the option if not recognized
16781
16779
# So say no if there are warnings other than the usual output.
16875
16873
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16876
16874
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16877
16875
-e 's:$: $lt_compiler_flag:'`
16878
(eval echo "\"\$as_me:16878: $lt_compile\"" >&5)
16876
(eval echo "\"\$as_me:16876: $lt_compile\"" >&5)
16879
16877
(eval "$lt_compile" 2>out/conftest.err)
16881
16879
cat out/conftest.err >&5
16882
echo "$as_me:16882: \$? = $ac_status" >&5
16880
echo "$as_me:16880: \$? = $ac_status" >&5
16883
16881
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16885
16883
# The compiler can only warn and ignore the option if not recognized
20473
20471
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
20474
20472
echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6; }
20475
20473
if test $ac_cv_lib_nsl_gethostent = yes; then
20476
LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; LDFLAGS="$LDFLAGS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl"
20474
LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl"
20478
{ echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
20479
echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
20480
if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
20481
echo $ECHO_N "(cached) $ECHO_C" >&6
20483
ac_check_lib_save_LIBS=$LIBS
20484
LIBS="-liconv $LIBS"
20485
cat >conftest.$ac_ext <<_ACEOF
20488
cat confdefs.h >>conftest.$ac_ext
20489
cat >>conftest.$ac_ext <<_ACEOF
20490
/* end confdefs.h. */
20492
/* Override any GCC internal prototype to avoid an error.
20493
Use char because int might match the return type of a GCC
20494
builtin and then its argument prototype would still apply. */
20498
char libiconv_open ();
20502
return libiconv_open ();
20507
rm -f conftest.$ac_objext conftest$ac_exeext
20508
if { (ac_try="$ac_link"
20509
case "(($ac_try" in
20510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511
*) ac_try_echo=$ac_try;;
20513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514
(eval "$ac_link") 2>conftest.er1
20516
grep -v '^ *+' conftest.er1 >conftest.err
20518
cat conftest.err >&5
20519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520
(exit $ac_status); } && {
20521
test -z "$ac_c_werror_flag" ||
20522
test ! -s conftest.err
20523
} && test -s conftest$ac_exeext &&
20524
$as_test_x conftest$ac_exeext; then
20525
ac_cv_lib_iconv_libiconv_open=yes
20527
echo "$as_me: failed program was:" >&5
20528
sed 's/^/| /' conftest.$ac_ext >&5
20530
ac_cv_lib_iconv_libiconv_open=no
20533
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20534
conftest$ac_exeext conftest.$ac_ext
20535
LIBS=$ac_check_lib_save_LIBS
20537
{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
20538
echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
20539
if test $ac_cv_lib_iconv_libiconv_open = yes; then
20540
LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -liconv"
22149
if test "${ac_cv_header_resolv_h+set}" = set; then
22150
{ echo "$as_me:$LINENO: checking for resolv.h" >&5
22212
{ echo "$as_me:$LINENO: checking for resolv.h" >&5
22151
22213
echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6; }
22152
22214
if test "${ac_cv_header_resolv_h+set}" = set; then
22153
22215
echo $ECHO_N "(cached) $ECHO_C" >&6
22155
{ echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5
22156
echo "${ECHO_T}$ac_cv_header_resolv_h" >&6; }
22158
# Is the header compilable?
22159
{ echo "$as_me:$LINENO: checking resolv.h usability" >&5
22160
echo $ECHO_N "checking resolv.h usability... $ECHO_C" >&6; }
22161
cat >conftest.$ac_ext <<_ACEOF
22217
cat >conftest.$ac_ext <<_ACEOF
22162
22218
/* confdefs.h. */
22164
22220
cat confdefs.h >>conftest.$ac_ext
22165
22221
cat >>conftest.$ac_ext <<_ACEOF
22166
22222
/* end confdefs.h. */
22167
$ac_includes_default
22223
#include <netinet/in.h>
22168
22225
#include <resolv.h>
22170
22227
rm -f conftest.$ac_objext
22184
22241
test -z "$ac_c_werror_flag" ||
22185
22242
test ! -s conftest.err
22186
22243
} && test -s conftest.$ac_objext; then
22187
ac_header_compiler=yes
22244
ac_cv_header_resolv_h=yes
22189
22246
echo "$as_me: failed program was:" >&5
22190
22247
sed 's/^/| /' conftest.$ac_ext >&5
22192
ac_header_compiler=no
22249
ac_cv_header_resolv_h=no
22195
22252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22197
echo "${ECHO_T}$ac_header_compiler" >&6; }
22199
# Is the header present?
22200
{ echo "$as_me:$LINENO: checking resolv.h presence" >&5
22201
echo $ECHO_N "checking resolv.h presence... $ECHO_C" >&6; }
22202
cat >conftest.$ac_ext <<_ACEOF
22205
cat confdefs.h >>conftest.$ac_ext
22206
cat >>conftest.$ac_ext <<_ACEOF
22207
/* end confdefs.h. */
22208
#include <resolv.h>
22210
if { (ac_try="$ac_cpp conftest.$ac_ext"
22211
case "(($ac_try" in
22212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213
*) ac_try_echo=$ac_try;;
22215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22218
grep -v '^ *+' conftest.er1 >conftest.err
22220
cat conftest.err >&5
22221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222
(exit $ac_status); } >/dev/null && {
22223
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22224
test ! -s conftest.err
22226
ac_header_preproc=yes
22228
echo "$as_me: failed program was:" >&5
22229
sed 's/^/| /' conftest.$ac_ext >&5
22231
ac_header_preproc=no
22234
rm -f conftest.err conftest.$ac_ext
22235
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22236
echo "${ECHO_T}$ac_header_preproc" >&6; }
22238
# So? What about this header?
22239
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22241
{ echo "$as_me:$LINENO: WARNING: resolv.h: accepted by the compiler, rejected by the preprocessor!" >&5
22242
echo "$as_me: WARNING: resolv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22243
{ echo "$as_me:$LINENO: WARNING: resolv.h: proceeding with the compiler's result" >&5
22244
echo "$as_me: WARNING: resolv.h: proceeding with the compiler's result" >&2;}
22245
ac_header_preproc=yes
22248
{ echo "$as_me:$LINENO: WARNING: resolv.h: present but cannot be compiled" >&5
22249
echo "$as_me: WARNING: resolv.h: present but cannot be compiled" >&2;}
22250
{ echo "$as_me:$LINENO: WARNING: resolv.h: check for missing prerequisite headers?" >&5
22251
echo "$as_me: WARNING: resolv.h: check for missing prerequisite headers?" >&2;}
22252
{ echo "$as_me:$LINENO: WARNING: resolv.h: see the Autoconf documentation" >&5
22253
echo "$as_me: WARNING: resolv.h: see the Autoconf documentation" >&2;}
22254
{ echo "$as_me:$LINENO: WARNING: resolv.h: section \"Present But Cannot Be Compiled\"" >&5
22255
echo "$as_me: WARNING: resolv.h: section \"Present But Cannot Be Compiled\"" >&2;}
22256
{ echo "$as_me:$LINENO: WARNING: resolv.h: proceeding with the preprocessor's result" >&5
22257
echo "$as_me: WARNING: resolv.h: proceeding with the preprocessor's result" >&2;}
22258
{ echo "$as_me:$LINENO: WARNING: resolv.h: in the future, the compiler will take precedence" >&5
22259
echo "$as_me: WARNING: resolv.h: in the future, the compiler will take precedence" >&2;}
22263
{ echo "$as_me:$LINENO: checking for resolv.h" >&5
22264
echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6; }
22265
if test "${ac_cv_header_resolv_h+set}" = set; then
22266
echo $ECHO_N "(cached) $ECHO_C" >&6
22268
ac_cv_header_resolv_h=$ac_header_preproc
22270
22254
{ echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5
22271
22255
echo "${ECHO_T}$ac_cv_header_resolv_h" >&6; }
22274
22256
if test $ac_cv_header_resolv_h = yes; then
22275
22257
FRESHCLAM_LIBS="$FRESHCLAM_LIBS $resolv_lib"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS $resolv_lib";
22276
22258
cat >>confdefs.h <<\_ACEOF
22830
# Check whether --with-db1 was given.
22831
if test "${with_db1+set}" = set; then
22833
cat >>confdefs.h <<_ACEOF
22834
#define DB1NAME "$withval"
22839
cat >>confdefs.h <<\_ACEOF
22840
#define DB1NAME "main.cvd"
22847
# Check whether --with-db2 was given.
22848
if test "${with_db2+set}" = set; then
22850
cat >>confdefs.h <<_ACEOF
22851
#define DB2NAME "$withval"
22856
cat >>confdefs.h <<\_ACEOF
22857
#define DB2NAME "daily.cvd"
22863
22811
if test "$db_dir" = "_default_"
22865
22813
if test "$prefix" = "NONE"