~ubuntu-branches/ubuntu/raring/clamav/raring

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mfrom: (0.35.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080905172534-yi3f8fkye1o7u1r3
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for clamav 0.93.3.
 
3
# Generated by GNU Autoconf 2.61 for clamav devel.
4
4
#
5
5
# Report bugs to <http://bugs.clamav.net/>.
6
6
#
724
724
# Identity of this package.
725
725
PACKAGE_NAME='clamav'
726
726
PACKAGE_TARNAME='clamav'
727
 
PACKAGE_VERSION='0.93.3'
728
 
PACKAGE_STRING='clamav 0.93.3'
 
727
PACKAGE_VERSION='devel'
 
728
PACKAGE_STRING='clamav devel'
729
729
PACKAGE_BUGREPORT='http://bugs.clamav.net/'
730
730
 
731
731
ac_unique_file="clamscan/clamscan.c"
867
867
VERSIONSCRIPTFLAG
868
868
VERSIONSCRIPT_TRUE
869
869
VERSIONSCRIPT_FALSE
 
870
GPERF
 
871
PKG_CONFIG
 
872
CHECK_CFLAGS
 
873
CHECK_LIBS
 
874
GCOV
 
875
LCOV
 
876
GENHTML
 
877
ENABLE_COVERAGE_TRUE
 
878
ENABLE_COVERAGE_FALSE
 
879
ENABLE_UT_INSTALL_TRUE
 
880
ENABLE_UT_INSTALL_FALSE
870
881
MAINTAINER_MODE_TRUE
871
882
MAINTAINER_MODE_FALSE
872
883
MAINT
873
884
LIBBZ2
874
885
LTLIBBZ2
875
886
LIBBZ2_PREFIX
876
 
sendmailprog
877
887
HAVE_LIBGMP
878
888
LIBGMP
879
889
LTLIBGMP
886
896
FRESHCLAM_LIBS
887
897
TH_SAFE
888
898
THREAD_LIBS
 
899
sendmailprog
889
900
BUILD_CLAMD_TRUE
890
901
BUILD_CLAMD_FALSE
891
902
HAVE_MILTER_TRUE
906
917
LDFLAGS
907
918
LIBS
908
919
CPPFLAGS
909
 
CPP'
 
920
CPP
 
921
PKG_CONFIG
 
922
CHECK_CFLAGS
 
923
CHECK_LIBS'
910
924
 
911
925
 
912
926
# Initialize some variables set by options.
1409
1423
  # Omit some internal or obsolete options to make the list less imposing.
1410
1424
  # This message is too long to be a string in the A/UX 3.1 sh.
1411
1425
  cat <<_ACEOF
1412
 
\`configure' configures clamav 0.93.3 to adapt to many kinds of systems.
 
1426
\`configure' configures clamav devel to adapt to many kinds of systems.
1413
1427
 
1414
1428
Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1429
 
1480
1494
 
1481
1495
if test -n "$ac_init_help"; then
1482
1496
  case $ac_init_help in
1483
 
     short | recursive ) echo "Configuration of clamav 0.93.3:";;
 
1497
     short | recursive ) echo "Configuration of clamav devel:";;
1484
1498
   esac
1485
1499
  cat <<\_ACEOF
1486
1500
 
1496
1510
  --disable-libtool-lock  avoid locking (might break parallel builds)
1497
1511
  --disable-gcc-vcheck    do not check for buggy gcc version
1498
1512
  --enable-experimental enable experimental code
 
1513
  --enable-check           Enable 'check' unit tests (default=auto)
 
1514
  --enable-tests-install  install unit tests [default=no]
 
1515
  --enable-coverage       turn on test coverage [default=no]
1499
1516
  --enable-maintainer-mode enable make rules and dependencies not useful
1500
1517
                          (and sometimes confusing) to the casual installer
1501
1518
  --disable-zlib-vcheck   do not check for buggy zlib version
1502
1519
  --disable-bzip2         disable bzip2 support
1503
1520
  --disable-rpath         do not hardcode runtime library paths
1504
1521
  --disable-unrar         don't build libclamunrar and libclamunrar_iface
 
1522
  --disable-ipv6          disable IPv6 support
1505
1523
  --disable-dns           disable support for database verification through
1506
1524
                          DNS
1507
1525
  --disable-clamuko       disable clamuko support (Linux, DragonFly and FreeBSD only)
1518
1536
  --enable-bigstack       increase thread stack size
1519
1537
  --disable-gethostbyname_r       disable support for gethostbyname_r
1520
1538
  --enable-readdir_r                enable support for readdir_r
 
1539
  --disable-fdpassing        don't build file descriptor passing support
1521
1540
 
1522
1541
Optional Packages:
1523
1542
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1531
1550
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1532
1551
  --with-libbz2-prefix[=DIR]  search for libbz2 in DIR/include and DIR/lib
1533
1552
  --without-libbz2-prefix     don't search for libbz2 in includedir and libdir
1534
 
  --with-sendmail=PATH    specify location of Sendmail binary (default=auto find)
1535
 
  --with-sendmail-version=VERSION    specify version of Sendmail (default=auto find)
1536
1553
  --with-libgmp-prefix[=DIR]  search for libgmp in DIR/include and DIR/lib
1537
1554
  --without-libgmp-prefix     don't search for libgmp in includedir and libdir
1538
1555
  --with-iconv supports iconv() (default=auto)
1539
1556
  --with-user=uid         name of the clamav user (default=clamav)
1540
1557
  --with-group=gid        name of the clamav group (default=clamav)
1541
1558
  --with-dbdir=path       path to virus database directory
 
1559
  --with-sendmail=PATH    specify location of Sendmail binary (default=auto find)
 
1560
  --with-sendmail-version=VERSION    specify version of Sendmail (default=auto find)
1542
1561
  --with-tcpwrappers      support hosts.allow / hosts.deny (default=auto)
1543
1562
 
1544
1563
Some influential environment variables:
1550
1569
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1551
1570
              you have headers in a nonstandard directory <include dir>
1552
1571
  CPP         C preprocessor
 
1572
  PKG_CONFIG  path to pkg-config utility
 
1573
  CHECK_CFLAGS
 
1574
              C compiler flags for CHECK, overriding pkg-config
 
1575
  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1553
1576
 
1554
1577
Use these variables to override the choices made by `configure' or to help
1555
1578
it to find libraries and programs with nonstandard names/locations.
1615
1638
test -n "$ac_init_help" && exit $ac_status
1616
1639
if $ac_init_version; then
1617
1640
  cat <<\_ACEOF
1618
 
clamav configure 0.93.3
 
1641
clamav configure devel
1619
1642
generated by GNU Autoconf 2.61
1620
1643
 
1621
1644
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1629
1652
This file contains any messages produced by compilers while
1630
1653
running configure, to aid debugging if configure makes a mistake.
1631
1654
 
1632
 
It was created by clamav $as_me 0.93.3, which was
 
1655
It was created by clamav $as_me devel, which was
1633
1656
generated by GNU Autoconf 2.61.  Invocation command line was
1634
1657
 
1635
1658
  $ $0 $@
2639
2662
 
2640
2663
# Define the identity of the package.
2641
2664
 PACKAGE='clamav'
2642
 
 VERSION='0.93.3'
 
2665
 VERSION='devel'
2643
2666
 
2644
2667
 
2645
2668
# Some tools Automake needs.
2783
2806
_ACEOF
2784
2807
 
2785
2808
 
2786
 
VERSION="0.93.3"
 
2809
VERSION="0.94"
2787
2810
 
2788
2811
cat >>confdefs.h <<_ACEOF
2789
2812
#define VERSION "$VERSION"
2790
2813
_ACEOF
2791
2814
 
2792
2815
 
2793
 
LC_CURRENT=4
2794
 
LC_REVISION=4
 
2816
LC_CURRENT=5
 
2817
LC_REVISION=1
2795
2818
LC_AGE=0
2796
2819
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
2797
2820
 
4764
4787
  ;;
4765
4788
*-*-irix6*)
4766
4789
  # Find out which ABI we are using.
4767
 
  echo '#line 4767 "configure"' > conftest.$ac_ext
 
4790
  echo '#line 4790 "configure"' > conftest.$ac_ext
4768
4791
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769
4792
  (eval $ac_compile) 2>&5
4770
4793
  ac_status=$?
6854
6877
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6855
6878
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6856
6879
   -e 's:$: $lt_compiler_flag:'`
6857
 
   (eval echo "\"\$as_me:6857: $lt_compile\"" >&5)
 
6880
   (eval echo "\"\$as_me:6880: $lt_compile\"" >&5)
6858
6881
   (eval "$lt_compile" 2>conftest.err)
6859
6882
   ac_status=$?
6860
6883
   cat conftest.err >&5
6861
 
   echo "$as_me:6861: \$? = $ac_status" >&5
 
6884
   echo "$as_me:6884: \$? = $ac_status" >&5
6862
6885
   if (exit $ac_status) && test -s "$ac_outfile"; then
6863
6886
     # The compiler can only warn and ignore the option if not recognized
6864
6887
     # So say no if there are warnings other than the usual output.
7144
7167
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7145
7168
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7146
7169
   -e 's:$: $lt_compiler_flag:'`
7147
 
   (eval echo "\"\$as_me:7147: $lt_compile\"" >&5)
 
7170
   (eval echo "\"\$as_me:7170: $lt_compile\"" >&5)
7148
7171
   (eval "$lt_compile" 2>conftest.err)
7149
7172
   ac_status=$?
7150
7173
   cat conftest.err >&5
7151
 
   echo "$as_me:7151: \$? = $ac_status" >&5
 
7174
   echo "$as_me:7174: \$? = $ac_status" >&5
7152
7175
   if (exit $ac_status) && test -s "$ac_outfile"; then
7153
7176
     # The compiler can only warn and ignore the option if not recognized
7154
7177
     # So say no if there are warnings other than the usual output.
