~ubuntu-branches/ubuntu/jaunty/clamav/jaunty-backports

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-10-02 15:36:00 UTC
  • mfrom: (10.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20101002153600-2tx3vki1u55cdrjy
Tags: 0.96.3+dfsg-2ubuntu0.10.04.1
Microversion update to 0.96.3 for Lucid (LP: #653738)

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.65 for ClamAV 0.96.
 
3
# Generated by GNU Autoconf 2.67 for ClamAV 0.96.3.
4
4
#
5
5
# Report bugs to <http://bugs.clamav.net/>.
6
6
#
7
7
#
8
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
 
# Inc.
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
11
11
#
12
12
#
13
13
# This configure script is free software; the Free Software Foundation
319
319
      test -d "$as_dir" && break
320
320
    done
321
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
322
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
322
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
323
 
324
324
 
325
325
} # as_fn_mkdir_p
359
359
fi # as_fn_arith
360
360
 
361
361
 
362
 
# as_fn_error ERROR [LINENO LOG_FD]
363
 
# ---------------------------------
 
362
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
363
# ----------------------------------------
364
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
 
# script with status $?, using 1 if that was 0.
 
366
# script with STATUS, using 1 if that was 0.
367
367
as_fn_error ()
368
368
{
369
 
  as_status=$?; test $as_status -eq 0 && as_status=1
370
 
  if test "$3"; then
371
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
369
  as_status=$1; test $as_status -eq 0 && as_status=1
 
370
  if test "$4"; then
 
371
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373
373
  fi
374
 
  $as_echo "$as_me: error: $1" >&2
 
374
  $as_echo "$as_me: error: $2" >&2
375
375
  as_fn_exit $as_status
376
376
} # as_fn_error
377
377
 
684
684
exec 6>&1
685
685
 
686
686
# Name of the host.
687
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
687
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
688
688
# so uname gets run too.
689
689
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690
690
 
703
703
# Identity of this package.
704
704
PACKAGE_NAME='ClamAV'
705
705
PACKAGE_TARNAME='clamav'
706
 
PACKAGE_VERSION='0.96'
707
 
PACKAGE_STRING='ClamAV 0.96'
 
706
PACKAGE_VERSION='0.96.3'
 
707
PACKAGE_STRING='ClamAV 0.96.3'
708
708
PACKAGE_BUGREPORT='http://bugs.clamav.net/'
709
709
PACKAGE_URL='http://www.clamav.net/'
710
710
 
754
754
am__EXEEXT_TRUE
755
755
LTLIBOBJS
756
756
LIBOBJS
 
757
BUILD_SHA1_FALSE
 
758
BUILD_SHA1_TRUE
757
759
subdirs
758
760
HAVE_CURSES_FALSE
759
761
HAVE_CURSES_TRUE
793
795
HAVE_LIBCHECK_TRUE
794
796
CHECK_LIBS
795
797
CHECK_CPPFLAGS
 
798
BUILD_CONFIGURE_FLAGS
796
799
GPERF
797
800
VERSIONSCRIPT_FALSE
798
801
VERSIONSCRIPT_TRUE
984
987
with_libpdcurses_prefix
985
988
enable_distcheck_werror
986
989
enable_llvm
 
990
enable_sha_collector_for_internal_use
987
991
'
988
992
      ac_precious_vars='build_alias
989
993
host_alias
1057
1061
  fi
1058
1062
 
1059
1063
  case $ac_option in
1060
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1061
 
  *)    ac_optarg=yes ;;
 
1064
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1065
  *=)   ac_optarg= ;;
 
1066
  *)    ac_optarg=yes ;;
1062
1067
  esac
1063
1068
 
1064
1069
  # Accept the important Cygnus configure options, so we can diagnose typos.
1103
1108
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1104
1109
    # Reject names that are not valid shell variable names.
1105
1110
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106
 
      as_fn_error "invalid feature name: $ac_useropt"
 
1111
      as_fn_error $? "invalid feature name: $ac_useropt"
1107
1112
    ac_useropt_orig=$ac_useropt
1108
1113
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109
1114
    case $ac_user_opts in
1129
1134
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130
1135
    # Reject names that are not valid shell variable names.
1131
1136
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132
 
      as_fn_error "invalid feature name: $ac_useropt"
 
1137
      as_fn_error $? "invalid feature name: $ac_useropt"
1133
1138
    ac_useropt_orig=$ac_useropt
1134
1139
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135
1140
    case $ac_user_opts in
1333
1338
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334
1339
    # Reject names that are not valid shell variable names.
1335
1340
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336
 
      as_fn_error "invalid package name: $ac_useropt"
 
1341
      as_fn_error $? "invalid package name: $ac_useropt"
1337
1342
    ac_useropt_orig=$ac_useropt
1338
1343
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339
1344
    case $ac_user_opts in
1349
1354
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1350
1355
    # Reject names that are not valid shell variable names.
1351
1356
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352
 
      as_fn_error "invalid package name: $ac_useropt"
 
1357
      as_fn_error $? "invalid package name: $ac_useropt"
1353
1358
    ac_useropt_orig=$ac_useropt
1354
1359
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355
1360
    case $ac_user_opts in
1379
1384
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1380
1385
    x_libraries=$ac_optarg ;;
1381
1386
 
1382
 
  -*) as_fn_error "unrecognized option: \`$ac_option'
1383
 
Try \`$0 --help' for more information."
 
1387
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1388
Try \`$0 --help' for more information"
1384
1389
    ;;
1385
1390
 
1386
1391
  *=*)
1388
1393
    # Reject names that are not valid shell variable names.
1389
1394
    case $ac_envvar in #(
1390
1395
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1391
 
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1396
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1392
1397
    esac
1393
1398
    eval $ac_envvar=\$ac_optarg
1394
1399
    export $ac_envvar ;;
1406
1411
 
1407
1412
if test -n "$ac_prev"; then
1408
1413
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1409
 
  as_fn_error "missing argument to $ac_option"
 
1414
  as_fn_error $? "missing argument to $ac_option"
1410
1415
fi
1411
1416
 
1412
1417
if test -n "$ac_unrecognized_opts"; then
1413
1418
  case $enable_option_checking in
1414
1419
    no) ;;
1415
 
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1420
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1416
1421
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1417
1422
  esac
1418
1423
fi
1435
1440
    [\\/$]* | ?:[\\/]* )  continue;;
1436
1441
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1437
1442
  esac
1438
 
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1443
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1439
1444
done
1440
1445
 
1441
1446
# There might be people who depend on the old broken behavior: `$host'
1449
1454
if test "x$host_alias" != x; then
1450
1455
  if test "x$build_alias" = x; then
1451
1456
    cross_compiling=maybe
1452
 
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1453
 
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1457
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1458
    If a cross compiler is detected then cross compile mode will be used" >&2
1454
1459
  elif test "x$build_alias" != "x$host_alias"; then
1455
1460
    cross_compiling=yes
1456
1461
  fi
1465
1470
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1466
1471
ac_ls_di=`ls -di .` &&
1467
1472
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1468
 
  as_fn_error "working directory cannot be determined"
 
1473
  as_fn_error $? "working directory cannot be determined"
1469
1474
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470
 
  as_fn_error "pwd does not report name of working directory"
 
1475
  as_fn_error $? "pwd does not report name of working directory"
1471
1476
 
1472
1477
 
1473
1478
# Find the source files, if location was not specified.
1506
1511
fi
1507
1512
if test ! -r "$srcdir/$ac_unique_file"; then
1508
1513
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1509
 
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1514
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1510
1515
fi
1511
1516
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1512
1517
ac_abs_confdir=`(
1513
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1518
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1514
1519
        pwd)`
1515
1520
# When building in place, set srcdir=.
1516
1521
if test "$ac_abs_confdir" = "$ac_pwd"; then
1536
1541
  # Omit some internal or obsolete options to make the list less imposing.
1537
1542
  # This message is too long to be a string in the A/UX 3.1 sh.
1538
1543
  cat <<_ACEOF
1539
 
