~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mfrom: (0.7.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070220103344-yrxzd2x7lhee3r02
Tags: 0.90-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/clamav-base.init-stub, debian/clamav-daemon.init,
    debian/rules: init script stub for common setup functions.
  - debian/control: Maintainers updated for Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
883
883
CLAMAV_MILTER_LIBS
884
884
FRESHCLAM_LIBS
885
885
TH_SAFE
886
 
ADDITIONAL_LIBS
 
886
THREAD_LIBS
887
887
BUILD_CLAMD_TRUE
888
888
BUILD_CLAMD_FALSE
889
889
HAVE_MILTER_TRUE
1531
1531
  --with-user=uid         name of the clamav user (default=clamav)
1532
1532
  --with-group=gid        name of the clamav group (default=clamav)
1533
1533
  --with-dbdir=path       path to virus database directory
1534
 
  --with-db1=name         name of the main database (default=main.cvd)
1535
 
  --with-db2=name         name of the daily database (default=daily.cvd)
1536
1534
  --with-tcpwrappers      support hosts.allow / hosts.deny (default=auto)
1537
1535
 
1538
1536
Some influential environment variables:
2602
2600
 
2603
2601
# Define the identity of the package.
2604
2602
 PACKAGE=clamav
2605
 
 VERSION="0.90rc3"
 
2603
 VERSION="0.90"
2606
2604
 
2607
2605
 
2608
2606
cat >>confdefs.h <<_ACEOF
2752
2750
 
2753
2751
 
2754
2752
LC_CURRENT=1
2755
 
LC_REVISION=33
 
2753
LC_REVISION=40
2756
2754
LC_AGE=0
2757
2755
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
2758
2756
 
4715
4713
  ;;
4716
4714
*-*-irix6*)
4717
4715
  # Find out which ABI we are using.
4718
 
  echo '#line 4718 "configure"' > conftest.$ac_ext
 
4716
  echo '#line 4716 "configure"' > conftest.$ac_ext
4719
4717
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720
4718
  (eval $ac_compile) 2>&5
4721
4719
  ac_status=$?
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)
7447
7445
   ac_status=$?
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)
7715
7713
   ac_status=$?
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)
7819
7817
   ac_status=$?
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
7823
7821
   then
7824
7822
     # The compiler can only warn and ignore the option if not recognized
10111
10109
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10112
10110
  lt_status=$lt_dlunknown
10113
10111
  cat > conftest.$ac_ext <<EOF
10114
 
#line 10114 "configure"
 
10112
#line 10112 "configure"
10115
10113
#include "confdefs.h"
10116
10114
 
10117
10115
#if HAVE_DLFCN_H
10211
10209
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10212
10210
  lt_status=$lt_dlunknown
10213
10211
  cat > conftest.$ac_ext <<EOF
10214
 
#line 10214 "configure"
 
10212
#line 10212 "configure"
10215
10213
#include "confdefs.h"
10216
10214
 
10217
10215
#if HAVE_DLFCN_H
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)
12552
12550
   ac_status=$?
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)
12656
12654
   ac_status=$?
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
12660
12658
   then
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)
14217
14215
   ac_status=$?
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)
14321
14319
   ac_status=$?
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
14325
14323
   then
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)
16508
16506
   ac_status=$?
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)
16776
16774
   ac_status=$?
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)
16880
16878
   ac_status=$?
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
16884
16882
   then
16885
16883
     # The compiler can only warn and ignore the option if not recognized
20408
20406
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
20409
20407
echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6; }
20410
20408
if test $ac_cv_lib_socket_bind = yes; then
20411
 
  LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; LDFLAGS="$LDFLAGS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket"
 
20409
  LIBS="$LIBS -lsocket"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsocket"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lsocket"; CLAMD_LIBS="$CLAMD_LIBS -lsocket"
20412
20410
fi
20413
20411
 