7248
7271
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7249
7272
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7250
7273
   -e 's:$: $lt_compiler_flag:'`
7251
 
   (eval echo "\"\$as_me:7251: $lt_compile\"" >&5)
 
7274
   (eval echo "\"\$as_me:7274: $lt_compile\"" >&5)
7252
7275
   (eval "$lt_compile" 2>out/conftest.err)
7253
7276
   ac_status=$?
7254
7277
   cat out/conftest.err >&5
7255
 
   echo "$as_me:7255: \$? = $ac_status" >&5
 
7278
   echo "$as_me:7278: \$? = $ac_status" >&5
7256
7279
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7257
7280
   then
7258
7281
     # The compiler can only warn and ignore the option if not recognized
9625
9648
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9626
9649
  lt_status=$lt_dlunknown
9627
9650
  cat > conftest.$ac_ext <<EOF
9628
 
#line 9628 "configure"
 
9651
#line 9651 "configure"
9629
9652
#include "confdefs.h"
9630
9653
 
9631
9654
#if HAVE_DLFCN_H
9725
9748
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9726
9749
  lt_status=$lt_dlunknown
9727
9750
  cat > conftest.$ac_ext <<EOF
9728
 
#line 9728 "configure"
 
9751
#line 9751 "configure"
9729
9752
#include "confdefs.h"
9730
9753
 
9731
9754
#if HAVE_DLFCN_H
11266
11289
/* (C) Richard Guenther */
11267
11290
extern void abort(void);
11268
11291
 
11269
 
int try (char *a, int d)
 
11292
static int try (char *a, int d)
11270
11293
{
11271
11294
  return a + d > a;
11272
11295
}
11352
11375
 
11353
11376
int crashtest()
11354
11377
{
11355
 
        unsigned int backsize, dcur,i;
 
11378
        unsigned int backsize, dcur;
11356
11379
        int dval=0x12000, unp_offset;
11357
11380
        int* dsize = &dval;
11358
11381
        char* dst = (char*)0x12000;
11447
11470
   unsigned int bits : 1;
11448
11471
   signed long val : ((sizeof(long) * 8) - 1);
11449
11472
};
11450
 
int Fnegate (struct a b)
 
11473
static int Fnegate (struct a b)
11451
11474
{
11452
11475
  if ((-((long)b.val)) <= ((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL))
11453
11476
      && (-((long)b.val)) >= (-(((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL))) - 1))
11454
11477
     return 0 ;
11455
11478
  abort ();
11456
11479
}
11457
 
int main ()
 
11480
int main (void)
11458
11481
{
11459
11482
  struct a b = {1, 1};
11460
11483
  Fnegate (b);
11567
11590
fi
11568
11591
 
11569
11592
 
 
11593
# it is not fatal if gperf is missing
 
11594
 
 
11595
GPERF=${GPERF-"${am_missing_run}gperf"}
 
11596
 
 
11597
 
 
11598
 
11570
11599
 
11571
11600
 
11572
11601
 
12484
12513
done
12485
12514
 
12486
12515
 
12487
 
 
12488
 
for ac_header in stdlib.h unistd.h
12489
 
do
12490
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12491
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12492
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12493
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12494
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12495
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12496
 
fi
12497
 
ac_res=`eval echo '${'$as_ac_Header'}'`
12498
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12499
 
echo "${ECHO_T}$ac_res" >&6; }
12500
 
else
12501
 
  # Is the header compilable?
12502
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12503
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12504
 
cat >conftest.$ac_ext <<_ACEOF
12505
 
/* confdefs.h.  */
12506
 
_ACEOF
12507
 
cat confdefs.h >>conftest.$ac_ext
12508
 
cat >>conftest.$ac_ext <<_ACEOF
12509
 
/* end confdefs.h.  */
12510
 
$ac_includes_default
12511
 
#include <$ac_header>
12512
 
_ACEOF
12513
 
rm -f conftest.$ac_objext
12514
 
if { (ac_try="$ac_compile"
12515
 
case "(($ac_try" in
12516
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517
 
  *) ac_try_echo=$ac_try;;
12518
 
esac
12519
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520
 
  (eval "$ac_compile") 2>conftest.er1
12521
 
  ac_status=$?
12522
 
  grep -v '^ *+' conftest.er1 >conftest.err
12523
 
  rm -f conftest.er1
12524
 
  cat conftest.err >&5
12525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526
 
  (exit $ac_status); } && {
12527
 
         test -z "$ac_c_werror_flag" ||
12528
 
         test ! -s conftest.err
12529
 
       } && test -s conftest.$ac_objext; then
12530
 
  ac_header_compiler=yes
12531
 
else
12532
 
  echo "$as_me: failed program was:" >&5
12533
 
sed 's/^/| /' conftest.$ac_ext >&5
12534
 
 
12535
 
        ac_header_compiler=no
12536
 
fi
12537
 
 
12538
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12540
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
12541
 
 
12542
 
# Is the header present?
12543
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12544
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12545
 
cat >conftest.$ac_ext <<_ACEOF
12546
 
/* confdefs.h.  */
12547
 
_ACEOF
12548
 
cat confdefs.h >>conftest.$ac_ext
12549
 
cat >>conftest.$ac_ext <<_ACEOF
12550
 
/* end confdefs.h.  */
12551
 
#include <$ac_header>
12552
 
_ACEOF
12553
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
12554
 
case "(($ac_try" in
12555
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556
 
  *) ac_try_echo=$ac_try;;
12557
 
esac
12558
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12560
 
  ac_status=$?
12561
 
  grep -v '^ *+' conftest.er1 >conftest.err
12562
 
  rm -f conftest.er1
12563
 
  cat conftest.err >&5
12564
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565
 
  (exit $ac_status); } >/dev/null && {
12566
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12567
 
         test ! -s conftest.err
12568
 
       }; then
12569
 
  ac_header_preproc=yes
12570
 
else
12571
 
  echo "$as_me: failed program was:" >&5
12572
 
sed 's/^/| /' conftest.$ac_ext >&5
12573
 
 
12574
 
  ac_header_preproc=no
12575
 
fi
12576
 
 
12577
 
rm -f conftest.err conftest.$ac_ext
12578
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12579
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
12580
 
 
12581
 
# So?  What about this header?
12582
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12583
 
  yes:no: )
12584
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12585
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12586
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12587
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12588
 
    ac_header_preproc=yes
12589
 
    ;;
12590
 
  no:yes:* )
12591
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12592
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12593
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12594
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12595
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12596
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12597
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12598
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12599
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12600
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12601
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12602
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12603
 
    ( cat <<\_ASBOX
12604
 
## -------------------------------------- ##
12605
 
## Report this to http://bugs.clamav.net/ ##
12606
 
## -------------------------------------- ##
12607
 
_ASBOX
12608
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12609
 
    ;;
12610
 
esac
12611
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12612
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12613
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12614
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12615
 
else
12616
 
  eval "$as_ac_Header=\$ac_header_preproc"
12617
 
fi
12618
 
ac_res=`eval echo '${'$as_ac_Header'}'`
12619
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12620
 
echo "${ECHO_T}$ac_res" >&6; }
12621
 
 
12622
 
fi
12623
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12624
 
  cat >>confdefs.h <<_ACEOF
12625
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12626
 
_ACEOF
12627
 
 
12628
 
fi
12629
 
 
12630
 
done
12631
 
 
12632
 
 
12633
 
for ac_func in getpagesize
12634
 
do
12635
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12636
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12637
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12638
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12639
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12640
 
else
12641
 
  cat >conftest.$ac_ext <<_ACEOF
12642
 
/* confdefs.h.  */
12643
 
_ACEOF
12644
 
cat confdefs.h >>conftest.$ac_ext
12645
 
cat >>conftest.$ac_ext <<_ACEOF
12646
 
/* end confdefs.h.  */
12647
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12648
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12649
 
#define $ac_func innocuous_$ac_func
12650
 
 
12651
 
/* System header to define __stub macros and hopefully few prototypes,
12652
 
    which can conflict with char $ac_func (); below.
12653
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12654
 
    <limits.h> exists even on freestanding compilers.  */
12655
 
 
12656
 
#ifdef __STDC__
12657
 
# include <limits.h>
12658
 
#else
12659
 
# include <assert.h>
12660
 
#endif
12661
 
 
12662
 
#undef $ac_func
12663
 
 
12664
 
/* Override any GCC internal prototype to avoid an error.
12665
 
   Use char because int might match the return type of a GCC
12666
 
   builtin and then its argument prototype would still apply.  */
12667
 
#ifdef __cplusplus
12668
 
extern "C"
12669
 
#endif
12670
 
char $ac_func ();
12671
 
/* The GNU C library defines this for functions which it implements
12672
 
    to always fail with ENOSYS.  Some functions are actually named
12673
 
    something starting with __ and the normal name is an alias.  */
12674
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12675
 
choke me
12676
 
#endif
12677
 
 
12678
 
int
12679
 
main ()
12680
 
{
12681
 
return $ac_func ();
12682
 
  ;
12683
 
  return 0;
12684
 
}
12685
 
_ACEOF
12686
 
rm -f conftest.$ac_objext conftest$ac_exeext
12687
 
if { (ac_try="$ac_link"
12688
 
case "(($ac_try" in
12689
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690
 
  *) ac_try_echo=$ac_try;;
12691
 
esac
12692
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693
 
  (eval "$ac_link") 2>conftest.er1
12694
 
  ac_status=$?
12695
 
  grep -v '^ *+' conftest.er1 >conftest.err
12696
 
  rm -f conftest.er1
12697
 
  cat conftest.err >&5
12698
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699
 
  (exit $ac_status); } && {
12700
 
         test -z "$ac_c_werror_flag" ||
12701
 
         test ! -s conftest.err
12702
 
       } && test -s conftest$ac_exeext &&
12703
 
       $as_test_x conftest$ac_exeext; then
12704
 
  eval "$as_ac_var=yes"
12705
 
else
12706
 
  echo "$as_me: failed program was:" >&5
12707
 
sed 's/^/| /' conftest.$ac_ext >&5
12708
 
 
12709
 
        eval "$as_ac_var=no"
12710
 
fi
12711
 
 
12712
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12713
 
      conftest$ac_exeext conftest.$ac_ext
12714
 
fi
12715
 
ac_res=`eval echo '${'$as_ac_var'}'`
12716
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12717
 
echo "${ECHO_T}$ac_res" >&6; }
12718
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12719
 
  cat >>confdefs.h <<_ACEOF
12720
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12721
 
_ACEOF
12722
 
 
12723
 
fi
12724
 
done
12725
 
 
12726
 
{ echo "$as_me:$LINENO: checking for working mmap" >&5
 
12516
        { echo "$as_me:$LINENO: checking for working mmap" >&5
12727
12517
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12728
 
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
12518
if test "${ac_cv_c_mmap_private+set}" = set; then
12729
12519
  echo $ECHO_N "(cached) $ECHO_C" >&6
12730
12520
else
12731
 
  if test "$cross_compiling" = yes; then
12732
 
  ac_cv_func_mmap_fixed_mapped=no
 
12521
 
 
12522
                if test "$cross_compiling" = yes; then
 
12523
  ac_cv_c_mmap_private=no
12733
12524
else
12734
12525
  cat >conftest.$ac_ext <<_ACEOF
12735
12526
/* confdefs.h.  */
12737
12528
cat confdefs.h >>conftest.$ac_ext
12738
12529
cat >>conftest.$ac_ext <<_ACEOF
12739
12530
/* end confdefs.h.  */
12740
 
$ac_includes_default
12741
 
/* malloc might have been renamed as rpl_malloc. */
12742
 
#undef malloc
12743
 
 
12744
 
/* Thanks to Mike Haertel and Jim Avera for this test.
12745
 
   Here is a matrix of mmap possibilities:
12746
 
        mmap private not fixed
12747
 
        mmap private fixed at somewhere currently unmapped
12748
 
        mmap private fixed at somewhere already mapped
12749
 
        mmap shared not fixed
12750
 
        mmap shared fixed at somewhere currently unmapped
12751
 
        mmap shared fixed at somewhere already mapped
12752
 
   For private mappings, we should verify that changes cannot be read()
12753
 
   back from the file, nor mmap's back from the file at a different
12754
 
   address.  (There have been systems where private was not correctly
12755
 
   implemented like the infamous i386 svr4.0, and systems where the
12756
 
   VM page cache was not coherent with the file system buffer cache
12757
 
   like early versions of FreeBSD and possibly contemporary NetBSD.)
12758
 
   For shared mappings, we should conversely verify that changes get
12759
 
   propagated back to all the places they're supposed to be.
12760
 
 
12761
 
   Grep wants private fixed already mapped.
12762
 
   The main things grep needs to know about mmap are:
12763
 
   * does it exist and is it safe to write into the mmap'd area
12764
 
   * how to use it (BSD variants)  */
12765
 
 
 
12531
 
 
12532
#include <unistd.h>
 
12533
#include <stdlib.h>
 
12534
#include <sys/mman.h>
 
12535
#ifdef HAVE_SYS_TYPES_H
 
12536
#include <sys/types.h>
 
12537
#endif
 
12538
#ifdef HAVE_SYS_STAT_H
 
12539
#include <sys/stat.h>
 
12540
#endif
12766
12541
#include <fcntl.h>
12767
 
#include <sys/mman.h>
12768
 
 
12769
 
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12770
 
char *malloc ();
12771
 
#endif
12772
 
 
12773
 
/* This mess was copied from the GNU getpagesize.h.  */
12774
 
#ifndef HAVE_GETPAGESIZE
12775
 
/* Assume that all systems that can run configure have sys/param.h.  */
12776
 
# ifndef HAVE_SYS_PARAM_H
12777
 
#  define HAVE_SYS_PARAM_H 1
12778
 
# endif
12779
 
 
12780
 
# ifdef _SC_PAGESIZE
12781
 
#  define getpagesize() sysconf(_SC_PAGESIZE)
12782
 
# else /* no _SC_PAGESIZE */
12783
 
#  ifdef HAVE_SYS_PARAM_H
12784
 
#   include <sys/param.h>
12785
 
#   ifdef EXEC_PAGESIZE
12786
 
#    define getpagesize() EXEC_PAGESIZE
12787
 
#   else /* no EXEC_PAGESIZE */
12788
 
#    ifdef NBPG
12789
 
#     define getpagesize() NBPG * CLSIZE
12790
 
#     ifndef CLSIZE
12791
 
#      define CLSIZE 1
12792
 
#     endif /* no CLSIZE */
12793
 
#    else /* no NBPG */
12794
 
#     ifdef NBPC
12795
 
#      define getpagesize() NBPC
12796
 
#     else /* no NBPC */
12797
 
#      ifdef PAGESIZE
12798
 
#       define getpagesize() PAGESIZE
12799
 
#      endif /* PAGESIZE */
12800
 
#     endif /* no NBPC */
12801
 
#    endif /* no NBPG */
12802
 
#   endif /* no EXEC_PAGESIZE */
12803
 
#  else /* no HAVE_SYS_PARAM_H */
12804
 
#   define getpagesize() 8192   /* punt totally */
12805
 
#  endif /* no HAVE_SYS_PARAM_H */
12806
 
# endif /* no _SC_PAGESIZE */
12807
 
 
12808
 
#endif /* no HAVE_GETPAGESIZE */
12809
 
 
12810
 
int
12811
 
main ()
 
12542
int main(void)
12812
12543
{
12813
 
  char *data, *data2, *data3;
12814
 
  int i, pagesize;
12815
 
  int fd;
12816
 
 
12817
 
  pagesize = getpagesize ();
12818
 
 
12819
 
  /* First, make a file with some known garbage in it. */
12820
 
  data = (char *) malloc (pagesize);
12821
 
  if (!data)
12822
 
    return 1;
12823
 
  for (i = 0; i < pagesize; ++i)
12824
 
    *(data + i) = rand ();
12825
 
  umask (0);
12826
 
  fd = creat ("conftest.mmap", 0600);
12827
 
  if (fd < 0)
12828
 
    return 1;
12829
 
  if (write (fd, data, pagesize) != pagesize)
12830
 
    return 1;
12831
 
  close (fd);
12832
 
 
12833
 
  /* Next, try to mmap the file at a fixed address which already has
12834
 
     something else allocated at it.  If we can, also make sure that
12835
 
     we see the same garbage.  */
12836
 
  fd = open ("conftest.mmap", O_RDWR);
12837
 
  if (fd < 0)
12838
 
    return 1;
12839
 
  data2 = (char *) malloc (2 * pagesize);
12840
 
  if (!data2)
12841
 
    return 1;
12842
 
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12843
 
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12844
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
12845
 
    return 1;
12846
 
  for (i = 0; i < pagesize; ++i)
12847
 
    if (*(data + i) != *(data2 + i))
12848
 
      return 1;
12849
 
 
12850
 
  /* Finally, make sure that changes to the mapped area do not
12851
 
     percolate back to the file as seen by read().  (This is a bug on
12852
 
     some variants of i386 svr4.0.)  */
12853
 
  for (i = 0; i < pagesize; ++i)
12854
 
    *(data2 + i) = *(data2 + i) + 1;
12855
 
  data3 = (char *) malloc (pagesize);
12856
 
  if (!data3)
12857
 
    return 1;
12858
 
  if (read (fd, data3, pagesize) != pagesize)
12859
 
    return 1;
12860
 
  for (i = 0; i < pagesize; ++i)
12861
 
    if (*(data + i) != *(data3 + i))
12862
 
      return 1;
12863
 
  close (fd);
12864
 
  return 0;
 
12544
        char *data, *data2, *data3;
 
12545
        unsigned i, datasize = 1024;
 
12546
        int fd;
 
12547
 
 
12548
        /* First, make a file with some known garbage in it. */
 
12549
        data = (char*) malloc(datasize);
 
12550
        if(!data)
 
12551
                return 1;
 
12552
        for(i=0;i<datasize;i++)
 
12553
                *(data + i) = rand();
 
12554
        umask(0);
 
12555
        fd = creat("conftest.mmap", 0600);
 
12556
        if(fd < 0)
 
12557
                return 1;
 
12558
        if(write (fd, data, datasize) != datasize)
 
12559
                return 1;
 
12560
        close(fd);
 
12561
        fd = open("conftest.mmap", O_RDWR);
 
12562
        if (fd < 0)
 
12563
                return 1;
 
12564
        /* Next, try to mmap the file at a fixed address which already has
 
12565
           something else allocated at it.  If we can, also make sure that
 
12566
           we see the same garbage.  */
 
12567
        data2 = mmap(NULL, sizeof(data), PROT_READ | PROT_WRITE,
 
12568
                MAP_PRIVATE, fd, 0L);
 
12569
        if(data2 == MAP_FAILED)
 
12570
                return 2;
 
12571
        for(i=0;i<sizeof(data);i++)
 
12572
                if(*(data + i) != *(data2+ i))
 
12573
                        return 3;
 
12574
          /* Finally, make sure that changes to the mapped area do not
 
12575
             percolate back to the file as seen by read().  (This is a bug on
 
12576
             some variants of i386 svr4.0.)  */
 
12577
          for (i = 0; i < datasize; ++i)
 
12578
            *(data2 + i) = *(data2 + i) + 1;
 
12579
        data3 = (char*) malloc(datasize);
 
12580
        if(!data3)
 
12581
                return 1;
 
12582
        if(read (fd, data3, datasize) != datasize)
 
12583
                return 1;
 
12584
        for(i=0;i<sizeof(data);i++)
 
12585
                if(*(data + i) != *(data3 + i))
 
12586
                        return 3;
 
12587
        close(fd);
 
12588
        return 0;
12865
12589
}
12866
12590
_ACEOF
12867
12591
rm -f conftest$ac_exeext
12884
12608
  ac_status=$?
12885
12609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886
12610
  (exit $ac_status); }; }; then
12887
 
  ac_cv_func_mmap_fixed_mapped=yes
 
12611
  ac_cv_c_mmap_private=yes
12888
12612
else
12889
12613
  echo "$as_me: program exited with status $ac_status" >&5
12890
12614
echo "$as_me: failed program was:" >&5
12891
12615
sed 's/^/| /' conftest.$ac_ext >&5
12892
12616
 
12893
12617
( exit $ac_status )
12894
 
ac_cv_func_mmap_fixed_mapped=no
 
12618
ac_cv_c_mmap_private=no
12895
12619
fi
12896
12620
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12897
12621
fi
12898
12622
 
12899
12623
 
12900
12624
fi
12901
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12902
 
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12903
 
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
12625
{ echo "$as_me:$LINENO: result: $ac_cv_c_mmap_private" >&5
 
12626
echo "${ECHO_T}$ac_cv_c_mmap_private" >&6; }
 
12627
if test $ac_cv_c_mmap_private = yes; then
12904
12628
 
12905
12629
cat >>confdefs.h <<\_ACEOF
12906
12630
#define HAVE_MMAP 1
13034
12758
fi
13035
12759
 
13036
12760
 
 
12761
enable_check_ut=auto
 
12762
enable_ut_install=no
 
12763
# Check whether --enable-check was given.
 
12764
if test "${enable_check+set}" = set; then
 
12765
  enableval=$enable_check; enable_check_ut=$enableval
 
12766
else
 
12767
  enable_check_ut="auto"
 
12768
fi
 
12769
 
 
12770
 
 
12771
if test "$enable_check_ut" != "no" ; then
 
12772
 
 
12773
 
 
12774
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
12775
        if test -n "$ac_tool_prefix"; then
 
12776
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
12777
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
12778
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12779
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
12780
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
12781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12782
else
 
12783
  case $PKG_CONFIG in
 
12784
  [\\/]* | ?:[\\/]*)
 
12785
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
12786
  ;;
 
12787
  *)
 
12788
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12789
for as_dir in $PATH
 
12790
do
 
12791
  IFS=$as_save_IFS
 
12792
  test -z "$as_dir" && as_dir=.
 
12793
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12794
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12795
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12796
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12797
    break 2
 
12798
  fi
 
12799
done
 
12800
done
 
12801
IFS=$as_save_IFS
 
12802
 
 
12803
  ;;
 
12804
esac
 
12805
fi
 
12806
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
12807
if test -n "$PKG_CONFIG"; then
 
12808
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
12809
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
12810
else
 
12811
  { echo "$as_me:$LINENO: result: no" >&5
 
12812
echo "${ECHO_T}no" >&6; }
 
12813
fi
 
12814
 
 
12815
 
 
12816
fi
 
12817
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
12818
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
12819
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
12820
set dummy pkg-config; ac_word=$2
 
12821
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12822
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
12823
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
12824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12825
else
 
12826
  case $ac_pt_PKG_CONFIG in
 
12827
  [\\/]* | ?:[\\/]*)
 
12828
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
12829
  ;;
 
12830
  *)
 
12831
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12832
for as_dir in $PATH
 
12833
do
 
12834
  IFS=$as_save_IFS
 
12835
  test -z "$as_dir" && as_dir=.
 
12836
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12837
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12838
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12839
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12840
    break 2
 
12841
  fi
 
12842
done
 
12843
done
 
12844
IFS=$as_save_IFS
 
12845
 
 
12846
  ;;
 
12847
esac
 
12848
fi
 
12849
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
12850
if test -n "$ac_pt_PKG_CONFIG"; then
 
12851
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
12852
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
12853
else
 
12854
  { echo "$as_me:$LINENO: result: no" >&5
 
12855
echo "${ECHO_T}no" >&6; }
 
12856
fi
 
12857
 
 
12858
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
12859
    PKG_CONFIG=""
 
12860
  else
 
12861
    case $cross_compiling:$ac_tool_warned in
 
12862
yes:)
 
12863
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
12864
whose name does not start with the host triplet.  If you think this
 
12865
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
12866
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
12867
whose name does not start with the host triplet.  If you think this
 
12868
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
12869
ac_tool_warned=yes ;;
 
12870
esac
 
12871
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
12872
  fi
 
12873
else
 
12874
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
12875
fi
 
12876
 
 
12877
fi
 
12878
if test -n "$PKG_CONFIG"; then
 
12879
        _pkg_min_version=0.9.0
 
12880
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
12881
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
12882
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
12883
                { echo "$as_me:$LINENO: result: yes" >&5
 
12884
echo "${ECHO_T}yes" >&6; }
 
12885
        else
 
12886
                { echo "$as_me:$LINENO: result: no" >&5
 
12887
echo "${ECHO_T}no" >&6; }
 
12888
                PKG_CONFIG=""
 
12889
        fi
 
12890
 
 
12891
fi
 
12892
 
 
12893
pkg_failed=no
 
12894
{ echo "$as_me:$LINENO: checking for CHECK" >&5
 
12895
echo $ECHO_N "checking for CHECK... $ECHO_C" >&6; }
 
12896
 
 
12897
if test -n "$PKG_CONFIG"; then
 
12898
    if test -n "$CHECK_CFLAGS"; then
 
12899
        pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
 
12900
    else
 
12901
        if test -n "$PKG_CONFIG" && \
 
12902
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check\"") >&5
 
12903
  ($PKG_CONFIG --exists --print-errors "check") 2>&5
 
12904
  ac_status=$?
 
12905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12906
  (exit $ac_status); }; then
 
12907
  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check" 2>/dev/null`
 
12908
else
 
12909
  pkg_failed=yes
 
12910
fi
 
12911
    fi
 
12912
else
 
12913
        pkg_failed=untried
 
12914
fi
 
12915
if test -n "$PKG_CONFIG"; then
 
12916
    if test -n "$CHECK_LIBS"; then
 
12917
        pkg_cv_CHECK_LIBS="$CHECK_LIBS"
 
12918
    else
 
12919
        if test -n "$PKG_CONFIG" && \
 
12920
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check\"") >&5
 
12921
  ($PKG_CONFIG --exists --print-errors "check") 2>&5
 
12922
  ac_status=$?
 
12923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12924
  (exit $ac_status); }; then
 
12925
  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check" 2>/dev/null`
 
12926
else
 
12927
  pkg_failed=yes
 
12928
fi
 
12929
    fi
 
12930
else
 
12931
        pkg_failed=untried
 
12932
fi
 
12933
 
 
12934
 
 
12935
 
 
12936
if test $pkg_failed = yes; then
 
12937
 
 
12938
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12939
        _pkg_short_errors_supported=yes
 
12940
else
 