\`configure' configures ClamAV 0.96 to adapt to many kinds of systems.
 
1544
\`configure' configures ClamAV 0.96.3 to adapt to many kinds of systems.
1540
1545
 
1541
1546
Usage: $0 [OPTION]... [VAR=VALUE]...
1542
1547
 
1550
1555
      --help=short        display options specific to this package
1551
1556
      --help=recursive    display the short help of all the included packages
1552
1557
  -V, --version           display version information and exit
1553
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1558
  -q, --quiet, --silent   do not print \`checking ...' messages
1554
1559
      --cache-file=FILE   cache test results in FILE [disabled]
1555
1560
  -C, --config-cache      alias for \`--cache-file=config.cache'
1556
1561
  -n, --no-create         do not create output files
1607
1612
 
1608
1613
if test -n "$ac_init_help"; then
1609
1614
  case $ac_init_help in
1610
 
     short | recursive ) echo "Configuration of ClamAV 0.96:";;
 
1615
     short | recursive ) echo "Configuration of ClamAV 0.96.3:";;
1611
1616
   esac
1612
1617
  cat <<\_ACEOF
1613
1618
 
1659
1664
                          enable warnings as error for distcheck [default=no]
1660
1665
  --enable-llvm           Enable 'llvm' JIT/verifier support [default=auto]
1661
1666
 
 
1667
 
1662
1668
Optional Packages:
1663
1669
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1664
1670
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1763
1769
test -n "$ac_init_help" && exit $ac_status
1764
1770
if $ac_init_version; then
1765
1771
  cat <<\_ACEOF
1766
 
ClamAV configure 0.96
1767
 
generated by GNU Autoconf 2.65
 
1772
ClamAV configure 0.96.3
 
1773
generated by GNU Autoconf 2.67
1768
1774
 
1769
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
1775
Copyright (C) 2010 Free Software Foundation, Inc.
1770
1776
This configure script is free software; the Free Software Foundation
1771
1777
gives unlimited permission to copy, distribute and modify it.
1772
1778
_ACEOF
1870
1876
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871
1877
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872
1878
$as_echo_n "checking for $2... " >&6; }
1873
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1879
if eval "test \"\${$3+set}\"" = set; then :
1874
1880
  $as_echo_n "(cached) " >&6
1875
1881
else
1876
1882
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913
1919
    mv -f conftest.er1 conftest.err
1914
1920
  fi
1915
1921
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916
 
  test $ac_status = 0; } >/dev/null && {
 
1922
  test $ac_status = 0; } > conftest.i && {
1917
1923
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1918
1924
         test ! -s conftest.err
1919
1925
       }; then :
1979
1985
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980
1986
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981
1987
$as_echo_n "checking for $2... " >&6; }
1982
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1988
if eval "test \"\${$3+set}\"" = set; then :
1983
1989
  $as_echo_n "(cached) " >&6
1984
1990
else
1985
1991
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038
2044
 
2039
2045
} # ac_fn_c_check_func
2040
2046
 
2041
 
# ac_fn_c_check_decl LINENO SYMBOL VAR
2042
 
# ------------------------------------
2043
 
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
 
2047
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
2048
# ---------------------------------------------
 
2049
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
2050
# accordingly.
2044
2051
ac_fn_c_check_decl ()
2045
2052
{
2046
2053
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2048
 
$as_echo_n "checking whether $2 is declared... " >&6; }
2049
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2054
  as_decl_name=`echo $2|sed 's/ *(.*//'`
 
2055
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 
2056
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 
2057
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 
2058
if eval "test \"\${$3+set}\"" = set; then :
2050
2059
  $as_echo_n "(cached) " >&6
2051
2060
else
2052
2061
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055
2064
int
2056
2065
main ()
2057
2066
{
2058
 
#ifndef $2
2059
 
  (void) $2;
 
2067
#ifndef $as_decl_name
 
2068
#ifdef __cplusplus
 
2069
  (void) $as_decl_use;
 
2070
#else
 
2071
  (void) $as_decl_name;
 
2072
#endif
2060
2073
#endif
2061
2074
 
2062
2075
  ;
2086
2099
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087
2100
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088
2101
$as_echo_n "checking for $2... " >&6; }
2089
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2102
if eval "test \"\${$3+set}\"" = set; then :
2090
2103
  $as_echo_n "(cached) " >&6
2091
2104
else
2092
2105
  eval "$3=no"
2139
2152
ac_fn_c_check_header_mongrel ()
2140
2153
{
2141
2154
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142
 
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2155
  if eval "test \"\${$3+set}\"" = set; then :
2143
2156
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144
2157
$as_echo_n "checking for $2... " >&6; }
2145
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2158
if eval "test \"\${$3+set}\"" = set; then :
2146
2159
  $as_echo_n "(cached) " >&6
2147
2160
fi
2148
2161
eval ac_res=\$$3
2178
2191
else
2179
2192
  ac_header_preproc=no
2180
2193
fi
2181
 
rm -f conftest.err conftest.$ac_ext
 
2194
rm -f conftest.err conftest.i conftest.$ac_ext
2182
2195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2183
2196
$as_echo "$ac_header_preproc" >&6; }
2184
2197
 
2201
2214
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2202
2215
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203
2216
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2204
 
( cat <<\_ASBOX
2205
 
## -------------------------------------- ##
 
2217
( $as_echo "## -------------------------------------- ##
2206
2218
## Report this to http://bugs.clamav.net/ ##
2207
 
## -------------------------------------- ##
2208
 
_ASBOX
 
2219
## -------------------------------------- ##"
2209
2220
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2210
2221
    ;;
2211
2222
esac
2212
2223
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213
2224
$as_echo_n "checking for $2... " >&6; }
2214
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2225
if eval "test \"\${$3+set}\"" = set; then :
2215
2226
  $as_echo_n "(cached) " >&6
2216
2227
else
2217
2228
  eval "$3=\$ac_header_compiler"
2227
2238
This file contains any messages produced by compilers while
2228
2239
running configure, to aid debugging if configure makes a mistake.
2229
2240
 
2230
 
It was created by ClamAV $as_me 0.96, which was
2231
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
2241
It was created by ClamAV $as_me 0.96.3, which was
 
2242
generated by GNU Autoconf 2.67.  Invocation command line was
2232
2243
 
2233
2244
  $ $0 $@
2234
2245
 
2338
2349
  {
2339
2350
    echo
2340
2351
 
2341
 
    cat <<\_ASBOX
2342
 
## ---------------- ##
 
2352
    $as_echo "## ---------------- ##
2343
2353
## Cache variables. ##
2344
 
## ---------------- ##
2345
 
_ASBOX
 
2354
## ---------------- ##"
2346
2355
    echo
2347
2356
    # The following way of writing the cache mishandles newlines in values,
2348
2357
(
2376
2385
)
2377
2386
    echo
2378
2387
 
2379
 
    cat <<\_ASBOX
2380
 
## ----------------- ##
 
2388
    $as_echo "## ----------------- ##
2381
2389
## Output variables. ##
2382
 
## ----------------- ##
2383
 
_ASBOX
 
2390
## ----------------- ##"
2384
2391
    echo
2385
2392
    for ac_var in $ac_subst_vars
2386
2393
    do
2393
2400
    echo
2394
2401
 
2395
2402
    if test -n "$ac_subst_files"; then
2396
 
      cat <<\_ASBOX
2397
 
## ------------------- ##
 
2403
      $as_echo "## ------------------- ##
2398
2404
## File substitutions. ##
2399
 
## ------------------- ##
2400
 
_ASBOX
 
2405
## ------------------- ##"
2401
2406
      echo
2402
2407
      for ac_var in $ac_subst_files
2403
2408
      do
2411
2416
    fi
2412
2417
 
2413
2418
    if test -s confdefs.h; then
2414
 
      cat <<\_ASBOX
2415
 
## ----------- ##
 
2419
      $as_echo "## ----------- ##
2416
2420
## confdefs.h. ##
2417
 
## ----------- ##
2418
 
_ASBOX
 
2421
## ----------- ##"
2419
2422
      echo
2420
2423
      cat confdefs.h
2421
2424
      echo
2470
2473
ac_site_file1=NONE
2471
2474
ac_site_file2=NONE
2472
2475
if test -n "$CONFIG_SITE"; then
2473
 
  ac_site_file1=$CONFIG_SITE
 
2476
  # We do not want a PATH search for config.site.
 
2477
  case $CONFIG_SITE in #((
 
2478
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2479
    */*) ac_site_file1=$CONFIG_SITE;;
 
2480
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2481
  esac
2474
2482
elif test "x$prefix" != xNONE; then
2475
2483
  ac_site_file1=$prefix/share/config.site
2476
2484
  ac_site_file2=$prefix/etc/config.site
2485
2493
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2486
2494
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2487
2495
    sed 's/^/| /' "$ac_site_file" >&5
2488
 
    . "$ac_site_file"
 
2496
    . "$ac_site_file" \
 
2497
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2498
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2499
as_fn_error $? "failed to load site script $ac_site_file
 
2500
See \`config.log' for more details" "$LINENO" 5 ; }
2489
2501
  fi
2490
2502
done
2491
2503
 
2561
2573
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562
2574
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2563
2575
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2564
 
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2576
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2565
2577
fi
2566
2578
## -------------------- ##
2567
2579
## Main body of script. ##
2578
2590
 
2579
2591
ac_aux_dir=
2580
2592
for ac_dir in config "$srcdir"/config; do
2581
 
  for ac_t in install-sh install.sh shtool; do
2582
 
    if test -f "$ac_dir/$ac_t"; then
2583
 
      ac_aux_dir=$ac_dir
2584
 
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2585
 
      break 2
2586
 
    fi
2587
 
  done
 
2593
  if test -f "$ac_dir/install-sh"; then
 
2594
    ac_aux_dir=$ac_dir
 
2595
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2596
    break
 
2597
  elif test -f "$ac_dir/install.sh"; then
 
2598
    ac_aux_dir=$ac_dir
 
2599
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2600
    break
 
2601
  elif test -f "$ac_dir/shtool"; then
 
2602
    ac_aux_dir=$ac_dir
 
2603
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2604
    break
 
2605
  fi
2588
2606
done
2589
2607
if test -z "$ac_aux_dir"; then
2590
 
  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
 
2608
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2591
2609
fi
2592
2610
 
2593
2611
# These three variables are undocumented and unsupported,
2606
2624
 
2607
2625
# Make sure we can run config.sub.
2608
2626
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2609
 
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2627
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2610
2628
 
2611
2629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2612
2630
$as_echo_n "checking build system type... " >&6; }
2617
2635
test "x$ac_build_alias" = x &&
2618
2636
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2619
2637
test "x$ac_build_alias" = x &&
2620
 
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
2638
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2621
2639
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2622
 
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2640
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2623
2641
 
2624
2642
fi
2625
2643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2626
2644
$as_echo "$ac_cv_build" >&6; }
2627
2645
case $ac_cv_build in
2628
2646
*-*-*) ;;
2629
 
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2647
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2630
2648
esac
2631
2649
build=$ac_cv_build
2632
2650
ac_save_IFS=$IFS; IFS='-'
2651
2669
  ac_cv_host=$ac_cv_build
2652
2670
else
2653
2671
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2654
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2672
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2655
2673
fi
2656
2674
 
2657
2675
fi
2659
2677
$as_echo "$ac_cv_host" >&6; }
2660
2678
case $ac_cv_host in
2661
2679
*-*-*) ;;
2662
 
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2680
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2663
2681
esac
2664
2682
host=$ac_cv_host
2665
2683
ac_save_IFS=$IFS; IFS='-'
2684
2702
  ac_cv_target=$ac_cv_host
2685
2703
else
2686
2704
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2687
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
2705
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2688
2706
fi
2689
2707
 
2690
2708
fi
2692
2710
$as_echo "$ac_cv_target" >&6; }
2693
2711
case $ac_cv_target in
2694
2712
*-*-*) ;;
2695
 
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
 
2713
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2696
2714
esac
2697
2715
target=$ac_cv_target
2698
2716
ac_save_IFS=$IFS; IFS='-'
3009
3027
'
3010
3028
case `pwd` in
3011
3029
  *[\\\"\#\$\&\'\`$am_lf]*)
3012
 
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
3030
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3013
3031
esac
3014
3032
case $srcdir in
3015
3033
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3016
 
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
3034
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3017
3035
esac
3018
3036
 
3019
3037
# Do `set' in a subshell so we don't clobber the current shell's
3035
3053
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3036
3054
      # broken ls alias from the environment.  This has actually
3037
3055
      # happened.  Such a system could not be considered "sane".
3038
 
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
3056
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3039
3057
alias in your environment" "$LINENO" 5
3040
3058
   fi
3041
3059
 
3045
3063
   # Ok.
3046
3064
   :
3047
3065
else
3048
 
   as_fn_error "newly created file is older than distributed files!
 
3066
   as_fn_error $? "newly created file is older than distributed files!
3049
3067
Check your system clock" "$LINENO" 5
3050
3068
fi
3051
3069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283
3301
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3284
3302
set x ${MAKE-make}
3285
3303
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3286
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
3304
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3287
3305
  $as_echo_n "(cached) " >&6
3288
3306
else
3289
3307
  cat >conftest.make <<\_ACEOF
3291
3309
all:
3292
3310
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3293
3311
_ACEOF
3294
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3312
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3295
3313
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3296
3314
  *@@@%%%=?*=@@@%%%*)
3297
3315
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3325
3343
  am__isrc=' -I$(srcdir)'
3326
3344
  # test to see if srcdir already configured
3327
3345
  if test -f $srcdir/config.status; then
3328
 
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
3346
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3329
3347
  fi
3330
3348
fi
3331
3349
 
3341
3359
 
3342
3360
# Define the identity of the package.
3343
3361
 PACKAGE='clamav'
3344
 
 VERSION='0.96'
 
3362
 VERSION='0.96.3'
3345
3363
 
3346
3364
 
3347
3365
# Some tools Automake needs.
3470
3488
$as_echo "#define PACKAGE PACKAGE_NAME" >>confdefs.h
3471
3489
 
3472
3490
 
3473
 
VERSION="0.96"
 
3491
VERSION="0.96.3"
3474
3492
 
3475
3493
cat >>confdefs.h <<_ACEOF
3476
3494
#define VERSION "$VERSION"
3478
3496
 
3479
3497
 
3480
3498
LC_CURRENT=7
3481
 
LC_REVISION=2
 
3499
LC_REVISION=5
3482
3500
LC_AGE=1
3483
3501
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
3484
3502
 
3541
3559
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3542
3560
set x ${MAKE-make}
3543
3561
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3544
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
3562
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3545
3563
  $as_echo_n "(cached) " >&6
3546
3564
else
3547
3565
  cat >conftest.make <<\_ACEOF
3549
3567
all:
3550
3568
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3551
3569
_ACEOF
3552
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3570
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3553
3571
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3554
3572
  *@@@%%%=?*=@@@%%%*)
3555
3573
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3964
3982
 
3965
3983
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966
3984
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967
 
as_fn_error "no acceptable C compiler found in \$PATH
3968
 