20414
20412
{ echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
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"
 
20475
fi
 
20476
 
 
20477
 
 
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
 
20482
else
 
20483
  ac_check_lib_save_LIBS=$LIBS
 
20484
LIBS="-liconv  $LIBS"
 
20485
cat >conftest.$ac_ext <<_ACEOF
 
20486
/* confdefs.h.  */
 
20487
_ACEOF
 
20488
cat confdefs.h >>conftest.$ac_ext
 
20489
cat >>conftest.$ac_ext <<_ACEOF
 
20490
/* end confdefs.h.  */
 
20491
 
 
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.  */
 
20495
#ifdef __cplusplus
 
20496
extern "C"
 
20497
#endif
 
20498
char libiconv_open ();
 
20499
int
 
20500
main ()
 
20501
{
 
20502
return libiconv_open ();
 
20503
  ;
 
20504
  return 0;
 
20505
}
 
20506
_ACEOF
 
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;;
 
20512
esac
 
20513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20514
  (eval "$ac_link") 2>conftest.er1
 
20515
  ac_status=$?
 
20516
  grep -v '^ *+' conftest.er1 >conftest.err
 
20517
  rm -f conftest.er1
 
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
 
20526
else
 
20527
  echo "$as_me: failed program was:" >&5
 
20528
sed 's/^/| /' conftest.$ac_ext >&5
 
20529
 
 
20530
        ac_cv_lib_iconv_libiconv_open=no
 
20531
fi
 
20532
 
 
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
 
20536
fi
 
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"
20477
20541
fi
20478
20542
 
20479
20543
 
21414
21478
    fi
21415
21479
 
21416
21480
    if test "$ZLIB_HOME" != "/usr"; then
21417
 
        LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib"
21418
21481
        CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include"
21419
21482
        { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
21420
21483
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
22146
22209
fi
22147
22210
 
22148
22211
    fi
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
22154
 
fi
22155
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5
22156
 
echo "${ECHO_T}$ac_cv_header_resolv_h" >&6; }
22157
22216
else
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.  */
22163
22219
_ACEOF
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>
 
22224
 
22168
22225
#include <resolv.h>
22169
22226
_ACEOF
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
22188
22245
else
22189
22246
  echo "$as_me: failed program was:" >&5
22190
22247
sed 's/^/| /' conftest.$ac_ext >&5
22191
22248
 
22192
 
        ac_header_compiler=no
 
22249
        ac_cv_header_resolv_h=no
22193
22250
fi
22194
22251
 
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; }
22198
 
 
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
22203
 
/* confdefs.h.  */
22204
 
_ACEOF
22205
 
cat confdefs.h >>conftest.$ac_ext
22206
 
cat >>conftest.$ac_ext <<_ACEOF
22207
 
/* end confdefs.h.  */
22208
 
#include <resolv.h>
22209
 
_ACEOF
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;;
22214
 
esac
22215
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22217
 
  ac_status=$?
22218
 
  grep -v '^ *+' conftest.er1 >conftest.err
22219
 
  rm -f conftest.er1
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
22225
 
       }; then
22226
 
  ac_header_preproc=yes
22227
 
else
22228
 
  echo "$as_me: failed program was:" >&5
22229
 
sed 's/^/| /' conftest.$ac_ext >&5
22230
 
 
22231
 
  ac_header_preproc=no
22232
 
fi
22233
 
 
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; }
22237
 
 
22238
 
# So?  What about this header?
22239
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22240
 
  yes:no: )
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
22246
 
    ;;
22247
 
  no: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;}
22260
 
 
22261
 
    ;;
22262
 
esac
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
22267
 
else
22268
 
  ac_cv_header_resolv_h=$ac_header_preproc
22269
22253
fi
22270
22254
{ echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5
22271
22255
echo "${ECHO_T}$ac_cv_header_resolv_h" >&6; }
22272
 
 
22273
 
fi
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
22826
22808
fi
22827
22809
 
22828
22810
 
22829
 
 
22830
 
# Check whether --with-db1 was given.
22831
 
if test "${with_db1+set}" = set; then
22832
 
  withval=$with_db1;
22833
 
cat >>confdefs.h <<_ACEOF
22834
 
#define DB1NAME "$withval"
22835
 
_ACEOF
22836
 
 
22837
 
else
22838
 
 
22839
 
cat >>confdefs.h <<\_ACEOF
22840
 
#define DB1NAME "main.cvd"
22841
 
_ACEOF
22842
 
 
22843
 
fi
22844
 
 
22845
 
 
22846
 
 
22847
 
# Check whether --with-db2 was given.
22848
 
if test "${with_db2+set}" = set; then
22849
 
  withval=$with_db2;
22850
 
cat >>confdefs.h <<_ACEOF
22851
 
#define DB2NAME "$withval"
22852
 
_ACEOF
22853
 
 
22854
 
else
22855
 
 
22856
 
cat >>confdefs.h <<\_ACEOF
22857
 
#define DB2NAME "daily.cvd"
22858
 
_ACEOF
22859
 
 
22860
 
fi
22861
 
 
22862
 
 
22863
22811
if test "$db_dir" = "_default_"
22864
22812
then
22865
22813
    if test "$prefix" = "NONE"