12941
        _pkg_short_errors_supported=no
 
12942
fi
 
12943
        if test $_pkg_short_errors_supported = yes; then
 
12944
                CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "check"`
 
12945
        else
 
12946
                CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "check"`
 
12947
        fi
 
12948
        # Put the nasty error message in config.log where it belongs
 
12949
        echo "$CHECK_PKG_ERRORS" >&5
 
12950
 
 
12951
        { echo "$as_me:$LINENO: result: no" >&5
 
12952
echo "${ECHO_T}no" >&6; }
 
12953
                { echo "$as_me:$LINENO: WARNING: unable to find 'check' using pkg-config:
 
12954
$CHECK_PKG_ERRORS
 
12955
Alternatively, you may set the environment variables CHECK_CFLAGS
 
12956
and CHECK_LIBS to avoid the need to call pkg-config.
 
12957
See the pkg-config man page for more details." >&5
 
12958
echo "$as_me: WARNING: unable to find 'check' using pkg-config:
 
12959
$CHECK_PKG_ERRORS
 
12960
Alternatively, you may set the environment variables CHECK_CFLAGS
 
12961
and CHECK_LIBS to avoid the need to call pkg-config.
 
12962
See the pkg-config man page for more details." >&2;}
 
12963
elif test $pkg_failed = untried; then
 
12964
        { echo "$as_me:$LINENO: WARNING: unable to find 'check' using pkg-config:
 
12965
$CHECK_PKG_ERRORS
 
12966
Alternatively, you may set the environment variables CHECK_CFLAGS
 
12967
and CHECK_LIBS to avoid the need to call pkg-config.
 
12968
See the pkg-config man page for more details." >&5
 
12969
echo "$as_me: WARNING: unable to find 'check' using pkg-config:
 
12970
$CHECK_PKG_ERRORS
 
12971
Alternatively, you may set the environment variables CHECK_CFLAGS
 
12972
and CHECK_LIBS to avoid the need to call pkg-config.
 
12973
See the pkg-config man page for more details." >&2;}
 
12974
else
 
12975
        CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
 
12976
        CHECK_LIBS=$pkg_cv_CHECK_LIBS
 
12977
        { echo "$as_me:$LINENO: result: yes" >&5
 
12978
echo "${ECHO_T}yes" >&6; }
 
12979
        :
 
12980
fi
 
12981
        save_CPPFLAGS="$CPPFLAGS";
 
12982
        CPPFLAGS="$CPPFLAGS $CHECK_CFLAGS"
 
12983
        save_LIBS="$LIBS"
 
12984
        if test -z "$CHECK_LIBS"; then
 
12985
                # when pkg-config is not available, use defaults
 
12986
                CHECK_LIBS="-lcheck"
 
12987
        fi
 
12988
        LIBS="$LIBS $CHECK_LIBS"
 
12989
        if test "${ac_cv_header_check_h+set}" = set; then
 
12990
  { echo "$as_me:$LINENO: checking for check.h" >&5
 
12991
echo $ECHO_N "checking for check.h... $ECHO_C" >&6; }
 
12992
if test "${ac_cv_header_check_h+set}" = set; then
 
12993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12994
fi
 
12995
{ echo "$as_me:$LINENO: result: $ac_cv_header_check_h" >&5
 
12996
echo "${ECHO_T}$ac_cv_header_check_h" >&6; }
 
12997
else
 
12998
  # Is the header compilable?
 
12999
{ echo "$as_me:$LINENO: checking check.h usability" >&5
 
13000
echo $ECHO_N "checking check.h usability... $ECHO_C" >&6; }
 
13001
cat >conftest.$ac_ext <<_ACEOF
 
13002
/* confdefs.h.  */
 
13003
_ACEOF
 
13004
cat confdefs.h >>conftest.$ac_ext
 
13005
cat >>conftest.$ac_ext <<_ACEOF
 
13006
/* end confdefs.h.  */
 
13007
$ac_includes_default
 
13008
#include <check.h>
 
13009
_ACEOF
 
13010
rm -f conftest.$ac_objext
 
13011
if { (ac_try="$ac_compile"
 
13012
case "(($ac_try" in
 
13013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13014
  *) ac_try_echo=$ac_try;;
 
13015
esac
 
13016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13017
  (eval "$ac_compile") 2>conftest.er1
 
13018
  ac_status=$?
 
13019
  grep -v '^ *+' conftest.er1 >conftest.err
 
13020
  rm -f conftest.er1
 
13021
  cat conftest.err >&5
 
13022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13023
  (exit $ac_status); } && {
 
13024
         test -z "$ac_c_werror_flag" ||
 
13025
         test ! -s conftest.err
 
13026
       } && test -s conftest.$ac_objext; then
 
13027
  ac_header_compiler=yes
 
13028
else
 
13029
  echo "$as_me: failed program was:" >&5
 
13030
sed 's/^/| /' conftest.$ac_ext >&5
 
13031
 
 
13032
        ac_header_compiler=no
 
13033
fi
 
13034
 
 
13035
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13036
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13037
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
13038
 
 
13039
# Is the header present?
 
13040
{ echo "$as_me:$LINENO: checking check.h presence" >&5
 
13041
echo $ECHO_N "checking check.h presence... $ECHO_C" >&6; }
 
13042
cat >conftest.$ac_ext <<_ACEOF
 
13043
/* confdefs.h.  */
 
13044
_ACEOF
 
13045
cat confdefs.h >>conftest.$ac_ext
 
13046
cat >>conftest.$ac_ext <<_ACEOF
 
13047
/* end confdefs.h.  */
 
13048
#include <check.h>
 
13049
_ACEOF
 
13050
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13051
case "(($ac_try" in
 
13052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13053
  *) ac_try_echo=$ac_try;;
 
13054
esac
 
13055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13056
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13057
  ac_status=$?
 
13058
  grep -v '^ *+' conftest.er1 >conftest.err
 
13059
  rm -f conftest.er1
 
13060
  cat conftest.err >&5
 
13061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13062
  (exit $ac_status); } >/dev/null && {
 
13063
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13064
         test ! -s conftest.err
 
13065
       }; then
 
13066
  ac_header_preproc=yes
 
13067
else
 
13068
  echo "$as_me: failed program was:" >&5
 
13069
sed 's/^/| /' conftest.$ac_ext >&5
 
13070
 
 
13071
  ac_header_preproc=no
 
13072
fi
 
13073
 
 
13074
rm -f conftest.err conftest.$ac_ext
 
13075
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13076
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
13077
 
 
13078
# So?  What about this header?
 
13079
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13080
  yes:no: )
 
13081
    { echo "$as_me:$LINENO: WARNING: check.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
13082
echo "$as_me: WARNING: check.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13083
    { echo "$as_me:$LINENO: WARNING: check.h: proceeding with the compiler's result" >&5
 
13084
echo "$as_me: WARNING: check.h: proceeding with the compiler's result" >&2;}
 
13085
    ac_header_preproc=yes
 
13086
    ;;
 
13087
  no:yes:* )
 
13088
    { echo "$as_me:$LINENO: WARNING: check.h: present but cannot be compiled" >&5
 
13089
echo "$as_me: WARNING: check.h: present but cannot be compiled" >&2;}
 
13090
    { echo "$as_me:$LINENO: WARNING: check.h:     check for missing prerequisite headers?" >&5
 
13091
echo "$as_me: WARNING: check.h:     check for missing prerequisite headers?" >&2;}
 
13092
    { echo "$as_me:$LINENO: WARNING: check.h: see the Autoconf documentation" >&5
 
13093
echo "$as_me: WARNING: check.h: see the Autoconf documentation" >&2;}
 