See \`config.log' for more details." "$LINENO" 5; }
 
3985
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3986
See \`config.log' for more details" "$LINENO" 5 ; }
3969
3987
 
3970
3988
# Provide some information about the compiler.
3971
3989
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4079
4097
 
4080
4098
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081
4099
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082
 
{ as_fn_set_status 77
4083
 
as_fn_error "C compiler cannot create executables
4084
 
See \`config.log' for more details." "$LINENO" 5; }; }
 
4100
as_fn_error 77 "C compiler cannot create executables
 
4101
See \`config.log' for more details" "$LINENO" 5 ; }
4085
4102
else
4086
4103
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087
4104
$as_echo "yes" >&6; }
4123
4140
else
4124
4141
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125
4142
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126
 
as_fn_error "cannot compute suffix of executables: cannot compile and link
4127
 
See \`config.log' for more details." "$LINENO" 5; }
 
4143
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
4144
See \`config.log' for more details" "$LINENO" 5 ; }
4128
4145
fi
4129
4146
rm -f conftest conftest$ac_cv_exeext
4130
4147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4181
4198
    else
4182
4199
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183
4200
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4184
 
as_fn_error "cannot run C compiled programs.
 
4201
as_fn_error $? "cannot run C compiled programs.
4185
4202
If you meant to cross compile, use \`--host'.
4186
 
See \`config.log' for more details." "$LINENO" 5; }
 
4203
See \`config.log' for more details" "$LINENO" 5 ; }
4187
4204
    fi
4188
4205
  fi
4189
4206
fi
4234
4251
 
4235
4252
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4236
4253
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4237
 
as_fn_error "cannot compute suffix of object files: cannot compile
4238
 
See \`config.log' for more details." "$LINENO" 5; }
 
4254
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
4255
See \`config.log' for more details" "$LINENO" 5 ; }
4239
4256
fi
4240
4257
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4241
4258
fi
4639
4656
  done
4640
4657
IFS=$as_save_IFS
4641
4658
  if test -z "$ac_cv_path_SED"; then
4642
 
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4659
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4643
4660
  fi
4644
4661
else
4645
4662
  ac_cv_path_SED=$SED
4715
4732
  done
4716
4733
IFS=$as_save_IFS
4717
4734
  if test -z "$ac_cv_path_GREP"; then
4718
 
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4735
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4719
4736
  fi
4720
4737
else
4721
4738
  ac_cv_path_GREP=$GREP
4781
4798
  done
4782
4799
IFS=$as_save_IFS
4783
4800
  if test -z "$ac_cv_path_EGREP"; then
4784
 
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4801
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4785
4802
  fi
4786
4803
else
4787
4804
  ac_cv_path_EGREP=$EGREP
4848
4865
  done
4849
4866
IFS=$as_save_IFS
4850
4867
  if test -z "$ac_cv_path_FGREP"; then
4851
 
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4868
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852
4869
  fi
4853
4870
else
4854
4871
  ac_cv_path_FGREP=$FGREP
4964
4981
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965
4982
$as_echo "no" >&6; }
4966
4983
fi
4967
 
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
4984
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4968
4985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4969
4986
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4970
4987
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5166
5183
else
5167
5184
  lt_cv_nm_interface="BSD nm"
5168
5185
  echo "int some_variable = 0;" > conftest.$ac_ext
5169
 
  (eval echo "\"\$as_me:5169: $ac_compile\"" >&5)
 
5186
  (eval echo "\"\$as_me:5186: $ac_compile\"" >&5)
5170
5187
  (eval "$ac_compile" 2>conftest.err)
5171
5188
  cat conftest.err >&5
5172
 
  (eval echo "\"\$as_me:5172: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5189
  (eval echo "\"\$as_me:5189: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5173
5190
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5174
5191
  cat conftest.err >&5
5175
 
  (eval echo "\"\$as_me:5175: output\"" >&5)
 
5192
  (eval echo "\"\$as_me:5192: output\"" >&5)
5176
5193
  cat conftest.out >&5
5177
5194
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5178
5195
    lt_cv_nm_interface="MS dumpbin"
6367
6384
  ;;
6368
6385
*-*-irix6*)
6369
6386
  # Find out which ABI we are using.
6370
 
  echo '#line 6370 "configure"' > conftest.$ac_ext
 
6387
  echo '#line 6387 "configure"' > conftest.$ac_ext
6371
6388
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6372
6389
  (eval $ac_compile) 2>&5
6373
6390
  ac_status=$?
7156
7173
  # Broken: fails on valid input.
7157
7174
continue
7158
7175
fi
7159
 
rm -f conftest.err conftest.$ac_ext
 
7176
rm -f conftest.err conftest.i conftest.$ac_ext
7160
7177
 
7161
7178
  # OK, works on sane cases.  Now check whether nonexistent headers
7162
7179
  # can be detected and how.
7172
7189
ac_preproc_ok=:
7173
7190
break
7174
7191
fi
7175
 
rm -f conftest.err conftest.$ac_ext
 
7192
rm -f conftest.err conftest.i conftest.$ac_ext
7176
7193
 
7177
7194
done
7178
7195
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7179
 
rm -f conftest.err conftest.$ac_ext
 
7196
rm -f conftest.i conftest.err conftest.$ac_ext
7180
7197
if $ac_preproc_ok; then :
7181
7198
  break
7182
7199
fi
7215
7232
  # Broken: fails on valid input.
7216
7233
continue
7217
7234
fi
7218
 
rm -f conftest.err conftest.$ac_ext
 
7235
rm -f conftest.err conftest.i conftest.$ac_ext
7219
7236
 
7220
7237
  # OK, works on sane cases.  Now check whether nonexistent headers
7221
7238
  # can be detected and how.
7231
7248
ac_preproc_ok=:
7232
7249
break
7233
7250
fi
7234
 
rm -f conftest.err conftest.$ac_ext
 
7251
rm -f conftest.err conftest.i conftest.$ac_ext
7235
7252
 
7236
7253
done
7237
7254
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7238
 
rm -f conftest.err conftest.$ac_ext
 
7255
rm -f conftest.i conftest.err conftest.$ac_ext
7239
7256
if $ac_preproc_ok; then :
7240
7257
 
7241
7258
else
7242
7259
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7243
7260
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7244
 
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7245
 
See \`config.log' for more details." "$LINENO" 5; }
 
7261
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7262
See \`config.log' for more details" "$LINENO" 5 ; }
7246
7263
fi
7247
7264
 
7248
7265
ac_ext=c
7371
7388
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7372
7389
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7373
7390
"
7374
 
eval as_val=\$$as_ac_Header
7375
 
   if test "x$as_val" = x""yes; then :
 
7391
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7376
7392
  cat >>confdefs.h <<_ACEOF
7377
7393
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7378
7394
_ACEOF
7895
7911
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7896
7912
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7897
7913
   -e 's:$: $lt_compiler_flag:'`
7898
 
   (eval echo "\"\$as_me:7898: $lt_compile\"" >&5)
 
7914
   (eval echo "\"\$as_me:7914: $lt_compile\"" >&5)
7899
7915
   (eval "$lt_compile" 2>conftest.err)
7900
7916
   ac_status=$?
7901
7917
   cat conftest.err >&5
7902
 
   echo "$as_me:7902: \$? = $ac_status" >&5
 
7918
   echo "$as_me:7918: \$? = $ac_status" >&5
7903
7919
   if (exit $ac_status) && test -s "$ac_outfile"; then
7904
7920
     # The compiler can only warn and ignore the option if not recognized
7905
7921
     # So say no if there are warnings other than the usual output.
8234
8250
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8235
8251
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8236
8252
   -e 's:$: $lt_compiler_flag:'`
8237
 
   (eval echo "\"\$as_me:8237: $lt_compile\"" >&5)
 
8253
   (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
8238
8254
   (eval "$lt_compile" 2>conftest.err)
8239
8255
   ac_status=$?
8240
8256
   cat conftest.err >&5
8241
 
   echo "$as_me:8241: \$? = $ac_status" >&5
 
8257
   echo "$as_me:8257: \$? = $ac_status" >&5
8242
8258
   if (exit $ac_status) && test -s "$ac_outfile"; then
8243
8259
     # The compiler can only warn and ignore the option if not recognized
8244
8260
     # So say no if there are warnings other than the usual output.
8339
8355
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8340
8356
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8341
8357
   -e 's:$: $lt_compiler_flag:'`
8342
 
   (eval echo "\"\$as_me:8342: $lt_compile\"" >&5)
 
8358
   (eval echo "\"\$as_me:8358: $lt_compile\"" >&5)
8343
8359
   (eval "$lt_compile" 2>out/conftest.err)
8344
8360
   ac_status=$?
8345
8361
   cat out/conftest.err >&5
8346
 
   echo "$as_me:8346: \$? = $ac_status" >&5
 
8362
   echo "$as_me:8362: \$? = $ac_status" >&5
8347
8363
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8348
8364
   then
8349
8365
     # The compiler can only warn and ignore the option if not recognized