23023
22971
_ACEOF
23024
22972
 
23025
22973
    if test "$have_pthreads" = "yes"; then
23026
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
 
22974
        THREAD_LIBS="-lpthread"
23027
22975
        TH_SAFE="-thread-safe"
23028
22976
 
23029
22977
cat >>confdefs.h <<\_ACEOF
23035
22983
#define _REENTRANT 1
23036
22984
_ACEOF
23037
22985
 
23038
 
        CLAMD_LIBS="$CLAMD_LIBS -lpthread"
23039
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
23040
22986
        if test "$want_clamuko" = "yes"; then
23041
22987
 
23042
22988
cat >>confdefs.h <<\_ACEOF
23044
22990
_ACEOF
23045
22991
 
23046
22992
        fi
23047
 
        CLAMSCAN_LIBS="$CLAMSCAN_LIBS -lpthread"
23048
22993
    fi
23049
22994
    case `uname -r` in
23050
22995
    1.*|2.0.*)
23063
23008
_ACEOF
23064
23009
 
23065
23010
    if test "$have_pthreads" = "yes"; then
23066
 
       LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
 
23011
       THREAD_LIBS="-lpthread"
23067
23012
       TH_SAFE="-thread-safe"
23068
23013
 
23069
23014
cat >>confdefs.h <<\_ACEOF
23075
23020
#define _REENTRANT 1
23076
23021
_ACEOF
23077
23022
 
23078
 
       CLAMD_LIBS="$CLAMD_LIBS -lpthread"
23079
 
       CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
23080
23023
       if test "$want_clamuko" = "yes"; then
23081
23024
 
23082
23025
cat >>confdefs.h <<\_ACEOF
23084
23027
_ACEOF
23085
23028
 
23086
23029
       fi
23087
 
       CLAMSCAN_LIBS="$CLAMSCAN_LIBS -lpthread"
23088
23030
    fi
23089
23031
    ;;
23090
23032
cygwin*)
23099
23041
        fi
23100
23042
    fi
23101
23043
    if test "$have_pthreads" = "yes"; then
23102
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
 
23044
        THREAD_LIBS="-lpthread"
23103
23045
        TH_SAFE="-thread-safe"
23104
23046
 
23105
23047
cat >>confdefs.h <<\_ACEOF
23117
23059
solaris*)
23118
23060
    FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lresolv"
23119
23061
    if test "$have_pthreads" = "yes"; then
23120
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
23121
 
        CLAMD_LIBS="$CLAMD_LIBS -lpthread -lresolv"
23122
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread -lresolv"
 
23062
        THREAD_LIBS="-lpthread"
 
23063
        CLAMD_LIBS="$CLAMD_LIBS -lresolv"
 
23064
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lresolv"
23123
23065
        TH_SAFE="-thread-safe"
23124
23066
 
23125
23067
cat >>confdefs.h <<\_ACEOF
23140
23082
    ;;
23141
23083
freebsd*)
23142
23084
    if test "$have_pthreads" = "yes"; then
23143
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -pthread -lc_r"
23144
 
        CLAMD_LIBS="$CLAMD_LIBS -pthread -lc_r"
23145
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread -lc_r"
 
23085
        THREAD_LIBS="-lpthread -lc_r"
23146
23086
        TH_SAFE="-thread-safe"
23147
23087
 
23148
23088
cat >>confdefs.h <<\_ACEOF
23171
23111
    ;;
23172
23112
dragonfly*)
23173
23113
    if test "$have_pthreads" = "yes"; then
23174
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -pthread"
23175
 
        CLAMD_LIBS="$CLAMD_LIBS -pthread"
23176
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread"
 
23114
        THREAD_LIBS="-pthread"
23177
23115
        TH_SAFE="-thread-safe"
23178
23116
 
23179
23117
cat >>confdefs.h <<\_ACEOF
23202
23140
    ;;
23203
23141
openbsd*)
23204
23142
    if test "$have_pthreads" = "yes"; then
23205
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -pthread"
23206
23143
        if test "$use_cr" = "no"; then
23207
 
            CLAMD_LIBS="$CLAMD_LIBS -pthread"
23208
 
            CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread"
 
23144
            THREAD_LIBS="-pthread"
23209
23145
        else
23210
 
            CLAMD_LIBS="$CLAMD_LIBS -pthread -lc_r"
23211
 
            CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread -lc_r"
 
23146
            THREAD_LIBS="-pthread -lc_r"