13094
    { echo "$as_me:$LINENO: WARNING: check.h:     section \"Present But Cannot Be Compiled\"" >&5
 
13095
echo "$as_me: WARNING: check.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13096
    { echo "$as_me:$LINENO: WARNING: check.h: proceeding with the preprocessor's result" >&5
 
13097
echo "$as_me: WARNING: check.h: proceeding with the preprocessor's result" >&2;}
 
13098
    { echo "$as_me:$LINENO: WARNING: check.h: in the future, the compiler will take precedence" >&5
 
13099
echo "$as_me: WARNING: check.h: in the future, the compiler will take precedence" >&2;}
 
13100
    ( cat <<\_ASBOX
 
13101
## -------------------------------------- ##
 
13102
## Report this to http://bugs.clamav.net/ ##
 
13103
## -------------------------------------- ##
 
13104
_ASBOX
 
13105
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
13106
    ;;
 
13107
esac
 
13108
{ echo "$as_me:$LINENO: checking for check.h" >&5
 
13109
echo $ECHO_N "checking for check.h... $ECHO_C" >&6; }
 
13110
if test "${ac_cv_header_check_h+set}" = set; then
 
13111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13112
else
 
13113
  ac_cv_header_check_h=$ac_header_preproc
 
13114
fi
 
13115
{ echo "$as_me:$LINENO: result: $ac_cv_header_check_h" >&5
 
13116
echo "${ECHO_T}$ac_cv_header_check_h" >&6; }
 
13117
 
 
13118
fi
 
13119
if test $ac_cv_header_check_h = yes; then
 
13120
 
 
13121
                                { echo "$as_me:$LINENO: checking linking with check" >&5
 
13122
echo $ECHO_N "checking linking with check... $ECHO_C" >&6; }
 
13123
                                cat >conftest.$ac_ext <<_ACEOF
 
13124
/* confdefs.h.  */
 
13125
_ACEOF
 
13126
cat confdefs.h >>conftest.$ac_ext
 
13127
cat >>conftest.$ac_ext <<_ACEOF
 
13128
/* end confdefs.h.  */
 
13129
 
 
13130
/* Override any GCC internal prototype to avoid an error.
 
13131
   Use char because int might match the return type of a GCC
 
13132
   builtin and then its argument prototype would still apply.  */
 
13133
#ifdef __cplusplus
 
13134
extern "C"
 
13135
#endif
 
13136
char srunner_create ();
 
13137
int
 
13138
main ()
 
13139
{
 
13140
return srunner_create ();
 
13141
  ;
 
13142
  return 0;
 
13143
}
 
13144
_ACEOF
 
13145
rm -f conftest.$ac_objext conftest$ac_exeext
 
13146
if { (ac_try="$ac_link"
 
13147
case "(($ac_try" in
 
13148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13149
  *) ac_try_echo=$ac_try;;
 
13150
esac
 
13151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13152
  (eval "$ac_link") 2>conftest.er1
 
13153
  ac_status=$?
 
13154
  grep -v '^ *+' conftest.er1 >conftest.err
 
13155
  rm -f conftest.er1
 
13156
  cat conftest.err >&5
 
13157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13158
  (exit $ac_status); } && {
 
13159
         test -z "$ac_c_werror_flag" ||
 
13160
         test ! -s conftest.err
 
13161
       } && test -s conftest$ac_exeext &&
 
13162
       $as_test_x conftest$ac_exeext; then
 
13163
 
 
13164
                                        { echo "$as_me:$LINENO: result: ok" >&5
 
13165
echo "${ECHO_T}ok" >&6; }
 
13166
 
 
13167
cat >>confdefs.h <<\_ACEOF
 
13168
#define HAVE_CHECK 1
 
13169
_ACEOF
 
13170
 
 
13171
                                        # Check whether --enable-tests-install was given.
 
13172
if test "${enable_tests_install+set}" = set; then
 
13173
  enableval=$enable_tests_install; enable_ut_install=$enableval
 
13174
else
 
13175
  enable_ut_install="no"
 
13176
fi
 
13177
 
 
13178
 
 
13179
else
 
13180
  echo "$as_me: failed program was:" >&5
 
13181
sed 's/^/| /' conftest.$ac_ext >&5
 
13182
 
 
13183
        { echo "$as_me:$LINENO: result: failed" >&5
 
13184
echo "${ECHO_T}failed" >&6; };CHECK_LIBS=
 
13185
 
 
13186
fi
 
13187
 
 
13188
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13189
      conftest$ac_exeext conftest.$ac_ext
 
13190
 
 
13191
fi
 
13192
 
 
13193
 
 
13194
        LIBS="$save_LIBS"
 
13195
        CPPFLAGS="$save_CPPFLAGS"
 
13196
fi
 
13197
 
 
13198
if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then
 
13199
    { { echo "$as_me:$LINENO: error:
 
13200
$CHECK_PKG_ERRORS
 
13201
 
 
13202
Alternatively, you may set the environment variables CHECK_CFLAGS
 
13203
and CHECK_LIBS to avoid the need to call pkg-config.
 
13204
See the pkg-config man page for more details.
 
13205
 
 
13206
ERROR!  Check was configured, but not found.  Get it from http://check.sf.net/
 
13207
" >&5
 
13208
echo "$as_me: error:
 
13209
$CHECK_PKG_ERRORS
 
13210
 
 
13211
Alternatively, you may set the environment variables CHECK_CFLAGS
 
13212
and CHECK_LIBS to avoid the need to call pkg-config.
 
13213
See the pkg-config man page for more details.
 
13214
 
 
13215
ERROR!  Check was configured, but not found.  Get it from http://check.sf.net/
 
13216
" >&2;}
 
13217
   { (exit 1); exit 1; }; }
 
13218
fi
 
13219
 
 
13220
# Check whether --enable-coverage was given.
 
13221
if test "${enable_coverage+set}" = set; then
 
13222
  enableval=$enable_coverage; enable_cov=$enableval
 
13223
else
 
13224
  enable_cov="no"
 
13225
fi
 
13226
 
 
13227
 
 
13228
if test "x$enable_coverage" = "xyes"; then
 
13229
        if test "x$CHECK_LIBS" = "x"; then
 
13230
                { { echo "$as_me:$LINENO: error: Coverage testing required, but unit tests not enabled!" >&5
 
13231
echo "$as_me: error: Coverage testing required, but unit tests not enabled!" >&2;}
 
13232
   { (exit 1); exit 1; }; }
 
13233
        fi
 
13234
        if test "x$ac_compiler_gnu" != "xyes"; then
 
13235
                { { echo "$as_me:$LINENO: error: coverage testing only works if gcc is used" >&5
 
13236
echo "$as_me: error: coverage testing only works if gcc is used" >&2;}
 
13237
   { (exit 1); exit 1; }; }
 
13238
        fi
 
13239
 
 
13240
        CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
 
13241
        LDFLAGS="$LDFLAGS -lgcov"
 
13242
        for ac_prog in gcov
 
13243
do
 
13244
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13245
set dummy $ac_prog; ac_word=$2
 
13246
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
13248
if test "${ac_cv_prog_GCOV+set}" = set; then
 
13249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13250
else
 
13251
  if test -n "$GCOV"; then
 
13252
  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
 
13253
else
 
13254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13255
for as_dir in $PATH
 
13256
do
 
13257
  IFS=$as_save_IFS
 
13258
  test -z "$as_dir" && as_dir=.
 
13259
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13260
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13261
    ac_cv_prog_GCOV="$ac_prog"
 
13262
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13263
    break 2
 
13264
  fi
 
13265
done
 
13266
done
 
13267
IFS=$as_save_IFS
 
13268
 
 
13269
fi
 
13270
fi
 
13271
GCOV=$ac_cv_prog_GCOV
 
13272
if test -n "$GCOV"; then
 
13273
  { echo "$as_me:$LINENO: result: $GCOV" >&5
 
13274
echo "${ECHO_T}$GCOV" >&6; }
 
13275
else
 
13276
  { echo "$as_me:$LINENO: result: no" >&5
 
13277
echo "${ECHO_T}no" >&6; }
 
13278
fi
 
13279
 
 
13280
 
 
13281
  test -n "$GCOV" && break
 
13282
done
 
13283
test -n "$GCOV" || GCOV="false"
 
13284
 
 
13285
        for ac_prog in lcov
 
13286
do
 
13287
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13288
set dummy $ac_prog; ac_word=$2
 
13289
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13290
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
13291
if test "${ac_cv_prog_LCOV+set}" = set; then
 
13292
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13293
else
 
13294
  if test -n "$LCOV"; then
 
13295
  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
 
13296
else
 
13297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13298
for as_dir in $PATH
 
13299
do
 
13300
  IFS=$as_save_IFS
 
13301
  test -z "$as_dir" && as_dir=.
 
13302
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13303
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13304
    ac_cv_prog_LCOV="$ac_prog"
 
13305
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13306
    break 2
 
13307
  fi
 
13308
done
 
13309
done
 
13310
IFS=$as_save_IFS
 
13311
 
 
13312
fi
 
13313
fi
 
13314
LCOV=$ac_cv_prog_LCOV
 
13315
if test -n "$LCOV"; then
 
13316
  { echo "$as_me:$LINENO: result: $LCOV" >&5
 
13317
echo "${ECHO_T}$LCOV" >&6; }
 
13318
else
 
13319
  { echo "$as_me:$LINENO: result: no" >&5
 
13320
echo "${ECHO_T}no" >&6; }
 
13321
fi
 
13322
 
 
13323
 
 
13324
  test -n "$LCOV" && break
 
13325
done
 
13326
test -n "$LCOV" || LCOV="false"
 
13327
 
 
13328
        for ac_prog in genhtml
 
13329
do
 
13330
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13331
set dummy $ac_prog; ac_word=$2
 
13332
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13333
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
13334
if test "${ac_cv_prog_GENHTML+set}" = set; then
 
13335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13336
else
 
13337
  if test -n "$GENHTML"; then
 
13338
  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
 
13339
else
 
13340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13341
for as_dir in $PATH
 
13342
do
 
13343
  IFS=$as_save_IFS
 
13344
  test -z "$as_dir" && as_dir=.
 
13345
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13346
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13347
    ac_cv_prog_GENHTML="$ac_prog"
 
13348
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13349
    break 2
 
13350
  fi
 
13351
done
 
13352
done
 
13353
IFS=$as_save_IFS
 
13354
 
 
13355
fi
 
13356
fi
 
13357
GENHTML=$ac_cv_prog_GENHTML
 
13358
if test -n "$GENHTML"; then
 
13359
  { echo "$as_me:$LINENO: result: $GENHTML" >&5
 
13360
echo "${ECHO_T}$GENHTML" >&6; }
 
13361
else
 
13362
  { echo "$as_me:$LINENO: result: no" >&5
 
13363
echo "${ECHO_T}no" >&6; }
 
13364
fi
 
13365
 
 
13366
 
 
13367
  test -n "$GENHTML" && break
 
13368
done
 
13369
test -n "$GENHTML" || GENHTML="false"
 
13370
 
 
13371
fi
 
13372
 
 
13373
 if test "x$enable_coverage" = "xyes"; then
 
13374
  ENABLE_COVERAGE_TRUE=
 
13375
  ENABLE_COVERAGE_FALSE='#'
 
13376
else
 
13377
  ENABLE_COVERAGE_TRUE='#'
 
13378
  ENABLE_COVERAGE_FALSE=
 
13379
fi
 
13380
 
 
13381
 if test "x$enable_ut_install" = "xyes"; then
 
13382
  ENABLE_UT_INSTALL_TRUE=
 
13383
  ENABLE_UT_INSTALL_FALSE='#'
 
13384
else
 
13385
  ENABLE_UT_INSTALL_TRUE='#'
 
13386
  ENABLE_UT_INSTALL_FALSE=
 
13387
fi
 
13388
 
 
13389
 
13037
13390
have_pthreads=no
13038
13391
if test "${ac_cv_header_pthread_h+set}" = set; then
13039
13392
  { echo "$as_me:$LINENO: checking for pthread.h" >&5
13256
13609
    if test "$ZLIB_HOME" != "/usr"; then
13257
13610
        CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include"
13258
13611
        save_LDFLAGS="$LDFLAGS"
13259
 
        LDFLAGS="$LIBS -L$ZLIB_HOME/lib"
 
13612
        save_LIBS="$LIBS"
 
13613
        LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib"
13260
13614
        { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
13261
13615
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
13262
13616
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
13406
13760
fi
13407
13761
 
13408
13762
        LDFLAGS="$save_LDFLAGS"
 
13763
        LIBS="$save_LIBS"
13409
13764
    else
13410
13765
        { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
13411
13766
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
14445
14800
 
14446
14801
fi
14447
14802
if test $ac_cv_header_bzlib_h = yes; then
14448
 
  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBBZ2";
 
14803
  { echo "$as_me:$LINENO: checking for CVE-2008-1372" >&5
 
14804
echo $ECHO_N "checking for CVE-2008-1372... $ECHO_C" >&6; }
 
14805
if test "${ac_cv_c_cve_2008_1372+set}" = set; then
 
14806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14807
else
 
14808
 
 
14809
save_LDFLAGS="$LDFLAGS"
 
14810
LDFLAGS="$LIBCLAMAV_LIBS $LTLIBBZ2"
 
14811
if test "$cross_compiling" = yes; then
 
14812
  ac_cv_c_cve_2008_1372=ok
 
14813
else
 
14814
  cat >conftest.$ac_ext <<_ACEOF
 
14815
/* confdefs.h.  */
 
14816
_ACEOF
 
14817
cat confdefs.h >>conftest.$ac_ext
 
14818
cat >>conftest.$ac_ext <<_ACEOF
 
14819
/* end confdefs.h.  */
 
14820
 
 
14821
#include <string.h>
 
14822
#include <stdlib.h>
 
14823
#include <bzlib.h>
 
14824
 
 
14825
#ifdef NOBZ2PREFIX
 
14826
#define BZ2_bzReadOpen bzReadOpen
 
14827
#define BZ2_bzReadClose bzReadClose
 
14828
#define BZ2_bzRead bzRead
 
14829
#endif
 
14830
 
 
14831
const unsigned char poc[] = {
 
14832
  0x42, 0x5a, 0x68, 0x39, 0x31, 0x41, 0x59, 0x26, 0x53, 0x59, 0x20, 0x0c,
 
14833
  0xa6, 0x9c, 0x00, 0x00, 0xc2, 0xfb, 0x90, 0xca, 0x10, 0x04, 0x00, 0x40,
 
14834
  0x03, 0x77, 0x80, 0x06, 0x00, 0x7a, 0x2f, 0xde, 0x40, 0x04, 0x00, 0x40,
 
14835
  0x08, 0x30, 0x00, 0xb9, 0xb0, 0x4a, 0x89, 0xa3, 0x43, 0x4d, 0x00, 0x00,
 
14836
  0x01, 0xb5, 0x04, 0xa4, 0x6a, 0x19, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x91,
 
14837
  0x00, 0x00, 0x00, 0x00, 0x2a, 0x91, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00,
 
14838
  0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00,
 
14839
  0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x2a,
 
14840
  0x91, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x91, 0x00, 0x00, 0x00, 0x00, 0x2a,
 
14841
  0x91, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x91, 0x2a, 0xad, 0x2a, 0x91, 0x32,
 
14842
  0x9a, 0x32, 0x0d, 0x06, 0x8d, 0x00, 0x03, 0xf7, 0x13, 0xd2, 0xf5, 0x54,
 
14843
  0x5b, 0x20, 0x4b, 0x34, 0x40, 0x8a, 0x6b, 0xaa, 0x64, 0xd8, 0x30, 0x9d,
 
14844
  0x8a, 0x9a, 0x52, 0x44, 0x13, 0x46, 0x37, 0xd9, 0x0a, 0x3c, 0xa6, 0xee,
 
14845
  0xe9, 0xee, 0xec, 0x6d, 0x4a, 0x65, 0xc2, 0x32, 0xcb, 0x43, 0x82, 0x48,
 
14846
  0xa1, 0x26, 0xc3, 0x43, 0x11, 0x47, 0x0a, 0x5e, 0xc1, 0x30, 0x55, 0x84,
 
14847
  0xb1, 0x25, 0x7a, 0x2b, 0x86, 0x0e, 0xc8, 0x1a, 0x45, 0x10, 0xf1, 0xa9,
 
14848
  0x19, 0x00, 0x30, 0x3c, 0x2a, 0xeb, 0x16, 0x6a, 0x75, 0x86, 0x60, 0xd0,
 
14849
  0xc7, 0xd0, 0x94, 0x34, 0xf1, 0x6b, 0x49, 0x9f, 0x30, 0x4e, 0x0f, 0x70,
 
14850
  0xbe, 0x12, 0x28, 0xe9, 0x7d, 0x10, 0x80, 0x35, 0x53, 0xaf, 0x72, 0xe1,
 
14851
  0x83, 0x90, 0xb8, 0xf8, 0x4b, 0x1a, 0xa4, 0x29, 0x1b, 0x90, 0xe1, 0x4a,
 
14852
  0x0f, 0xc5, 0xdc, 0x91, 0x4e, 0x14, 0x24, 0x08, 0x03, 0x29, 0xa7, 0x00
 
14853
};
 
14854
const unsigned int poc_len = 252;
 
14855
 
 
14856
int main (int argc, char **argv) {
 
14857
        bz_stream bz;
 
14858
        char buf[1024];
 
14859
 
 
14860
        memset(&bz, 0, sizeof(bz));
 
14861
        bz.next_in = (char *)&poc;
 
14862
        bz.avail_in = poc_len;
 
14863
        bz.next_out = buf;
 
14864
        bz.avail_out = sizeof(buf);
 
14865
        if(BZ2_bzDecompressInit(&bz, 0, 0)!=BZ_OK)
 
14866
                return 1;
 
14867
 
 
14868
        while((BZ2_bzDecompress(&bz))==BZ_OK) {
 
14869
                bz.next_out = buf;
 
14870
                bz.avail_out = sizeof(buf);
 
14871
        }
 
14872
        BZ2_bzDecompressEnd(&bz);
 
14873
        return 0;
 
14874
}
 
14875
 
 
14876
_ACEOF
 
14877
rm -f conftest$ac_exeext
 
14878
if { (ac_try="$ac_link"
 
14879
case "(($ac_try" in
 
14880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14881
  *) ac_try_echo=$ac_try;;
 
14882
esac
 
14883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14884
  (eval "$ac_link") 2>&5
 
14885
  ac_status=$?
 
14886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14887
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14888
  { (case "(($ac_try" in
 
14889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14890
  *) ac_try_echo=$ac_try;;
 
14891
esac
 
14892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14893
  (eval "$ac_try") 2>&5
 
14894
  ac_status=$?
 
14895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14896
  (exit $ac_status); }; }; then
 
14897
  ac_cv_c_cve_2008_1372=ok
 
14898
else
 
14899
  echo "$as_me: program exited with status $ac_status" >&5
 
14900
echo "$as_me: failed program was:" >&5
 
14901
sed 's/^/| /' conftest.$ac_ext >&5
 
14902
 
 
14903
( exit $ac_status )
 
14904
ac_cv_c_cve_2008_1372=bugged
 
14905
fi
 
14906
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14907
fi
 
14908
 
 
14909
 
 
14910
LDFLAGS="$save_LDFLAGS"
 
14911
 
 
14912
fi
 
14913
{ echo "$as_me:$LINENO: result: $ac_cv_c_cve_2008_1372" >&5
 
14914
echo "${ECHO_T}$ac_cv_c_cve_2008_1372" >&6; }
 
14915
 
 
14916
else
 
14917
  ac_cv_c_cve_2008_1372="no"
 
14918
fi
 
14919
 
 
14920
 
 
14921
        if test "$ac_cv_c_cve_2008_1372" = "bugged"; then
 
14922
                { echo "$as_me:$LINENO: WARNING: ****** bzip2 libraries are affected by the CVE-2008-1372 bug" >&5
 
14923
echo "$as_me: WARNING: ****** bzip2 libraries are affected by the CVE-2008-1372 bug" >&2;}
 
14924
                { echo "$as_me:$LINENO: WARNING: ****** We strongly suggest you to update to bzip2 1.0.5." >&5
 
14925
echo "$as_me: WARNING: ****** We strongly suggest you to update to bzip2 1.0.5." >&2;}
 
14926
                { echo "$as_me:$LINENO: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5
 
14927
echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;}
 
14928
        fi
 
14929
 
 
14930
        case "$ac_cv_c_cve_2008_1372" in
 
14931
        ok|bugged)
 
14932
                LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBBZ2"
14449
14933
 
14450
14934
cat >>confdefs.h <<\_ACEOF
14451
14935
#define HAVE_BZLIB_H 1
14452
14936
_ACEOF
14453
14937
 
14454
 
else
14455
 
  { echo "$as_me:$LINENO: WARNING: ****** bzip2 support disabled" >&5
 
14938
                ;;
 
14939
        *)
 
14940
                { echo "$as_me:$LINENO: WARNING: ****** bzip2 support disabled" >&5
14456
14941
echo "$as_me: WARNING: ****** bzip2 support disabled" >&2;}
14457
 
fi
14458
 
 
 
14942
                ;;
 
14943
        esac
14459
14944
 
14460
14945
    else
14461
14946
        { echo "$as_me:$LINENO: WARNING: ****** bzip2 support disabled" >&5
14471
14956
fi
14472
14957
 
14473
14958
 
 
14959
# Check whether --enable-ipv6 was given.
 
14960
if test "${enable_ipv6+set}" = set; then
 
14961
  enableval=$enable_ipv6; want_ipv6=$enableval
 
14962
else
 
14963
  want_ipv6="yes"
 
14964
fi
 
14965
 
 
14966
 
 
14967
if test "$want_ipv6" = "yes"
 
14968
then
 
14969
    { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
 
14970
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
 
14971
    if test "${have_gai+set}" = set; then
 
14972
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14973
else
 
14974
 
 
14975
                if test "$cross_compiling" = yes; then
 
14976
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
14977
See \`config.log' for more details." >&5
 
14978
echo "$as_me: error: cannot run test program while cross compiling
 
14979
See \`config.log' for more details." >&2;}
 
14980
   { (exit 1); exit 1; }; }
 
14981
else
 
14982
  cat >conftest.$ac_ext <<_ACEOF
 
14983
/* confdefs.h.  */
 
14984
_ACEOF
 
14985
cat confdefs.h >>conftest.$ac_ext
 
14986
cat >>conftest.$ac_ext <<_ACEOF
 
14987
/* end confdefs.h.  */
 
14988
 
 
14989
                    #include <sys/types.h>
 
14990
                    #include <sys/socket.h>
 
14991
                    #include <netdb.h>
 
14992
                    int main(int argc, char **argv)
 
14993
                    {
 
14994
                            struct addrinfo *res;
 
14995
 
 
14996
                        if(getaddrinfo("127.0.0.1", NULL, NULL, &res) < 0)
 
14997
                            return 1;
 
14998
                        freeaddrinfo(res);
 
14999
                        return 0;
 
15000
                    }
 
15001
 
 
15002
_ACEOF
 
15003
rm -f conftest$ac_exeext
 
15004
if { (ac_try="$ac_link"
 
15005
case "(($ac_try" in
 
15006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15007
  *) ac_try_echo=$ac_try;;
 
15008
esac
 
15009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15010
  (eval "$ac_link") 2>&5
 
15011
  ac_status=$?
 
15012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15013
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15014
  { (case "(($ac_try" in
 
15015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15016
  *) ac_try_echo=$ac_try;;
 
15017
esac
 
15018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15019
  (eval "$ac_try") 2>&5
 
15020
  ac_status=$?
 
15021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15022
  (exit $ac_status); }; }; then
 
15023
  have_gai=yes
 
15024
else
 
15025
  echo "$as_me: program exited with status $ac_status" >&5
 
15026
echo "$as_me: failed program was:" >&5
 
15027
sed 's/^/| /' conftest.$ac_ext >&5
 
15028
 
 
15029
( exit $ac_status )
 
15030
have_gai=no
 
15031
fi
 
15032
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15033
fi
 
15034
 
 
15035
 
 
15036
 
 
15037
fi
 
15038
 
 
15039
    { echo "$as_me:$LINENO: result: $have_gai" >&5
 
15040
echo "${ECHO_T}$have_gai" >&6; }
 
15041
    if test "$have_gai" = yes; then
 
15042
 
 
15043
cat >>confdefs.h <<\_ACEOF
 
15044
#define SUPPORT_IPv6 1
 
15045
_ACEOF
 
15046
 
 
15047
    fi
 
15048
fi
 
15049
 
 
15050
 
 
15051
 
14474
15052
# Check whether --enable-dns was given.
14475
15053
if test "${enable_dns+set}" = set; then
14476
15054
  enableval=$enable_dns; want_dns=$enableval
14480
15058
fi
14481
15059
 
14482
15060
if test $want_dns = yes; then
14483
 
    { echo "$as_me:$LINENO: checking for __dn_expand in -lresolv" >&5
14484
 
echo $ECHO_N "checking for __dn_expand in -lresolv... $ECHO_C" >&6; }
14485
 
if test "${ac_cv_lib_resolv___dn_expand+set}" = set; then
14486
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14487
 
else
14488
 
  ac_check_lib_save_LIBS=$LIBS
14489
 
LIBS="-lresolv  $LIBS"
14490
 
cat >conftest.$ac_ext <<_ACEOF
14491
 
/* confdefs.h.  */
14492
 
_ACEOF
14493
 
cat confdefs.h >>conftest.$ac_ext
14494
 
cat >>conftest.$ac_ext <<_ACEOF
14495
 
/* end confdefs.h.  */
14496
 
 
14497
 
/* Override any GCC internal prototype to avoid an error.
14498
 
   Use char because int might match the return type of a GCC
14499
 
   builtin and then its argument prototype would still apply.  */
14500
 
#ifdef __cplusplus
14501
 
extern "C"
14502
 
#endif
14503
 
char __dn_expand ();
14504
 
int
14505
 
main ()
14506
 
{
14507
 
return __dn_expand ();
14508
 
  ;
14509
 
  return 0;
14510
 
}
14511
 
_ACEOF
14512
 
rm -f conftest.$ac_objext conftest$ac_exeext
14513
 
if { (ac_try="$ac_link"
14514
 
case "(($ac_try" in
14515
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516
 
  *) ac_try_echo=$ac_try;;
14517
 
esac
14518
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519
 
  (eval "$ac_link") 2>conftest.er1
14520
 
  ac_status=$?
14521
 
  grep -v '^ *+' conftest.er1 >conftest.err
14522
 
  rm -f conftest.er1
14523
 
  cat conftest.err >&5
14524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525
 
  (exit $ac_status); } && {
14526
 
         test -z "$ac_c_werror_flag" ||
14527
 
         test ! -s conftest.err
14528
 
       } && test -s conftest$ac_exeext &&
14529
 
       $as_test_x conftest$ac_exeext; then
14530
 
  ac_cv_lib_resolv___dn_expand=yes
14531
 
else
14532
 
  echo "$as_me: failed program was:" >&5
14533
 
sed 's/^/| /' conftest.$ac_ext >&5
14534
 
 
14535
 
        ac_cv_lib_resolv___dn_expand=no
14536
 
fi
14537
 
 
14538
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14539
 
      conftest$ac_exeext conftest.$ac_ext
14540
 
LIBS=$ac_check_lib_save_LIBS
14541
 
fi
14542
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5
14543
 
echo "${ECHO_T}$ac_cv_lib_resolv___dn_expand" >&6; }
14544
 
if test $ac_cv_lib_resolv___dn_expand = yes; then
14545
 
  resolv_lib="-lresolv"
14546
 
fi
14547
 
 
14548
 
    if test -z "$resolv_lib"; then
14549
 
        { echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
14550
 
echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6; }
14551
 
if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
14552
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14553
 
else
14554
 
  ac_check_lib_save_LIBS=$LIBS
14555
 
LIBS="-lresolv  $LIBS"
14556
 
cat >conftest.$ac_ext <<_ACEOF
14557
 
/* confdefs.h.  */
14558
 
_ACEOF
14559
 
cat confdefs.h >>conftest.$ac_ext
14560
 
cat >>conftest.$ac_ext <<_ACEOF
14561
 
/* end confdefs.h.  */
14562
 
 
14563
 
/* Override any GCC internal prototype to avoid an error.
14564
 
   Use char because int might match the return type of a GCC
14565
 
   builtin and then its argument prototype would still apply.  */
14566
 
#ifdef __cplusplus
14567
 
extern "C"
14568
 
#endif
14569
 
char dn_expand ();
14570
 
int
14571
 
main ()
14572
 
{
14573
 
return dn_expand ();
14574
 
  ;
14575
 
  return 0;
14576
 
}
14577
 
_ACEOF
14578
 
rm -f conftest.$ac_objext conftest$ac_exeext
14579
 
if { (ac_try="$ac_link"
14580
 
case "(($ac_try" in
14581
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582
 
  *) ac_try_echo=$ac_try;;
14583
 
esac
14584
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585
 
  (eval "$ac_link") 2>conftest.er1
14586
 
  ac_status=$?
14587
 
  grep -v '^ *+' conftest.er1 >conftest.err
14588
 
  rm -f conftest.er1
14589
 
  cat conftest.err >&5
14590
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591
 
  (exit $ac_status); } && {
14592
 
         test -z "$ac_c_werror_flag" ||
14593
 
         test ! -s conftest.err
14594
 
       } && test -s conftest$ac_exeext &&
14595
 
       $as_test_x conftest$ac_exeext; then
14596
 
  ac_cv_lib_resolv_dn_expand=yes
14597
 
else
14598
 
  echo "$as_me: failed program was:" >&5
14599
 
sed 's/^/| /' conftest.$ac_ext >&5
14600
 
 
14601
 
        ac_cv_lib_resolv_dn_expand=no
14602
 
fi
14603
 
 
14604
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14605
 
      conftest$ac_exeext conftest.$ac_ext
14606
 
LIBS=$ac_check_lib_save_LIBS
14607
 
fi
14608
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
14609
 
echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6; }
14610
 
if test $ac_cv_lib_resolv_dn_expand = yes; then
14611
 
  resolv_lib="-lresolv"
14612
 
fi
14613
 
 
14614
 
    fi
 
15061
    ac_cv_have_lresolv=no
14615
15062
    { echo "$as_me:$LINENO: checking for resolv.h" >&5
14616
15063
echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6; }
14617
15064
if test "${ac_cv_header_resolv_h+set}" = set; then
14661
15108
{ echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5
14662
15109
echo "${ECHO_T}$ac_cv_header_resolv_h" >&6; }
14663
15110
if test $ac_cv_header_resolv_h = yes; then
14664
 
  FRESHCLAM_LIBS="$FRESHCLAM_LIBS $resolv_lib"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS $resolv_lib";
 
15111
 
 
15112
            { echo "$as_me:$LINENO: checking for dn_expand in std libs" >&5
 
15113
echo $ECHO_N "checking for dn_expand in std libs... $ECHO_C" >&6; }
 
15114
if test "${ac_cv_have_lresolv_std+set}" = set; then
 
15115
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15116
else
 
15117
 
 
15118
                ac_cv_have_lresolv_std='no'
 
15119
                cat >conftest.$ac_ext <<_ACEOF
 
15120
 
 
15121
#include <sys/types.h>
 
15122
#include <netinet/in.h>
 
15123
#include <arpa/nameser.h>
 
15124
#include <resolv.h>
 
15125
int main() { return (long)dn_expand; }
 
15126
 
 
15127
_ACEOF
 
15128
rm -f conftest.$ac_objext conftest$ac_exeext
 
15129
if { (ac_try="$ac_link"
 
15130
case "(($ac_try" in
 
15131
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15132
  *) ac_try_echo=$ac_try;;
 
15133
esac
 
15134
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15135
  (eval "$ac_link") 2>conftest.er1
 
15136
  ac_status=$?
 
15137
  grep -v '^ *+' conftest.er1 >conftest.err
 
15138
  rm -f conftest.er1
 
15139
  cat conftest.err >&5
 
15140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15141
  (exit $ac_status); } && {
 
15142
         test -z "$ac_c_werror_flag" ||
 
15143
         test ! -s conftest.err
 
15144
       } && test -s conftest$ac_exeext &&
 
15145
       $as_test_x conftest$ac_exeext; then
 
15146
 
 
15147
                    ac_cv_have_lresolv_std='yes'
 
15148
                    ac_cv_have_lresolv=''
 
15149
 
 
15150
else
 
15151
  echo "$as_me: failed program was:" >&5
 
15152
sed 's/^/| /' conftest.$ac_ext >&5
 
15153
 
 
15154
 
 
15155
fi
 
15156
 
 
15157
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15158
      conftest$ac_exeext conftest.$ac_ext
 
15159
 
 
15160
fi
 
15161
{ echo "$as_me:$LINENO: result: $ac_cv_have_lresolv_std" >&5
 
15162
echo "${ECHO_T}$ac_cv_have_lresolv_std" >&6; }
 
15163
            if test "x$ac_cv_have_lresolv" = "xno"; then
 
15164
            bklibs=$LIBS
 
15165
            LIBS=-lresolv
 
15166
            { echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
 
15167
echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6; }
 
15168
if test "${ac_cv_have_lresolv_lresolv+set}" = set; then
 
15169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15170
else
 
15171
 
 
15172
                ac_cv_have_lresolv_lresolv='yes'
 
15173
                cat >conftest.$ac_ext <<_ACEOF
 
15174
 
 
15175
#include <sys/types.h>
 
15176
#include <netinet/in.h>
 
15177
#include <arpa/nameser.h>
 
15178
#include <resolv.h>
 
15179
int main() { return (long)dn_expand; }
 
15180
 
 
15181
_ACEOF
 
15182
rm -f conftest.$ac_objext conftest$ac_exeext
 
15183
if { (ac_try="$ac_link"
 
15184
case "(($ac_try" in
 
15185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15186
  *) ac_try_echo=$ac_try;;
 
15187
esac
 
15188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15189
  (eval "$ac_link") 2>conftest.er1
 
15190
  ac_status=$?
 
15191
  grep -v '^ *+' conftest.er1 >conftest.err
 
15192
  rm -f conftest.er1
 
15193
  cat conftest.err >&5
 
15194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15195
  (exit $ac_status); } && {
 
15196
         test -z "$ac_c_werror_flag" ||
 
15197
         test ! -s conftest.err
 
15198
       } && test -s conftest$ac_exeext &&
 
15199
       $as_test_x conftest$ac_exeext; then
 
15200
 
 
15201
                    ac_cv_have_lresolv_lresolv='yes'
 
15202
                    ac_cv_have_lresolv=' -lresolv'
 
15203
 
 
15204
else
 
15205
  echo "$as_me: failed program was:" >&5
 
15206
sed 's/^/| /' conftest.$ac_ext >&5
 
15207
 
 
15208
 
 
15209
fi
 
15210
 
 
15211
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15212
      conftest$ac_exeext conftest.$ac_ext
 
15213
 
 
15214
fi
 
15215
{ echo "$as_me:$LINENO: result: $ac_cv_have_lresolv_lresolv" >&5
 
15216
echo "${ECHO_T}$ac_cv_have_lresolv_lresolv" >&6; }
 
15217
            LIBS=$bklibs;
 
15218
            fi
 
15219
 
 
15220
else
 
15221
   ac_cv_have_lresolv=no
 
15222
fi
 
15223
 
 
15224
 
 
15225
    if test "x$ac_cv_have_lresolv" != "xno"; then
 
15226
        FRESHCLAM_LIBS="$FRESHCLAM_LIBS$ac_cv_have_lresolv"
 
15227
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS$ac_cv_have_lresolv"
 
15228
        bklibs=$LIBS
 
15229
        LIBS=$ac_cv_have_lresolv
 
15230
 
14665
15231
cat >>confdefs.h <<\_ACEOF
14666
15232
#define HAVE_RESOLV_H 1
14667
15233
_ACEOF
14668
15234
 
14669
 
else
14670
 
  { echo "$as_me:$LINENO: WARNING: ****** DNS support disabled" >&5
 
15235
        { echo "$as_me:$LINENO: checking for res_nquery in -lresolv" >&5
 
15236
echo $ECHO_N "checking for res_nquery in -lresolv... $ECHO_C" >&6; }
 
15237
if test "${ac_cv_have_lresolv_r+set}" = set; then
 
15238
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15239
else
 
15240
 
 
15241
            ac_cv_have_lresolv_r='no'
 
15242
            cat >conftest.$ac_ext <<_ACEOF
 
15243
 
 
15244
#include <sys/types.h>
 
15245
#include <netinet/in.h>
 
15246
#include <arpa/nameser.h>
 
15247
#include <resolv.h>
 
15248
int main() { return (long)res_nquery; }
 
15249
 
 
15250
_ACEOF
 
15251
rm -f conftest.$ac_objext conftest$ac_exeext
 
15252
if { (ac_try="$ac_link"
 
15253
case "(($ac_try" in
 
15254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15255
  *) ac_try_echo=$ac_try;;
 
15256
esac
 
15257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15258
  (eval "$ac_link") 2>conftest.er1
 
15259
  ac_status=$?
 
15260
  grep -v '^ *+' conftest.er1 >conftest.err
 
15261
  rm -f conftest.er1
 
15262
  cat conftest.err >&5
 
15263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15264
  (exit $ac_status); } && {
 
15265
         test -z "$ac_c_werror_flag" ||
 
15266
         test ! -s conftest.err
 
15267
       } && test -s conftest$ac_exeext &&
 
15268
       $as_test_x conftest$ac_exeext; then
 
15269
 
 
15270
                ac_cv_have_lresolv_r='yes'
 
15271
 
 
15272
else
 
15273
  echo "$as_me: failed program was:" >&5
 
15274
sed 's/^/| /' conftest.$ac_ext >&5
 
15275
 
 
15276
 
 
15277
fi
 
15278
 
 
15279
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15280
      conftest$ac_exeext conftest.$ac_ext,
 
15281
 
 
15282
fi
 
15283
{ echo "$as_me:$LINENO: result: $ac_cv_have_lresolv_r" >&5
 
15284
echo "${ECHO_T}$ac_cv_have_lresolv_r" >&6; }
 
15285
        LIBS=$bklibs
 
15286
        if test "x$ac_cv_have_lresolv_r" = "xyes"; then
 
15287
 
 
15288
cat >>confdefs.h <<\_ACEOF
 
15289
#define HAVE_LRESOLV_R 1
 
15290
_ACEOF
 
15291
 
 
15292
        fi
 
15293
    else
 
15294
        { echo "$as_me:$LINENO: WARNING: ****** DNS support disabled" >&5
14671
15295
echo "$as_me: WARNING: ****** DNS support disabled" >&2;}
14672
 
fi
14673
 
 
14674
 
 
14675
 
fi
 
15296
    fi
 
15297
fi
 
15298
 
 
15299
 
14676
15300
 
14677
15301
# Check whether --enable-clamuko was given.
14678
15302
if test "${enable_clamuko+set}" = set; then
14828
15452
fi
14829
15453
 
14830
15454
 
14831
 
if test "$have_milter" = "yes"; then
14832
 
  sendmailprog=no
14833
 
 
14834
 
# Check whether --with-sendmail was given.
14835
 
if test "${with_sendmail+set}" = set; then
14836
 
  withval=$with_sendmail; sendmailprog=$with_sendmail
14837
 
else
14838
 
  sendmailprog=no
14839
 
fi
14840
 
 
14841
 
 
14842
 
  if test "$sendmailprog" = "no" ; then
14843
 
    # Extract the first word of "sendmail", so it can be a program name with args.
14844
 
set dummy sendmail; ac_word=$2
14845
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14846
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14847
 
if test "${ac_cv_path_sendmailprog+set}" = set; then
14848
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14849
 
else
14850
 
  case $sendmailprog in
14851
 
  [\\/]* | ?:[\\/]*)
14852
 
  ac_cv_path_sendmailprog="$sendmailprog" # Let the user override the test with a path.
14853
 
  ;;
14854
 
  *)
14855
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14856
 
as_dummy="$PATH:/sbin:/usr/sbin:/usr/lib:/usr/libexec"
14857
 
for as_dir in $as_dummy
14858
 
do
14859
 
  IFS=$as_save_IFS
14860
 
  test -z "$as_dir" && as_dir=.
14861
 
  for ac_exec_ext in '' $ac_executable_extensions; do
14862
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14863
 
    ac_cv_path_sendmailprog="$as_dir/$ac_word$ac_exec_ext"
14864
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14865
 
    break 2
14866
 
  fi
14867
 
done
14868
 
done
14869
 
IFS=$as_save_IFS
14870
 
 
14871
 
  test -z "$ac_cv_path_sendmailprog" && ac_cv_path_sendmailprog="no"
14872
 
  ;;
14873
 
esac
14874
 
fi
14875
 
sendmailprog=$ac_cv_path_sendmailprog
14876
 
if test -n "$sendmailprog"; then
14877
 
  { echo "$as_me:$LINENO: result: $sendmailprog" >&5
14878
 
echo "${ECHO_T}$sendmailprog" >&6; }
14879
 
else
14880
 
  { echo "$as_me:$LINENO: result: no" >&5
14881
 
echo "${ECHO_T}no" >&6; }
14882
 
fi
14883
 
 
14884
 
 
14885
 
  fi
14886
 
 
14887
 
 
14888
 
cat >>confdefs.h <<_ACEOF
14889
 
#define SENDMAIL_BIN "$sendmailprog"
14890
 
_ACEOF
14891
 
 
14892
 
 
14893
 
 
14894
 
# Check whether --with-sendmail-version was given.
14895
 
if test "${with_sendmail_version+set}" = set; then
14896
 
  withval=$with_sendmail_version; sendmailvers=$with_sendmail_version
14897
 
else
14898
 
  sendmailvers=no
14899
 
fi
14900
 
 
14901
 
 
14902
 
  if test "$sendmailvers" = "no" ; then
14903
 
    sendmailver=`$sendmailprog -d0 < /dev/null | head -1 | awk '{print $2}'`
14904
 
  fi
14905
 
 
14906
 
  if test -n "$sendmailver"; then
14907
 
    sendmailver_a=`echo $sendmailver | awk -F. '{printf $1}'`
14908
 
    sendmailver_b=`echo $sendmailver | awk -F. '{printf $2}'`
14909
 
    sendmailver_c=`echo $sendmailver | awk -F. '{printf $3}'`
14910
 
 
14911
 
    case "$sendmailver_a" in
14912
 
      [[:digit:]]*) ;;
14913
 
      *) sendmailver_a= ;;
14914
 
    esac
14915
 
 
14916
 
    case "$sendmailver_b" in
14917
 
      [[:digit:]]*) ;;
14918
 
      *) sendmailver_b= ;;
14919
 
    esac
14920
 
 
14921
 
    case "$sendmailver_c" in
14922
 
      [[:digit:]]*) ;;
14923
 
      *) sendmailver_c= ;;
14924
 
    esac
14925
 
 
14926
 
    if test -n "$sendmailver_a"; then
14927
 
 
14928
 
cat >>confdefs.h <<_ACEOF
14929
 
#define SENDMAIL_VERSION_A $sendmailver_a
14930
 
_ACEOF
14931
 
 
14932
 
    fi
14933
 
    if test -n "$sendmailver_b"; then
14934
 
 
14935
 
cat >>confdefs.h <<_ACEOF
14936
 
#define SENDMAIL_VERSION_B $sendmailver_b
14937
 
_ACEOF
14938
 
 
14939
 
    fi
14940
 
    if test -n "$sendmailver_c"; then
14941
 
 
14942
 
cat >>confdefs.h <<_ACEOF
14943
 
#define SENDMAIL_VERSION_C $sendmailver_c
14944
 
_ACEOF
14945
 
 
14946
 
    fi
14947
 
  fi
14948
 
fi
14949
 
 
14950
15455
# Check whether --enable-dsig was given.
14951
15456
if test "${enable_dsig+set}" = set; then
14952
15457
  enableval=$enable_dsig; want_dsig=$enableval
15613
16118
{
15614
16119
 
15615
16120
        char** xin,**xout;
15616
 
        unsigned il,ol;
 
16121
        unsigned long il,ol;
15617
16122
        int rc;
15618
16123
        iconv_t iconv_struct = iconv_open("UTF-16BE","UTF-8");
15619
16124
        rc = iconv(iconv_struct,xin,&il,xout,&ol);
15982
16487
 
15983
16488
        fi
15984
16489
    fi
15985
 
    case `uname -r` in
15986
 
    1.*|2.0.*)
15987
 
 
15988
 
cat >>confdefs.h <<\_ACEOF
15989
 
#define INCOMPLETE_CMSG 1
15990
 
_ACEOF
15991
 
 
15992
 
       ;;
15993
 
    esac
15994
16490
    ;;
15995
16491
kfreebsd*-gnu)
15996
16492
 
16020
16516
       fi
16021
16517
    fi
16022
16518
    ;;
16023
 
cygwin*)
16024
 
 
16025
 
cat >>confdefs.h <<\_ACEOF
16026
 
#define C_CYGWIN 1
16027
 
_ACEOF
16028
 
 
16029
 
    if test "$test_clamav" = "yes"; then
16030
 
        if test ! -r /etc/passwd; then
16031
 
           test_clamav="no"
16032
 
        fi
16033
 
    fi
16034
 
    if test "$have_pthreads" = "yes"; then
16035
 
        THREAD_LIBS="-lpthread"
16036
 
        TH_SAFE="-thread-safe"
16037
 
 
16038
 
cat >>confdefs.h <<\_ACEOF
16039
 
#define CL_THREAD_SAFE 1
16040
 
_ACEOF
16041
 
 
16042
 
 
16043
 
cat >>confdefs.h <<\_ACEOF
16044
 
#define _REENTRANT 1
16045
 
_ACEOF
16046
 
 
16047
 
    fi
16048
 
    use_gethostbyname_r="no"
16049
 
    ;;
16050
16519
solaris*)
16051
16520
    FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lresolv"
16052
16521
    if test "$have_pthreads" = "yes"; then
16160
16629
    ;;
16161
16630
openbsd*)
16162
16631
    if test "$have_pthreads" = "yes"; then
16163
 
        if test "$use_cr" = "no"; then
16164
 
            THREAD_LIBS="-pthread"
16165
 
        else
16166
 
            THREAD_LIBS="-pthread -lc_r"
16167
 
        fi
 
16632
        THREAD_LIBS="-pthread"
 
16633
        CLAMD_LIBS="$CLAMD_LIBS -pthread"
 
16634
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread"
16168
16635
        TH_SAFE="-thread-safe"
16169
16636
 
16170
16637
cat >>confdefs.h <<\_ACEOF
16247
16714
#define C_BEOS 1
16248
16715
_ACEOF
16249
16716
 
 
16717
    use_gethostbyname_r="no"
16250
16718
    ;;
16251
16719
darwin*)
16252
16720
 
16846
17314
 
16847
17315
fi
16848
17316
 
 
17317
if test "$have_milter" = "yes"; then
 
17318
  sendmailprog=no
 
17319
 
 
17320
# Check whether --with-sendmail was given.
 
17321
if test "${with_sendmail+set}" = set; then
 
17322
  withval=$with_sendmail; sendmailprog=$with_sendmail
 
17323
else
 
17324
  sendmailprog=no
 
17325
fi
 
17326
 
 
17327
 
 
17328
  if test "$sendmailprog" = "no" ; then
 
17329
    # Extract the first word of "sendmail", so it can be a program name with args.
 
17330
set dummy sendmail; ac_word=$2
 
17331
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17332
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
17333
if test "${ac_cv_path_sendmailprog+set}" = set; then
 
17334
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17335
else
 
17336
  case $sendmailprog in
 
17337
  [\\/]* | ?:[\\/]*)
 
17338
  ac_cv_path_sendmailprog="$sendmailprog" # Let the user override the test with a path.
 
17339
  ;;
 
17340
  *)
 
17341
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17342
as_dummy="$PATH:/sbin:/usr/sbin:/usr/lib:/usr/libexec"
 
17343
for as_dir in $as_dummy
 
17344
do
 
17345
  IFS=$as_save_IFS
 
17346
  test -z "$as_dir" && as_dir=.
 
17347
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17348
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17349
    ac_cv_path_sendmailprog="$as_dir/$ac_word$ac_exec_ext"
 
17350
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17351
    break 2
 
17352
  fi
 
17353
done
 
17354
done
 
17355
IFS=$as_save_IFS
 
17356
 
 
17357
  test -z "$ac_cv_path_sendmailprog" && ac_cv_path_sendmailprog="no"
 
17358
  ;;
 
17359
esac
 
17360
fi
 
17361
sendmailprog=$ac_cv_path_sendmailprog
 
17362
if test -n "$sendmailprog"; then
 
17363
  { echo "$as_me:$LINENO: result: $sendmailprog" >&5
 
17364
echo "${ECHO_T}$sendmailprog" >&6; }
 
17365
else
 
17366
  { echo "$as_me:$LINENO: result: no" >&5
 
17367
echo "${ECHO_T}no" >&6; }
 
17368
fi
 
17369
 
 
17370
 
 
17371
  fi
 
17372
 
 
17373
 
 
17374
cat >>confdefs.h <<_ACEOF
 
17375
#define SENDMAIL_BIN "$sendmailprog"
 
17376
_ACEOF
 
17377
 
 
17378
 
 
17379
 
 
17380
# Check whether --with-sendmail-version was given.
 
17381
if test "${with_sendmail_version+set}" = set; then
 
17382
  withval=$with_sendmail_version; sendmailvers=$with_sendmail_version
 
17383
else
 
17384
  sendmailvers=no
 
17385
fi
 
17386
 
 
17387
 
 
17388
  if test "$sendmailvers" = "no" ; then
 
17389
    sendmailver=`$sendmailprog -d0 < /dev/null | head -1 | awk '{print $2}'`
 
17390
  fi
 
17391
 
 
17392
  if test -z "$sendmailver"; then
 
17393
        # example: postfix
 
17394
        LDFLAGS="$LDFLAGS $CLAMAV_MILTER_LIBS"
 
17395
        { echo "$as_me:$LINENO: checking for smfi_opensocket in -lmilter" >&5
 
17396
echo $ECHO_N "checking for smfi_opensocket in -lmilter... $ECHO_C" >&6; }
 
17397
if test "${ac_cv_lib_milter_smfi_opensocket+set}" = set; then
 
17398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17399
else
 
17400
  ac_check_lib_save_LIBS=$LIBS
 
17401
LIBS="-lmilter  $LIBS"
 
17402
cat >conftest.$ac_ext <<_ACEOF
 
17403
/* confdefs.h.  */
 
17404
_ACEOF
 
17405
cat confdefs.h >>conftest.$ac_ext
 
17406
cat >>conftest.$ac_ext <<_ACEOF
 
17407
/* end confdefs.h.  */
 
17408
 
 
17409
/* Override any GCC internal prototype to avoid an error.
 
17410
   Use char because int might match the return type of a GCC
 
17411
   builtin and then its argument prototype would still apply.  */
 
17412
#ifdef __cplusplus
 
17413
extern "C"
 
17414
#endif
 
17415
char smfi_opensocket ();
 
17416
int
 
17417
main ()
 
17418
{
 
17419
return smfi_opensocket ();
 
17420
  ;
 
17421
  return 0;
 
17422
}
 
17423
_ACEOF
 
17424
rm -f conftest.$ac_objext conftest$ac_exeext
 
17425
if { (ac_try="$ac_link"
 
17426
case "(($ac_try" in
 
17427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17428
  *) ac_try_echo=$ac_try;;
 
17429
esac
 
17430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17431
  (eval "$ac_link") 2>conftest.er1
 
17432
  ac_status=$?
 
17433
  grep -v '^ *+' conftest.er1 >conftest.err
 
17434
  rm -f conftest.er1
 
17435
  cat conftest.err >&5
 
17436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17437
  (exit $ac_status); } && {
 
17438
         test -z "$ac_c_werror_flag" ||
 
17439
         test ! -s conftest.err
 
17440
       } && test -s conftest$ac_exeext &&
 
17441
       $as_test_x conftest$ac_exeext; then
 
17442
  ac_cv_lib_milter_smfi_opensocket=yes
 
17443
else
 
17444
  echo "$as_me: failed program was:" >&5
 
17445
sed 's/^/| /' conftest.$ac_ext >&5
 
17446
 
 
17447
        ac_cv_lib_milter_smfi_opensocket=no
 
17448
fi
 
17449
 
 
17450
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17451
      conftest$ac_exeext conftest.$ac_ext
 
17452
LIBS=$ac_check_lib_save_LIBS
 
17453
fi
 
17454
{ echo "$as_me:$LINENO: result: $ac_cv_lib_milter_smfi_opensocket" >&5
 
17455
echo "${ECHO_T}$ac_cv_lib_milter_smfi_opensocket" >&6; }
 
17456
if test $ac_cv_lib_milter_smfi_opensocket = yes; then
 
17457
  sendmailver="8.13.0"
 
17458
else
 
17459
  { echo "$as_me:$LINENO: WARNING: cannot determine sendmail version" >&5
 
17460
echo "$as_me: WARNING: cannot determine sendmail version" >&2;}
 
17461
fi
 
17462
 
 
17463
        LDFLAGS="$save_LDFLAGS"
 
17464
  fi
 
17465
  if test -n "$sendmailver"; then
 
17466
    sendmailver_a=`echo $sendmailver | awk -F. '{printf $1}'`
 
17467
    sendmailver_b=`echo $sendmailver | awk -F. '{printf $2}'`
 
17468
    sendmailver_c=`echo $sendmailver | awk -F. '{printf $3}'`
 
17469
 
 
17470
    case "$sendmailver_a" in
 
17471
      [[:digit:]]*) ;;
 
17472
      *) sendmailver_a= ;;
 
17473
    esac
 
17474
 
 
17475
    case "$sendmailver_b" in
 
17476
      [[:digit:]]*) ;;
 
17477
      *) sendmailver_b= ;;
 
17478
    esac
 
17479
 
 
17480
    case "$sendmailver_c" in
 
17481
      [[:digit:]]*) ;;
 
17482
      *) sendmailver_c= ;;
 
17483
    esac
 
17484
 
 
17485
    if test -n "$sendmailver_a"; then
 
17486
 
 
17487
cat >>confdefs.h <<_ACEOF
 
17488
#define SENDMAIL_VERSION_A $sendmailver_a
 
17489
_ACEOF
 
17490
 
 
17491
    fi
 
17492
    if test -n "$sendmailver_b"; then
 
17493
 
 
17494
cat >>confdefs.h <<_ACEOF
 
17495
#define SENDMAIL_VERSION_B $sendmailver_b
 
17496
_ACEOF
 
17497
 
 
17498
    fi
 
17499
    if test -n "$sendmailver_c"; then
 
17500
 
 
17501
cat >>confdefs.h <<_ACEOF
 
17502
#define SENDMAIL_VERSION_C $sendmailver_c
 
17503
_ACEOF
 
17504
 
 
17505
    fi
 
17506
  fi
 
17507
  if test "x$ac_cv_have_lresolv_r" != "xyes"; then
 
17508
    { echo "$as_me:$LINENO: WARNING: ****** Your libresolv is not thread safe, SPF queries in clamav-milter will block" >&5
 
17509
echo "$as_me: WARNING: ****** Your libresolv is not thread safe, SPF queries in clamav-milter will block" >&2;}
 
17510
  fi
 
17511
fi
 
17512
 
16849
17513
 if test "$have_pthreads" = "yes"; then
16850
17514
  BUILD_CLAMD_TRUE=
16851
17515
  BUILD_CLAMD_FALSE='#'
16873
17537
 
16874
17538
if test "$have_pthreads" = "yes"
16875
17539
then
 
17540
    save_LIBS="$LIBS"
 
17541
    LIBS="$THREAD_LIBS $LIBS"
 
17542
 
 
17543
 
 
17544
for ac_func in sched_yield pthread_yield
 
17545
do
 
17546
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17547
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17548
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17549
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17551
else
 
17552
  cat >conftest.$ac_ext <<_ACEOF
 
17553
/* confdefs.h.  */
 
17554
_ACEOF
 
17555
cat confdefs.h >>conftest.$ac_ext
 
17556
cat >>conftest.$ac_ext <<_ACEOF
 
17557
/* end confdefs.h.  */
 
17558
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17559
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17560
#define $ac_func innocuous_$ac_func
 
17561
 
 
17562
/* System header to define __stub macros and hopefully few prototypes,
 
17563
    which can conflict with char $ac_func (); below.
 
17564
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17565
    <limits.h> exists even on freestanding compilers.  */
 
17566
 
 
17567
#ifdef __STDC__
 
17568
# include <limits.h>
 
17569
#else
 
17570
# include <assert.h>
 
17571
#endif
 
17572
 
 
17573
#undef $ac_func
 
17574
 
 
17575
/* Override any GCC internal prototype to avoid an error.
 
17576
   Use char because int might match the return type of a GCC
 
17577
   builtin and then its argument prototype would still apply.  */
 
17578
#ifdef __cplusplus
 
17579
extern "C"
 
17580
#endif
 
17581
char $ac_func ();
 
17582
/* The GNU C library defines this for functions which it implements
 
17583
    to always fail with ENOSYS.  Some functions are actually named
 
17584
    something starting with __ and the normal name is an alias.  */
 
17585
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17586
choke me
 
17587
#endif
 
17588
 
 
17589
int
 
17590
main ()
 
17591
{
 
17592
return $ac_func ();
 
17593
  ;
 
17594
  return 0;
 
17595
}
 
17596
_ACEOF
 
17597
rm -f conftest.$ac_objext conftest$ac_exeext
 
17598
if { (ac_try="$ac_link"
 
17599
case "(($ac_try" in
 
17600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17601
  *) ac_try_echo=$ac_try;;
 
17602
esac
 
17603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17604
  (eval "$ac_link") 2>conftest.er1
 
17605
  ac_status=$?
 
17606
  grep -v '^ *+' conftest.er1 >conftest.err
 
17607
  rm -f conftest.er1
 
17608
  cat conftest.err >&5
 
17609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17610
  (exit $ac_status); } && {
 
17611
         test -z "$ac_c_werror_flag" ||
 
17612
         test ! -s conftest.err
 
17613
       } && test -s conftest$ac_exeext &&
 
17614
       $as_test_x conftest$ac_exeext; then
 
17615
  eval "$as_ac_var=yes"
 
17616
else
 
17617
  echo "$as_me: failed program was:" >&5
 
17618
sed 's/^/| /' conftest.$ac_ext >&5
 
17619
 
 
17620
        eval "$as_ac_var=no"
 
17621
fi
 
17622
 
 
17623
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17624
      conftest$ac_exeext conftest.$ac_ext
 
17625
fi
 
17626
ac_res=`eval echo '${'$as_ac_var'}'`
 
17627
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17628
echo "${ECHO_T}$ac_res" >&6; }
 
17629
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17630
  cat >>confdefs.h <<_ACEOF
 
17631
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17632
_ACEOF
 
17633
 
 
17634
fi
 
17635
done
 
17636
 
 
17637
    LIBS="$save_LIBS"
16876
17638
 
16877
17639
cat >>confdefs.h <<\_ACEOF
16878
17640
#define BUILD_CLAMD 1
16891
17653
 
16892
17654
 
16893
17655
 
16894
 
for ac_func in recvmsg sendmsg
16895
 
do
16896
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16897
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16898
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16899
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16900
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16901
 
else
16902
 
  cat >conftest.$ac_ext <<_ACEOF
16903
 
/* confdefs.h.  */
16904
 
_ACEOF
16905
 
cat confdefs.h >>conftest.$ac_ext
16906
 
cat >>conftest.$ac_ext <<_ACEOF
16907
 
/* end confdefs.h.  */
16908
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16909
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16910
 
#define $ac_func innocuous_$ac_func
16911
 
 
16912
 
/* System header to define __stub macros and hopefully few prototypes,
16913
 
    which can conflict with char $ac_func (); below.
16914
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915
 
    <limits.h> exists even on freestanding compilers.  */
16916
 
 
16917
 
#ifdef __STDC__
16918
 
# include <limits.h>
16919
 
#else
16920
 
# include <assert.h>
16921
 
#endif
16922
 
 
16923
 
#undef $ac_func
16924
 
 
16925
 
/* Override any GCC internal prototype to avoid an error.
16926
 
   Use char because int might match the return type of a GCC
16927
 
   builtin and then its argument prototype would still apply.  */
16928
 
#ifdef __cplusplus
16929
 
extern "C"
16930
 
#endif
16931
 
char $ac_func ();
16932
 
/* The GNU C library defines this for functions which it implements
16933
 
    to always fail with ENOSYS.  Some functions are actually named
16934
 
    something starting with __ and the normal name is an alias.  */
16935
 
#if defined __stub_$ac_func || defined __stub___$ac_func
16936
 
choke me
16937
 
#endif
16938
 
 
16939
 
int
16940
 
main ()
16941
 
{
16942
 
return $ac_func ();
16943
 
  ;
16944
 
  return 0;
16945
 
}
16946
 
_ACEOF
16947
 
rm -f conftest.$ac_objext conftest$ac_exeext
16948
 
if { (ac_try="$ac_link"
16949
 
case "(($ac_try" in
16950
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951
 
  *) ac_try_echo=$ac_try;;
16952
 
esac
16953
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954
 
  (eval "$ac_link") 2>conftest.er1
16955
 
  ac_status=$?
16956
 
  grep -v '^ *+' conftest.er1 >conftest.err
16957
 
  rm -f conftest.er1
16958
 
  cat conftest.err >&5
16959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960
 
  (exit $ac_status); } && {
16961
 
         test -z "$ac_c_werror_flag" ||
16962
 
         test ! -s conftest.err
16963
 
       } && test -s conftest$ac_exeext &&
16964
 
       $as_test_x conftest$ac_exeext; then
16965
 
  eval "$as_ac_var=yes"
16966
 
else
16967
 
  echo "$as_me: failed program was:" >&5
16968
 
sed 's/^/| /' conftest.$ac_ext >&5
16969
 
 
16970
 
        eval "$as_ac_var=no"
16971
 
fi
16972
 
 
16973
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16974
 
      conftest$ac_exeext conftest.$ac_ext
16975
 
fi
16976
 
ac_res=`eval echo '${'$as_ac_var'}'`
16977
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
16978
 
echo "${ECHO_T}$ac_res" >&6; }
16979
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
16980
 
  cat >>confdefs.h <<_ACEOF
16981
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16982
 
_ACEOF
16983
 
 
16984
 
fi
16985
 
done
16986
 
 
16987
 
{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
16988
 
echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
16989
 
if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
16990
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16991
 
else
16992
 
 
16993
 
    cat >conftest.$ac_ext <<_ACEOF
16994
 
/* confdefs.h.  */
16995
 
_ACEOF
16996
 
cat confdefs.h >>conftest.$ac_ext
16997
 
cat >>conftest.$ac_ext <<_ACEOF
16998
 
/* end confdefs.h.  */
16999
 
 
17000
 
#include <sys/types.h>
17001
 
#include <sys/socket.h>
17002
 
#include <sys/uio.h>
17003
 
 
17004
 
int
17005
 
main ()
17006
 
{
17007
 
 
17008
 
#ifdef msg_accrights
17009
 
#error msg_accrights defined
17010
 
#endif
17011
 
struct msghdr m;
17012
 
m.msg_accrights = 0;
17013
 
return 0;
17014
 
 
17015
 
 
17016
 
  ;
17017
 
  return 0;
17018
 
}
17019
 
_ACEOF
17020
 
rm -f conftest.$ac_objext
17021
 
if { (ac_try="$ac_compile"
17022
 
case "(($ac_try" in
17023
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024
 
  *) ac_try_echo=$ac_try;;
17025
 
esac
17026
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027
 
  (eval "$ac_compile") 2>conftest.er1
17028
 
  ac_status=$?
17029
 
  grep -v '^ *+' conftest.er1 >conftest.err
17030
 
  rm -f conftest.er1
17031
 
  cat conftest.err >&5
17032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033
 
  (exit $ac_status); } && {
17034
 
         test -z "$ac_c_werror_flag" ||
17035
 
         test ! -s conftest.err
17036
 
       } && test -s conftest.$ac_objext; then
17037
 
  ac_cv_have_accrights_in_msghdr="yes"
17038
 
else
17039
 
  echo "$as_me: failed program was:" >&5
17040
 
sed 's/^/| /' conftest.$ac_ext >&5
17041
 
 
17042
 
        ac_cv_have_accrights_in_msghdr="no"
17043
 
fi
17044
 
 
17045
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046
 
 
17047
 
fi
17048
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
17049
 
echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
17050
 
if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
17051
 
 
17052
 
cat >>confdefs.h <<\_ACEOF
17053
 
#define HAVE_ACCRIGHTS_IN_MSGHDR 1
17054
 
_ACEOF
17055
 
 
17056
 
fi
17057
 
 
17058
 
{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
17059
 
echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
17060
 
if test "${ac_cv_have_control_in_msghdr+set}" = set; then
17061
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17062
 
else
17063
 
 
17064
 
    cat >conftest.$ac_ext <<_ACEOF
17065
 
/* confdefs.h.  */
17066
 
_ACEOF
17067
 
cat confdefs.h >>conftest.$ac_ext
17068
 
cat >>conftest.$ac_ext <<_ACEOF
17069
 
/* end confdefs.h.  */
17070
 
 
17071
 
#include <sys/types.h>
17072
 
#include <sys/socket.h>
17073
 
#include <sys/uio.h>
17074
 
 
17075
 
int
17076
 
main ()
17077
 
{
17078
 
 
17079
 
#ifdef msg_control
17080
 
#error msg_control defined
17081
 
#endif
17082
 
struct msghdr m;
17083
 
m.msg_control = 0;
17084
 
return 0;
17085
 
 
17086
 
  ;
17087
 
  return 0;
17088
 
}
17089
 
_ACEOF
17090
 
rm -f conftest.$ac_objext
17091
 
if { (ac_try="$ac_compile"
17092
 
case "(($ac_try" in
17093
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094
 
  *) ac_try_echo=$ac_try;;
17095
 
esac
17096
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097
 
  (eval "$ac_compile") 2>conftest.er1
17098
 
  ac_status=$?
17099
 
  grep -v '^ *+' conftest.er1 >conftest.err
17100
 
  rm -f conftest.er1
17101
 
  cat conftest.err >&5
17102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103
 
  (exit $ac_status); } && {
17104
 
         test -z "$ac_c_werror_flag" ||
17105
 
         test ! -s conftest.err
17106
 
       } && test -s conftest.$ac_objext; then
17107
 
   ac_cv_have_control_in_msghdr="yes"
17108
 
else
17109
 
  echo "$as_me: failed program was:" >&5
17110
 
sed 's/^/| /' conftest.$ac_ext >&5
17111
 
 
17112
 
         ac_cv_have_control_in_msghdr="no"
17113
 
fi
17114
 
 
17115
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17116
 
 
17117
 
fi
17118
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
17119
 
echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
17120
 
if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
17121
 
 
17122
 
cat >>confdefs.h <<\_ACEOF
17123
 
#define HAVE_CONTROL_IN_MSGHDR 1
17124
 
_ACEOF
17125
 
 
17126
 
fi
17127
 
 
17128
 
 
17129
17656
# Check whether --with-tcpwrappers was given.
17130
17657
if test "${with_tcpwrappers+set}" = set; then
17131
17658
  withval=$with_tcpwrappers;  case "$withval" in
17292
17819
cat >>conftest.$ac_ext <<_ACEOF
17293
17820
/* end confdefs.h.  */
17294
17821
 
 
17822
#ifdef HAVE_SYS_TYPES_H
 
17823
#include <sys/types.h>
 
17824
#endif
17295
17825
#include <tcpd.h>
17296
17826
int allow_severity = 0;
17297
17827
int deny_severity  = 0;
17344
17874
cat >>conftest.$ac_ext <<_ACEOF
17345
17875
/* end confdefs.h.  */
17346
17876
 
 
17877
#ifdef HAVE_SYS_TYPES_H
 
17878
#include <sys/types.h>
 
17879
#endif
17347
17880
#include <tcpd.h>
17348
17881
int allow_severity = 0;
17349
17882
int deny_severity  = 0;
18141
18674
cat confdefs.h >>conftest.$ac_ext
18142
18675
cat >>conftest.$ac_ext <<_ACEOF
18143
18676
/* end confdefs.h.  */
18144
 
int main(int argc, char **argv) {
 
18677
 
 
18678
                            int main(int argc, char **argv) {
18145
18679
#pragma pack(1)                 /* has to be in column 1 ! */
18146
18680
                        struct { char c; long l; } s;
18147
18681
                        return sizeof(s)==sizeof(s.c)+sizeof(s.l) ? 0:1; }
18346
18880
cat confdefs.h >>conftest.$ac_ext
18347
18881
cat >>conftest.$ac_ext <<_ACEOF
18348
18882
/* end confdefs.h.  */
18349
 
#include <sys/types.h>
 
18883
#include <sys/select.h>
 
18884
 
 
18885
_ACEOF
 
18886
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
18887
  $EGREP "fd_mask" >/dev/null 2>&1; then
 
18888
  have_fd_set=yes
 
18889
fi
 
18890
rm -f conftest*
 
18891
 
 
18892
if test "$have_fd_set" = yes; then
 
18893
 
 
18894
cat >>confdefs.h <<\_ACEOF
 
18895
#define HAVE_SYS_SELECT_H 1
 
18896
_ACEOF
 
18897
 
 
18898
        { echo "$as_me:$LINENO: result: yes, found in sys/select.h" >&5
 
18899
echo "${ECHO_T}yes, found in sys/select.h" >&6; }
 
18900
else
 
18901
        cat >conftest.$ac_ext <<_ACEOF
 
18902
/* confdefs.h.  */
 
18903
_ACEOF
 
18904
cat confdefs.h >>conftest.$ac_ext
 
18905
cat >>conftest.$ac_ext <<_ACEOF
 
18906
/* end confdefs.h.  */
 
18907
#include <sys/time.h>
 
18908
                        #include <sys/types.h>
 
18909
                        #ifdef HAVE_UNISTD_H
 
18910
                        #include <unistd.h>
 
18911
                        #endif
18350
18912
int
18351
18913
main ()
18352
18914
{
18381
18943
fi
18382
18944
 
18383
18945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18384
 
if test $have_fd_set = yes; then
18385
 
    { echo "$as_me:$LINENO: result: yes, found in sys/types.h" >&5
 
18946
        if test "$have_fd_set" = yes; then
 
18947
                { echo "$as_me:$LINENO: result: yes, found in sys/types.h" >&5
18386
18948
echo "${ECHO_T}yes, found in sys/types.h" >&6; }
18387
 
else
18388
 
    cat >conftest.$ac_ext <<_ACEOF
18389
 
/* confdefs.h.  */
18390
 
_ACEOF
18391
 
cat confdefs.h >>conftest.$ac_ext
18392
 
cat >>conftest.$ac_ext <<_ACEOF
18393
 
/* end confdefs.h.  */
18394
 
#include <sys/select.h>
18395
 
 
18396
 
_ACEOF
18397
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18398
 
  $EGREP "fd_mask" >/dev/null 2>&1; then
18399
 
  have_fd_set=yes
18400
 
fi
18401
 
rm -f conftest*
18402
 
 
18403
 
    if test $have_fd_set = yes; then
18404
 
 
18405
 
cat >>confdefs.h <<\_ACEOF
18406
 
#define HAVE_SYS_SELECT_H 1
18407
 
_ACEOF
18408
 
 
18409
 
        { echo "$as_me:$LINENO: result: yes, found in sys/select.h" >&5
18410
 
echo "${ECHO_T}yes, found in sys/select.h" >&6; }
18411
 
    else
 
18949
        else
18412
18950
 
18413
18951
cat >>confdefs.h <<\_ACEOF
18414
18952
#define NO_FD_SET 1
18415
18953
_ACEOF
18416
18954
 
18417
 
        { echo "$as_me:$LINENO: result: no" >&5
 
18955
                { echo "$as_me:$LINENO: result: no" >&5
18418
18956
echo "${ECHO_T}no" >&6; }
18419
 
    fi
 
18957
        fi
18420
18958
fi
18421
18959
 
18422
18960
{ echo "$as_me:$LINENO: checking default FD_SETSIZE value" >&5
18553
19091
{ echo "$as_me:$LINENO: result: $have_signed_rightshift_extended" >&5
18554
19092
echo "${ECHO_T}$have_signed_rightshift_extended" >&6; };
18555
19093
 
18556
 
ac_config_files="$ac_config_files libclamunrar/Makefile libclamunrar_iface/Makefile libclamav/Makefile libclamav/lzma/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile test/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1"
 
19094
 
 
19095
 
 
19096
 
 
19097
for ac_func in recvmsg sendmsg
 
19098
do
 
19099
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19100
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19101
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
19102
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
19103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19104
else
 
19105
  cat >conftest.$ac_ext <<_ACEOF
 
19106
/* confdefs.h.  */
 
19107
_ACEOF
 
19108
cat confdefs.h >>conftest.$ac_ext
 
19109
cat >>conftest.$ac_ext <<_ACEOF
 
19110
/* end confdefs.h.  */
 
19111
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19112
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19113
#define $ac_func innocuous_$ac_func
 
19114
 
 
19115
/* System header to define __stub macros and hopefully few prototypes,
 
19116
    which can conflict with char $ac_func (); below.
 
19117
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19118
    <limits.h> exists even on freestanding compilers.  */
 
19119
 
 
19120
#ifdef __STDC__
 
19121
# include <limits.h>
 
19122
#else
 
19123
# include <assert.h>
 
19124
#endif
 
19125
 
 
19126
#undef $ac_func
 
19127
 
 
19128
/* Override any GCC internal prototype to avoid an error.
 
19129
   Use char because int might match the return type of a GCC
 
19130
   builtin and then its argument prototype would still apply.  */
 
19131
#ifdef __cplusplus
 
19132
extern "C"
 
19133
#endif
 
19134
char $ac_func ();
 
19135
/* The GNU C library defines this for functions which it implements
 
19136
    to always fail with ENOSYS.  Some functions are actually named
 
19137
    something starting with __ and the normal name is an alias.  */
 
19138
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19139
choke me
 
19140
#endif
 
19141
 
 
19142
int
 
19143
main ()
 
19144
{
 
19145
return $ac_func ();
 
19146
  ;
 
19147
  return 0;
 
19148
}
 
19149
_ACEOF
 
19150
rm -f conftest.$ac_objext conftest$ac_exeext
 
19151
if { (ac_try="$ac_link"
 
19152
case "(($ac_try" in
 
19153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19154
  *) ac_try_echo=$ac_try;;
 
19155
esac
 
19156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19157
  (eval "$ac_link") 2>conftest.er1
 
19158
  ac_status=$?
 
19159
  grep -v '^ *+' conftest.er1 >conftest.err
 
19160
  rm -f conftest.er1
 
19161
  cat conftest.err >&5
 
19162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19163
  (exit $ac_status); } && {
 
19164
         test -z "$ac_c_werror_flag" ||
 
19165
         test ! -s conftest.err
 
19166
       } && test -s conftest$ac_exeext &&
 
19167
       $as_test_x conftest$ac_exeext; then
 
19168
  eval "$as_ac_var=yes"
 
19169
else
 
19170
  echo "$as_me: failed program was:" >&5
 
19171
sed 's/^/| /' conftest.$ac_ext >&5
 
19172
 
 
19173
        eval "$as_ac_var=no"
 
19174
fi
 
19175
 
 
19176
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19177
      conftest$ac_exeext conftest.$ac_ext
 
19178
fi
 
19179
ac_res=`eval echo '${'$as_ac_var'}'`
 
19180
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19181
echo "${ECHO_T}$ac_res" >&6; }
 
19182
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
19183
  cat >>confdefs.h <<_ACEOF
 
19184
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19185
_ACEOF
 
19186
 
 
19187
fi
 
19188
done
 
19189
 
 
19190
{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
 
19191
echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
 
19192
if test "${ac_cv_have_control_in_msghdr+set}" = set; then
 
19193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19194
else
 
19195
 
 
19196
    cat >conftest.$ac_ext <<_ACEOF
 
19197
/* confdefs.h.  */
 
19198
_ACEOF
 
19199
cat confdefs.h >>conftest.$ac_ext
 
19200
cat >>conftest.$ac_ext <<_ACEOF
 
19201
/* end confdefs.h.  */
 
19202
 
 
19203
#define _XOPEN_SOURCE 500
 
19204
#ifdef HAVE_SYS_TYPES_H
 
19205
#include <sys/types.h>
 
19206
#endif
 
19207
#include <sys/socket.h>
 
19208
#ifdef HAVE_SYS_UIO_H
 
19209
#include <sys/uio.h>
 
19210
#endif
 
19211
 
 
19212
int
 
19213
main ()
 
19214
{
 
19215
 
 
19216
#ifdef msg_control
 
19217
#error msg_control defined
 
19218
#endif
 
19219
struct msghdr m;
 
19220
m.msg_control = 0;
 
19221
return 0;
 
19222
 
 
19223
  ;
 
19224
  return 0;
 
19225
}
 
19226
_ACEOF
 
19227
rm -f conftest.$ac_objext
 
19228
if { (ac_try="$ac_compile"
 
19229
case "(($ac_try" in
 
19230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19231
  *) ac_try_echo=$ac_try;;
 
19232
esac
 
19233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19234
  (eval "$ac_compile") 2>conftest.er1
 
19235
  ac_status=$?
 
19236
  grep -v '^ *+' conftest.er1 >conftest.err
 
19237
  rm -f conftest.er1
 
19238
  cat conftest.err >&5
 
19239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19240
  (exit $ac_status); } && {
 
19241
         test -z "$ac_c_werror_flag" ||
 
19242
         test ! -s conftest.err
 
19243
       } && test -s conftest.$ac_objext; then
 
19244
   ac_cv_have_control_in_msghdr="yes"
 
19245
else
 
19246
  echo "$as_me: failed program was:" >&5
 
19247
sed 's/^/| /' conftest.$ac_ext >&5
 
19248
 
 
19249
         ac_cv_have_control_in_msghdr="no"
 
19250
fi
 
19251
 
 
19252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19253
 
 
19254
fi
 
19255
{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
 
19256
echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
 
19257
if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
 
19258
 
 
19259
cat >>confdefs.h <<\_ACEOF
 
19260
#define HAVE_CONTROL_IN_MSGHDR 1
 
19261
_ACEOF
 
19262
 
 
19263
 
 
19264
        { echo "$as_me:$LINENO: checking BSD 4.4 / RFC2292 style fd passing" >&5
 
19265
echo $ECHO_N "checking BSD 4.4 / RFC2292 style fd passing... $ECHO_C" >&6; }
 
19266
    # Check whether --enable-fdpassing was given.
 
19267
if test "${enable_fdpassing+set}" = set; then
 
19268
  enableval=$enable_fdpassing; want_fdpassing=$enableval
 
19269
else
 
19270
  want_fdpassing="yes"
 
19271
fi
 
19272
 
 
19273
 
 
19274
    if test "x$want_fdpassing" = "xyes"; then
 
19275
                if test "$cross_compiling" = yes; then
 
19276
  have_fdpass=0
 
19277
else
 
19278
  cat >conftest.$ac_ext <<_ACEOF
 
19279
 
 
19280
/* confdefs.h.  */
 
19281
_ACEOF
 
19282
cat confdefs.h >>conftest.$ac_ext
 
19283
cat >>conftest.$ac_ext <<_ACEOF
 
19284
/* end confdefs.h.  */
 
19285
 
 
19286
 
 
19287
#ifdef HAVE_SYS_TYPES_H
 
19288
#include <sys/types.h>
 
19289
#endif
 
19290
#include <sys/wait.h>
 
19291
#include <stdio.h>
 
19292
#include <stdlib.h>
 
19293
#include <unistd.h>
 
19294
#include <string.h>
 
19295
#ifdef HAVE_SYS_UIO_H
 
19296
#include <sys/uio.h>
 
19297
#endif
 
19298
#include <signal.h>
 
19299
#include <sys/socket.h>
 
19300
 
 
19301
 
 
19302
#define TEST "test"
 
19303
 
 
19304
static int send_fd(int s, int fd)
 
19305
{
 
19306
    struct msghdr msg;
 
19307
    struct cmsghdr *cmsg;
 
19308
    unsigned char fdbuf[CMSG_SPACE(sizeof(int))];
 
19309
    struct iovec iov[1];
 
19310
    char dummy[] = "";
 
19311
 
 
19312
    iov[0].iov_base = dummy;
 
19313
    iov[0].iov_len = 1;
 
19314
 
 
19315
    memset(&msg, 0, sizeof(msg));
 
19316
    msg.msg_control = fdbuf;
 
19317
    /* must send/receive at least one byte */
 
19318
    msg.msg_iov = iov;
 
19319
    msg.msg_iovlen = 1;
 
19320
    msg.msg_controllen = CMSG_LEN(sizeof(int));
 
19321
 
 
19322
    cmsg = CMSG_FIRSTHDR(&msg);
 
19323
    cmsg->cmsg_len = CMSG_LEN(sizeof(int));
 
19324
    cmsg->cmsg_level = SOL_SOCKET;
 
19325
    cmsg->cmsg_type = SCM_RIGHTS;
 
19326
    *(int *)CMSG_DATA(cmsg) = fd;
 
19327
 
 
19328
    if (sendmsg(s, &msg, 0) == -1) {
 
19329
        perror("sendmsg");
 
19330
        close(s);
 
19331
        return -1;
 
19332
    }
 
19333
    return 0;
 
19334
}
 
19335
 
 
19336
static int testfd(int desc)
 
19337
{
 
19338
    char buf[256];
 
19339
    if(read(desc, buf, sizeof(buf)) != sizeof(TEST)) {
 
19340
        fprintf(stderr, "test data not received correctly!");
 
19341
        return 1;
 
19342
    }
 
19343
    return memcmp(buf, TEST, sizeof(TEST));
 
19344
}
 
19345
 
 
19346
static int recv_fd(int desc)
 
19347
{
 
19348
    unsigned char buf[CMSG_SPACE(sizeof(int))];
 
19349
    struct msghdr msg;
 
19350
    struct cmsghdr *cmsg;
 
19351
    struct iovec iov[1];
 
19352
    char dummy;
 
19353
    int ret=2;
 
19354
 
 
19355
    memset(&msg, 0, sizeof(msg));
 
19356
    iov[0].iov_base = &dummy;
 
19357
    iov[0].iov_len = 1;
 
19358
    msg.msg_iov = iov;
 
19359
    msg.msg_iovlen = 1;
 
19360
    msg.msg_control = buf;
 
19361
    msg.msg_controllen = sizeof(buf);
 
19362
 
 
19363
    if (recvmsg(desc, &msg, 0) == -1) {
 
19364
        perror("recvmsg failed!");
 
19365
        return -1;
 
19366
    }
 
19367
    if ((msg.msg_flags & MSG_TRUNC) || (msg.msg_flags & MSG_CTRUNC)) {
 
19368
        fprintf(stderr, "control message truncated");
 
19369
        return -1;
 
19370
    }
 
19371
    for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL;
 
19372
        cmsg = CMSG_NXTHDR(&msg, cmsg)) {
 
19373
        if (cmsg->cmsg_len == CMSG_LEN(sizeof(int)) &&
 
19374
            cmsg->cmsg_level == SOL_SOCKET &&
 
19375
            cmsg->cmsg_type == SCM_RIGHTS) {
 
19376
            int fd = *(int *)CMSG_DATA(cmsg);
 
19377
            ret = testfd(fd);
 
19378
            close(fd);
 
19379
        }
 
19380
    }
 
19381
    return ret;
 
19382
}
 
19383
 
 
19384
int main(void)
 
19385
{
 
19386
    int fd[2];
 
19387
    int pip[2];
 
19388
    pid_t pid;
 
19389
    int status;
 
19390
 
 
19391
    if(pipe(pip)) {
 
19392
        perror("pipe");
 
19393
        return 1;
 
19394
    }
 
19395
 
 
19396
    if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
 
19397
        perror("socketpair");
 
19398
        return 1;
 
19399
    }
 
19400
 
 
19401
    if((pid=fork()) < 0) {
 
19402
        perror("fork");
 
19403
    } else if (!pid) {
 
19404
        exit( recv_fd(fd[1]) );
 
19405
    } else {
 
19406
        /* parent */
 
19407
        if(send_fd(fd[0], pip[0]) == -1) {
 
19408
            kill(pid, 9);
 
19409
            waitpid(pid, NULL, 0);
 
19410
            return 2;
 
19411
        }
 
19412
        if(write(pip[1], TEST, sizeof(TEST)) != sizeof(TEST)) {
 
19413
                close(pip[1]);
 
19414
                return -1;
 
19415
        }
 
19416
        close(pip[1]);
 
19417
        waitpid(pid, &status, 0);
 
19418
    }
 
19419
    return status;
 
19420
}
 
19421
 
 
19422
 
 
19423
_ACEOF
 
19424
rm -f conftest$ac_exeext
 
19425
if { (ac_try="$ac_link"
 
19426
case "(($ac_try" in
 
19427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19428
  *) ac_try_echo=$ac_try;;
 
19429
esac
 
19430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19431
  (eval "$ac_link") 2>&5
 
19432
  ac_status=$?
 
19433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19434
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19435
  { (case "(($ac_try" in
 
19436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19437
  *) ac_try_echo=$ac_try;;
 
19438
esac
 
19439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19440
  (eval "$ac_try") 2>&5
 
19441
  ac_status=$?
 
19442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19443
  (exit $ac_status); }; }; then
 
19444
  have_fdpass=1; fdpass_need_xopen=0
 
19445
else
 
19446
  echo "$as_me: program exited with status $ac_status" >&5
 
19447
echo "$as_me: failed program was:" >&5
 
19448
sed 's/^/| /' conftest.$ac_ext >&5
 
19449
 
 
19450
( exit $ac_status )
 
19451
have_fdpass=0
 
19452
fi
 
19453
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19454
fi
 
19455
 
 
19456
 
 
19457
 
 
19458
        if test $have_fdpass = 0; then
 
19459
            if test "$cross_compiling" = yes; then
 
19460
  have_fdpass=0
 
19461
else
 
19462
  cat >conftest.$ac_ext <<_ACEOF
 
19463
 
 
19464
/* confdefs.h.  */
 
19465
_ACEOF
 
19466
cat confdefs.h >>conftest.$ac_ext
 
19467
cat >>conftest.$ac_ext <<_ACEOF
 
19468
/* end confdefs.h.  */
 
19469
 
 
19470
#define _XOPEN_SOURCE 500
 
19471
#ifdef HAVE_SYS_TYPES_H
 
19472
#include <sys/types.h>
 
19473
#endif
 
19474
#include <sys/wait.h>
 
19475
#include <stdio.h>
 
19476
#include <stdlib.h>
 
19477
#include <unistd.h>
 
19478
#include <string.h>
 
19479
#ifdef HAVE_SYS_UIO_H
 
19480
#include <sys/uio.h>
 
19481
#endif
 
19482
#include <signal.h>
 
19483
#include <sys/socket.h>
 
19484
 
 
19485
 
 
19486
#define TEST "test"
 
19487
 
 
19488
static int send_fd(int s, int fd)
 
19489
{
 
19490
    struct msghdr msg;
 
19491
    struct cmsghdr *cmsg;
 
19492
    unsigned char fdbuf[CMSG_SPACE(sizeof(int))];
 
19493
    struct iovec iov[1];
 
19494
    char dummy[] = "";
 
19495
 
 
19496
    iov[0].iov_base = dummy;
 
19497
    iov[0].iov_len = 1;
 
19498
 
 
19499
    memset(&msg, 0, sizeof(msg));
 
19500
    msg.msg_control = fdbuf;
 
19501
    /* must send/receive at least one byte */
 
19502
    msg.msg_iov = iov;
 
19503
    msg.msg_iovlen = 1;
 
19504
    msg.msg_controllen = CMSG_LEN(sizeof(int));
 
19505
 
 
19506
    cmsg = CMSG_FIRSTHDR(&msg);
 
19507
    cmsg->cmsg_len = CMSG_LEN(sizeof(int));
 
19508
    cmsg->cmsg_level = SOL_SOCKET;
 
19509
    cmsg->cmsg_type = SCM_RIGHTS;
 
19510
    *(int *)CMSG_DATA(cmsg) = fd;
 
19511
 
 
19512
    if (sendmsg(s, &msg, 0) == -1) {
 
19513
        perror("sendmsg");
 
19514
        close(s);
 
19515
        return -1;
 
19516
    }
 
19517
    return 0;
 
19518
}
 
19519
 
 
19520
static int testfd(int desc)
 
19521
{
 
19522
    char buf[256];
 
19523
    if(read(desc, buf, sizeof(buf)) != sizeof(TEST)) {
 
19524
        fprintf(stderr, "test data not received correctly!");
 
19525
        return 1;
 
19526
    }
 
19527
    return memcmp(buf, TEST, sizeof(TEST));
 
19528
}
 
19529
 
 
19530
static int recv_fd(int desc)
 
19531
{
 
19532
    unsigned char buf[CMSG_SPACE(sizeof(int))];
 
19533
    struct msghdr msg;
 
19534
    struct cmsghdr *cmsg;
 
19535
    struct iovec iov[1];
 
19536
    char dummy;
 
19537
    int ret=2;
 
19538
 
 
19539
    memset(&msg, 0, sizeof(msg));
 
19540
    iov[0].iov_base = &dummy;
 
19541
    iov[0].iov_len = 1;
 
19542
    msg.msg_iov = iov;
 
19543
    msg.msg_iovlen = 1;
 
19544
    msg.msg_control = buf;
 
19545
    msg.msg_controllen = sizeof(buf);
 
19546
 
 
19547
    if (recvmsg(desc, &msg, 0) == -1) {
 
19548
        perror("recvmsg failed!");
 
19549
        return -1;
 
19550
    }
 
19551
    if ((msg.msg_flags & MSG_TRUNC) || (msg.msg_flags & MSG_CTRUNC)) {
 
19552
        fprintf(stderr, "control message truncated");
 
19553
        return -1;
 
19554
    }
 
19555
    for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL;
 
19556
        cmsg = CMSG_NXTHDR(&msg, cmsg)) {
 
19557
        if (cmsg->cmsg_len == CMSG_LEN(sizeof(int)) &&
 
19558
            cmsg->cmsg_level == SOL_SOCKET &&
 
19559
            cmsg->cmsg_type == SCM_RIGHTS) {
 
19560
            int fd = *(int *)CMSG_DATA(cmsg);
 
19561
            ret = testfd(fd);
 
19562
            close(fd);
 
19563
        }
 
19564
    }
 
19565
    return ret;
 
19566
}
 
19567
 
 
19568
int main(void)
 
19569
{
 
19570
    int fd[2];
 
19571
    int pip[2];
 
19572
    pid_t pid;
 
19573
    int status;
 
19574
 
 
19575
    if(pipe(pip)) {
 
19576
        perror("pipe");
 
19577
        return 1;
 
19578
    }
 
19579
 
 
19580
    if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
 
19581
        perror("socketpair");
 
19582
        return 1;
 
19583
    }
 
19584
 
 
19585
    if((pid=fork()) < 0) {
 
19586
        perror("fork");
 
19587
    } else if (!pid) {
 
19588
        exit( recv_fd(fd[1]) );
 
19589
    } else {
 
19590
        /* parent */
 
19591
        if(send_fd(fd[0], pip[0]) == -1) {
 
19592
            kill(pid, 9);
 
19593
            waitpid(pid, NULL, 0);
 
19594
            return 2;
 
19595
        }
 
19596
        if(write(pip[1], TEST, sizeof(TEST)) != sizeof(TEST)) {
 
19597
                close(pip[1]);
 
19598
                return -1;
 
19599
        }
 
19600
        close(pip[1]);
 
19601
        waitpid(pid, &status, 0);
 
19602
    }
 
19603
    return status;
 
19604
}
 
19605
 
 
19606
 
 
19607
_ACEOF
 
19608
rm -f conftest$ac_exeext
 
19609
if { (ac_try="$ac_link"
 
19610
case "(($ac_try" in
 
19611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19612
  *) ac_try_echo=$ac_try;;
 
19613
esac
 
19614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19615
  (eval "$ac_link") 2>&5
 
19616
  ac_status=$?
 
19617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19618
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19619
  { (case "(($ac_try" in
 
19620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19621
  *) ac_try_echo=$ac_try;;
 
19622
esac
 
19623
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19624
  (eval "$ac_try") 2>&5
 
19625
  ac_status=$?
 
19626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19627
  (exit $ac_status); }; }; then
 
19628
  have_fdpass=1; fdpass_need_xopen=1
 
19629
else
 
19630
  echo "$as_me: program exited with status $ac_status" >&5
 
19631
echo "$as_me: failed program was:" >&5
 
19632
sed 's/^/| /' conftest.$ac_ext >&5
 
19633
 
 
19634
( exit $ac_status )
 
19635
have_fdpass=0
 
19636
fi
 
19637
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19638
fi
 
19639
 
 
19640
 
 
19641
        fi
 
19642
 
 
19643
        if test $have_fdpass = 1; then
 
19644
 
 
19645
cat >>confdefs.h <<\_ACEOF
 
19646
#define HAVE_FD_PASSING 1
 
19647
_ACEOF
 
19648
 
 
19649
            if test $fdpass_need_xopen = 1; then
 
19650
 
 
19651
cat >>confdefs.h <<\_ACEOF
 
19652
#define FDPASS_NEED_XOPEN 1
 
19653
_ACEOF
 
19654
 
 
19655
                { echo "$as_me:$LINENO: result: yes, by defining _XOPEN_SOURCE" >&5
 
19656
echo "${ECHO_T}yes, by defining _XOPEN_SOURCE" >&6; }
 
19657
            else
 
19658
                { echo "$as_me:$LINENO: result: yes" >&5
 
19659
echo "${ECHO_T}yes" >&6; }
 
19660
            fi
 
19661
        else
 
19662
            { echo "$as_me:$LINENO: result: no" >&5
 
19663
echo "${ECHO_T}no" >&6; }
 
19664
        fi
 
19665
 
 
19666
    else
 
19667
        { echo "$as_me:$LINENO: result: disabled" >&5
 
19668
echo "${ECHO_T}disabled" >&6; }
 
19669
    fi
 
19670
fi
 
19671
 
 
19672
 
 
19673
ac_config_files="$ac_config_files libclamunrar/Makefile libclamunrar_iface/Makefile libclamav/Makefile libclamav/lzma/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile test/Makefile unit_tests/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1"
18557
19674
 
18558
19675
cat >confcache <<\_ACEOF
18559
19676
# This file is a shell script that caches the results of configure
18672
19789
Usually this means the macro was only invoked conditionally." >&2;}
18673
19790
   { (exit 1); exit 1; }; }
18674
19791
fi
 
19792
if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
 
19793
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_COVERAGE\" was never defined.
 
19794
Usually this means the macro was only invoked conditionally." >&5
 
19795
echo "$as_me: error: conditional \"ENABLE_COVERAGE\" was never defined.
 
19796
Usually this means the macro was only invoked conditionally." >&2;}
 
19797
   { (exit 1); exit 1; }; }
 
19798
fi
 
19799
if test -z "${ENABLE_UT_INSTALL_TRUE}" && test -z "${ENABLE_UT_INSTALL_FALSE}"; then
 
19800
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UT_INSTALL\" was never defined.
 
19801
Usually this means the macro was only invoked conditionally." >&5
 
19802
echo "$as_me: error: conditional \"ENABLE_UT_INSTALL\" was never defined.
 
19803
Usually this means the macro was only invoked conditionally." >&2;}
 
19804
   { (exit 1); exit 1; }; }
 
19805
fi
18675
19806
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18676
19807
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18677
19808
Usually this means the macro was only invoked conditionally." >&5
19000
20131
# report actual input values of CONFIG_FILES etc. instead of their
19001
20132
# values after options handling.
19002
20133
ac_log="
19003
 
This file was extended by clamav $as_me 0.93.3, which was
 
20134
This file was extended by clamav $as_me devel, which was
19004
20135
generated by GNU Autoconf 2.61.  Invocation command line was
19005
20136
 
19006
20137
  CONFIG_FILES    = $CONFIG_FILES
19053
20184
_ACEOF
19054
20185
cat >>$CONFIG_STATUS <<_ACEOF
19055
20186
ac_cs_version="\\
19056
 
clamav config.status 0.93.3
 
20187
clamav config.status devel
19057
20188
configured by $0, generated by GNU Autoconf 2.61,
19058
20189
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19059
20190
 
19184
20315
    "clamconf/Makefile") CONFIG_FILES="$CONFIG_FILES clamconf/Makefile" ;;
19185
20316
    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
19186
20317
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
20318
    "unit_tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit_tests/Makefile" ;;
19187
20319
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19188
20320
    "clamav-config") CONFIG_FILES="$CONFIG_FILES clamav-config" ;;
19189
20321
    "libclamav.pc") CONFIG_FILES="$CONFIG_FILES libclamav.pc" ;;
19401
20533
VERSIONSCRIPTFLAG!$VERSIONSCRIPTFLAG$ac_delim
19402
20534
VERSIONSCRIPT_TRUE!$VERSIONSCRIPT_TRUE$ac_delim
19403
20535
VERSIONSCRIPT_FALSE!$VERSIONSCRIPT_FALSE$ac_delim
 
20536
GPERF!$GPERF$ac_delim
 
20537
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
20538
CHECK_CFLAGS!$CHECK_CFLAGS$ac_delim
 
20539
CHECK_LIBS!$CHECK_LIBS$ac_delim
 
20540
GCOV!$GCOV$ac_delim
 
20541
LCOV!$LCOV$ac_delim
 
20542
GENHTML!$GENHTML$ac_delim
 
20543
ENABLE_COVERAGE_TRUE!$ENABLE_COVERAGE_TRUE$ac_delim
 
20544
ENABLE_COVERAGE_FALSE!$ENABLE_COVERAGE_FALSE$ac_delim
 
20545
ENABLE_UT_INSTALL_TRUE!$ENABLE_UT_INSTALL_TRUE$ac_delim
 
20546
ENABLE_UT_INSTALL_FALSE!$ENABLE_UT_INSTALL_FALSE$ac_delim
19404
20547
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
19405
20548
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
19406
20549
MAINT!$MAINT$ac_delim
19407
20550
LIBBZ2!$LIBBZ2$ac_delim
19408
20551
LTLIBBZ2!$LTLIBBZ2$ac_delim
19409
20552
LIBBZ2_PREFIX!$LIBBZ2_PREFIX$ac_delim
19410
 
sendmailprog!$sendmailprog$ac_delim
19411
20553
HAVE_LIBGMP!$HAVE_LIBGMP$ac_delim
19412
20554
LIBGMP!$LIBGMP$ac_delim
19413
20555
LTLIBGMP!$LTLIBGMP$ac_delim
19420
20562
FRESHCLAM_LIBS!$FRESHCLAM_LIBS$ac_delim
19421
20563
TH_SAFE!$TH_SAFE$ac_delim
19422
20564
THREAD_LIBS!$THREAD_LIBS$ac_delim
 
20565
sendmailprog!$sendmailprog$ac_delim
19423
20566
BUILD_CLAMD_TRUE!$BUILD_CLAMD_TRUE$ac_delim
19424
20567
BUILD_CLAMD_FALSE!$BUILD_CLAMD_FALSE$ac_delim
19425
20568
HAVE_MILTER_TRUE!$HAVE_MILTER_TRUE$ac_delim
19433
20576
LTLIBOBJS!$LTLIBOBJS$ac_delim
19434
20577
_ACEOF
19435
20578
 
19436
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
 
20579
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
19437
20580
    break
19438
20581
  elif $ac_last_try; then
19439
20582
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5