8394
8410
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8395
8411
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8396
8412
   -e 's:$: $lt_compiler_flag:'`
8397
 
   (eval echo "\"\$as_me:8397: $lt_compile\"" >&5)
 
8413
   (eval echo "\"\$as_me:8413: $lt_compile\"" >&5)
8398
8414
   (eval "$lt_compile" 2>out/conftest.err)
8399
8415
   ac_status=$?
8400
8416
   cat out/conftest.err >&5
8401
 
   echo "$as_me:8401: \$? = $ac_status" >&5
 
8417
   echo "$as_me:8417: \$? = $ac_status" >&5
8402
8418
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8403
8419
   then
8404
8420
     # The compiler can only warn and ignore the option if not recognized
10778
10794
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10779
10795
  lt_status=$lt_dlunknown
10780
10796
  cat > conftest.$ac_ext <<_LT_EOF
10781
 
#line 10781 "configure"
 
10797
#line 10797 "configure"
10782
10798
#include "confdefs.h"
10783
10799
 
10784
10800
#if HAVE_DLFCN_H
10874
10890
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10875
10891
  lt_status=$lt_dlunknown
10876
10892
  cat > conftest.$ac_ext <<_LT_EOF
10877
 
#line 10877 "configure"
 
10893
#line 10893 "configure"
10878
10894
#include "confdefs.h"
10879
10895
 
10880
10896
#if HAVE_DLFCN_H
11546
11562
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11547
11563
  lt_status=$lt_dlunknown
11548
11564
  cat > conftest.$ac_ext <<_LT_EOF
11549
 
#line 11549 "configure"
 
11565
#line 11565 "configure"
11550
11566
#include "confdefs.h"
11551
11567
 
11552
11568
#if HAVE_DLFCN_H
11783
11799
do :
11784
11800
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11785
11801
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11786
 
eval as_val=\$$as_ac_var
11787
 
   if test "x$as_val" = x""yes; then :
 
11802
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11788
11803
  cat >>confdefs.h <<_ACEOF
11789
11804
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11790
11805
_ACEOF
11961
11976
if test -n "$with_ltdl_include"; then
11962
11977
  if test -f "$with_ltdl_include/ltdl.h"; then :
11963
11978
  else
11964
 
    as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
 
11979
    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11965
11980
  fi
11966
11981
else
11967
11982
  with_ltdl_include=no
11977
11992
if test -n "$with_ltdl_lib"; then
11978
11993
  if test -f "$with_ltdl_lib/libltdl.la"; then :
11979
11994
  else
11980
 
    as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
 
11995
    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11981
11996
  fi
11982
11997
else
11983
11998
  with_ltdl_lib=no
11986
12001
case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11987
12002
  ,yes,no,no,)
11988
12003
        case $enable_ltdl_convenience in
11989
 
  no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
 
12004
  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5  ;;
11990
12005
  "") enable_ltdl_convenience=yes
11991
12006
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11992
12007
esac
12014
12029
        LTDLINCL=
12015
12030
        ;;
12016
12031
  ,no*,no,*)
12017
 
        as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
 
12032
        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12018
12033
        ;;
12019
12034
  *)    with_included_ltdl=no
12020
12035
        LIBLTDL="-L$with_ltdl_lib -lltdl"
12081
12096
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12082
12097
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12083
12098
"
12084
 
eval as_val=\$$as_ac_Header
12085
 
   if test "x$as_val" = x""yes; then :
 
12099
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12086
12100
  cat >>confdefs.h <<_ACEOF
12087
12101
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12088
12102
_ACEOF
12096
12110
do :
12097
12111
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12098
12112
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12099
 
eval as_val=\$$as_ac_var
12100
 
   if test "x$as_val" = x""yes; then :
 
12113
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12101
12114
  cat >>confdefs.h <<_ACEOF
12102
12115
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12103
12116
_ACEOF
12114
12127
do :
12115
12128
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12116
12129
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12117
 
eval as_val=\$$as_ac_var
12118
 
   if test "x$as_val" = x""yes; then :
 
12130
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12119
12131
  cat >>confdefs.h <<_ACEOF
12120
12132
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12121
12133
_ACEOF
12761
12773
 
12762
12774
     ;; #(
12763
12775
   *)
12764
 
     as_fn_error "unknown endianness
12765
 
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 
12776
     as_fn_error $? "unknown endianness
 
12777
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
12766
12778
 esac
12767
12779
 
12768
 
if test $ac_cv_c_bigendian = no; then
12769
 
    $as_echo "#define WORDS_BIGENDIAN 0" >>confdefs.h
12770
 
 
12771
 
fi
12772
12780
 
12773
12781
LIBM=
12774
12782
case $host in
12922
12930
                        4.1.0*)
12923
12931
                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
12924
12932
$as_echo "no (${gcc_version})" >&6; }
12925
 
                                as_fn_error "gcc 4.1.0 is known to incorrectly compile upx.c. Upgrade your compiler to at least 4.1.1/4.1.2)" "$LINENO" 5
 
12933
                                as_fn_error $? "gcc 4.1.0 is known to incorrectly compile upx.c. Upgrade your compiler to at least 4.1.1/4.1.2)" "$LINENO" 5
12926
12934
                                ;;
12927
12935
                        *)
12928
12936
                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
12989
12997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
12990
12998
$as_echo "ok, bug not present" >&6; }
12991
12999
else
12992
 
  as_fn_error "your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603" "$LINENO" 5
 
13000
  as_fn_error $? "your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603" "$LINENO" 5
12993
13001
fi
12994
13002
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12995
13003
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13028
13036
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
13029
13037
$as_echo "ok, bug not present" >&6; }
13030
13038
else
13031
 
  as_fn_error "your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763" "$LINENO" 5
 
13039
  as_fn_error $? "your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763" "$LINENO" 5
13032
13040
fi
13033
13041
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13034
13042
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13106
13114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
13107
13115
$as_echo "ok, bug not present" >&6; }
13108
13116
else
13109
 
  as_fn_error "your compiler has a bug that causes clamav bug no. 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670" "$LINENO" 5
 
13117
  as_fn_error $? "your compiler has a bug that causes clamav bug no. 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670" "$LINENO" 5
13110
13118
fi
13111
13119
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13112
13120
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13148
13156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
13149
13157
$as_echo "ok, bug not present" >&6; }
13150
13158
else
13151
 
  as_fn_error "your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045" "$LINENO" 5
 
13159
  as_fn_error $? "your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045" "$LINENO" 5
13152
13160
fi
13153
13161
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13154
13162
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13244
13252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
13245
13253
$as_echo "ok, bug not present" >&6; }
13246
13254
else
13247
 
  as_fn_error "your compiler has gcc PR37573 bug, use a lower optimization level (-O1 or -O2), see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37573" "$LINENO" 5
 
13255
  as_fn_error $? "your compiler has gcc PR37573 bug, use a lower optimization level (-O1 or -O2), see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37573" "$LINENO" 5
13248
13256
fi
13249
13257
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13250
13258
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13329
13337
do :
13330
13338
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13331
13339
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13332
 
eval as_val=\$$as_ac_Header
13333
 
   if test "x$as_val" = x""yes; then :
 
13340
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13334
13341
  cat >>confdefs.h <<_ACEOF
13335
13342
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13336
13343
_ACEOF
13389
13396
fi
13390
13397
 
13391
13398
if test x$ac_cv_sizeof_short = x ; then
13392
 
  as_fn_error "cannot determine a size for short" "$LINENO" 5
 
13399
  as_fn_error $? "cannot determine a size for short" "$LINENO" 5
13393
13400
fi
13394
13401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13395
13402
$as_echo "$ac_cv_sizeof_short" >&6; }
13429
13436
fi
13430
13437
 
13431
13438
if test x$ac_cv_sizeof_int = x ; then
13432
 
  as_fn_error "cannot determine a size for int" "$LINENO" 5
 
13439
  as_fn_error $? "cannot determine a size for int" "$LINENO" 5
13433
13440
fi
13434
13441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13435
13442
$as_echo "$ac_cv_sizeof_int" >&6; }
13469
13476
fi
13470
13477
 
13471
13478
if test x$ac_cv_sizeof_long = x ; then
13472
 
  as_fn_error "cannot determine a size for long" "$LINENO" 5
 
13479
  as_fn_error $? "cannot determine a size for long" "$LINENO" 5
13473
13480
fi
13474
13481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13475
13482
$as_echo "$ac_cv_sizeof_long" >&6; }
13509
13516
fi
13510
13517
 
13511
13518
if test x$ac_cv_sizeof_long_long = x ; then
13512
 
  as_fn_error "cannot determine a size for long long" "$LINENO" 5
 
13519
  as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
13513
13520
fi
13514
13521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13515
13522
$as_echo "$ac_cv_sizeof_long_long" >&6; }
13549
13556
fi
13550
13557
 
13551
13558
if test x$ac_cv_sizeof_void_p = x ; then
13552
 
  as_fn_error "cannot determine a size for void *" "$LINENO" 5
 
13559
  as_fn_error $? "cannot determine a size for void *" "$LINENO" 5
13553
13560
fi
13554
13561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13555
13562
$as_echo "$ac_cv_sizeof_void_p" >&6; }
13575
13582
  VERSION_SUFFIX="$VERSION_SUFFIX-exp"
13576
13583
fi
13577
13584
 
 
13585
build_configure_args=`echo "$ac_configure_args" | sed -e 's/\"//g'`
 
13586
BUILD_CONFIGURE_FLAGS=$build_configure_args
 
13587
 
 
13588
 
 
13589
 
 
13590
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uname(2) is POSIX" >&5
 
13591
$as_echo_n "checking whether uname(2) is POSIX... " >&6; }
 
13592
  if test "${ax_cv_uname_syscall+set}" = set; then :
 
13593
  $as_echo_n "(cached) " >&6
 
13594
else
 
13595
 
 
13596
  if test "$cross_compiling" = yes; then :
 
13597
  ax_cv_uname_syscall=no
 
13598
 
 
13599
else
 
13600
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13601
/* end confdefs.h.  */
 
13602
#include <sys/utsname.h>
 
13603
int main() { struct utsname unm;
 
13604
return uname( &unm ); }
 
13605
_ACEOF
 
13606
if ac_fn_c_try_run "$LINENO"; then :
 
13607
  ax_cv_uname_syscall=yes
 
13608
else
 
13609
  ax_cv_uname_syscall=no
 
13610
fi
 
13611
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13612
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13613
fi
 
13614
 # end of TRY_RUN
 
13615
fi
 
13616
 # end of CACHE_VAL
 
13617
 
 
13618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uname_syscall" >&5
 
13619
$as_echo "$ax_cv_uname_syscall" >&6; }
 
13620
  if test x$ax_cv_uname_syscall = xyes
 
13621
  then
 
13622
 
 
13623
$as_echo "#define HAVE_UNAME_SYSCALL 1" >>confdefs.h
 
13624
 
 
13625
  fi
 
13626
 
13578
13627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
13579
13628
$as_echo_n "checking for bind in -lsocket... " >&6; }
13580
13629
if test "${ac_cv_lib_socket_bind+set}" = set; then :
13676
13725
do :
13677
13726
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13678
13727
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13679
 
eval as_val=\$$as_ac_var
13680
 
   if test "x$as_val" = x""yes; then :
 
13728
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13681
13729
  cat >>confdefs.h <<_ACEOF
13682
13730
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13683
13731
_ACEOF
13942
13990
  return 0;
13943
13991
}
13944
13992
_ACEOF
13945
 
if ac_fn_c_try_compile "$LINENO"; then :
 
13993
if ac_fn_c_try_link "$LINENO"; then :
13946
13994
  ac_cv_c_mmap_anonymous='MAP_ANONYMOUS'
13947
13995
else
13948
13996
 
13971
14019
 
13972
14020
 
13973
14021
fi
13974
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14022
rm -f core conftest.err conftest.$ac_objext \
 
14023
    conftest$ac_exeext conftest.$ac_ext
13975
14024
 
13976
14025
fi
13977
14026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_mmap_anonymous" >&5
14135
14184
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136
14185
$as_echo "no" >&6; }
14137
14186
fi
14138
 
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
14187
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14139
14188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14140
14189
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14141
14190
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14725
14774
 
14726
14775
 
14727
14776
if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then
14728
 
    as_fn_error "
 
14777
    as_fn_error $? "
14729
14778
 
14730
14779
ERROR!  Check was configured, but not found.  Get it from http://check.sf.net/
14731
14780
" "$LINENO" 5
14741
14790
 
14742
14791
if test "x$enable_coverage" = "xyes"; then
14743
14792
        if test "x$CHECK_LIBS" = "x"; then
14744
 
                as_fn_error "Coverage testing required, but unit tests not enabled!" "$LINENO" 5
 
14793
                as_fn_error $? "Coverage testing required, but unit tests not enabled!" "$LINENO" 5
14745
14794
        fi
14746
14795
        if test "x$ac_compiler_gnu" != "xyes"; then
14747
 
                as_fn_error "coverage testing only works if gcc is used" "$LINENO" 5
 
14796
                as_fn_error $? "coverage testing only works if gcc is used" "$LINENO" 5
14748
14797
        fi
14749
14798
 
14750
14799
        CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
14954
15003
 
14955
15004
if test ! -f "$ZLIB_HOME/include/zlib.h"
14956
15005
then
14957
 
    as_fn_error "Please install zlib and zlib-devel packages" "$LINENO" 5
 
15006
    as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5
14958
15007
else
14959
15008
 
14960
15009
    vuln=`grep "ZLIB_VERSION \"1.2.0" $ZLIB_HOME/include/zlib.h`
14964
15013
 
14965
15014
    if test -n "$vuln"; then
14966
15015
        if test "$zlib_check" = "yes"; then
14967
 
            as_fn_error "The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!" "$LINENO" 5
 
15016
            as_fn_error $? "The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!" "$LINENO" 5
14968
15017
        else
14969
15018
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** This ClamAV installation may be linked against" >&5
14970
15019
$as_echo "$as_me: WARNING: ****** This ClamAV installation may be linked against" >&2;}
15019
15068
if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
15020
15069
  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -L$ZLIB_HOME/lib -lz"
15021
15070
else
15022
 
  as_fn_error "Please install zlib and zlib-devel packages" "$LINENO" 5
 
15071
  as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5
15023
15072
fi
15024
15073
 
15025
15074
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
15066
15115
  LIBS="-lz $LIBS"
15067
15116
 
15068
15117
else
15069
 
  as_fn_error "Your zlib is missing gzopen()" "$LINENO" 5
 
15118
  as_fn_error $? "Your zlib is missing gzopen()" "$LINENO" 5
15070
15119
fi
15071
15120
 
15072
15121
        LDFLAGS="$save_LDFLAGS"
15110
15159
if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
15111
15160
  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz";FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lz"
15112
15161
else
15113
 
  as_fn_error "Please install zlib and zlib-devel packages" "$LINENO" 5
 
15162
  as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5
15114
15163
fi
15115
15164
 
15116
15165
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
15157
15206
  LIBS="-lz $LIBS"
15158
15207
 
15159
15208
else
15160
 
  as_fn_error "Your zlib is missing gzopen()" "$LINENO" 5
 
15209
  as_fn_error $? "Your zlib is missing gzopen()" "$LINENO" 5
15161
15210
fi
15162
15211
 
15163
15212
    fi
15172
15221
fi
15173
15222
 
15174
15223
 
 
15224
bzip_check="ok"
15175
15225
if test "$want_bzip2" = "yes"
15176
15226
then
15177
15227
 
15745
15795
 
15746
15796
#include <string.h>
15747
15797
#include <stdlib.h>
 
15798
#include <stdio.h>
15748
15799
#include <bzlib.h>
15749
15800
 
15750
15801
#ifdef NOBZ2PREFIX
15751
15802
#define BZ2_bzReadOpen bzReadOpen
15752
15803
#define BZ2_bzReadClose bzReadClose
15753
15804
#define BZ2_bzRead bzRead
 
15805
#define BZ2_bzDecompressInit bzDecompressInit
 
15806
#define BZ2_bzDecompress bzDecompress
 
15807
#define BZ2_bzDecompressEnd bzDecompressEnd
15754
15808
#endif
15755
15809
 
15756
15810
const unsigned char poc[] = {
15832
15886
$as_echo "$as_me: WARNING: ****** We strongly suggest you to update to bzip2 1.0.5." >&2;}
15833
15887
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5
15834
15888
$as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;}
 
15889
                bzip_check="bugged (CVE-2008-1372)"
15835
15890
        fi
15836
15891
        if test "$ac_cv_c_cve_2008_1372" = "linkfailed"; then
15837
15892
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Unable to link bzip2 testcase" >&5
15842
15897
$as_echo "$as_me: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&2;}
15843
15898
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5
15844
15899
$as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;}
 
15900
                bzip_check="link failed (CVE-2008-1372)"
15845
15901
        fi
15846
15902
 
15847
15903
        case "$ac_cv_c_cve_2008_1372" in
15848
15904
        ok|bugged|linkfailed)
 
15905
                ;;
 
15906
        *)
 
15907
                HAVE_LIBBZ2=no
 
15908
                ;;
 
15909
        esac
 
15910
    fi
 
15911
 
 
15912
    if test "$HAVE_LIBBZ2" = "yes"; then
 
15913
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CVE-2010-0405" >&5
 
15914
$as_echo_n "checking for CVE-2010-0405... " >&6; }
 
15915
if test "${ac_cv_c_cve_2010_0405+set}" = set; then :
 
15916
  $as_echo_n "(cached) " >&6
 
15917
else
 
15918
 
 
15919
save_LIBS="$LIBS"
 
15920
LIBS="$LIBCLAMAV_LIBS $LIBBZ2"
 
15921
if test "$cross_compiling" = yes; then :
 
15922
  ac_cv_c_cve_2010_0405=ok
 
15923
else
 
15924
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15925
/* end confdefs.h.  */
 
15926
 
 
15927
#include <string.h>
 
15928
#include <stdlib.h>
 
15929
#include <stdio.h>
 
15930
#include <bzlib.h>
 
15931
 
 
15932
#ifdef NOBZ2PREFIX
 
15933
#define BZ2_bzReadOpen bzReadOpen
 
15934
#define BZ2_bzReadClose bzReadClose
 
15935
#define BZ2_bzRead bzRead
 
15936
#define BZ2_bzDecompressInit bzDecompressInit
 
15937
#define BZ2_bzDecompress bzDecompress
 
15938
#define BZ2_bzDecompressEnd bzDecompressEnd
 
15939
#endif
 
15940
 
 
15941
const unsigned char poc[] = {
 
15942
0x42, 0x5a, 0x68, 0x39, 0x31, 0x41, 0x59, 0x26, 0x53, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15943
0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
 
15944
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
 
15945
0xff, 0xff, 0xfe, 0x20, 0x2c, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15946
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15947
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15948
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15949
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15950
0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15951
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15952
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01,
 
15953
0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15954
0x00, 0x00, 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
 
15955
0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 
15956
0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
 
15957
0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01,
 
15958
0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01,
 
15959
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xff
 
15960
};
 
15961
const unsigned int poc_len = 280;
 
15962
 
 
15963
int main (int argc, char **argv) {
 
15964
        bz_stream bz;
 
15965
        char buf[1024];
 
15966
 
 
15967
        memset(&bz, 0, sizeof(bz));
 
15968
        bz.next_in = (char *)&poc;
 
15969
        bz.avail_in = poc_len;
 
15970
        bz.next_out = buf;
 
15971
        bz.avail_out = sizeof(buf);
 
15972
        if(BZ2_bzDecompressInit(&bz, 0, 0)!=BZ_OK)
 
15973
                return 1;
 
15974
 
 
15975
        while((BZ2_bzDecompress(&bz))==BZ_OK) {
 
15976
                bz.next_out = buf;
 
15977
                bz.avail_out = sizeof(buf);
 
15978
        }
 
15979
        BZ2_bzDecompressEnd(&bz);
 
15980
        return 0;
 
15981
}
 
15982
 
 
15983
_ACEOF
 
15984
if ac_fn_c_try_run "$LINENO"; then :
 
15985
  ac_cv_c_cve_2010_0405=ok
 
15986
else
 
15987
 
 
15988
if test $? -gt 127; then
 
15989
        ac_cv_c_cve_2010_0405=bugged
 
15990
else
 
15991
        ac_cv_c_cve_2010_0405=linkfailed
 
15992
fi
 
15993
 
 
15994
fi
 
15995
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15996
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15997
fi
 
15998
 
 
15999
LIBS="$save_LIBS"
 
16000
 
 
16001
fi
 
16002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cve_2010_0405" >&5
 
16003
$as_echo "$ac_cv_c_cve_2010_0405" >&6; }
 
16004
 
 
16005
        if test "$ac_cv_c_cve_2010_0405" = "bugged"; then
 
16006
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** bzip2 libraries are affected by the CVE-2010-0405 bug" >&5
 
16007
$as_echo "$as_me: WARNING: ****** bzip2 libraries are affected by the CVE-2010-0405 bug" >&2;}
 
16008
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** We strongly suggest you to update bzip2" >&5
 
16009
$as_echo "$as_me: WARNING: ****** We strongly suggest you to update bzip2" >&2;}
 
16010
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5
 
16011
$as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;}
 
16012
                bzip_check="bugged (CVE-2010-0405)"
 
16013
        fi
 
16014
        if test "$ac_cv_c_cve_2010_0405" = "linkfailed"; then
 
16015
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Unable to link bzip2 testcase" >&5
 
16016
$as_echo "$as_me: WARNING: ****** Unable to link bzip2 testcase" >&2;}
 
16017
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** You may be affected by CVE-2010-0405 bug, but I need to be able to link a testcase to verify" >&5
 
16018
$as_echo "$as_me: WARNING: ****** You may be affected by CVE-2010-0405 bug, but I need to be able to link a testcase to verify" >&2;}
 
16019
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&5
 
16020
$as_echo "$as_me: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&2;}
 
16021
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5
 
16022
$as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;}
 
16023
                bzip_check="link failed (CVE-2010-0405)"
 
16024
        fi
 
16025
 
 
16026
        case "$ac_cv_c_cve_2010_0405" in
 
16027
        ok|bugged|linkfailed)
15849
16028
                LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBBZ2"
15850
16029
 
15851
16030
$as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
16121
16300
  $as_echo_n "(cached) " >&6
16122
16301
else
16123
16302
  if test "$cross_compiling" = yes; then :
16124
 
  as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
 
16303
  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
16125
16304
else
16126
16305
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127
16306
/* end confdefs.h.  */
16261
16440
 
16262
16441
        ;;
16263
16442
        no) ;;
16264
 
        *) as_fn_error "--with-system-tommath does not take an argument" "$LINENO" 5 ;;
 
16443
        *) as_fn_error $? "--with-system-tommath does not take an argument" "$LINENO" 5  ;;
16265
16444
        esac
16266
16445
 
16267
16446
fi
16282
16461
  withval=$with_iconv;
16283
16462
 case "$withval" in
16284
16463
         yes|no) wiconv="$withval";;
16285
 
         *) as_fn_error "--with-iconv does not take an argument" "$LINENO" 5;;
 
16464
         *) as_fn_error $? "--with-iconv does not take an argument" "$LINENO" 5 ;;
16286
16465
 esac
16287
16466
else
16288
16467
   wiconv=auto
16469
16648
 
16470
16649
$as_echo "#define CL_BCUNSIGNED 1" >>confdefs.h
16471
16650
 
16472
 
else
16473
 
 
16474
 
$as_echo "#define CL_BCUNSIGNED 1" >>confdefs.h
16475
 
 
16476
16651
fi
16477
16652
 
16478
16653
# Check whether --enable-no-cache was given.
16633
16808
    if test "$have_pthreads" = "yes"; then
16634
16809
        THREAD_LIBS="-lpthread"
16635
16810
        TH_SAFE="-thread-safe"
16636
 
 
16637
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16638
 
 
16639
 
 
16640
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16641
 
 
16642
16811
        if test "$want_clamuko" = "yes"; then
16643
16812
 
16644
16813
$as_echo "#define CLAMUKO 1" >>confdefs.h
16653
16822
    if test "$have_pthreads" = "yes"; then
16654
16823
       THREAD_LIBS="-lpthread"
16655
16824
       TH_SAFE="-thread-safe"
16656
 
 
16657
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16658
 
 
16659
 
 
16660
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16661
 
 
16662
16825
       if test "$want_clamuko" = "yes"; then
16663
16826
 
16664
16827
$as_echo "#define CLAMUKO 1" >>confdefs.h
16673
16836
        CLAMD_LIBS="$CLAMD_LIBS -lresolv"
16674
16837
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lresolv"
16675
16838
        TH_SAFE="-thread-safe"
16676
 
 
16677
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16678
 
 
16679
 
 
16680
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16681
 
 
16682
16839
    fi
16683
16840
 
16684
16841
$as_echo "#define C_SOLARIS 1" >>confdefs.h
16688
16845
    if test "$have_pthreads" = "yes"; then
16689
16846
        THREAD_LIBS="-pthread -lc_r"
16690
16847
        TH_SAFE="-thread-safe"
16691
 
 
16692
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16693
 
 
16694
 
 
16695
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16696
 
 
16697
16848
        if test "$want_clamuko" = "yes"; then
16698
16849
 
16699
16850
$as_echo "#define CLAMUKO 1" >>confdefs.h
16708
16859
    if test "$have_pthreads" = "yes"; then
16709
16860
        THREAD_LIBS="-lthr"
16710
16861
        TH_SAFE="-thread-safe"
16711
 
 
16712
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16713
 
 
16714
 
 
16715
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16716
 
 
16717
16862
        if test "$want_clamuko" = "yes"; then
16718
16863
 
16719
16864
$as_echo "#define CLAMUKO 1" >>confdefs.h
16728
16873
    if test "$have_pthreads" = "yes"; then
16729
16874
        THREAD_LIBS="-pthread"
16730
16875
        TH_SAFE="-thread-safe"
16731
 
 
16732
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16733
 
 
16734
 
 
16735
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16736
 
 
16737
16876
        if test "$want_clamuko" = "yes"; then
16738
16877
 
16739
16878
$as_echo "#define CLAMUKO 1" >>confdefs.h
16750
16889
        CLAMD_LIBS="$CLAMD_LIBS -pthread"
16751
16890
        CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread"
16752
16891
        TH_SAFE="-thread-safe"
16753
 
 
16754
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16755
 
 
16756
 
 
16757
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16758
 
 
16759
16892
    fi
16760
16893
 
16761
16894
$as_echo "#define C_BSD 1" >>confdefs.h
16765
16898
    if test "$have_pthreads" = "yes"; then
16766
16899
        THREAD_LIBS="-pthread"
16767
16900
        TH_SAFE="-thread-safe"
16768
 
 
16769
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16770
 
 
16771
 
 
16772
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16773
 
 
16774
16901
    fi
16775
16902
 
16776
16903
$as_echo "#define C_BSD 1" >>confdefs.h
16779
16906
netbsd*)
16780
16907
     if test "$have_pthreads" = "yes"; then
16781
16908
        THREAD_LIBS="-lpthread"
16782
 
 
16783
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16784
 
 
16785
 
 
16786
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16787
 
 
16788
16909
     fi
16789
16910
 
16790
16911
$as_echo "#define C_BSD 1" >>confdefs.h
16825
16946
    if test "$have_pthreads" = "yes"; then
16826
16947
        THREAD_LIBS="-lpthread"
16827
16948
        TH_SAFE="-thread-safe"
16828
 
 
16829
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16830
 
 
16831
 
 
16832
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16833
 
 
16834
16949
    fi
16835
16950
 
16836
16951
$as_echo "#define C_OS2 1" >>confdefs.h
16842
16957
    if test "$have_pthreads" = "yes"; then
16843
16958
        THREAD_LIBS="-lpthread"
16844
16959
        TH_SAFE="-thread-safe"
16845
 
 
16846
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16847
 
 
16848
 
 
16849
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16850
 
 
16851
16960
    fi
16852
16961
 
16853
16962
$as_echo "#define C_HPUX 1" >>confdefs.h
16858
16967
        THREAD_LIBS="-lpthread"
16859
16968
        TH_SAFE="-thread-safe"
16860
16969
 
16861
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16862
 
 
16863
 
 
16864
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16865
 
 
16866
 
 
16867
16970
$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
16868
16971
 
16869
16972
    fi
16876
16979
        THREAD_LIBS="-pthread"
16877
16980
        TH_SAFE="-thread-safe"
16878
16981
 
16879
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16880
 
 
16881
 
 
16882
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16883
 
 
16884
 
 
16885
16982
$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
16886
16983
 
16887
16984
    fi
16890
16987
 
16891
16988
    ;;
16892
16989
nto-qnx*)
16893
 
     if test "$have_pthreads" = "yes"; then
16894
 
 
16895
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16896
 
 
16897
 
 
16898
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16899
 
 
16900
 
     fi
16901
16990
 
16902
16991
$as_echo "#define C_QNX6 1" >>confdefs.h
16903
16992
 
16906
16995
    if test "$have_pthreads" = "yes"; then
16907
16996
        THREAD_LIBS="-lpthread"
16908
16997
        TH_SAFE="-thread-safe"
16909
 
 
16910
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16911
 
 
16912
 
 
16913
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16914
 
 
16915
16998
    fi
16916
16999
    LIBS="$LIBS -lgen"
16917
17000
 
16930
17013
    if test "$have_pthreads" = "yes"; then
16931
17014
        THREAD_LIBS="-lpthread"
16932
17015
        TH_SAFE="-thread-safe"
16933
 
 
16934
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16935
 
 
16936
 
 
16937
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16938
 
 
16939
17016
    fi
16940
17017
    ;;
16941
17018
gnu*)
16945
17022
    if test "$have_pthreads" = "yes"; then
16946
17023
       THREAD_LIBS="-lpthread"
16947
17024
       TH_SAFE="-thread-safe"
16948
 
 
16949
 
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
16950
 
 
16951
 
 
16952
 
$as_echo "#define _REENTRANT 1" >>confdefs.h
16953
 
 
16954
17025
    fi
16955
17026
    ;;
16956
17027
*)
17110
17181
  CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS"
17111
17182
else
17112
17183
 
17113
 
            as_fn_error "Cannot find libmilter" "$LINENO" 5
 
17184
            as_fn_error $? "Cannot find libmilter" "$LINENO" 5
17114
17185
 
17115
17186
fi
17116
17187
 
17128
17199
 have_milter="yes"
17129
17200
else
17130
17201
 
17131
 
        as_fn_error "Please install mfapi.h from the sendmail distribution" "$LINENO" 5
 
17202
        as_fn_error $? "Please install mfapi.h from the sendmail distribution" "$LINENO" 5
17132
17203
 
17133
17204
fi
17134
17205
 
17161
17232
do :
17162
17233
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163
17234
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17164
 
eval as_val=\$$as_ac_var
17165
 
   if test "x$as_val" = x""yes; then :
 
17235
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17166
17236
  cat >>confdefs.h <<_ACEOF
17167
17237
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17168
17238
_ACEOF
17174
17244
 
17175
17245
$as_echo "#define BUILD_CLAMD 1" >>confdefs.h
17176
17246
 
 
17247
 
 
17248
$as_echo "#define CL_THREAD_SAFE 1" >>confdefs.h
 
17249
 
 
17250
 
 
17251
$as_echo "#define _REENTRANT 1" >>confdefs.h
 
17252
 
17177
17253
fi
17178
17254
 
17179
17255
 
17470
17546
    then
17471
17547
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17472
17548
$as_echo "no" >&6; }
17473
 
        as_fn_error "User $clamav_user (and/or group $clamav_group) doesn't exist. Please read the documentation !" "$LINENO" 5
 
17549
        as_fn_error $? "User $clamav_user (and/or group $clamav_group) doesn't exist. Please read the documentation !" "$LINENO" 5
17474
17550
    else
17475
17551
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, user $clamav_user and group $clamav_group" >&5
17476
17552
$as_echo "yes, user $clamav_user and group $clamav_group" >&6; }
17524
17600
                if test "$cross_compiling" = yes; then :
17525
17601
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17526
17602
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17527
 
as_fn_error "cannot run test program while cross compiling
17528
 
See \`config.log' for more details." "$LINENO" 5; }
 
17603
as_fn_error $? "cannot run test program while cross compiling
 
17604
See \`config.log' for more details" "$LINENO" 5 ; }
17529
17605
else
17530
17606
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531
17607
/* end confdefs.h.  */
17563
17639
                        if test "$cross_compiling" = yes; then :
17564
17640
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17565
17641
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17566
 
as_fn_error "cannot run test program while cross compiling
17567
 
See \`config.log' for more details." "$LINENO" 5; }
 
17642
as_fn_error $? "cannot run test program while cross compiling
 
17643
See \`config.log' for more details" "$LINENO" 5 ; }
17568
17644
else
17569
17645
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570
17646
/* end confdefs.h.  */
17625
17701
$as_echo "$have_cv_attrib_aligned" >&6; }
17626
17702
 
17627
17703
if test "$have_cv_attrib_packed" = no -a "$have_cv_pragma_pack" = no -a "$have_cv_pragma_pack_hpux" = no; then
17628
 
        as_fn_error "Need to know how to pack structures with this compiler" "$LINENO" 5
 
17704
        as_fn_error $? "Need to know how to pack structures with this compiler" "$LINENO" 5
17629
17705
fi
17630
17706
 
17631
17707
if test "$have_cv_attrib_packed" = yes; then
17713
17789
$as_echo "$have_cv_struct_pack" >&6; }
17714
17790
 
17715
17791
if test "$have_cv_struct_pack" = "no"; then
17716
 
    as_fn_error "Structure packing seems to be available, but is not working with this compiler" "$LINENO" 5
 
17792
    as_fn_error $? "Structure packing seems to be available, but is not working with this compiler" "$LINENO" 5
17717
17793
fi
17718
17794
 
17719
17795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
17850
17926
do :
17851
17927
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17852
17928
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17853
 
eval as_val=\$$as_ac_var
17854
 
   if test "x$as_val" = x""yes; then :
 
17929
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17855
17930
  cat >>confdefs.h <<_ACEOF
17856
17931
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17857
17932
_ACEOF
19871
19946
fi
19872
19947
 
19873
19948
if test "x$CURSES_LIBS" = "x" -a "$enable_clamdtop" = "yes"; then
19874
 
    as_fn_error "
 
19949
    as_fn_error $? "
19875
19950
 
19876
19951
ERROR!  Clamdtop was configured, but not found.  You need to install libncurses5-dev.
19877
19952
" "$LINENO" 5
19936
20011
 
19937
20012
fi
19938
20013
 
19939
 
ac_config_files="$ac_config_files 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 clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h 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 docs/man/clamdtop.1"
 
20014
# Check whether --enable-sha-collector-for-internal-use was given.
 
20015
if test "${enable_sha_collector_for_internal_use+set}" = set; then :
 
20016
  enableval=$enable_sha_collector_for_internal_use; enable_sha_collector="yes"
 
20017
else
 
20018
  enable_sha_collector="no"
 
20019
fi
 
20020
 
 
20021
if test "$enable_sha_collector" != "no"; then
 
20022
 
 
20023
$as_echo "#define HAVE__INTERNAL__SHA_COLLECT 1" >>confdefs.h
 
20024
 
 
20025
fi
 
20026
 if test "$enable_sha_collector" != "no"; then
 
20027
  BUILD_SHA1_TRUE=
 
20028
  BUILD_SHA1_FALSE='#'
 
20029
else
 
20030
  BUILD_SHA1_TRUE='#'
 
20031
  BUILD_SHA1_FALSE=
 
20032
fi
 
20033
 
 
20034
 
 
20035
ac_config_files="$ac_config_files 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 clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h docs/man/clamav-milter.8 docs/man/clamav-milter.conf.5 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 docs/man/clamdtop.1"
19940
20036
 
19941
20037
cat >confcache <<\_ACEOF
19942
20038
# This file is a shell script that caches the results of configure
20021
20117
 
20022
20118
ac_libobjs=
20023
20119
ac_ltlibobjs=
 
20120
U=
20024
20121
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20025
20122
  # 1. Remove the extension, and $U if already installed.
20026
20123
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20044
20141
fi
20045
20142
 
20046
20143
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20047
 
  as_fn_error "conditional \"AMDEP\" was never defined.
 
20144
  as_fn_error $? "conditional \"AMDEP\" was never defined.
20048
20145
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20049
20146
fi
20050
20147
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20051
 
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
20148
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20052
20149
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20053
20150
fi
20054
20151
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20055
 
  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
 
20152
  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
20056
20153
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20057
20154
fi
20058
20155
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20059
 
  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
 
20156
  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
20060
20157
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20061
20158
fi
20062
20159
LT_CONFIG_H=clamav-config.h
20078
20175
 
20079
20176
 
20080
20177
if test -z "${VERSIONSCRIPT_TRUE}" && test -z "${VERSIONSCRIPT_FALSE}"; then
20081
 
  as_fn_error "conditional \"VERSIONSCRIPT\" was never defined.
 
20178
  as_fn_error $? "conditional \"VERSIONSCRIPT\" was never defined.
20082
20179
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20083
20180
fi
20084
20181
if test -z "${HAVE_LIBCHECK_TRUE}" && test -z "${HAVE_LIBCHECK_FALSE}"; then
20085
 
  as_fn_error "conditional \"HAVE_LIBCHECK\" was never defined.
 
20182
  as_fn_error $? "conditional \"HAVE_LIBCHECK\" was never defined.
20086
20183
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20087
20184
fi
20088
20185
if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
20089
 
  as_fn_error "conditional \"ENABLE_COVERAGE\" was never defined.
 
20186
  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
20090
20187
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20091
20188
fi
20092
20189
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20093
 
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
 
20190
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20094
20191
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20095
20192
fi
20096
20193
if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then
20097
 
  as_fn_error "conditional \"ENABLE_UNRAR\" was never defined.
 
20194
  as_fn_error $? "conditional \"ENABLE_UNRAR\" was never defined.
20098
20195
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20099
20196
fi
20100
20197
if test -z "${LINK_TOMMATH_TRUE}" && test -z "${LINK_TOMMATH_FALSE}"; then
20101
 
  as_fn_error "conditional \"LINK_TOMMATH\" was never defined.
 
20198
  as_fn_error $? "conditional \"LINK_TOMMATH\" was never defined.
20102
20199
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20103
20200
fi
20104
20201
if test -z "${BUILD_CLAMD_TRUE}" && test -z "${BUILD_CLAMD_FALSE}"; then
20105
 
  as_fn_error "conditional \"BUILD_CLAMD\" was never defined.
 
20202
  as_fn_error $? "conditional \"BUILD_CLAMD\" was never defined.
20106
20203
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20107
20204
fi
20108
20205
if test -z "${HAVE_MILTER_TRUE}" && test -z "${HAVE_MILTER_FALSE}"; then
20109
 
  as_fn_error "conditional \"HAVE_MILTER\" was never defined.
 
20206
  as_fn_error $? "conditional \"HAVE_MILTER\" was never defined.
20110
20207
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20111
20208
fi
20112
20209
if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
20113
 
  as_fn_error "conditional \"HAVE_CURSES\" was never defined.
 
20210
  as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
 
20211
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
20212
fi
 
20213
if test -z "${BUILD_SHA1_TRUE}" && test -z "${BUILD_SHA1_FALSE}"; then
 
20214
  as_fn_error $? "conditional \"BUILD_SHA1\" was never defined.
20114
20215
Usually this means the macro was only invoked conditionally." "$LINENO" 5
20115
20216
fi
20116
20217
 
20260
20361
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20261
20362
 
20262
20363
 
20263
 
# as_fn_error ERROR [LINENO LOG_FD]
20264
 
# ---------------------------------
 
20364
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
20365
# ----------------------------------------
20265
20366
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20266
20367
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20267
 
# script with status $?, using 1 if that was 0.
 
20368
# script with STATUS, using 1 if that was 0.
20268
20369
as_fn_error ()
20269
20370
{
20270
 
  as_status=$?; test $as_status -eq 0 && as_status=1
20271
 
  if test "$3"; then
20272
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20273
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
20371
  as_status=$1; test $as_status -eq 0 && as_status=1
 
20372
  if test "$4"; then
 
20373
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
20374
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20274
20375
  fi
20275
 
  $as_echo "$as_me: error: $1" >&2
 
20376
  $as_echo "$as_me: error: $2" >&2
20276
20377
  as_fn_exit $as_status
20277
20378
} # as_fn_error
20278
20379
 
20468
20569
      test -d "$as_dir" && break
20469
20570
    done
20470
20571
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20471
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
20572
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20472
20573
 
20473
20574
 
20474
20575
} # as_fn_mkdir_p
20521
20622
# report actual input values of CONFIG_FILES etc. instead of their
20522
20623
# values after options handling.
20523
20624
ac_log="
20524
 
This file was extended by ClamAV $as_me 0.96, which was
20525
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
20625
This file was extended by ClamAV $as_me 0.96.3, which was
 
20626
generated by GNU Autoconf 2.67.  Invocation command line was
20526
20627
 
20527
20628
  CONFIG_FILES    = $CONFIG_FILES
20528
20629
  CONFIG_HEADERS  = $CONFIG_HEADERS
20588
20689
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20589
20690
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20590
20691
ac_cs_version="\\
20591
 
ClamAV config.status 0.96
20592
 
configured by $0, generated by GNU Autoconf 2.65,
 
20692
ClamAV config.status 0.96.3
 
20693
configured by $0, generated by GNU Autoconf 2.67,
20593
20694
  with options \\"\$ac_cs_config\\"
20594
20695
 
20595
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
20696
Copyright (C) 2010 Free Software Foundation, Inc.
20596
20697
This config.status script is free software; the Free Software Foundation
20597
20698
gives unlimited permission to copy, distribute and modify it."
20598
20699
 
20610
20711
while test $# != 0
20611
20712
do
20612
20713
  case $1 in
20613
 
  --*=*)
 
20714
  --*=?*)
20614
20715
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20615
20716
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20616
20717
    ac_shift=:
20617
20718
    ;;
 
20719
  --*=)
 
20720
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
20721
    ac_optarg=
 
20722
    ac_shift=:
 
20723
    ;;
20618
20724
  *)
20619
20725
    ac_option=$1
20620
20726
    ac_optarg=$2
20636
20742
    $ac_shift
20637
20743
    case $ac_optarg in
20638
20744
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
20745
    '') as_fn_error $? "missing file argument" ;;
20639
20746
    esac
20640
20747
    as_fn_append CONFIG_FILES " '$ac_optarg'"
20641
20748
    ac_need_defaults=false;;
20648
20755
    ac_need_defaults=false;;
20649
20756
  --he | --h)
20650
20757
    # Conflict between --help and --header
20651
 
    as_fn_error "ambiguous option: \`$1'
 
20758
    as_fn_error $? "ambiguous option: \`$1'
20652
20759
Try \`$0 --help' for more information.";;
20653
20760
  --help | --hel | -h )
20654
20761
    $as_echo "$ac_cs_usage"; exit ;;
20657
20764
    ac_cs_silent=: ;;
20658
20765
 
20659
20766
  # This is an error.
20660
 
  -*) as_fn_error "unrecognized option: \`$1'
 
20767
  -*) as_fn_error $? "unrecognized option: \`$1'
20661
20768
Try \`$0 --help' for more information." ;;
20662
20769
 
20663
20770
  *) as_fn_append ac_config_targets " $1"
20989
21096
    "libclamav.pc") CONFIG_FILES="$CONFIG_FILES libclamav.pc" ;;
20990
21097
    "platform.h") CONFIG_FILES="$CONFIG_FILES platform.h" ;;
20991
21098
    "docs/man/clamav-milter.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamav-milter.8" ;;
 
21099
    "docs/man/clamav-milter.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/clamav-milter.conf.5" ;;
20992
21100
    "docs/man/clamconf.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamconf.1" ;;
20993
21101
    "docs/man/clamd.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamd.8" ;;
20994
21102
    "docs/man/clamd.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/clamd.conf.5" ;;
20999
21107
    "docs/man/sigtool.1") CONFIG_FILES="$CONFIG_FILES docs/man/sigtool.1" ;;
21000
21108
    "docs/man/clamdtop.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamdtop.1" ;;
21001
21109
 
21002
 
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
21110
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
21003
21111
  esac
21004
21112
done
21005
21113
 
21037
21145
{
21038
21146
  tmp=./conf$$-$RANDOM
21039
21147
  (umask 077 && mkdir "$tmp")
21040
 
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
21148
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21041
21149
 
21042
21150
# Set up the scripts for CONFIG_FILES section.
21043
21151
# No need to generate them if there are no CONFIG_FILES.
21054
21162
fi
21055
21163
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21056
21164
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21057
 
  ac_cs_awk_cr='\r'
 
21165
  ac_cs_awk_cr='\\r'
21058
21166
else
21059
21167
  ac_cs_awk_cr=$ac_cr
21060
21168
fi
21068
21176
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21069
21177
  echo "_ACEOF"
21070
21178
} >conf$$subs.sh ||
21071
 
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21072
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
21179
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
21180
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21073
21181
ac_delim='%!_!# '
21074
21182
for ac_last_try in false false false false false :; do
21075
21183
  . ./conf$$subs.sh ||
21076
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
21184
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21077
21185
 
21078
21186
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21079
21187
  if test $ac_delim_n = $ac_delim_num; then
21080
21188
    break
21081
21189
  elif $ac_last_try; then
21082
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
21190
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21083
21191
  else
21084
21192
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21085
21193
  fi
21168
21276
else
21169
21277
  cat
21170
21278
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21171
 
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
21279
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21172
21280
_ACEOF
21173
21281
 
21174
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21175
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21282
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
21283
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21176
21284
# trailing colons and then remove the whole line if VPATH becomes empty
21177
21285
# (actually we leave an empty line to preserve line numbers).
21178
21286
if test "x$srcdir" = x.; then
21179
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
21180
 
s/:*\$(srcdir):*/:/
21181
 
s/:*\${srcdir}:*/:/
21182
 
s/:*@srcdir@:*/:/
21183
 
s/^\([^=]*=[     ]*\):*/\1/
 
21287
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
21288
h
 
21289
s///
 
21290
s/^/:/
 
21291
s/[      ]*$/:/
 
21292
s/:\$(srcdir):/:/g
 
21293
s/:\${srcdir}:/:/g
 
21294
s/:@srcdir@:/:/g
 
21295
s/^:*//
21184
21296
s/:*$//
 
21297
x
 
21298
s/\(=[   ]*\).*/\1/
 
21299
G
 
21300
s/\n//
21185
21301
s/^[^=]*=[       ]*$//
21186
21302
}'
21187
21303
fi
21209
21325
  if test -z "$ac_t"; then
21210
21326
    break
21211
21327
  elif $ac_last_try; then
21212
 
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
21328
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21213
21329
  else
21214
21330
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21215
21331
  fi
21294
21410
_ACAWK
21295
21411
_ACEOF
21296
21412
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21297
 
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
21413
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21298
21414
fi # test -n "$CONFIG_HEADERS"
21299
21415
 
21300
21416
 
21307
21423
  esac
21308
21424
  case $ac_mode$ac_tag in
21309
21425
  :[FHL]*:*);;
21310
 
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
21426
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
21311
21427
  :[FH]-) ac_tag=-:-;;
21312
21428
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21313
21429
  esac
21335
21451
           [\\/$]*) false;;
21336
21452
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21337
21453
           esac ||
21338
 
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
21454
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
21339
21455
      esac
21340
21456
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21341
21457
      as_fn_append ac_file_inputs " '$ac_f'"
21362
21478
 
21363
21479
    case $ac_tag in
21364
21480
    *:-:* | *:-) cat >"$tmp/stdin" \
21365
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
21481
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
21366
21482
    esac
21367
21483
    ;;
21368
21484
  esac
21499
21615
$ac_datarootdir_hack
21500
21616
"
21501
21617
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21502
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
21618
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21503
21619
 
21504
21620
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21505
21621
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21506
21622
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21507
21623
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21508
 
which seems to be undefined.  Please make sure it is defined." >&5
 
21624
which seems to be undefined.  Please make sure it is defined" >&5
21509
21625
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21510
 
which seems to be undefined.  Please make sure it is defined." >&2;}
 
21626
which seems to be undefined.  Please make sure it is defined" >&2;}
21511
21627
 
21512
21628
  rm -f "$tmp/stdin"
21513
21629
  case $ac_file in
21514
21630
  -) cat "$tmp/out" && rm -f "$tmp/out";;
21515
21631
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21516
21632
  esac \
21517
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
21633
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21518
21634
 ;;
21519
21635
  :H)
21520
21636
  #
21525
21641
      $as_echo "/* $configure_input  */" \
21526
21642
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21527
21643
    } >"$tmp/config.h" \
21528
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
21644
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21529
21645
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21530
21646
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21531
21647
$as_echo "$as_me: $ac_file is unchanged" >&6;}
21532
21648
    else
21533
21649
      rm -f "$ac_file"
21534
21650
      mv "$tmp/config.h" "$ac_file" \
21535
 
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
21651
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21536
21652
    fi
21537
21653
  else
21538
21654
    $as_echo "/* $configure_input  */" \
21539
21655
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21540
 
      || as_fn_error "could not create -" "$LINENO" 5
 
21656
      || as_fn_error $? "could not create -" "$LINENO" 5
21541
21657
  fi
21542
21658
# Compute "$ac_file"'s index in $config_headers.
21543
21659
_am_arg="$ac_file"
22322
22438
ac_clean_files=$ac_clean_files_save
22323
22439
 
22324
22440
test $ac_write_fail = 0 ||
22325
 
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
22441
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22326
22442
 
22327
22443
 
22328
22444
# configure is writing to config.log, and then calls config.status.
22343
22459
  exec 5>>config.log
22344
22460
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22345
22461
  # would make configure fail if this is the last instruction.
22346
 
  $ac_cs_success || as_fn_exit $?
 
22462
  $ac_cs_success || as_fn_exit 1
22347
22463
fi
22348
22464
 
22349
22465
 
22500
22616
 
22501
22617
 
22502
22618
if test "$enable_llvm" = "yes" && test "$subdirfailed" != "no"; then
22503
 
    as_fn_error "Failed to configure LLVM, and LLVM was explicitly requested" "$LINENO" 5
 
22619
    as_fn_error $? "Failed to configure LLVM, and LLVM was explicitly requested" "$LINENO" 5
22504
22620
fi
22505
22621
 if test "$subdirfailed" != "yes" && test "$enable_llvm" != "no"; then
22506
22622
  ENABLE_LLVM_TRUE=
22596
22712
 
22597
22713
ac_libobjs=
22598
22714
ac_ltlibobjs=
 
22715
U=
22599
22716
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22600
22717
  # 1. Remove the extension, and $U if already installed.
22601
22718
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22619
22736
fi
22620
22737
 
22621
22738
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22622
 
  as_fn_error "conditional \"AMDEP\" was never defined.
 
22739
  as_fn_error $? "conditional \"AMDEP\" was never defined.
22623
22740
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22624
22741
fi
22625
22742
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22626
 
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
22743
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22627
22744
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22628
22745
fi
22629
22746
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22630
 
  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
 
22747
  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
22631
22748
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22632
22749
fi
22633
22750
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22634
 
  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
 
22751
  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
22635
22752
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22636
22753
fi
22637
22754
LT_CONFIG_H=clamav-config.h
22653
22770
 
22654
22771
 
22655
22772
if test -z "${VERSIONSCRIPT_TRUE}" && test -z "${VERSIONSCRIPT_FALSE}"; then
22656
 
  as_fn_error "conditional \"VERSIONSCRIPT\" was never defined.
 
22773
  as_fn_error $? "conditional \"VERSIONSCRIPT\" was never defined.
22657
22774
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22658
22775
fi
22659
22776
if test -z "${HAVE_LIBCHECK_TRUE}" && test -z "${HAVE_LIBCHECK_FALSE}"; then
22660
 
  as_fn_error "conditional \"HAVE_LIBCHECK\" was never defined.
 
22777
  as_fn_error $? "conditional \"HAVE_LIBCHECK\" was never defined.
22661
22778
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22662
22779
fi
22663
22780
if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
22664
 
  as_fn_error "conditional \"ENABLE_COVERAGE\" was never defined.
 
22781
  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
22665
22782
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22666
22783
fi
22667
22784
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22668
 
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
 
22785
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22669
22786
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22670
22787
fi
22671
22788
if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then
22672
 
  as_fn_error "conditional \"ENABLE_UNRAR\" was never defined.
 
22789
  as_fn_error $? "conditional \"ENABLE_UNRAR\" was never defined.
22673
22790
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22674
22791
fi
22675
22792
if test -z "${LINK_TOMMATH_TRUE}" && test -z "${LINK_TOMMATH_FALSE}"; then
22676
 
  as_fn_error "conditional \"LINK_TOMMATH\" was never defined.
 
22793
  as_fn_error $? "conditional \"LINK_TOMMATH\" was never defined.
22677
22794
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22678
22795
fi
22679
22796
if test -z "${BUILD_CLAMD_TRUE}" && test -z "${BUILD_CLAMD_FALSE}"; then
22680
 
  as_fn_error "conditional \"BUILD_CLAMD\" was never defined.
 
22797
  as_fn_error $? "conditional \"BUILD_CLAMD\" was never defined.
22681
22798
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22682
22799
fi
22683
22800
if test -z "${HAVE_MILTER_TRUE}" && test -z "${HAVE_MILTER_FALSE}"; then
22684
 
  as_fn_error "conditional \"HAVE_MILTER\" was never defined.
 
22801
  as_fn_error $? "conditional \"HAVE_MILTER\" was never defined.
22685
22802
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22686
22803
fi
22687
22804
if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
22688
 
  as_fn_error "conditional \"HAVE_CURSES\" was never defined.
 
22805
  as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
 
22806
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22807
fi
 
22808
if test -z "${BUILD_SHA1_TRUE}" && test -z "${BUILD_SHA1_FALSE}"; then
 
22809
  as_fn_error $? "conditional \"BUILD_SHA1\" was never defined.
22689
22810
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22690
22811
fi
22691
22812
if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
22692
 
  as_fn_error "conditional \"am__EXEEXT\" was never defined.
 
22813
  as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
22693
22814
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22694
22815
fi
22695
22816
if test -z "${ENABLE_LLVM_TRUE}" && test -z "${ENABLE_LLVM_FALSE}"; then
22696
 
  as_fn_error "conditional \"ENABLE_LLVM\" was never defined.
 
22817
  as_fn_error $? "conditional \"ENABLE_LLVM\" was never defined.
22697
22818
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22698
22819
fi
22699
22820
 
22843
22964
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22844
22965
 
22845
22966
 
22846
 
# as_fn_error ERROR [LINENO LOG_FD]
22847
 
# ---------------------------------
 
22967
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
22968
# ----------------------------------------
22848
22969
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22849
22970
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22850
 
# script with status $?, using 1 if that was 0.
 
22971
# script with STATUS, using 1 if that was 0.
22851
22972
as_fn_error ()
22852
22973
{
22853
 
  as_status=$?; test $as_status -eq 0 && as_status=1
22854
 
  if test "$3"; then
22855
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22856
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
22974
  as_status=$1; test $as_status -eq 0 && as_status=1
 
22975
  if test "$4"; then
 
22976
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
22977
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22857
22978
  fi
22858
 
  $as_echo "$as_me: error: $1" >&2
 
22979
  $as_echo "$as_me: error: $2" >&2
22859
22980
  as_fn_exit $as_status
22860
22981
} # as_fn_error
22861
22982
 
23051
23172
      test -d "$as_dir" && break
23052
23173
    done
23053
23174
    test -z "$as_dirs" || eval "mkdir $as_dirs"
23054
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
23175
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23055
23176
 
23056
23177
 
23057
23178
} # as_fn_mkdir_p
23104
23225
# report actual input values of CONFIG_FILES etc. instead of their
23105
23226
# values after options handling.
23106
23227
ac_log="
23107
 
This file was extended by ClamAV $as_me 0.96, which was
23108
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
23228
This file was extended by ClamAV $as_me 0.96.3, which was
 
23229
generated by GNU Autoconf 2.67.  Invocation command line was
23109
23230
 
23110
23231
  CONFIG_FILES    = $CONFIG_FILES
23111
23232
  CONFIG_HEADERS  = $CONFIG_HEADERS
23171
23292
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23172
23293
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23173
23294
ac_cs_version="\\
23174
 
ClamAV config.status 0.96
23175
 
configured by $0, generated by GNU Autoconf 2.65,
 
23295
ClamAV config.status 0.96.3
 
23296
configured by $0, generated by GNU Autoconf 2.67,
23176
23297
  with options \\"\$ac_cs_config\\"
23177
23298
 
23178
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
23299
Copyright (C) 2010 Free Software Foundation, Inc.
23179
23300
This config.status script is free software; the Free Software Foundation
23180
23301
gives unlimited permission to copy, distribute and modify it."
23181
23302
 
23193
23314
while test $# != 0
23194
23315
do
23195
23316
  case $1 in
23196
 
  --*=*)
 
23317
  --*=?*)
23197
23318
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23198
23319
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23199
23320
    ac_shift=:
23200
23321
    ;;
 
23322
  --*=)
 
23323
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
23324
    ac_optarg=
 
23325
    ac_shift=:
 
23326
    ;;
23201
23327
  *)
23202
23328
    ac_option=$1
23203
23329
    ac_optarg=$2
23219
23345
    $ac_shift
23220
23346
    case $ac_optarg in
23221
23347
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
23348
    '') as_fn_error $? "missing file argument" ;;
23222
23349
    esac
23223
23350
    as_fn_append CONFIG_FILES " '$ac_optarg'"
23224
23351
    ac_need_defaults=false;;
23231
23358
    ac_need_defaults=false;;
23232
23359
  --he | --h)
23233
23360
    # Conflict between --help and --header
23234
 
    as_fn_error "ambiguous option: \`$1'
 
23361
    as_fn_error $? "ambiguous option: \`$1'
23235
23362
Try \`$0 --help' for more information.";;
23236
23363
  --help | --hel | -h )
23237
23364
    $as_echo "$ac_cs_usage"; exit ;;
23240
23367
    ac_cs_silent=: ;;
23241
23368
 
23242
23369
  # This is an error.
23243
 
  -*) as_fn_error "unrecognized option: \`$1'
 
23370
  -*) as_fn_error $? "unrecognized option: \`$1'
23244
23371
Try \`$0 --help' for more information." ;;
23245
23372
 
23246
23373
  *) as_fn_append ac_config_targets " $1"
23573
23700
    "libclamav.pc") CONFIG_FILES="$CONFIG_FILES libclamav.pc" ;;
23574
23701
    "platform.h") CONFIG_FILES="$CONFIG_FILES platform.h" ;;
23575
23702
    "docs/man/clamav-milter.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamav-milter.8" ;;
 
23703
    "docs/man/clamav-milter.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/clamav-milter.conf.5" ;;
23576
23704
    "docs/man/clamconf.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamconf.1" ;;
23577
23705
    "docs/man/clamd.8") CONFIG_FILES="$CONFIG_FILES docs/man/clamd.8" ;;
23578
23706
    "docs/man/clamd.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/clamd.conf.5" ;;
23584
23712
    "docs/man/clamdtop.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamdtop.1" ;;
23585
23713
    "libclamav/Makefile") CONFIG_FILES="$CONFIG_FILES libclamav/Makefile" ;;
23586
23714
 
23587
 
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
23715
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
23588
23716
  esac
23589
23717
done
23590
23718
 
23622
23750
{
23623
23751
  tmp=./conf$$-$RANDOM
23624
23752
  (umask 077 && mkdir "$tmp")
23625
 
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
23753
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23626
23754
 
23627
23755
# Set up the scripts for CONFIG_FILES section.
23628
23756
# No need to generate them if there are no CONFIG_FILES.
23639
23767
fi
23640
23768
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23641
23769
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23642
 
  ac_cs_awk_cr='\r'
 
23770
  ac_cs_awk_cr='\\r'
23643
23771
else
23644
23772
  ac_cs_awk_cr=$ac_cr
23645
23773
fi
23653
23781
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23654
23782
  echo "_ACEOF"
23655
23783
} >conf$$subs.sh ||
23656
 
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23657
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
23784
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
23785
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23658
23786
ac_delim='%!_!# '
23659
23787
for ac_last_try in false false false false false :; do
23660
23788
  . ./conf$$subs.sh ||
23661
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
23789
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23662
23790
 
23663
23791
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23664
23792
  if test $ac_delim_n = $ac_delim_num; then
23665
23793
    break
23666
23794
  elif $ac_last_try; then
23667
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
23795
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23668
23796
  else
23669
23797
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23670
23798
  fi
23753
23881
else
23754
23882
  cat
23755
23883
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23756
 
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
23884
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23757
23885
_ACEOF
23758
23886
 
23759
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23760
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
23887
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
23888
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23761
23889
# trailing colons and then remove the whole line if VPATH becomes empty
23762
23890
# (actually we leave an empty line to preserve line numbers).
23763
23891
if test "x$srcdir" = x.; then
23764
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
23765
 
s/:*\$(srcdir):*/:/
23766
 
s/:*\${srcdir}:*/:/
23767
 
s/:*@srcdir@:*/:/
23768
 
s/^\([^=]*=[     ]*\):*/\1/
 
23892
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
23893
h
 
23894
s///
 
23895
s/^/:/
 
23896
s/[      ]*$/:/
 
23897
s/:\$(srcdir):/:/g
 
23898
s/:\${srcdir}:/:/g
 
23899
s/:@srcdir@:/:/g
 
23900
s/^:*//
23769
23901
s/:*$//
 
23902
x
 
23903
s/\(=[   ]*\).*/\1/
 
23904
G
 
23905
s/\n//
23770
23906
s/^[^=]*=[       ]*$//
23771
23907
}'
23772
23908
fi
23794
23930
  if test -z "$ac_t"; then
23795
23931
    break
23796
23932
  elif $ac_last_try; then
23797
 
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
23933
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23798
23934
  else
23799
23935
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23800
23936
  fi
23879
24015
_ACAWK
23880
24016
_ACEOF
23881
24017
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23882
 
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
24018
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23883
24019
fi # test -n "$CONFIG_HEADERS"
23884
24020
 
23885
24021
 
23892
24028
  esac
23893
24029
  case $ac_mode$ac_tag in
23894
24030
  :[FHL]*:*);;
23895
 
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
24031
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
23896
24032
  :[FH]-) ac_tag=-:-;;
23897
24033
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23898
24034
  esac
23920
24056
           [\\/$]*) false;;
23921
24057
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23922
24058
           esac ||
23923
 
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
24059
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
23924
24060
      esac
23925
24061
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23926
24062
      as_fn_append ac_file_inputs " '$ac_f'"
23947
24083
 
23948
24084
    case $ac_tag in
23949
24085
    *:-:* | *:-) cat >"$tmp/stdin" \
23950
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
24086
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
23951
24087
    esac
23952
24088
    ;;
23953
24089
  esac
24084
24220
$ac_datarootdir_hack
24085
24221
"
24086
24222
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24087
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
24223
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24088
24224
 
24089
24225
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24090
24226
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24091
24227
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24092
24228
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24093
 
which seems to be undefined.  Please make sure it is defined." >&5
 
24229
which seems to be undefined.  Please make sure it is defined" >&5
24094
24230
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24095
 
which seems to be undefined.  Please make sure it is defined." >&2;}
 
24231
which seems to be undefined.  Please make sure it is defined" >&2;}
24096
24232
 
24097
24233
  rm -f "$tmp/stdin"
24098
24234
  case $ac_file in
24099
24235
  -) cat "$tmp/out" && rm -f "$tmp/out";;
24100
24236
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24101
24237
  esac \
24102
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
24238
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24103
24239
 ;;
24104
24240
  :H)
24105
24241
  #
24110
24246
      $as_echo "/* $configure_input  */" \
24111
24247
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24112
24248
    } >"$tmp/config.h" \
24113
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
24249
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24114
24250
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24115
24251
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24116
24252
$as_echo "$as_me: $ac_file is unchanged" >&6;}
24117
24253
    else
24118
24254
      rm -f "$ac_file"
24119
24255
      mv "$tmp/config.h" "$ac_file" \
24120
 
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
24256
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24121
24257
    fi
24122
24258
  else
24123
24259
    $as_echo "/* $configure_input  */" \
24124
24260
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24125
 
      || as_fn_error "could not create -" "$LINENO" 5
 
24261
      || as_fn_error $? "could not create -" "$LINENO" 5
24126
24262
  fi
24127
24263
# Compute "$ac_file"'s index in $config_headers.
24128
24264
_am_arg="$ac_file"
24907
25043
ac_clean_files=$ac_clean_files_save
24908
25044
 
24909
25045
test $ac_write_fail = 0 ||
24910
 
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
25046
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24911
25047
 
24912
25048
 
24913
25049
# configure is writing to config.log, and then calls config.status.
24928
25064
  exec 5>>config.log
24929
25065
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24930
25066
  # would make configure fail if this is the last instruction.
24931
 
  $ac_cs_success || as_fn_exit $?
 
25067
  $ac_cs_success || as_fn_exit 1
24932
25068
fi
24933
25069
 
24934
25070
 
25279
25415
 
25280
25416
   $as_echo_n "              bzip2       : "
25281
25417
   if test "x$want_bzip2" = "xno"; then :
25282
 
  $as_echo "$ac_cv_c_cve_2008_1372 (disabled)"
 
25418
  $as_echo "$bzip_check (disabled)"
25283
25419
elif test "x$want_bzip2" = "xyes"; then :
25284
 
  $as_echo "$ac_cv_c_cve_2008_1372"
 
25420
  $as_echo "$bzip_check"
25285
25421
elif test "x$want_bzip2" = "x"; then :
25286
 
  $as_echo "$ac_cv_c_cve_2008_1372"
 
25422
  $as_echo "$bzip_check"
25287
25423
else
25288
 
  $as_echo "$ac_cv_c_cve_2008_1372 ($want_bzip2)"
 
25424
  $as_echo "$bzip_check ($want_bzip2)"
25289
25425
fi
25290
25426
 
25291
25427
 
25331
25467
" >&2;}
25332
25468
fi
25333
25469
 
25334
 
if test "x$cross_compiling" != "xno" || test "x$gcc_check" != "xyes" || test "x$zlib_check" = "xno" ; then
 
25470
if test "x$cross_compiling" != "xno" || test "x$gcc_check" != "xyes" || test "x$zlib_check" = "xno" || test "x$bzip_check" != "xok" ; then
25335
25471
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25336
25472
****** WARNING:
25337
 
****** You are either cross compiling to a different host or
25338
 
****** you have manually disabled important configure checks.
 
25473
****** You are cross compiling to a different host or you are
 
25474
****** linking to bugged system libraries or you have manually
 
25475
****** disabled important configure checks.
25339
25476
****** Please be aware that this build may be badly broken.
25340
25477
****** DO NOT REPORT BUGS BASED ON THIS BUILD !!!
25341
25478
" >&5
25342
25479
$as_echo "$as_me: WARNING:
25343
25480
****** WARNING:
25344
 
****** You are either cross compiling to a different host or
25345
 
****** you have manually disabled important configure checks.
 
25481
****** You are cross compiling to a different host or you are
 
25482
****** linking to bugged system libraries or you have manually
 
25483
****** disabled important configure checks.
25346
25484
****** Please be aware that this build may be badly broken.
25347
25485
****** DO NOT REPORT BUGS BASED ON THIS BUILD !!!
25348
25486
" >&2;}