23212
23147
        fi
23213
23148
        TH_SAFE="-thread-safe"
23214
23149
 
23231
23166
    ;;
23232
23167
bsdi*)
23233
23168
    if test "$have_pthreads" = "yes"; then
23234
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -pthread"
23235
 
        CLAMD_LIBS="$CLAMD_LIBS -pthread"
23236
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread"
 
23169
        THREAD_LIBS="-pthread"
23237
23170
        TH_SAFE="-thread-safe"
23238
23171
 
23239
23172
cat >>confdefs.h <<\_ACEOF
23255
23188
    ;;
23256
23189
netbsd*)
23257
23190
     if test "$have_pthreads" = "yes"; then
23258
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
23259
 
        CLAMD_LIBS="-lpthread"
23260
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
 
23191
        THREAD_LIBS="-lpthread"
23261
23192
 
23262
23193
cat >>confdefs.h <<\_ACEOF
23263
23194
#define CL_THREAD_SAFE 1
23268
23199
#define _REENTRANT 1
23269
23200
_ACEOF
23270
23201
 
23271
 
        ADDITIONAL_LIBS="$LIBS -lpthread"
23272
23202
     fi
23273
23203
 
23274
23204
cat >>confdefs.h <<\_ACEOF
23322
23252
    CLAMD_LIBS="$CLAMD_LIBS -lsyslog"
23323
23253
    CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lsyslog"
23324
23254
    if test "$have_pthreads" = "yes"; then
23325
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
23326
 
        CLAMD_LIBS="$CLAMD_LIBS -lpthread"
23327
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
 
23255
        THREAD_LIBS="-lpthread"
23328
23256
        TH_SAFE="-thread-safe"
23329
23257
 
23330
23258
cat >>confdefs.h <<\_ACEOF
23347
23275
                    ;;
23348
23276
hpux*)
23349
23277
    if test "$have_pthreads" = "yes"; then
23350
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
23351
 
        CLAMD_LIBS="$CLAMD_LIBS -lpthread"
23352
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
 
23278
        THREAD_LIBS="-lpthread"
23353
23279
        TH_SAFE="-thread-safe"
23354
23280
 
23355
23281
cat >>confdefs.h <<\_ACEOF
23370
23296
    ;;
23371
23297
aix*)
23372
23298
    if test "$have_pthreads" = "yes"; then
23373
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
23374
 
        CLAMD_LIBS="$CLAMD_LIBS -lpthread"
23375
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
 
23299
        THREAD_LIBS="-lpthread"
23376
23300
        TH_SAFE="-thread-safe"
23377
23301
 
23378
23302
cat >>confdefs.h <<\_ACEOF
23412
23336
    ;;
23413
23337
irix*)
23414
23338
    if test "$have_pthreads" = "yes"; then
23415
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
23416
 
        CLAMD_LIBS="$CLAMD_LIBS -lpthread"
23417
 
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
 
23339
        THREAD_LIBS="-lpthread"
23418
23340
        TH_SAFE="-thread-safe"
23419
23341
 
23420
23342
cat >>confdefs.h <<\_ACEOF
23445
23367
        fi
23446
23368
    fi
23447
23369
    if test "$have_pthreads" = "yes"; then
23448
 
        LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lpthread"
 
23370
        THREAD_LIBS="-lpthread"
23449
23371
        TH_SAFE="-thread-safe"
23450
23372
 
23451
23373
cat >>confdefs.h <<\_ACEOF
23473
23395
if test "$have_milter" = "yes"; then
23474
23396
 
23475
23397
        save_LDFLAGS="$LDFLAGS"
 
23398
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
23476
23399
    if test -d /usr/lib/libmilter ; then
23477
23400
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
23478
23401
    fi
26674
26597
CLAMAV_MILTER_LIBS!$CLAMAV_MILTER_LIBS$ac_delim
26675
26598
FRESHCLAM_LIBS!$FRESHCLAM_LIBS$ac_delim
26676
26599
TH_SAFE!$TH_SAFE$ac_delim
26677
 
ADDITIONAL_LIBS!$ADDITIONAL_LIBS$ac_delim
 
26600
THREAD_LIBS!$THREAD_LIBS$ac_delim
26678
26601
BUILD_CLAMD_TRUE!$BUILD_CLAMD_TRUE$ac_delim
26679
26602
BUILD_CLAMD_FALSE!$BUILD_CLAMD_FALSE$ac_delim
26680
26603
HAVE_MILTER_TRUE!$HAVE_MILTER_TRUE$ac_delim