Browse code

bb#2230-2231

aCaB authored on 2010/09/20 21:20:04
Showing 5 changed files
... ...
@@ -1,3 +1,8 @@
1
+Mon Sep 20 14:16:59 CEST 2010 (acab)
2
+------------------------------------
3
+ * libclamav/nsis/bzlib.cld sys: port upstream fixes for CVE-2010-0405,
4
+				 check for buggy bzip2 (bb#2230, bb#2231)
5
+
1 6
 Mon Sep 20 14:50:34 EEST 2010 (edwin)
2 7
 -------------------------------------
3 8
  * libclamav/pdf.c: Add missing boundscheck to pdf code (bb #2226)
... ...
@@ -1,13 +1,13 @@
1 1
 #! /bin/sh
2 2
 # Guess values for system-dependent variables and create Makefiles.
3
-# Generated by GNU Autoconf 2.65 for ClamAV devel.
3
+# Generated by GNU Autoconf 2.67 for ClamAV devel.
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,7 +319,7 @@ $as_echo X"$as_dir" |
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,19 +359,19 @@ else
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,7 +684,7 @@ test -n "$DJDIR" || exec 7<&0 </dev/null
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
 
... ...
@@ -1061,8 +1061,9 @@ do
1061 1061
   fi
1062 1062
 
1063 1063
   case $ac_option in
1064
-  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1065
-  *)	ac_optarg=yes ;;
1064
+  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1065
+  *=)   ac_optarg= ;;
1066
+  *)    ac_optarg=yes ;;
1066 1067
   esac
1067 1068
 
1068 1069
   # Accept the important Cygnus configure options, so we can diagnose typos.
... ...
@@ -1107,7 +1108,7 @@ do
1107 1107
     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108 1108
     # Reject names that are not valid shell variable names.
1109 1109
     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110
-      as_fn_error "invalid feature name: $ac_useropt"
1110
+      as_fn_error $? "invalid feature name: $ac_useropt"
1111 1111
     ac_useropt_orig=$ac_useropt
1112 1112
     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 1113
     case $ac_user_opts in
... ...
@@ -1133,7 +1134,7 @@ do
1133 1133
     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134 1134
     # Reject names that are not valid shell variable names.
1135 1135
     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136
-      as_fn_error "invalid feature name: $ac_useropt"
1136
+      as_fn_error $? "invalid feature name: $ac_useropt"
1137 1137
     ac_useropt_orig=$ac_useropt
1138 1138
     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 1139
     case $ac_user_opts in
... ...
@@ -1337,7 +1338,7 @@ do
1337 1337
     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338 1338
     # Reject names that are not valid shell variable names.
1339 1339
     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340
-      as_fn_error "invalid package name: $ac_useropt"
1340
+      as_fn_error $? "invalid package name: $ac_useropt"
1341 1341
     ac_useropt_orig=$ac_useropt
1342 1342
     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 1343
     case $ac_user_opts in
... ...
@@ -1353,7 +1354,7 @@ do
1353 1353
     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354 1354
     # Reject names that are not valid shell variable names.
1355 1355
     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356
-      as_fn_error "invalid package name: $ac_useropt"
1356
+      as_fn_error $? "invalid package name: $ac_useropt"
1357 1357
     ac_useropt_orig=$ac_useropt
1358 1358
     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 1359
     case $ac_user_opts in
... ...
@@ -1383,8 +1384,8 @@ do
1383 1383
   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384 1384
     x_libraries=$ac_optarg ;;
1385 1385
 
1386
-  -*) as_fn_error "unrecognized option: \`$ac_option'
1387
-Try \`$0 --help' for more information."
1386
+  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1387
+Try \`$0 --help' for more information"
1388 1388
     ;;
1389 1389
 
1390 1390
   *=*)
... ...
@@ -1392,7 +1393,7 @@ Try \`$0 --help' for more information."
1392 1392
     # Reject names that are not valid shell variable names.
1393 1393
     case $ac_envvar in #(
1394 1394
       '' | [0-9]* | *[!_$as_cr_alnum]* )
1395
-      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1395
+      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396 1396
     esac
1397 1397
     eval $ac_envvar=\$ac_optarg
1398 1398
     export $ac_envvar ;;
... ...
@@ -1410,13 +1411,13 @@ done
1410 1410
 
1411 1411
 if test -n "$ac_prev"; then
1412 1412
   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413
-  as_fn_error "missing argument to $ac_option"
1413
+  as_fn_error $? "missing argument to $ac_option"
1414 1414
 fi
1415 1415
 
1416 1416
 if test -n "$ac_unrecognized_opts"; then
1417 1417
   case $enable_option_checking in
1418 1418
     no) ;;
1419
-    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1419
+    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1420 1420
     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421 1421
   esac
1422 1422
 fi
... ...
@@ -1439,7 +1440,7 @@ do
1439 1439
     [\\/$]* | ?:[\\/]* )  continue;;
1440 1440
     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441 1441
   esac
1442
-  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1442
+  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1443 1443
 done
1444 1444
 
1445 1445
 # There might be people who depend on the old broken behavior: `$host'
... ...
@@ -1453,8 +1454,8 @@ target=$target_alias
1453 1453
 if test "x$host_alias" != x; then
1454 1454
   if test "x$build_alias" = x; then
1455 1455
     cross_compiling=maybe
1456
-    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1457
-    If a cross compiler is detected then cross compile mode will be used." >&2
1456
+    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1457
+    If a cross compiler is detected then cross compile mode will be used" >&2
1458 1458
   elif test "x$build_alias" != "x$host_alias"; then
1459 1459
     cross_compiling=yes
1460 1460
   fi
... ...
@@ -1469,9 +1470,9 @@ test "$silent" = yes && exec 6>/dev/null
1469 1469
 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470 1470
 ac_ls_di=`ls -di .` &&
1471 1471
 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472
-  as_fn_error "working directory cannot be determined"
1472
+  as_fn_error $? "working directory cannot be determined"
1473 1473
 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474
-  as_fn_error "pwd does not report name of working directory"
1474
+  as_fn_error $? "pwd does not report name of working directory"
1475 1475
 
1476 1476
 
1477 1477
 # Find the source files, if location was not specified.
... ...
@@ -1510,11 +1511,11 @@ else
1510 1510
 fi
1511 1511
 if test ! -r "$srcdir/$ac_unique_file"; then
1512 1512
   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513
-  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1513
+  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1514 1514
 fi
1515 1515
 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 1516
 ac_abs_confdir=`(
1517
-	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1517
+	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1518 1518
 	pwd)`
1519 1519
 # When building in place, set srcdir=.
1520 1520
 if test "$ac_abs_confdir" = "$ac_pwd"; then
... ...
@@ -1554,7 +1555,7 @@ Configuration:
1554 1554
       --help=short        display options specific to this package
1555 1555
       --help=recursive    display the short help of all the included packages
1556 1556
   -V, --version           display version information and exit
1557
-  -q, --quiet, --silent   do not print \`checking...' messages
1557
+  -q, --quiet, --silent   do not print \`checking ...' messages
1558 1558
       --cache-file=FILE   cache test results in FILE [disabled]
1559 1559
   -C, --config-cache      alias for \`--cache-file=config.cache'
1560 1560
   -n, --no-create         do not create output files
... ...
@@ -1769,9 +1770,9 @@ test -n "$ac_init_help" && exit $ac_status
1769 1769
 if $ac_init_version; then
1770 1770
   cat <<\_ACEOF
1771 1771
 ClamAV configure devel
1772
-generated by GNU Autoconf 2.65
1772
+generated by GNU Autoconf 2.67
1773 1773
 
1774
-Copyright (C) 2009 Free Software Foundation, Inc.
1774
+Copyright (C) 2010 Free Software Foundation, Inc.
1775 1775
 This configure script is free software; the Free Software Foundation
1776 1776
 gives unlimited permission to copy, distribute and modify it.
1777 1777
 _ACEOF
... ...
@@ -1875,7 +1876,7 @@ ac_fn_c_check_header_compile ()
1875 1875
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 1876
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 1877
 $as_echo_n "checking for $2... " >&6; }
1878
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878
+if eval "test \"\${$3+set}\"" = set; then :
1879 1879
   $as_echo_n "(cached) " >&6
1880 1880
 else
1881 1881
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
... ...
@@ -1918,7 +1919,7 @@ $as_echo "$ac_try_echo"; } >&5
1918 1918
     mv -f conftest.er1 conftest.err
1919 1919
   fi
1920 1920
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921
-  test $ac_status = 0; } >/dev/null && {
1921
+  test $ac_status = 0; } > conftest.i && {
1922 1922
 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1923 1923
 	 test ! -s conftest.err
1924 1924
        }; then :
... ...
@@ -1984,7 +1985,7 @@ ac_fn_c_check_func ()
1984 1984
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 1985
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 1986
 $as_echo_n "checking for $2... " >&6; }
1987
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987
+if eval "test \"\${$3+set}\"" = set; then :
1988 1988
   $as_echo_n "(cached) " >&6
1989 1989
 else
1990 1990
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
... ...
@@ -2043,15 +2044,18 @@ $as_echo "$ac_res" >&6; }
2043 2043
 
2044 2044
 } # ac_fn_c_check_func
2045 2045
 
2046
-# ac_fn_c_check_decl LINENO SYMBOL VAR
2047
-# ------------------------------------
2048
-# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2046
+# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2047
+# ---------------------------------------------
2048
+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2049
+# accordingly.
2049 2050
 ac_fn_c_check_decl ()
2050 2051
 {
2051 2052
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2053
-$as_echo_n "checking whether $2 is declared... " >&6; }
2054
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2053
+  as_decl_name=`echo $2|sed 's/ *(.*//'`
2054
+  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2055
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2056
+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2057
+if eval "test \"\${$3+set}\"" = set; then :
2055 2058
   $as_echo_n "(cached) " >&6
2056 2059
 else
2057 2060
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
... ...
@@ -2060,8 +2064,12 @@ $4
2060 2060
 int
2061 2061
 main ()
2062 2062
 {
2063
-#ifndef $2
2064
-  (void) $2;
2063
+#ifndef $as_decl_name
2064
+#ifdef __cplusplus
2065
+  (void) $as_decl_use;
2066
+#else
2067
+  (void) $as_decl_name;
2068
+#endif
2065 2069
 #endif
2066 2070
 
2067 2071
   ;
... ...
@@ -2091,7 +2099,7 @@ ac_fn_c_check_type ()
2091 2091
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 2092
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 2093
 $as_echo_n "checking for $2... " >&6; }
2094
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2094
+if eval "test \"\${$3+set}\"" = set; then :
2095 2095
   $as_echo_n "(cached) " >&6
2096 2096
 else
2097 2097
   eval "$3=no"
... ...
@@ -2144,10 +2152,10 @@ $as_echo "$ac_res" >&6; }
2144 2144
 ac_fn_c_check_header_mongrel ()
2145 2145
 {
2146 2146
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147
-  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2147
+  if eval "test \"\${$3+set}\"" = set; then :
2148 2148
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 2149
 $as_echo_n "checking for $2... " >&6; }
2150
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2150
+if eval "test \"\${$3+set}\"" = set; then :
2151 2151
   $as_echo_n "(cached) " >&6
2152 2152
 fi
2153 2153
 eval ac_res=\$$3
... ...
@@ -2183,7 +2191,7 @@ if ac_fn_c_try_cpp "$LINENO"; then :
2183 2183
 else
2184 2184
   ac_header_preproc=no
2185 2185
 fi
2186
-rm -f conftest.err conftest.$ac_ext
2186
+rm -f conftest.err conftest.i conftest.$ac_ext
2187 2187
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2188 2188
 $as_echo "$ac_header_preproc" >&6; }
2189 2189
 
... ...
@@ -2206,17 +2214,15 @@ $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 2206
 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2207 2207
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2208 2208
 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209
-( cat <<\_ASBOX
2210
-## -------------------------------------- ##
2209
+( $as_echo "## -------------------------------------- ##
2211 2210
 ## Report this to http://bugs.clamav.net/ ##
2212
-## -------------------------------------- ##
2213
-_ASBOX
2211
+## -------------------------------------- ##"
2214 2212
      ) | sed "s/^/$as_me: WARNING:     /" >&2
2215 2213
     ;;
2216 2214
 esac
2217 2215
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 2216
 $as_echo_n "checking for $2... " >&6; }
2219
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2217
+if eval "test \"\${$3+set}\"" = set; then :
2220 2218
   $as_echo_n "(cached) " >&6
2221 2219
 else
2222 2220
   eval "$3=\$ac_header_compiler"
... ...
@@ -2233,7 +2239,7 @@ This file contains any messages produced by compilers while
2233 2233
 running configure, to aid debugging if configure makes a mistake.
2234 2234
 
2235 2235
 It was created by ClamAV $as_me devel, which was
2236
-generated by GNU Autoconf 2.65.  Invocation command line was
2236
+generated by GNU Autoconf 2.67.  Invocation command line was
2237 2237
 
2238 2238
   $ $0 $@
2239 2239
 
... ...
@@ -2343,11 +2349,9 @@ trap 'exit_status=$?
2343 2343
   {
2344 2344
     echo
2345 2345
 
2346
-    cat <<\_ASBOX
2347
-## ---------------- ##
2346
+    $as_echo "## ---------------- ##
2348 2347
 ## Cache variables. ##
2349
-## ---------------- ##
2350
-_ASBOX
2348
+## ---------------- ##"
2351 2349
     echo
2352 2350
     # The following way of writing the cache mishandles newlines in values,
2353 2351
 (
... ...
@@ -2381,11 +2385,9 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381 2381
 )
2382 2382
     echo
2383 2383
 
2384
-    cat <<\_ASBOX
2385
-## ----------------- ##
2384
+    $as_echo "## ----------------- ##
2386 2385
 ## Output variables. ##
2387
-## ----------------- ##
2388
-_ASBOX
2386
+## ----------------- ##"
2389 2387
     echo
2390 2388
     for ac_var in $ac_subst_vars
2391 2389
     do
... ...
@@ -2398,11 +2400,9 @@ _ASBOX
2398 2398
     echo
2399 2399
 
2400 2400
     if test -n "$ac_subst_files"; then
2401
-      cat <<\_ASBOX
2402
-## ------------------- ##
2401
+      $as_echo "## ------------------- ##
2403 2402
 ## File substitutions. ##
2404
-## ------------------- ##
2405
-_ASBOX
2403
+## ------------------- ##"
2406 2404
       echo
2407 2405
       for ac_var in $ac_subst_files
2408 2406
       do
... ...
@@ -2416,11 +2416,9 @@ _ASBOX
2416 2416
     fi
2417 2417
 
2418 2418
     if test -s confdefs.h; then
2419
-      cat <<\_ASBOX
2420
-## ----------- ##
2419
+      $as_echo "## ----------- ##
2421 2420
 ## confdefs.h. ##
2422
-## ----------- ##
2423
-_ASBOX
2421
+## ----------- ##"
2424 2422
       echo
2425 2423
       cat confdefs.h
2426 2424
       echo
... ...
@@ -2475,7 +2473,12 @@ _ACEOF
2475 2475
 ac_site_file1=NONE
2476 2476
 ac_site_file2=NONE
2477 2477
 if test -n "$CONFIG_SITE"; then
2478
-  ac_site_file1=$CONFIG_SITE
2478
+  # We do not want a PATH search for config.site.
2479
+  case $CONFIG_SITE in #((
2480
+    -*)  ac_site_file1=./$CONFIG_SITE;;
2481
+    */*) ac_site_file1=$CONFIG_SITE;;
2482
+    *)   ac_site_file1=./$CONFIG_SITE;;
2483
+  esac
2479 2484
 elif test "x$prefix" != xNONE; then
2480 2485
   ac_site_file1=$prefix/share/config.site
2481 2486
   ac_site_file2=$prefix/etc/config.site
... ...
@@ -2490,7 +2493,11 @@ do
2490 2490
     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2491 2491
 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2492 2492
     sed 's/^/| /' "$ac_site_file" >&5
2493
-    . "$ac_site_file"
2493
+    . "$ac_site_file" \
2494
+      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496
+as_fn_error $? "failed to load site script $ac_site_file
2497
+See \`config.log' for more details" "$LINENO" 5 ; }
2494 2498
   fi
2495 2499
 done
2496 2500
 
... ...
@@ -2566,7 +2573,7 @@ if $ac_cache_corrupted; then
2566 2566
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 2567
   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2568 2568
 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2569
-  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2569
+  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2570 2570
 fi
2571 2571
 ## -------------------- ##
2572 2572
 ## Main body of script. ##
... ...
@@ -2583,16 +2590,22 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583 2583
 
2584 2584
 ac_aux_dir=
2585 2585
 for ac_dir in config "$srcdir"/config; do
2586
-  for ac_t in install-sh install.sh shtool; do
2587
-    if test -f "$ac_dir/$ac_t"; then
2588
-      ac_aux_dir=$ac_dir
2589
-      ac_install_sh="$ac_aux_dir/$ac_t -c"
2590
-      break 2
2591
-    fi
2592
-  done
2586
+  if test -f "$ac_dir/install-sh"; then
2587
+    ac_aux_dir=$ac_dir
2588
+    ac_install_sh="$ac_aux_dir/install-sh -c"
2589
+    break
2590
+  elif test -f "$ac_dir/install.sh"; then
2591
+    ac_aux_dir=$ac_dir
2592
+    ac_install_sh="$ac_aux_dir/install.sh -c"
2593
+    break
2594
+  elif test -f "$ac_dir/shtool"; then
2595
+    ac_aux_dir=$ac_dir
2596
+    ac_install_sh="$ac_aux_dir/shtool install -c"
2597
+    break
2598
+  fi
2593 2599
 done
2594 2600
 if test -z "$ac_aux_dir"; then
2595
-  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2601
+  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2596 2602
 fi
2597 2603
 
2598 2604
 # These three variables are undocumented and unsupported,
... ...
@@ -2611,7 +2624,7 @@ ac_config_headers="$ac_config_headers clamav-config.h"
2611 2611
 
2612 2612
 # Make sure we can run config.sub.
2613 2613
 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2614
-  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2614
+  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2615 2615
 
2616 2616
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2617 2617
 $as_echo_n "checking build system type... " >&6; }
... ...
@@ -2622,16 +2635,16 @@ else
2622 2622
 test "x$ac_build_alias" = x &&
2623 2623
   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2624 2624
 test "x$ac_build_alias" = x &&
2625
-  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2625
+  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2626 2626
 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2627
-  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2627
+  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2628 2628
 
2629 2629
 fi
2630 2630
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2631 2631
 $as_echo "$ac_cv_build" >&6; }
2632 2632
 case $ac_cv_build in
2633 2633
 *-*-*) ;;
2634
-*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2634
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2635 2635
 esac
2636 2636
 build=$ac_cv_build
2637 2637
 ac_save_IFS=$IFS; IFS='-'
... ...
@@ -2656,7 +2669,7 @@ else
2656 2656
   ac_cv_host=$ac_cv_build
2657 2657
 else
2658 2658
   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2659
-    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2659
+    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2660 2660
 fi
2661 2661
 
2662 2662
 fi
... ...
@@ -2664,7 +2677,7 @@ fi
2664 2664
 $as_echo "$ac_cv_host" >&6; }
2665 2665
 case $ac_cv_host in
2666 2666
 *-*-*) ;;
2667
-*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2667
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2668 2668
 esac
2669 2669
 host=$ac_cv_host
2670 2670
 ac_save_IFS=$IFS; IFS='-'
... ...
@@ -2689,7 +2702,7 @@ else
2689 2689
   ac_cv_target=$ac_cv_host
2690 2690
 else
2691 2691
   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2692
-    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2692
+    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2693 2693
 fi
2694 2694
 
2695 2695
 fi
... ...
@@ -2697,7 +2710,7 @@ fi
2697 2697
 $as_echo "$ac_cv_target" >&6; }
2698 2698
 case $ac_cv_target in
2699 2699
 *-*-*) ;;
2700
-*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2700
+*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2701 2701
 esac
2702 2702
 target=$ac_cv_target
2703 2703
 ac_save_IFS=$IFS; IFS='-'
... ...
@@ -3014,11 +3027,11 @@ am_lf='
3014 3014
 '
3015 3015
 case `pwd` in
3016 3016
   *[\\\"\#\$\&\'\`$am_lf]*)
3017
-    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3017
+    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3018 3018
 esac
3019 3019
 case $srcdir in
3020 3020
   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3021
-    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3021
+    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3022 3022
 esac
3023 3023
 
3024 3024
 # Do `set' in a subshell so we don't clobber the current shell's
... ...
@@ -3040,7 +3053,7 @@ if (
3040 3040
       # if, for instance, CONFIG_SHELL is bash and it inherits a
3041 3041
       # broken ls alias from the environment.  This has actually
3042 3042
       # happened.  Such a system could not be considered "sane".
3043
-      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3043
+      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3044 3044
 alias in your environment" "$LINENO" 5
3045 3045
    fi
3046 3046
 
... ...
@@ -3050,7 +3063,7 @@ then
3050 3050
    # Ok.
3051 3051
    :
3052 3052
 else
3053
-   as_fn_error "newly created file is older than distributed files!
3053
+   as_fn_error $? "newly created file is older than distributed files!
3054 3054
 Check your system clock" "$LINENO" 5
3055 3055
 fi
3056 3056
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
... ...
@@ -3288,7 +3301,7 @@ done
3288 3288
 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3289 3289
 set x ${MAKE-make}
3290 3290
 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3291
-if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3291
+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3292 3292
   $as_echo_n "(cached) " >&6
3293 3293
 else
3294 3294
   cat >conftest.make <<\_ACEOF
... ...
@@ -3296,7 +3309,7 @@ SHELL = /bin/sh
3296 3296
 all:
3297 3297
 	@echo '@@@%%%=$(MAKE)=@@@%%%'
3298 3298
 _ACEOF
3299
-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3299
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3300 3300
 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3301 3301
   *@@@%%%=?*=@@@%%%*)
3302 3302
     eval ac_cv_prog_make_${ac_make}_set=yes;;
... ...
@@ -3330,7 +3343,7 @@ if test "`cd $srcdir && pwd`" != "`pwd`"; then
3330 3330
   am__isrc=' -I$(srcdir)'
3331 3331
   # test to see if srcdir already configured
3332 3332
   if test -f $srcdir/config.status; then
3333
-    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3333
+    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3334 3334
   fi
3335 3335
 fi
3336 3336
 
... ...
@@ -3546,7 +3559,7 @@ fi
3546 3546
 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3547 3547
 set x ${MAKE-make}
3548 3548
 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3549
-if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3549
+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3550 3550
   $as_echo_n "(cached) " >&6
3551 3551
 else
3552 3552
   cat >conftest.make <<\_ACEOF
... ...
@@ -3554,7 +3567,7 @@ SHELL = /bin/sh
3554 3554
 all:
3555 3555
 	@echo '@@@%%%=$(MAKE)=@@@%%%'
3556 3556
 _ACEOF
3557
-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3557
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3558 3558
 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3559 3559
   *@@@%%%=?*=@@@%%%*)
3560 3560
     eval ac_cv_prog_make_${ac_make}_set=yes;;
... ...
@@ -3969,8 +3982,8 @@ fi
3969 3969
 
3970 3970
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 3971
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972
-as_fn_error "no acceptable C compiler found in \$PATH
3973
-See \`config.log' for more details." "$LINENO" 5; }
3972
+as_fn_error $? "no acceptable C compiler found in \$PATH
3973
+See \`config.log' for more details" "$LINENO" 5 ; }
3974 3974
 
3975 3975
 # Provide some information about the compiler.
3976 3976
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
... ...
@@ -4084,9 +4097,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
4084 4084
 
4085 4085
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 4086
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4087
-{ as_fn_set_status 77
4088
-as_fn_error "C compiler cannot create executables
4089
-See \`config.log' for more details." "$LINENO" 5; }; }
4087
+as_fn_error 77 "C compiler cannot create executables
4088
+See \`config.log' for more details" "$LINENO" 5 ; }
4090 4089
 else
4091 4090
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092 4091
 $as_echo "yes" >&6; }
... ...
@@ -4128,8 +4140,8 @@ done
4128 4128
 else
4129 4129
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130 4130
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131
-as_fn_error "cannot compute suffix of executables: cannot compile and link
4132
-See \`config.log' for more details." "$LINENO" 5; }
4131
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4132
+See \`config.log' for more details" "$LINENO" 5 ; }
4133 4133
 fi
4134 4134
 rm -f conftest conftest$ac_cv_exeext
4135 4135
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
... ...
@@ -4186,9 +4198,9 @@ $as_echo "$ac_try_echo"; } >&5
4186 4186
     else
4187 4187
 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 4188
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4189
-as_fn_error "cannot run C compiled programs.
4189
+as_fn_error $? "cannot run C compiled programs.
4190 4190
 If you meant to cross compile, use \`--host'.
4191
-See \`config.log' for more details." "$LINENO" 5; }
4191
+See \`config.log' for more details" "$LINENO" 5 ; }
4192 4192
     fi
4193 4193
   fi
4194 4194
 fi
... ...
@@ -4239,8 +4251,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
4239 4239
 
4240 4240
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4241 4241
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4242
-as_fn_error "cannot compute suffix of object files: cannot compile
4243
-See \`config.log' for more details." "$LINENO" 5; }
4242
+as_fn_error $? "cannot compute suffix of object files: cannot compile
4243
+See \`config.log' for more details" "$LINENO" 5 ; }
4244 4244
 fi
4245 4245
 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4246 4246
 fi
... ...
@@ -4644,7 +4656,7 @@ esac
4644 4644
   done
4645 4645
 IFS=$as_save_IFS
4646 4646
   if test -z "$ac_cv_path_SED"; then
4647
-    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4647
+    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4648 4648
   fi
4649 4649
 else
4650 4650
   ac_cv_path_SED=$SED
... ...
@@ -4720,7 +4732,7 @@ esac
4720 4720
   done
4721 4721
 IFS=$as_save_IFS
4722 4722
   if test -z "$ac_cv_path_GREP"; then
4723
-    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4723
+    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 4724
   fi
4725 4725
 else
4726 4726
   ac_cv_path_GREP=$GREP
... ...
@@ -4786,7 +4798,7 @@ esac
4786 4786
   done
4787 4787
 IFS=$as_save_IFS
4788 4788
   if test -z "$ac_cv_path_EGREP"; then
4789
-    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4789
+    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790 4790
   fi
4791 4791
 else
4792 4792
   ac_cv_path_EGREP=$EGREP
... ...
@@ -4853,7 +4865,7 @@ esac
4853 4853
   done
4854 4854
 IFS=$as_save_IFS
4855 4855
   if test -z "$ac_cv_path_FGREP"; then
4856
-    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4856
+    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4857 4857
   fi
4858 4858
 else
4859 4859
   ac_cv_path_FGREP=$FGREP
... ...
@@ -4969,7 +4981,7 @@ else
4969 4969
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 4970
 $as_echo "no" >&6; }
4971 4971
 fi
4972
-test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4972
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4973 4973
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4974 4974
 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4975 4975
 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
... ...
@@ -5171,13 +5183,13 @@ if test "${lt_cv_nm_interface+set}" = set; then :
5171 5171
 else
5172 5172
   lt_cv_nm_interface="BSD nm"
5173 5173
   echo "int some_variable = 0;" > conftest.$ac_ext
5174
-  (eval echo "\"\$as_me:5174: $ac_compile\"" >&5)
5174
+  (eval echo "\"\$as_me:5186: $ac_compile\"" >&5)
5175 5175
   (eval "$ac_compile" 2>conftest.err)
5176 5176
   cat conftest.err >&5
5177
-  (eval echo "\"\$as_me:5177: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5177
+  (eval echo "\"\$as_me:5189: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5178 5178
   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5179 5179
   cat conftest.err >&5
5180
-  (eval echo "\"\$as_me:5180: output\"" >&5)
5180
+  (eval echo "\"\$as_me:5192: output\"" >&5)
5181 5181
   cat conftest.out >&5
5182 5182
   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5183 5183
     lt_cv_nm_interface="MS dumpbin"
... ...
@@ -6372,7 +6384,7 @@ ia64-*-hpux*)
6372 6372
   ;;
6373 6373
 *-*-irix6*)
6374 6374
   # Find out which ABI we are using.
6375
-  echo '#line 6375 "configure"' > conftest.$ac_ext
6375
+  echo '#line 6387 "configure"' > conftest.$ac_ext
6376 6376
   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6377 6377
   (eval $ac_compile) 2>&5
6378 6378
   ac_status=$?
... ...
@@ -7161,7 +7173,7 @@ else
7161 7161
   # Broken: fails on valid input.
7162 7162
 continue
7163 7163
 fi
7164
-rm -f conftest.err conftest.$ac_ext
7164
+rm -f conftest.err conftest.i conftest.$ac_ext
7165 7165
 
7166 7166
   # OK, works on sane cases.  Now check whether nonexistent headers
7167 7167
   # can be detected and how.
... ...
@@ -7177,11 +7189,11 @@ else
7177 7177
 ac_preproc_ok=:
7178 7178
 break
7179 7179
 fi
7180
-rm -f conftest.err conftest.$ac_ext
7180
+rm -f conftest.err conftest.i conftest.$ac_ext
7181 7181
 
7182 7182
 done
7183 7183
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7184
-rm -f conftest.err conftest.$ac_ext
7184
+rm -f conftest.i conftest.err conftest.$ac_ext
7185 7185
 if $ac_preproc_ok; then :
7186 7186
   break
7187 7187
 fi
... ...
@@ -7220,7 +7232,7 @@ else
7220 7220
   # Broken: fails on valid input.
7221 7221
 continue
7222 7222
 fi
7223
-rm -f conftest.err conftest.$ac_ext
7223
+rm -f conftest.err conftest.i conftest.$ac_ext
7224 7224
 
7225 7225
   # OK, works on sane cases.  Now check whether nonexistent headers
7226 7226
   # can be detected and how.
... ...
@@ -7236,18 +7248,18 @@ else
7236 7236
 ac_preproc_ok=:
7237 7237
 break
7238 7238
 fi
7239
-rm -f conftest.err conftest.$ac_ext
7239
+rm -f conftest.err conftest.i conftest.$ac_ext
7240 7240
 
7241 7241
 done
7242 7242
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7243
-rm -f conftest.err conftest.$ac_ext
7243
+rm -f conftest.i conftest.err conftest.$ac_ext
7244 7244
 if $ac_preproc_ok; then :
7245 7245
 
7246 7246
 else
7247 7247
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7248 7248
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7249
-as_fn_error "C preprocessor \"$CPP\" fails sanity check
7250
-See \`config.log' for more details." "$LINENO" 5; }
7249
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7250
+See \`config.log' for more details" "$LINENO" 5 ; }
7251 7251
 fi
7252 7252
 
7253 7253
 ac_ext=c
... ...
@@ -7376,8 +7388,7 @@ do :
7376 7376
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7377 7377
 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7378 7378
 "
7379
-eval as_val=\$$as_ac_Header
7380
-   if test "x$as_val" = x""yes; then :
7379
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7381 7380
   cat >>confdefs.h <<_ACEOF
7382 7381
 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383 7382
 _ACEOF
... ...
@@ -7900,11 +7911,11 @@ else
7900 7900
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7901 7901
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7902 7902
    -e 's:$: $lt_compiler_flag:'`
7903
-   (eval echo "\"\$as_me:7903: $lt_compile\"" >&5)
7903
+   (eval echo "\"\$as_me:7914: $lt_compile\"" >&5)
7904 7904
    (eval "$lt_compile" 2>conftest.err)
7905 7905
    ac_status=$?
7906 7906
    cat conftest.err >&5
7907
-   echo "$as_me:7907: \$? = $ac_status" >&5
7907
+   echo "$as_me:7918: \$? = $ac_status" >&5
7908 7908
    if (exit $ac_status) && test -s "$ac_outfile"; then
7909 7909
      # The compiler can only warn and ignore the option if not recognized
7910 7910
      # So say no if there are warnings other than the usual output.
... ...
@@ -8239,11 +8250,11 @@ else
8239 8239
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 8240
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 8241
    -e 's:$: $lt_compiler_flag:'`
8242
-   (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8242
+   (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
8243 8243
    (eval "$lt_compile" 2>conftest.err)
8244 8244
    ac_status=$?
8245 8245
    cat conftest.err >&5
8246
-   echo "$as_me:8246: \$? = $ac_status" >&5
8246
+   echo "$as_me:8257: \$? = $ac_status" >&5
8247 8247
    if (exit $ac_status) && test -s "$ac_outfile"; then
8248 8248
      # The compiler can only warn and ignore the option if not recognized
8249 8249
      # So say no if there are warnings other than the usual output.
... ...
@@ -8344,11 +8355,11 @@ else
8344 8344
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8345 8345
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8346 8346
    -e 's:$: $lt_compiler_flag:'`
8347
-   (eval echo "\"\$as_me:8347: $lt_compile\"" >&5)
8347
+   (eval echo "\"\$as_me:8358: $lt_compile\"" >&5)
8348 8348
    (eval "$lt_compile" 2>out/conftest.err)
8349 8349
    ac_status=$?
8350 8350
    cat out/conftest.err >&5
8351
-   echo "$as_me:8351: \$? = $ac_status" >&5
8351
+   echo "$as_me:8362: \$? = $ac_status" >&5
8352 8352
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8353 8353
    then
8354 8354
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -8399,11 +8410,11 @@ else
8399 8399
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8400 8400
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8401 8401
    -e 's:$: $lt_compiler_flag:'`
8402
-   (eval echo "\"\$as_me:8402: $lt_compile\"" >&5)
8402
+   (eval echo "\"\$as_me:8413: $lt_compile\"" >&5)
8403 8403
    (eval "$lt_compile" 2>out/conftest.err)
8404 8404
    ac_status=$?
8405 8405
    cat out/conftest.err >&5
8406
-   echo "$as_me:8406: \$? = $ac_status" >&5
8406
+   echo "$as_me:8417: \$? = $ac_status" >&5
8407 8407
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8408 8408
    then
8409 8409
      # The compiler can only warn and ignore the option if not recognized
... ...
@@ -10783,7 +10794,7 @@ else
10783 10783
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10784 10784
   lt_status=$lt_dlunknown
10785 10785
   cat > conftest.$ac_ext <<_LT_EOF
10786
-#line 10786 "configure"
10786
+#line 10797 "configure"
10787 10787
 #include "confdefs.h"
10788 10788
 
10789 10789
 #if HAVE_DLFCN_H
... ...
@@ -10879,7 +10890,7 @@ else
10879 10879
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10880 10880
   lt_status=$lt_dlunknown
10881 10881
   cat > conftest.$ac_ext <<_LT_EOF
10882
-#line 10882 "configure"
10882
+#line 10893 "configure"
10883 10883
 #include "confdefs.h"
10884 10884
 
10885 10885
 #if HAVE_DLFCN_H
... ...
@@ -11551,7 +11562,7 @@ else
11551 11551
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11552 11552
   lt_status=$lt_dlunknown
11553 11553
   cat > conftest.$ac_ext <<_LT_EOF
11554
-#line 11554 "configure"
11554
+#line 11565 "configure"
11555 11555
 #include "confdefs.h"
11556 11556
 
11557 11557
 #if HAVE_DLFCN_H
... ...
@@ -11788,8 +11799,7 @@ for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11788 11788
 do :
11789 11789
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11790 11790
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11791
-eval as_val=\$$as_ac_var
11792
-   if test "x$as_val" = x""yes; then :
11791
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11793 11792
   cat >>confdefs.h <<_ACEOF
11794 11793
 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11795 11794
 _ACEOF
... ...
@@ -11966,7 +11976,7 @@ fi
11966 11966
 if test -n "$with_ltdl_include"; then
11967 11967
   if test -f "$with_ltdl_include/ltdl.h"; then :
11968 11968
   else
11969
-    as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11969
+    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11970 11970
   fi
11971 11971
 else
11972 11972
   with_ltdl_include=no
... ...
@@ -11982,7 +11992,7 @@ fi
11982 11982
 if test -n "$with_ltdl_lib"; then
11983 11983
   if test -f "$with_ltdl_lib/libltdl.la"; then :
11984 11984
   else
11985
-    as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11985
+    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11986 11986
   fi
11987 11987
 else
11988 11988
   with_ltdl_lib=no
... ...
@@ -11991,7 +12001,7 @@ fi
11991 11991
 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11992 11992
   ,yes,no,no,)
11993 11993
 	case $enable_ltdl_convenience in
11994
-  no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11994
+  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5  ;;
11995 11995
   "") enable_ltdl_convenience=yes
11996 11996
       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11997 11997
 esac
... ...
@@ -12019,7 +12029,7 @@ $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12019 12019
 	LTDLINCL=
12020 12020
 	;;
12021 12021
   ,no*,no,*)
12022
-	as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12022
+	as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12023 12023
 	;;
12024 12024
   *)	with_included_ltdl=no
12025 12025
 	LIBLTDL="-L$with_ltdl_lib -lltdl"
... ...
@@ -12086,8 +12096,7 @@ do :
12086 12086
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12087 12087
 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12088 12088
 "
12089
-eval as_val=\$$as_ac_Header
12090
-   if test "x$as_val" = x""yes; then :
12089
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12091 12090
   cat >>confdefs.h <<_ACEOF
12092 12091
 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12093 12092
 _ACEOF
... ...
@@ -12101,8 +12110,7 @@ for ac_func in closedir opendir readdir
12101 12101
 do :
12102 12102
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12103 12103
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12104
-eval as_val=\$$as_ac_var
12105
-   if test "x$as_val" = x""yes; then :
12104
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12106 12105
   cat >>confdefs.h <<_ACEOF
12107 12106
 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12108 12107
 _ACEOF
... ...
@@ -12119,8 +12127,7 @@ for ac_func in strlcat strlcpy
12119 12119
 do :
12120 12120
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12121 12121
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12122
-eval as_val=\$$as_ac_var
12123
-   if test "x$as_val" = x""yes; then :
12122
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12124 12123
   cat >>confdefs.h <<_ACEOF
12125 12124
 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12126 12125
 _ACEOF
... ...
@@ -12766,8 +12773,8 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12766 12766
 
12767 12767
      ;; #(
12768 12768
    *)
12769
-     as_fn_error "unknown endianness
12770
- presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12769
+     as_fn_error $? "unknown endianness
12770
+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
12771 12771
  esac
12772 12772
 
12773 12773
 
... ...
@@ -12923,7 +12930,7 @@ $as_echo_n "checking for a supported version of gcc... " >&6; }
12923 12923
 			4.1.0*)
12924 12924
 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
12925 12925
 $as_echo "no (${gcc_version})" >&6; }
12926
-				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
+				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
12927 12927
 				;;
12928 12928
 			*)
12929 12929
 				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
... ...
@@ -12990,7 +12997,7 @@ if ac_fn_c_try_run "$LINENO"; then :
12990 12990
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
12991 12991
 $as_echo "ok, bug not present" >&6; }
12992 12992
 else
12993
-  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
+  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
12994 12994
 fi
12995 12995
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12996 12996
   conftest.$ac_objext conftest.beam conftest.$ac_ext
... ...
@@ -13029,7 +13036,7 @@ if ac_fn_c_try_run "$LINENO"; then :
13029 13029
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
13030 13030
 $as_echo "ok, bug not present" >&6; }
13031 13031
 else
13032
-  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
+  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
13033 13033
 fi
13034 13034
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13035 13035
   conftest.$ac_objext conftest.beam conftest.$ac_ext
... ...
@@ -13107,7 +13114,7 @@ if ac_fn_c_try_run "$LINENO"; then :
13107 13107
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
13108 13108
 $as_echo "ok, bug not present" >&6; }
13109 13109
 else
13110
-  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
+  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
13111 13111
 fi
13112 13112
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13113 13113
   conftest.$ac_objext conftest.beam conftest.$ac_ext
... ...
@@ -13149,7 +13156,7 @@ if ac_fn_c_try_run "$LINENO"; then :
13149 13149
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
13150 13150
 $as_echo "ok, bug not present" >&6; }
13151 13151
 else
13152
-  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
+  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
13153 13153
 fi
13154 13154
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13155 13155
   conftest.$ac_objext conftest.beam conftest.$ac_ext
... ...
@@ -13245,7 +13252,7 @@ if ac_fn_c_try_run "$LINENO"; then :
13245 13245
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, bug not present" >&5
13246 13246
 $as_echo "ok, bug not present" >&6; }
13247 13247
 else
13248
-  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
+  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
13249 13249
 fi
13250 13250
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13251 13251
   conftest.$ac_objext conftest.beam conftest.$ac_ext
... ...
@@ -13330,8 +13337,7 @@ for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttyp
13330 13330
 do :
13331 13331
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13332 13332
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13333
-eval as_val=\$$as_ac_Header
13334
-   if test "x$as_val" = x""yes; then :
13333
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13335 13334
   cat >>confdefs.h <<_ACEOF
13336 13335
 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13337 13336
 _ACEOF
... ...
@@ -13390,7 +13396,7 @@ done
13390 13390
 fi
13391 13391
 
13392 13392
 if test x$ac_cv_sizeof_short = x ; then
13393
-  as_fn_error "cannot determine a size for short" "$LINENO" 5
13393
+  as_fn_error $? "cannot determine a size for short" "$LINENO" 5
13394 13394
 fi
13395 13395
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13396 13396
 $as_echo "$ac_cv_sizeof_short" >&6; }
... ...
@@ -13430,7 +13436,7 @@ done
13430 13430
 fi
13431 13431
 
13432 13432
 if test x$ac_cv_sizeof_int = x ; then
13433
-  as_fn_error "cannot determine a size for int" "$LINENO" 5
13433
+  as_fn_error $? "cannot determine a size for int" "$LINENO" 5
13434 13434
 fi
13435 13435
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13436 13436
 $as_echo "$ac_cv_sizeof_int" >&6; }
... ...
@@ -13470,7 +13476,7 @@ done
13470 13470
 fi
13471 13471
 
13472 13472
 if test x$ac_cv_sizeof_long = x ; then
13473
-  as_fn_error "cannot determine a size for long" "$LINENO" 5
13473
+  as_fn_error $? "cannot determine a size for long" "$LINENO" 5
13474 13474
 fi
13475 13475
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13476 13476
 $as_echo "$ac_cv_sizeof_long" >&6; }
... ...
@@ -13510,7 +13516,7 @@ done
13510 13510
 fi
13511 13511
 
13512 13512
 if test x$ac_cv_sizeof_long_long = x ; then
13513
-  as_fn_error "cannot determine a size for long long" "$LINENO" 5
13513
+  as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
13514 13514
 fi
13515 13515
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13516 13516
 $as_echo "$ac_cv_sizeof_long_long" >&6; }
... ...
@@ -13550,7 +13556,7 @@ done
13550 13550
 fi
13551 13551
 
13552 13552
 if test x$ac_cv_sizeof_void_p = x ; then
13553
-  as_fn_error "cannot determine a size for void *" "$LINENO" 5
13553
+  as_fn_error $? "cannot determine a size for void *" "$LINENO" 5
13554 13554
 fi
13555 13555
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13556 13556
 $as_echo "$ac_cv_sizeof_void_p" >&6; }
... ...
@@ -13719,8 +13725,7 @@ for ac_func in poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat
13719 13719
 do :
13720 13720
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13721 13721
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13722
-eval as_val=\$$as_ac_var
13723
-   if test "x$as_val" = x""yes; then :
13722
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13724 13723
   cat >>confdefs.h <<_ACEOF
13725 13724
 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13726 13725
 _ACEOF
... ...
@@ -14179,7 +14184,7 @@ else
14179 14179
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 14180
 $as_echo "no" >&6; }
14181 14181
 fi
14182
-test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14182
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14183 14183
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14184 14184
 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14185 14185
 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
... ...
@@ -14769,7 +14774,7 @@ fi
14769 14769
 
14770 14770
 
14771 14771
 if test "x$CHECK_LIBS" = "x" -a "$enable_check_ut" = "yes"; then
14772
-    as_fn_error "
14772
+    as_fn_error $? "
14773 14773
 
14774 14774
 ERROR!  Check was configured, but not found.  Get it from http://check.sf.net/
14775 14775
 " "$LINENO" 5
... ...
@@ -14785,10 +14790,10 @@ fi
14785 14785
 
14786 14786
 if test "x$enable_coverage" = "xyes"; then
14787 14787
 	if test "x$CHECK_LIBS" = "x"; then
14788
-		as_fn_error "Coverage testing required, but unit tests not enabled!" "$LINENO" 5
14788
+		as_fn_error $? "Coverage testing required, but unit tests not enabled!" "$LINENO" 5
14789 14789
 	fi
14790 14790
 	if test "x$ac_compiler_gnu" != "xyes"; then
14791
-		as_fn_error "coverage testing only works if gcc is used" "$LINENO" 5
14791
+		as_fn_error $? "coverage testing only works if gcc is used" "$LINENO" 5
14792 14792
 	fi
14793 14793
 
14794 14794
 	CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
... ...
@@ -14998,7 +15003,7 @@ fi
14998 14998
 
14999 14999
 if test ! -f "$ZLIB_HOME/include/zlib.h"
15000 15000
 then
15001
-    as_fn_error "Please install zlib and zlib-devel packages" "$LINENO" 5
15001
+    as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5
15002 15002
 else
15003 15003
 
15004 15004
     vuln=`grep "ZLIB_VERSION \"1.2.0" $ZLIB_HOME/include/zlib.h`
... ...
@@ -15008,7 +15013,7 @@ else
15008 15008
 
15009 15009
     if test -n "$vuln"; then
15010 15010
 	if test "$zlib_check" = "yes"; then
15011
-	    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
15011
+	    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
15012 15012
 	else
15013 15013
 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** This ClamAV installation may be linked against" >&5
15014 15014
 $as_echo "$as_me: WARNING: ****** This ClamAV installation may be linked against" >&2;}
... ...
@@ -15063,7 +15068,7 @@ $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
15063 15063
 if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
15064 15064
   LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L$ZLIB_HOME/lib -lz"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -L$ZLIB_HOME/lib -lz"
15065 15065
 else
15066
-  as_fn_error "Please install zlib and zlib-devel packages" "$LINENO" 5
15066
+  as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5
15067 15067
 fi
15068 15068
 
15069 15069
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
... ...
@@ -15110,7 +15115,7 @@ _ACEOF
15110 15110
   LIBS="-lz $LIBS"
15111 15111
 
15112 15112
 else
15113
-  as_fn_error "Your zlib is missing gzopen()" "$LINENO" 5
15113
+  as_fn_error $? "Your zlib is missing gzopen()" "$LINENO" 5
15114 15114
 fi
15115 15115
 
15116 15116
 	LDFLAGS="$save_LDFLAGS"
... ...
@@ -15154,7 +15159,7 @@ $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
15154 15154
 if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
15155 15155
   LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz";FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lz"
15156 15156
 else
15157
-  as_fn_error "Please install zlib and zlib-devel packages" "$LINENO" 5
15157
+  as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5
15158 15158
 fi
15159 15159
 
15160 15160
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
... ...
@@ -15201,7 +15206,7 @@ _ACEOF
15201 15201
   LIBS="-lz $LIBS"
15202 15202
 
15203 15203
 else
15204
-  as_fn_error "Your zlib is missing gzopen()" "$LINENO" 5
15204
+  as_fn_error $? "Your zlib is missing gzopen()" "$LINENO" 5
15205 15205
 fi
15206 15206
 
15207 15207
     fi
... ...
@@ -15216,6 +15221,7 @@ else
15216 15216
 fi
15217 15217
 
15218 15218
 
15219
+bzip_check="ok"
15219 15220
 if test "$want_bzip2" = "yes"
15220 15221
 then
15221 15222
 
... ...
@@ -15880,6 +15886,7 @@ $as_echo "$as_me: WARNING: ****** bzip2 libraries are affected by the CVE-2008-1
15880 15880
 $as_echo "$as_me: WARNING: ****** We strongly suggest you to update to bzip2 1.0.5." >&2;}
15881 15881
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5
15882 15882
 $as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;}
15883
+		bzip_check="bugged (CVE-2008-1372)"
15883 15884
 	fi
15884 15885
 	if test "$ac_cv_c_cve_2008_1372" = "linkfailed"; then
15885 15886
 						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Unable to link bzip2 testcase" >&5
... ...
@@ -15890,10 +15897,134 @@ $as_echo "$as_me: WARNING: ****** You may be affected by CVE-2008-1372 bug, but
15890 15890
 $as_echo "$as_me: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&2;}
15891 15891
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5
15892 15892
 $as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;}
15893
+		bzip_check="link failed (CVE-2008-1372)"
15893 15894
 	fi
15894 15895
 
15895 15896
 	case "$ac_cv_c_cve_2008_1372" in
15896 15897
 	ok|bugged|linkfailed)
15898
+		;;
15899
+	*)
15900
+		HAVE_LIBBZ2=no
15901
+		;;
15902
+	esac
15903
+    fi
15904
+
15905
+    if test "$HAVE_LIBBZ2" = "yes"; then
15906
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CVE-2010-0405" >&5
15907
+$as_echo_n "checking for CVE-2010-0405... " >&6; }
15908
+if test "${ac_cv_c_cve_2010_0405+set}" = set; then :
15909
+  $as_echo_n "(cached) " >&6
15910
+else
15911
+
15912
+save_LIBS="$LIBS"
15913
+LIBS="$LIBCLAMAV_LIBS $LIBBZ2"
15914
+if test "$cross_compiling" = yes; then :
15915
+  ac_cv_c_cve_2010_0405=ok
15916
+else
15917
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918
+/* end confdefs.h.  */
15919
+
15920
+#include <string.h>
15921
+#include <stdlib.h>
15922
+#include <stdio.h>
15923
+#include <bzlib.h>
15924
+
15925
+#ifdef NOBZ2PREFIX
15926
+#define BZ2_bzReadOpen bzReadOpen
15927
+#define BZ2_bzReadClose bzReadClose
15928
+#define BZ2_bzRead bzRead
15929
+#define BZ2_bzDecompressInit bzDecompressInit
15930
+#define BZ2_bzDecompress bzDecompress
15931
+#define BZ2_bzDecompressEnd bzDecompressEnd
15932
+#endif
15933
+
15934
+const unsigned char poc[] = {
15935
+0x42, 0x5a, 0x68, 0x39, 0x31, 0x41, 0x59, 0x26, 0x53, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15936
+0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
15937
+0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
15938
+0xff, 0xff, 0xfe, 0x20, 0x2c, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15939
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15940
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15941
+0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15942
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15943
+0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15944
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15945
+0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01,
15946
+0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15947
+0x00, 0x00, 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
15948
+0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15949
+0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
15950
+0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01,
15951
+0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01,
15952
+0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xff
15953
+};
15954
+const unsigned int poc_len = 280;
15955
+
15956
+int main (int argc, char **argv) {
15957
+        bz_stream bz;
15958
+        char buf[1024];
15959
+
15960
+        memset(&bz, 0, sizeof(bz));
15961
+        bz.next_in = (char *)&poc;
15962
+        bz.avail_in = poc_len;
15963
+        bz.next_out = buf;
15964
+        bz.avail_out = sizeof(buf);
15965
+        if(BZ2_bzDecompressInit(&bz, 0, 0)!=BZ_OK)
15966
+                return 1;
15967
+
15968
+        while((BZ2_bzDecompress(&bz))==BZ_OK) {
15969
+                bz.next_out = buf;
15970
+                bz.avail_out = sizeof(buf);
15971
+        }
15972
+        BZ2_bzDecompressEnd(&bz);
15973
+        return 0;
15974
+}
15975
+
15976
+_ACEOF
15977
+if ac_fn_c_try_run "$LINENO"; then :
15978
+  ac_cv_c_cve_2010_0405=ok
15979
+else
15980
+
15981
+if test $? -gt 127; then
15982
+	ac_cv_c_cve_2010_0405=bugged
15983
+else
15984
+	ac_cv_c_cve_2010_0405=linkfailed
15985
+fi
15986
+
15987
+fi
15988
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15989
+  conftest.$ac_objext conftest.beam conftest.$ac_ext
15990
+fi
15991
+
15992
+LIBS="$save_LIBS"
15993
+
15994
+fi
15995
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cve_2010_0405" >&5
15996
+$as_echo "$ac_cv_c_cve_2010_0405" >&6; }
15997
+
15998
+	if test "$ac_cv_c_cve_2010_0405" = "bugged"; then
15999
+		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** bzip2 libraries are affected by the CVE-2010-0405 bug" >&5
16000
+$as_echo "$as_me: WARNING: ****** bzip2 libraries are affected by the CVE-2010-0405 bug" >&2;}
16001
+		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** We strongly suggest you to update bzip2" >&5
16002
+$as_echo "$as_me: WARNING: ****** We strongly suggest you to update bzip2" >&2;}
16003
+		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5
16004
+$as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;}
16005
+		bzip_check="bugged (CVE-2010-0405)"
16006
+	fi
16007
+	if test "$ac_cv_c_cve_2010_0405" = "linkfailed"; then
16008
+						{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Unable to link bzip2 testcase" >&5
16009
+$as_echo "$as_me: WARNING: ****** Unable to link bzip2 testcase" >&2;}
16010
+		{ $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
16011
+$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;}
16012
+		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&5
16013
+$as_echo "$as_me: WARNING: ****** It is recommended to fix your build environment so that we can run the testcase!" >&2;}
16014
+		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&5
16015
+$as_echo "$as_me: WARNING: ****** Please do not report stability problems to the ClamAV developers!" >&2;}
16016
+		bzip_check="link failed (CVE-2010-0405)"
16017
+	fi
16018
+
16019
+	case "$ac_cv_c_cve_2010_0405" in
16020
+	ok|bugged|linkfailed)
15897 16021
 		LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBBZ2"
15898 16022
 
15899 16023
 $as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
... ...
@@ -16169,7 +16300,7 @@ if test "${ac_cv_func_setpgrp_void+set}" = set; then :
16169 16169
   $as_echo_n "(cached) " >&6
16170 16170
 else
16171 16171
   if test "$cross_compiling" = yes; then :
16172
-  as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
16172
+  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
16173 16173
 else
16174 16174
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 16175
 /* end confdefs.h.  */
... ...
@@ -16309,7 +16440,7 @@ fi
16309 16309
 
16310 16310
 	;;
16311 16311
 	no) ;;
16312
-	*) as_fn_error "--with-system-tommath does not take an argument" "$LINENO" 5 ;;
16312
+	*) as_fn_error $? "--with-system-tommath does not take an argument" "$LINENO" 5  ;;
16313 16313
 	esac
16314 16314
 
16315 16315
 fi
... ...
@@ -16330,7 +16461,7 @@ if test "${with_iconv+set}" = set; then :
16330 16330
   withval=$with_iconv;
16331 16331
  case "$withval" in
16332 16332
 	 yes|no) wiconv="$withval";;
16333
-	 *) as_fn_error "--with-iconv does not take an argument" "$LINENO" 5;;
16333
+	 *) as_fn_error $? "--with-iconv does not take an argument" "$LINENO" 5 ;;
16334 16334
  esac
16335 16335
 else
16336 16336
    wiconv=auto
... ...
@@ -17050,7 +17181,7 @@ if test "x$ac_cv_lib_milter_mi_stop" = x""yes; then :
17050 17050
   CLAMAV_MILTER_LIBS="-lmilter $CLAMAV_MILTER_XLIB $CLAMAV_MILTER_LIBS"
17051 17051
 else
17052 17052
 
17053
-	    as_fn_error "Cannot find libmilter" "$LINENO" 5
17053
+	    as_fn_error $? "Cannot find libmilter" "$LINENO" 5
17054 17054
 
17055 17055
 fi
17056 17056
 
... ...
@@ -17068,7 +17199,7 @@ _ACEOF
17068 17068
  have_milter="yes"
17069 17069
 else
17070 17070
 
17071
-	as_fn_error "Please install mfapi.h from the sendmail distribution" "$LINENO" 5
17071
+	as_fn_error $? "Please install mfapi.h from the sendmail distribution" "$LINENO" 5
17072 17072
 
17073 17073
 fi
17074 17074
 
... ...
@@ -17101,8 +17232,7 @@ then
17101 17101
 do :
17102 17102
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17103 17103
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17104
-eval as_val=\$$as_ac_var
17105
-   if test "x$as_val" = x""yes; then :
17104
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17106 17105
   cat >>confdefs.h <<_ACEOF
17107 17106
 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17108 17107
 _ACEOF
... ...
@@ -17416,7 +17546,7 @@ $as_echo_n "checking for $clamav_user using ypmatch... " >&6; }
17416 17416
     then
17417 17417
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17418 17418
 $as_echo "no" >&6; }
17419
-	as_fn_error "User $clamav_user (and/or group $clamav_group) doesn't exist. Please read the documentation !" "$LINENO" 5
17419
+	as_fn_error $? "User $clamav_user (and/or group $clamav_group) doesn't exist. Please read the documentation !" "$LINENO" 5
17420 17420
     else
17421 17421
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, user $clamav_user and group $clamav_group" >&5
17422 17422
 $as_echo "yes, user $clamav_user and group $clamav_group" >&6; }
... ...
@@ -17470,8 +17600,8 @@ else
17470 17470
 		if test "$cross_compiling" = yes; then :
17471 17471
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17472 17472
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17473
-as_fn_error "cannot run test program while cross compiling
17474
-See \`config.log' for more details." "$LINENO" 5; }
17473
+as_fn_error $? "cannot run test program while cross compiling
17474
+See \`config.log' for more details" "$LINENO" 5 ; }
17475 17475
 else
17476 17476
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 17477
 /* end confdefs.h.  */
... ...
@@ -17509,8 +17639,8 @@ else
17509 17509
 			if test "$cross_compiling" = yes; then :
17510 17510
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17511 17511
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17512
-as_fn_error "cannot run test program while cross compiling
17513
-See \`config.log' for more details." "$LINENO" 5; }
17512
+as_fn_error $? "cannot run test program while cross compiling
17513
+See \`config.log' for more details" "$LINENO" 5 ; }
17514 17514
 else
17515 17515
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 17516
 /* end confdefs.h.  */
... ...
@@ -17571,7 +17701,7 @@ fi
17571 17571
 $as_echo "$have_cv_attrib_aligned" >&6; }
17572 17572
 
17573 17573
 if test "$have_cv_attrib_packed" = no -a "$have_cv_pragma_pack" = no -a "$have_cv_pragma_pack_hpux" = no; then
17574
-	as_fn_error "Need to know how to pack structures with this compiler" "$LINENO" 5
17574
+	as_fn_error $? "Need to know how to pack structures with this compiler" "$LINENO" 5
17575 17575
 fi
17576 17576
 
17577 17577
 if test "$have_cv_attrib_packed" = yes; then
... ...
@@ -17659,7 +17789,7 @@ fi
17659 17659
 $as_echo "$have_cv_struct_pack" >&6; }
17660 17660
 
17661 17661
 if test "$have_cv_struct_pack" = "no"; then
17662
-    as_fn_error "Structure packing seems to be available, but is not working with this compiler" "$LINENO" 5
17662
+    as_fn_error $? "Structure packing seems to be available, but is not working with this compiler" "$LINENO" 5
17663 17663
 fi
17664 17664
 
17665 17665
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
... ...
@@ -17796,8 +17926,7 @@ for ac_func in recvmsg sendmsg
17796 17796
 do :
17797 17797
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17798 17798
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17799
-eval as_val=\$$as_ac_var
17800
-   if test "x$as_val" = x""yes; then :
17799
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17801 17800
   cat >>confdefs.h <<_ACEOF
17802 17801
 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17803 17802
 _ACEOF
... ...
@@ -19817,7 +19946,7 @@ fi
19817 19817
 fi
19818 19818
 
19819 19819
 if test "x$CURSES_LIBS" = "x" -a "$enable_clamdtop" = "yes"; then
19820
-    as_fn_error "
19820
+    as_fn_error $? "
19821 19821
 
19822 19822
 ERROR!  Clamdtop was configured, but not found.  You need to install libncurses5-dev.
19823 19823
 " "$LINENO" 5
... ...
@@ -19988,6 +20117,7 @@ DEFS=-DHAVE_CONFIG_H
19988 19988
 
19989 19989
 ac_libobjs=
19990 19990
 ac_ltlibobjs=
19991
+U=
19991 19992
 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19992 19993
   # 1. Remove the extension, and $U if already installed.
19993 19994
   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
... ...
@@ -20011,19 +20141,19 @@ else
20011 20011
 fi
20012 20012
 
20013 20013
 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20014
-  as_fn_error "conditional \"AMDEP\" was never defined.
20014
+  as_fn_error $? "conditional \"AMDEP\" was never defined.
20015 20015
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20016 20016
 fi
20017 20017
 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20018
-  as_fn_error "conditional \"am__fastdepCC\" was never defined.
20018
+  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20019 20019
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20020 20020
 fi
20021 20021
 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20022
-  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
20022
+  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
20023 20023
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20024 20024
 fi
20025 20025
 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20026
-  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
20026
+  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
20027 20027
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20028 20028
 fi
20029 20029
 LT_CONFIG_H=clamav-config.h
... ...
@@ -20045,43 +20175,43 @@ LT_CONFIG_H=clamav-config.h
20045 20045
 
20046 20046
 
20047 20047
 if test -z "${VERSIONSCRIPT_TRUE}" && test -z "${VERSIONSCRIPT_FALSE}"; then
20048
-  as_fn_error "conditional \"VERSIONSCRIPT\" was never defined.
20048
+  as_fn_error $? "conditional \"VERSIONSCRIPT\" was never defined.
20049 20049
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20050 20050
 fi
20051 20051
 if test -z "${HAVE_LIBCHECK_TRUE}" && test -z "${HAVE_LIBCHECK_FALSE}"; then
20052
-  as_fn_error "conditional \"HAVE_LIBCHECK\" was never defined.
20052
+  as_fn_error $? "conditional \"HAVE_LIBCHECK\" was never defined.
20053 20053
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20054 20054
 fi
20055 20055
 if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
20056
-  as_fn_error "conditional \"ENABLE_COVERAGE\" was never defined.
20056
+  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
20057 20057
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20058 20058
 fi
20059 20059
 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20060
-  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20060
+  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20061 20061
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20062 20062
 fi
20063 20063
 if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then
20064
-  as_fn_error "conditional \"ENABLE_UNRAR\" was never defined.
20064
+  as_fn_error $? "conditional \"ENABLE_UNRAR\" was never defined.
20065 20065
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20066 20066
 fi
20067 20067
 if test -z "${LINK_TOMMATH_TRUE}" && test -z "${LINK_TOMMATH_FALSE}"; then
20068
-  as_fn_error "conditional \"LINK_TOMMATH\" was never defined.
20068
+  as_fn_error $? "conditional \"LINK_TOMMATH\" was never defined.
20069 20069
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20070 20070
 fi
20071 20071
 if test -z "${BUILD_CLAMD_TRUE}" && test -z "${BUILD_CLAMD_FALSE}"; then
20072
-  as_fn_error "conditional \"BUILD_CLAMD\" was never defined.
20072
+  as_fn_error $? "conditional \"BUILD_CLAMD\" was never defined.
20073 20073
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20074 20074
 fi
20075 20075
 if test -z "${HAVE_MILTER_TRUE}" && test -z "${HAVE_MILTER_FALSE}"; then
20076
-  as_fn_error "conditional \"HAVE_MILTER\" was never defined.
20076
+  as_fn_error $? "conditional \"HAVE_MILTER\" was never defined.
20077 20077
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20078 20078
 fi
20079 20079
 if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
20080
-  as_fn_error "conditional \"HAVE_CURSES\" was never defined.
20080
+  as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
20081 20081
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20082 20082
 fi
20083 20083
 if test -z "${BUILD_SHA1_TRUE}" && test -z "${BUILD_SHA1_FALSE}"; then
20084
-  as_fn_error "conditional \"BUILD_SHA1\" was never defined.
20084
+  as_fn_error $? "conditional \"BUILD_SHA1\" was never defined.
20085 20085
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20086 20086
 fi
20087 20087
 
... ...
@@ -20231,19 +20361,19 @@ export LANGUAGE
20231 20231
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20232 20232
 
20233 20233
 
20234
-# as_fn_error ERROR [LINENO LOG_FD]
20235
-# ---------------------------------
20234
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
20235
+# ----------------------------------------
20236 20236
 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20237 20237
 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20238
-# script with status $?, using 1 if that was 0.
20238
+# script with STATUS, using 1 if that was 0.
20239 20239
 as_fn_error ()
20240 20240
 {
20241
-  as_status=$?; test $as_status -eq 0 && as_status=1
20242
-  if test "$3"; then
20243
-    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20244
-    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20241
+  as_status=$1; test $as_status -eq 0 && as_status=1
20242
+  if test "$4"; then
20243
+    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20244
+    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20245 20245
   fi
20246
-  $as_echo "$as_me: error: $1" >&2
20246
+  $as_echo "$as_me: error: $2" >&2
20247 20247
   as_fn_exit $as_status
20248 20248
 } # as_fn_error
20249 20249
 
... ...
@@ -20439,7 +20569,7 @@ $as_echo X"$as_dir" |
20439 20439
       test -d "$as_dir" && break
20440 20440
     done
20441 20441
     test -z "$as_dirs" || eval "mkdir $as_dirs"
20442
-  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20442
+  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20443 20443
 
20444 20444
 
20445 20445
 } # as_fn_mkdir_p
... ...
@@ -20493,7 +20623,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20493 20493
 # values after options handling.
20494 20494
 ac_log="
20495 20495
 This file was extended by ClamAV $as_me devel, which was
20496
-generated by GNU Autoconf 2.65.  Invocation command line was
20496
+generated by GNU Autoconf 2.67.  Invocation command line was
20497 20497
 
20498 20498
   CONFIG_FILES    = $CONFIG_FILES
20499 20499
   CONFIG_HEADERS  = $CONFIG_HEADERS
... ...
@@ -20560,10 +20690,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20560 20560
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20561 20561
 ac_cs_version="\\
20562 20562
 ClamAV config.status devel
20563
-configured by $0, generated by GNU Autoconf 2.65,
20563
+configured by $0, generated by GNU Autoconf 2.67,
20564 20564
   with options \\"\$ac_cs_config\\"
20565 20565
 
20566
-Copyright (C) 2009 Free Software Foundation, Inc.
20566
+Copyright (C) 2010 Free Software Foundation, Inc.
20567 20567
 This config.status script is free software; the Free Software Foundation
20568 20568
 gives unlimited permission to copy, distribute and modify it."
20569 20569
 
... ...
@@ -20581,11 +20711,16 @@ ac_need_defaults=:
20581 20581
 while test $# != 0
20582 20582
 do
20583 20583
   case $1 in
20584
-  --*=*)
20584
+  --*=?*)
20585 20585
     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20586 20586
     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20587 20587
     ac_shift=:
20588 20588
     ;;
20589
+  --*=)
20590
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20591
+    ac_optarg=
20592
+    ac_shift=:
20593
+    ;;
20589 20594
   *)
20590 20595
     ac_option=$1
20591 20596
     ac_optarg=$2
... ...
@@ -20607,6 +20742,7 @@ do
20607 20607
     $ac_shift
20608 20608
     case $ac_optarg in
20609 20609
     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20610
+    '') as_fn_error $? "missing file argument" ;;
20610 20611
     esac
20611 20612
     as_fn_append CONFIG_FILES " '$ac_optarg'"
20612 20613
     ac_need_defaults=false;;
... ...
@@ -20619,7 +20755,7 @@ do
20619 20619
     ac_need_defaults=false;;
20620 20620
   --he | --h)
20621 20621
     # Conflict between --help and --header
20622
-    as_fn_error "ambiguous option: \`$1'
20622
+    as_fn_error $? "ambiguous option: \`$1'
20623 20623
 Try \`$0 --help' for more information.";;
20624 20624
   --help | --hel | -h )
20625 20625
     $as_echo "$ac_cs_usage"; exit ;;
... ...
@@ -20628,7 +20764,7 @@ Try \`$0 --help' for more information.";;
20628 20628
     ac_cs_silent=: ;;
20629 20629
 
20630 20630
   # This is an error.
20631
-  -*) as_fn_error "unrecognized option: \`$1'
20631
+  -*) as_fn_error $? "unrecognized option: \`$1'
20632 20632
 Try \`$0 --help' for more information." ;;
20633 20633
 
20634 20634
   *) as_fn_append ac_config_targets " $1"
... ...
@@ -20971,7 +21107,7 @@ do
20971 20971
     "docs/man/sigtool.1") CONFIG_FILES="$CONFIG_FILES docs/man/sigtool.1" ;;
20972 20972
     "docs/man/clamdtop.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamdtop.1" ;;
20973 20973
 
20974
-  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20974
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20975 20975
   esac
20976 20976
 done
20977 20977
 
... ...
@@ -21009,7 +21145,7 @@ $debug ||
21009 21009
 {
21010 21010
   tmp=./conf$$-$RANDOM
21011 21011
   (umask 077 && mkdir "$tmp")
21012
-} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21012
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21013 21013
 
21014 21014
 # Set up the scripts for CONFIG_FILES section.
21015 21015
 # No need to generate them if there are no CONFIG_FILES.
... ...
@@ -21026,7 +21162,7 @@ if test "x$ac_cr" = x; then
21026 21026
 fi
21027 21027
 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21028 21028
 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21029
-  ac_cs_awk_cr='\r'
21029
+  ac_cs_awk_cr='\\r'
21030 21030
 else
21031 21031
   ac_cs_awk_cr=$ac_cr
21032 21032
 fi
... ...
@@ -21040,18 +21176,18 @@ _ACEOF
21040 21040
   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21041 21041
   echo "_ACEOF"
21042 21042
 } >conf$$subs.sh ||
21043
-  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21044
-ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21043
+  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21044
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21045 21045
 ac_delim='%!_!# '
21046 21046
 for ac_last_try in false false false false false :; do
21047 21047
   . ./conf$$subs.sh ||
21048
-    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21048
+    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21049 21049
 
21050 21050
   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21051 21051
   if test $ac_delim_n = $ac_delim_num; then
21052 21052
     break
21053 21053
   elif $ac_last_try; then
21054
-    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21054
+    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21055 21055
   else
21056 21056
     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21057 21057
   fi
... ...
@@ -21140,20 +21276,28 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21140 21140
 else
21141 21141
   cat
21142 21142
 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21143
-  || as_fn_error "could not setup config files machinery" "$LINENO" 5
21143
+  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21144 21144
 _ACEOF
21145 21145
 
21146
-# VPATH may cause trouble with some makes, so we remove $(srcdir),
21147
-# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21146
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21147
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21148 21148
 # trailing colons and then remove the whole line if VPATH becomes empty
21149 21149
 # (actually we leave an empty line to preserve line numbers).
21150 21150
 if test "x$srcdir" = x.; then
21151
-  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21152
-s/:*\$(srcdir):*/:/
21153
-s/:*\${srcdir}:*/:/
21154
-s/:*@srcdir@:*/:/
21155
-s/^\([^=]*=[	 ]*\):*/\1/
21151
+  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21152
+h
21153
+s///
21154
+s/^/:/
21155
+s/[	 ]*$/:/
21156
+s/:\$(srcdir):/:/g
21157
+s/:\${srcdir}:/:/g
21158
+s/:@srcdir@:/:/g
21159
+s/^:*//
21156 21160
 s/:*$//
21161
+x
21162
+s/\(=[	 ]*\).*/\1/
21163
+G
21164
+s/\n//
21157 21165
 s/^[^=]*=[	 ]*$//
21158 21166
 }'
21159 21167
 fi
... ...
@@ -21181,7 +21325,7 @@ for ac_last_try in false false :; do
21181 21181
   if test -z "$ac_t"; then
21182 21182
     break
21183 21183
   elif $ac_last_try; then
21184
-    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21184
+    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21185 21185
   else
21186 21186
     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21187 21187
   fi
... ...
@@ -21266,7 +21410,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21266 21266
 _ACAWK
21267 21267
 _ACEOF
21268 21268
 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21269
-  as_fn_error "could not setup config headers machinery" "$LINENO" 5
21269
+  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21270 21270
 fi # test -n "$CONFIG_HEADERS"
21271 21271
 
21272 21272
 
... ...
@@ -21279,7 +21423,7 @@ do
21279 21279
   esac
21280 21280
   case $ac_mode$ac_tag in
21281 21281
   :[FHL]*:*);;
21282
-  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21282
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
21283 21283
   :[FH]-) ac_tag=-:-;;
21284 21284
   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21285 21285
   esac
... ...
@@ -21307,7 +21451,7 @@ do
21307 21307
 	   [\\/$]*) false;;
21308 21308
 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21309 21309
 	   esac ||
21310
-	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21310
+	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
21311 21311
       esac
21312 21312
       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21313 21313
       as_fn_append ac_file_inputs " '$ac_f'"
... ...
@@ -21334,7 +21478,7 @@ $as_echo "$as_me: creating $ac_file" >&6;}
21334 21334
 
21335 21335
     case $ac_tag in
21336 21336
     *:-:* | *:-) cat >"$tmp/stdin" \
21337
-      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21337
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
21338 21338
     esac
21339 21339
     ;;
21340 21340
   esac
... ...
@@ -21471,22 +21615,22 @@ s&@MKDIR_P@&$ac_MKDIR_P&;t t
21471 21471
 $ac_datarootdir_hack
21472 21472
 "
21473 21473
 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21474
-  || as_fn_error "could not create $ac_file" "$LINENO" 5
21474
+  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21475 21475
 
21476 21476
 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21477 21477
   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21478 21478
   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21479 21479
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21480
-which seems to be undefined.  Please make sure it is defined." >&5
21480
+which seems to be undefined.  Please make sure it is defined" >&5
21481 21481
 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21482
-which seems to be undefined.  Please make sure it is defined." >&2;}
21482
+which seems to be undefined.  Please make sure it is defined" >&2;}
21483 21483
 
21484 21484
   rm -f "$tmp/stdin"
21485 21485
   case $ac_file in
21486 21486
   -) cat "$tmp/out" && rm -f "$tmp/out";;
21487 21487
   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21488 21488
   esac \
21489
-  || as_fn_error "could not create $ac_file" "$LINENO" 5
21489
+  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21490 21490
  ;;
21491 21491
   :H)
21492 21492
   #
... ...
@@ -21497,19 +21641,19 @@ which seems to be undefined.  Please make sure it is defined." >&2;}
21497 21497
       $as_echo "/* $configure_input  */" \
21498 21498
       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21499 21499
     } >"$tmp/config.h" \
21500
-      || as_fn_error "could not create $ac_file" "$LINENO" 5
21500
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21501 21501
     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21502 21502
       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21503 21503
 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21504 21504
     else
21505 21505
       rm -f "$ac_file"
21506 21506
       mv "$tmp/config.h" "$ac_file" \
21507
-	|| as_fn_error "could not create $ac_file" "$LINENO" 5
21507
+	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21508 21508
     fi
21509 21509
   else
21510 21510
     $as_echo "/* $configure_input  */" \
21511 21511
       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21512
-      || as_fn_error "could not create -" "$LINENO" 5
21512
+      || as_fn_error $? "could not create -" "$LINENO" 5
21513 21513
   fi
21514 21514
 # Compute "$ac_file"'s index in $config_headers.
21515 21515
 _am_arg="$ac_file"
... ...
@@ -22294,7 +22438,7 @@ _ACEOF
22294 22294
 ac_clean_files=$ac_clean_files_save
22295 22295
 
22296 22296
 test $ac_write_fail = 0 ||
22297
-  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22297
+  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22298 22298
 
22299 22299
 
22300 22300
 # configure is writing to config.log, and then calls config.status.
... ...
@@ -22315,7 +22459,7 @@ if test "$no_create" != yes; then
22315 22315
   exec 5>>config.log
22316 22316
   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22317 22317
   # would make configure fail if this is the last instruction.
22318
-  $ac_cs_success || as_fn_exit $?
22318
+  $ac_cs_success || as_fn_exit 1
22319 22319
 fi
22320 22320
 
22321 22321
 
... ...
@@ -22472,7 +22616,7 @@ fi
22472 22472
 
22473 22473
 
22474 22474
 if test "$enable_llvm" = "yes" && test "$subdirfailed" != "no"; then
22475
-    as_fn_error "Failed to configure LLVM, and LLVM was explicitly requested" "$LINENO" 5
22475
+    as_fn_error $? "Failed to configure LLVM, and LLVM was explicitly requested" "$LINENO" 5
22476 22476
 fi
22477 22477
  if test "$subdirfailed" != "yes" && test "$enable_llvm" != "no"; then
22478 22478
   ENABLE_LLVM_TRUE=
... ...
@@ -22568,6 +22712,7 @@ DEFS=-DHAVE_CONFIG_H
22568 22568
 
22569 22569
 ac_libobjs=
22570 22570
 ac_ltlibobjs=
22571
+U=
22571 22572
 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22572 22573
   # 1. Remove the extension, and $U if already installed.
22573 22574
   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
... ...
@@ -22591,19 +22736,19 @@ else
22591 22591
 fi
22592 22592
 
22593 22593
 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22594
-  as_fn_error "conditional \"AMDEP\" was never defined.
22594
+  as_fn_error $? "conditional \"AMDEP\" was never defined.
22595 22595
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22596 22596
 fi
22597 22597
 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22598
-  as_fn_error "conditional \"am__fastdepCC\" was never defined.
22598
+  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22599 22599
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22600 22600
 fi
22601 22601
 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22602
-  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
22602
+  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
22603 22603
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22604 22604
 fi
22605 22605
 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22606
-  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
22606
+  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
22607 22607
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22608 22608
 fi
22609 22609
 LT_CONFIG_H=clamav-config.h
... ...
@@ -22625,51 +22770,51 @@ LT_CONFIG_H=clamav-config.h
22625 22625
 
22626 22626
 
22627 22627
 if test -z "${VERSIONSCRIPT_TRUE}" && test -z "${VERSIONSCRIPT_FALSE}"; then
22628
-  as_fn_error "conditional \"VERSIONSCRIPT\" was never defined.
22628
+  as_fn_error $? "conditional \"VERSIONSCRIPT\" was never defined.
22629 22629
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22630 22630
 fi
22631 22631
 if test -z "${HAVE_LIBCHECK_TRUE}" && test -z "${HAVE_LIBCHECK_FALSE}"; then
22632
-  as_fn_error "conditional \"HAVE_LIBCHECK\" was never defined.
22632
+  as_fn_error $? "conditional \"HAVE_LIBCHECK\" was never defined.
22633 22633
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22634 22634
 fi
22635 22635
 if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
22636
-  as_fn_error "conditional \"ENABLE_COVERAGE\" was never defined.
22636
+  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
22637 22637
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22638 22638
 fi
22639 22639
 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22640
-  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
22640
+  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22641 22641
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22642 22642
 fi
22643 22643
 if test -z "${ENABLE_UNRAR_TRUE}" && test -z "${ENABLE_UNRAR_FALSE}"; then
22644
-  as_fn_error "conditional \"ENABLE_UNRAR\" was never defined.
22644
+  as_fn_error $? "conditional \"ENABLE_UNRAR\" was never defined.
22645 22645
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22646 22646
 fi
22647 22647
 if test -z "${LINK_TOMMATH_TRUE}" && test -z "${LINK_TOMMATH_FALSE}"; then
22648
-  as_fn_error "conditional \"LINK_TOMMATH\" was never defined.
22648
+  as_fn_error $? "conditional \"LINK_TOMMATH\" was never defined.
22649 22649
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22650 22650
 fi
22651 22651
 if test -z "${BUILD_CLAMD_TRUE}" && test -z "${BUILD_CLAMD_FALSE}"; then
22652
-  as_fn_error "conditional \"BUILD_CLAMD\" was never defined.
22652
+  as_fn_error $? "conditional \"BUILD_CLAMD\" was never defined.
22653 22653
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22654 22654
 fi
22655 22655
 if test -z "${HAVE_MILTER_TRUE}" && test -z "${HAVE_MILTER_FALSE}"; then
22656
-  as_fn_error "conditional \"HAVE_MILTER\" was never defined.
22656
+  as_fn_error $? "conditional \"HAVE_MILTER\" was never defined.
22657 22657
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22658 22658
 fi
22659 22659
 if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
22660
-  as_fn_error "conditional \"HAVE_CURSES\" was never defined.
22660
+  as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
22661 22661
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22662 22662
 fi
22663 22663
 if test -z "${BUILD_SHA1_TRUE}" && test -z "${BUILD_SHA1_FALSE}"; then
22664
-  as_fn_error "conditional \"BUILD_SHA1\" was never defined.
22664
+  as_fn_error $? "conditional \"BUILD_SHA1\" was never defined.
22665 22665
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22666 22666
 fi
22667 22667
 if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
22668
-  as_fn_error "conditional \"am__EXEEXT\" was never defined.
22668
+  as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
22669 22669
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22670 22670
 fi
22671 22671
 if test -z "${ENABLE_LLVM_TRUE}" && test -z "${ENABLE_LLVM_FALSE}"; then
22672
-  as_fn_error "conditional \"ENABLE_LLVM\" was never defined.
22672
+  as_fn_error $? "conditional \"ENABLE_LLVM\" was never defined.
22673 22673
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22674 22674
 fi
22675 22675
 
... ...
@@ -22819,19 +22964,19 @@ export LANGUAGE
22819 22819
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22820 22820
 
22821 22821
 
22822
-# as_fn_error ERROR [LINENO LOG_FD]
22823
-# ---------------------------------
22822
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
22823
+# ----------------------------------------
22824 22824
 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22825 22825
 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22826
-# script with status $?, using 1 if that was 0.
22826
+# script with STATUS, using 1 if that was 0.
22827 22827
 as_fn_error ()
22828 22828
 {
22829
-  as_status=$?; test $as_status -eq 0 && as_status=1
22830
-  if test "$3"; then
22831
-    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22832
-    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22829
+  as_status=$1; test $as_status -eq 0 && as_status=1
22830
+  if test "$4"; then
22831
+    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22832
+    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22833 22833
   fi
22834
-  $as_echo "$as_me: error: $1" >&2
22834
+  $as_echo "$as_me: error: $2" >&2
22835 22835
   as_fn_exit $as_status
22836 22836
 } # as_fn_error
22837 22837
 
... ...
@@ -23027,7 +23172,7 @@ $as_echo X"$as_dir" |
23027 23027
       test -d "$as_dir" && break
23028 23028
     done
23029 23029
     test -z "$as_dirs" || eval "mkdir $as_dirs"
23030
-  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23030
+  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23031 23031
 
23032 23032
 
23033 23033
 } # as_fn_mkdir_p
... ...
@@ -23081,7 +23226,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23081 23081
 # values after options handling.
23082 23082
 ac_log="
23083 23083
 This file was extended by ClamAV $as_me devel, which was
23084
-generated by GNU Autoconf 2.65.  Invocation command line was
23084
+generated by GNU Autoconf 2.67.  Invocation command line was
23085 23085
 
23086 23086
   CONFIG_FILES    = $CONFIG_FILES
23087 23087
   CONFIG_HEADERS  = $CONFIG_HEADERS
... ...
@@ -23148,10 +23293,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23148 23148
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23149 23149
 ac_cs_version="\\
23150 23150
 ClamAV config.status devel
23151
-configured by $0, generated by GNU Autoconf 2.65,
23151
+configured by $0, generated by GNU Autoconf 2.67,
23152 23152
   with options \\"\$ac_cs_config\\"
23153 23153
 
23154
-Copyright (C) 2009 Free Software Foundation, Inc.
23154
+Copyright (C) 2010 Free Software Foundation, Inc.
23155 23155
 This config.status script is free software; the Free Software Foundation
23156 23156
 gives unlimited permission to copy, distribute and modify it."
23157 23157
 
... ...
@@ -23169,11 +23314,16 @@ ac_need_defaults=:
23169 23169
 while test $# != 0
23170 23170
 do
23171 23171
   case $1 in
23172
-  --*=*)
23172
+  --*=?*)
23173 23173
     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23174 23174
     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23175 23175
     ac_shift=:
23176 23176
     ;;
23177
+  --*=)
23178
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23179
+    ac_optarg=
23180
+    ac_shift=:
23181
+    ;;
23177 23182
   *)
23178 23183
     ac_option=$1
23179 23184
     ac_optarg=$2
... ...
@@ -23195,6 +23345,7 @@ do
23195 23195
     $ac_shift
23196 23196
     case $ac_optarg in
23197 23197
     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23198
+    '') as_fn_error $? "missing file argument" ;;
23198 23199
     esac
23199 23200
     as_fn_append CONFIG_FILES " '$ac_optarg'"
23200 23201
     ac_need_defaults=false;;
... ...
@@ -23207,7 +23358,7 @@ do
23207 23207
     ac_need_defaults=false;;
23208 23208
   --he | --h)
23209 23209
     # Conflict between --help and --header
23210
-    as_fn_error "ambiguous option: \`$1'
23210
+    as_fn_error $? "ambiguous option: \`$1'
23211 23211
 Try \`$0 --help' for more information.";;
23212 23212
   --help | --hel | -h )
23213 23213
     $as_echo "$ac_cs_usage"; exit ;;
... ...
@@ -23216,7 +23367,7 @@ Try \`$0 --help' for more information.";;
23216 23216
     ac_cs_silent=: ;;
23217 23217
 
23218 23218
   # This is an error.
23219
-  -*) as_fn_error "unrecognized option: \`$1'
23219
+  -*) as_fn_error $? "unrecognized option: \`$1'
23220 23220
 Try \`$0 --help' for more information." ;;
23221 23221
 
23222 23222
   *) as_fn_append ac_config_targets " $1"
... ...
@@ -23561,7 +23712,7 @@ do
23561 23561
     "docs/man/clamdtop.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamdtop.1" ;;
23562 23562
     "libclamav/Makefile") CONFIG_FILES="$CONFIG_FILES libclamav/Makefile" ;;
23563 23563
 
23564
-  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23564
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
23565 23565
   esac
23566 23566
 done
23567 23567
 
... ...
@@ -23599,7 +23750,7 @@ $debug ||
23599 23599
 {
23600 23600
   tmp=./conf$$-$RANDOM
23601 23601
   (umask 077 && mkdir "$tmp")
23602
-} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23602
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23603 23603
 
23604 23604
 # Set up the scripts for CONFIG_FILES section.
23605 23605
 # No need to generate them if there are no CONFIG_FILES.
... ...
@@ -23616,7 +23767,7 @@ if test "x$ac_cr" = x; then
23616 23616
 fi
23617 23617
 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23618 23618
 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23619
-  ac_cs_awk_cr='\r'
23619
+  ac_cs_awk_cr='\\r'
23620 23620
 else
23621 23621
   ac_cs_awk_cr=$ac_cr
23622 23622
 fi
... ...
@@ -23630,18 +23781,18 @@ _ACEOF
23630 23630
   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23631 23631
   echo "_ACEOF"
23632 23632
 } >conf$$subs.sh ||
23633
-  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23634
-ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23633
+  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23634
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23635 23635
 ac_delim='%!_!# '
23636 23636
 for ac_last_try in false false false false false :; do
23637 23637
   . ./conf$$subs.sh ||
23638
-    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23638
+    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23639 23639
 
23640 23640
   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23641 23641
   if test $ac_delim_n = $ac_delim_num; then
23642 23642
     break
23643 23643
   elif $ac_last_try; then
23644
-    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23644
+    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23645 23645
   else
23646 23646
     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23647 23647
   fi
... ...
@@ -23730,20 +23881,28 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23730 23730
 else
23731 23731
   cat
23732 23732
 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23733
-  || as_fn_error "could not setup config files machinery" "$LINENO" 5
23733
+  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23734 23734
 _ACEOF
23735 23735
 
23736
-# VPATH may cause trouble with some makes, so we remove $(srcdir),
23737
-# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23736
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23737
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23738 23738
 # trailing colons and then remove the whole line if VPATH becomes empty
23739 23739
 # (actually we leave an empty line to preserve line numbers).
23740 23740
 if test "x$srcdir" = x.; then
23741
-  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23742
-s/:*\$(srcdir):*/:/
23743
-s/:*\${srcdir}:*/:/
23744
-s/:*@srcdir@:*/:/
23745
-s/^\([^=]*=[	 ]*\):*/\1/
23741
+  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23742
+h
23743
+s///
23744
+s/^/:/
23745
+s/[	 ]*$/:/
23746
+s/:\$(srcdir):/:/g
23747
+s/:\${srcdir}:/:/g
23748
+s/:@srcdir@:/:/g
23749
+s/^:*//
23746 23750
 s/:*$//
23751
+x
23752
+s/\(=[	 ]*\).*/\1/
23753
+G
23754
+s/\n//
23747 23755
 s/^[^=]*=[	 ]*$//
23748 23756
 }'
23749 23757
 fi
... ...
@@ -23771,7 +23930,7 @@ for ac_last_try in false false :; do
23771 23771
   if test -z "$ac_t"; then
23772 23772
     break
23773 23773
   elif $ac_last_try; then
23774
-    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23774
+    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23775 23775
   else
23776 23776
     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23777 23777
   fi
... ...
@@ -23856,7 +24015,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23856 23856
 _ACAWK
23857 23857
 _ACEOF
23858 23858
 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23859
-  as_fn_error "could not setup config headers machinery" "$LINENO" 5
23859
+  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23860 23860
 fi # test -n "$CONFIG_HEADERS"
23861 23861
 
23862 23862
 
... ...
@@ -23869,7 +24028,7 @@ do
23869 23869
   esac
23870 23870
   case $ac_mode$ac_tag in
23871 23871
   :[FHL]*:*);;
23872
-  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23872
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
23873 23873
   :[FH]-) ac_tag=-:-;;
23874 23874
   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23875 23875
   esac
... ...
@@ -23897,7 +24056,7 @@ do
23897 23897
 	   [\\/$]*) false;;
23898 23898
 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23899 23899
 	   esac ||
23900
-	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23900
+	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
23901 23901
       esac
23902 23902
       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23903 23903
       as_fn_append ac_file_inputs " '$ac_f'"
... ...
@@ -23924,7 +24083,7 @@ $as_echo "$as_me: creating $ac_file" >&6;}
23924 23924
 
23925 23925
     case $ac_tag in
23926 23926
     *:-:* | *:-) cat >"$tmp/stdin" \
23927
-      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23927
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
23928 23928
     esac
23929 23929
     ;;
23930 23930
   esac
... ...
@@ -24061,22 +24220,22 @@ s&@MKDIR_P@&$ac_MKDIR_P&;t t
24061 24061
 $ac_datarootdir_hack
24062 24062
 "
24063 24063
 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24064
-  || as_fn_error "could not create $ac_file" "$LINENO" 5
24064
+  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24065 24065
 
24066 24066
 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24067 24067
   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24068 24068
   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24069 24069
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24070
-which seems to be undefined.  Please make sure it is defined." >&5
24070
+which seems to be undefined.  Please make sure it is defined" >&5
24071 24071
 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24072
-which seems to be undefined.  Please make sure it is defined." >&2;}
24072
+which seems to be undefined.  Please make sure it is defined" >&2;}
24073 24073
 
24074 24074
   rm -f "$tmp/stdin"
24075 24075
   case $ac_file in
24076 24076
   -) cat "$tmp/out" && rm -f "$tmp/out";;
24077 24077
   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24078 24078
   esac \
24079
-  || as_fn_error "could not create $ac_file" "$LINENO" 5
24079
+  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24080 24080
  ;;
24081 24081
   :H)
24082 24082
   #
... ...
@@ -24087,19 +24246,19 @@ which seems to be undefined.  Please make sure it is defined." >&2;}
24087 24087
       $as_echo "/* $configure_input  */" \
24088 24088
       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24089 24089
     } >"$tmp/config.h" \
24090
-      || as_fn_error "could not create $ac_file" "$LINENO" 5
24090
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24091 24091
     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24092 24092
       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24093 24093
 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24094 24094
     else
24095 24095
       rm -f "$ac_file"
24096 24096
       mv "$tmp/config.h" "$ac_file" \
24097
-	|| as_fn_error "could not create $ac_file" "$LINENO" 5
24097
+	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24098 24098
     fi
24099 24099
   else
24100 24100
     $as_echo "/* $configure_input  */" \
24101 24101
       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24102
-      || as_fn_error "could not create -" "$LINENO" 5
24102
+      || as_fn_error $? "could not create -" "$LINENO" 5
24103 24103
   fi
24104 24104
 # Compute "$ac_file"'s index in $config_headers.
24105 24105
 _am_arg="$ac_file"
... ...
@@ -24884,7 +25043,7 @@ _ACEOF
24884 24884
 ac_clean_files=$ac_clean_files_save
24885 24885
 
24886 24886
 test $ac_write_fail = 0 ||
24887
-  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24887
+  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24888 24888
 
24889 24889
 
24890 24890
 # configure is writing to config.log, and then calls config.status.
... ...
@@ -24905,7 +25064,7 @@ if test "$no_create" != yes; then
24905 24905
   exec 5>>config.log
24906 24906
   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24907 24907
   # would make configure fail if this is the last instruction.
24908
-  $ac_cs_success || as_fn_exit $?
24908
+  $ac_cs_success || as_fn_exit 1
24909 24909
 fi
24910 24910
 
24911 24911
 
... ...
@@ -25256,13 +25415,13 @@ fi
25256 25256
 
25257 25257
    $as_echo_n "              bzip2       : "
25258 25258
    if test "x$want_bzip2" = "xno"; then :
25259
-  $as_echo "$ac_cv_c_cve_2008_1372 (disabled)"
25259
+  $as_echo "$bzip_check (disabled)"
25260 25260
 elif test "x$want_bzip2" = "xyes"; then :
25261
-  $as_echo "$ac_cv_c_cve_2008_1372"
25261
+  $as_echo "$bzip_check"
25262 25262
 elif test "x$want_bzip2" = "x"; then :
25263
-  $as_echo "$ac_cv_c_cve_2008_1372"
25263
+  $as_echo "$bzip_check"
25264 25264
 else
25265
-  $as_echo "$ac_cv_c_cve_2008_1372 ($want_bzip2)"
25265
+  $as_echo "$bzip_check ($want_bzip2)"
25266 25266
 fi
25267 25267
 
25268 25268
 
... ...
@@ -25308,18 +25467,20 @@ $as_echo "$as_me: WARNING:
25308 25308
 " >&2;}
25309 25309
 fi
25310 25310
 
25311
-if test "x$cross_compiling" != "xno" || test "x$gcc_check" != "xyes" || test "x$zlib_check" = "xno" ; then
25311
+if test "x$cross_compiling" != "xno" || test "x$gcc_check" != "xyes" || test "x$zlib_check" = "xno" || test "x$bzip_check" != "xok" ; then
25312 25312
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25313 25313
 ****** WARNING:
25314
-****** You are either cross compiling to a different host or
25315
-****** you have manually disabled important configure checks.
25314
+****** You are cross compiling to a different host or you are
25315
+****** linking to bugged system libraries or you have manually
25316
+****** disabled important configure checks.
25316 25317
 ****** Please be aware that this build may be badly broken.
25317 25318
 ****** DO NOT REPORT BUGS BASED ON THIS BUILD !!!
25318 25319
 " >&5
25319 25320
 $as_echo "$as_me: WARNING:
25320 25321
 ****** WARNING:
25321
-****** You are either cross compiling to a different host or
25322
-****** you have manually disabled important configure checks.
25322
+****** You are cross compiling to a different host or you are
25323
+****** linking to bugged system libraries or you have manually
25324
+****** disabled important configure checks.
25323 25325
 ****** Please be aware that this build may be badly broken.
25324 25326
 ****** DO NOT REPORT BUGS BASED ON THIS BUILD !!!
25325 25327
 " >&2;}
... ...
@@ -571,6 +571,7 @@ AC_ARG_ENABLE([bzip2],
571 571
 [  --disable-bzip2	  disable bzip2 support],
572 572
 want_bzip2=$enableval, want_bzip2="yes")
573 573
 
574
+bzip_check="ok"
574 575
 if test "$want_bzip2" = "yes"
575 576
 then
576 577
     AC_LIB_LINKFLAGS([bz2])
... ...
@@ -592,6 +593,7 @@ then
592 592
 		AC_MSG_WARN([****** bzip2 libraries are affected by the CVE-2008-1372 bug])
593 593
 		AC_MSG_WARN([****** We strongly suggest you to update to bzip2 1.0.5.])
594 594
 		AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!])
595
+		bzip_check="bugged (CVE-2008-1372)"
595 596
 	fi
596 597
 	if test "$ac_cv_c_cve_2008_1372" = "linkfailed"; then
597 598
 		dnl This shouldn't happen
... ...
@@ -600,10 +602,38 @@ then
600 600
 		AC_MSG_WARN([****** You may be affected by CVE-2008-1372 bug, but I need to be able to link a testcase to verify])
601 601
 		AC_MSG_WARN([****** It is recommended to fix your build environment so that we can run the testcase!])
602 602
 		AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!])
603
+		bzip_check="link failed (CVE-2008-1372)"
603 604
 	fi
604 605
 
605 606
 	case "$ac_cv_c_cve_2008_1372" in
606 607
 	ok|bugged|linkfailed)
608
+		;;
609
+	*)
610
+		HAVE_LIBBZ2=no
611
+		;;
612
+	esac
613
+    fi
614
+
615
+    if test "$HAVE_LIBBZ2" = "yes"; then
616
+	AC_C_CVE_2010_0405
617
+	if test "$ac_cv_c_cve_2010_0405" = "bugged"; then
618
+		AC_MSG_WARN([****** bzip2 libraries are affected by the CVE-2010-0405 bug])
619
+		AC_MSG_WARN([****** We strongly suggest you to update bzip2])
620
+		AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!])
621
+		bzip_check="bugged (CVE-2010-0405)"
622
+	fi
623
+	if test "$ac_cv_c_cve_2010_0405" = "linkfailed"; then
624
+		dnl This shouldn't happen
625
+		dnl We failed to link but libtool may still be able to link, so don't disable bzip2 just yet
626
+		AC_MSG_WARN([****** Unable to link bzip2 testcase])
627
+		AC_MSG_WARN([****** You may be affected by CVE-2010-0405 bug, but I need to be able to link a testcase to verify])
628
+		AC_MSG_WARN([****** It is recommended to fix your build environment so that we can run the testcase!])
629
+		AC_MSG_WARN([****** Please do not report stability problems to the ClamAV developers!])
630
+		bzip_check="link failed (CVE-2010-0405)"
631
+	fi
632
+
633
+	case "$ac_cv_c_cve_2010_0405" in
634
+	ok|bugged|linkfailed)
607 635
 		LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBBZ2"
608 636
 		AC_DEFINE([HAVE_BZLIB_H],1,[have bzip2])
609 637
 		;;
... ...
@@ -1665,7 +1695,7 @@ CL_MSG_STATUS([mempool     ],[$have_mempool],[$enable_mempool])
1665 1665
 
1666 1666
 AC_MSG_NOTICE([Summary of engine detection features])
1667 1667
 CL_MSG_STATUS([autoit_ea06 ],[$have_autoitea06],[])
1668
-CL_MSG_STATUS([bzip2       ],[$ac_cv_c_cve_2008_1372],[$want_bzip2])
1668
+CL_MSG_STATUS([bzip2       ],[$bzip_check],[$want_bzip2])
1669 1669
 CL_MSG_STATUS([zlib        ],[$ZLIB_HOME],[yes])
1670 1670
 CL_MSG_STATUS([unrar       ],[$want_unrar],[$want_unrar])
1671 1671
 
... ...
@@ -1680,11 +1710,12 @@ if test "x$gcc_check" != "xyes"; then
1680 1680
 ])
1681 1681
 fi
1682 1682
 
1683
-if test "x$cross_compiling" != "xno" || test "x$gcc_check" != "xyes" || test "x$zlib_check" = "xno" ; then
1683
+if test "x$cross_compiling" != "xno" || test "x$gcc_check" != "xyes" || test "x$zlib_check" = "xno" || test "x$bzip_check" != "xok" ; then
1684 1684
 AC_MSG_WARN([
1685 1685
 ****** WARNING:
1686
-****** You are either cross compiling to a different host or
1687
-****** you have manually disabled important configure checks.
1686
+****** You are cross compiling to a different host or you are
1687
+****** linking to bugged system libraries or you have manually
1688
+****** disabled important configure checks.
1688 1689
 ****** Please be aware that this build may be badly broken.
1689 1690
 ****** DO NOT REPORT BUGS BASED ON THIS BUILD !!!
1690 1691
 ])
... ...
@@ -766,6 +766,13 @@ static Int32 BZ2_decompress ( DState* s )
766 766
             es = -1;
767 767
             N = 1;
768 768
             do {
769
+               /* Check that N doesn't get too big, so that es doesn't
770
+                  go negative.  The maximum value that can be
771
+                  RUNA/RUNB encoded is equal to the block size (post
772
+                  the initial RLE), viz, 900k, so bounding N at 2
773
+                  million should guard against overflow without
774
+                  rejecting any legitimate inputs. */
775
+	       if (N >= 2*1024*1024) RETURN(BZ_DATA_ERROR);
769 776
                if (nextSym == BZ_RUNA) es = es + (0+1) * N; else
770 777
                if (nextSym == BZ_RUNB) es = es + (1+1) * N;
771 778
                N = N * 2;
... ...
@@ -870,14 +877,28 @@ static Int32 BZ2_decompress ( DState* s )
870 870
          RETURN(BZ_DATA_ERROR);
871 871
 
872 872
       /*-- Set up cftab to facilitate generation of T^(-1) --*/
873
+      /* Check: unzftab entries in range. */
874
+      for (i = 0; i <= 255; i++) {
875
+         if (s->unzftab[i] < 0 || s->unzftab[i] > nblock)
876
+            RETURN(BZ_DATA_ERROR);
877
+      }
878
+      /* Actually generate cftab. */
873 879
       s->cftab[0] = 0;
874 880
       for (i = 1; i <= 256; i++) s->cftab[i] = s->unzftab[i-1];
875 881
       for (i = 1; i <= 256; i++) s->cftab[i] += s->cftab[i-1];
882
+      /* Check: cftab entries in range. */
876 883
       for (i = 0; i <= 256; i++) {
877 884
          if (s->cftab[i] < 0 || s->cftab[i] > nblock) {
878 885
             RETURN(BZ_DATA_ERROR);
879 886
          }
880 887
       }
888
+      /* Check: cftab entries non-descending. */
889
+      for (i = 1; i <= 256; i++) {
890
+         if (s->cftab[i-1] > s->cftab[i]) {
891
+            RETURN(BZ_DATA_ERROR);
892
+         }
893
+      }
894
+
881 895
       s->state_out_len = 0;
882 896
       s->state_out_ch  = 0;
883 897
       /* BZ_INITIALISE_CRC ( s->calculatedBlockCRC ); */
... ...
@@ -701,6 +701,80 @@ LIBS="$save_LIBS"
701 701
 ])
702 702
 ])
703 703
 
704
+dnl AC_C_CVE_2010_0405
705
+dnl Checks DoS in bzlib 
706
+AC_DEFUN([AC_C_CVE_2010_0405],
707
+[AC_CACHE_CHECK([for CVE-2010-0405], [ac_cv_c_cve_2010_0405],
708
+[
709
+save_LIBS="$LIBS"
710
+LIBS="$LIBCLAMAV_LIBS $LIBBZ2"
711
+AC_TRY_RUN([
712
+#include <string.h>
713
+#include <stdlib.h>
714
+#include <stdio.h>
715
+#include <bzlib.h>
716
+
717
+#ifdef NOBZ2PREFIX
718
+#define BZ2_bzReadOpen bzReadOpen
719
+#define BZ2_bzReadClose bzReadClose
720
+#define BZ2_bzRead bzRead
721
+#define BZ2_bzDecompressInit bzDecompressInit
722
+#define BZ2_bzDecompress bzDecompress
723
+#define BZ2_bzDecompressEnd bzDecompressEnd
724
+#endif
725
+
726
+const unsigned char poc[] = {
727
+0x42, 0x5a, 0x68, 0x39, 0x31, 0x41, 0x59, 0x26, 0x53, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
728
+0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
729
+0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
730
+0xff, 0xff, 0xfe, 0x20, 0x2c, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
731
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
732
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
733
+0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
734
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
735
+0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
736
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
737
+0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01,
738
+0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
739
+0x00, 0x00, 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
740
+0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
741
+0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
742
+0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01,
743
+0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01,
744
+0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xff
745
+};
746
+const unsigned int poc_len = 280;
747
+
748
+int main (int argc, char **argv) {
749
+        bz_stream bz;
750
+        char buf[1024];
751
+
752
+        memset(&bz, 0, sizeof(bz));
753
+        bz.next_in = (char *)&poc;
754
+        bz.avail_in = poc_len;
755
+        bz.next_out = buf;
756
+        bz.avail_out = sizeof(buf);
757
+        if(BZ2_bzDecompressInit(&bz, 0, 0)!=BZ_OK)
758
+                return 1;
759
+
760
+        while((BZ2_bzDecompress(&bz))==BZ_OK) {
761
+                bz.next_out = buf;
762
+                bz.avail_out = sizeof(buf);
763
+        }
764
+        BZ2_bzDecompressEnd(&bz);
765
+        return 0;
766
+}
767
+], [ac_cv_c_cve_2010_0405=ok], [
768
+if test $? -gt 127; then 
769
+	ac_cv_c_cve_2010_0405=bugged
770
+else
771
+	ac_cv_c_cve_2010_0405=linkfailed
772
+fi
773
+], [ac_cv_c_cve_2010_0405=ok])
774
+LIBS="$save_LIBS"
775
+])
776
+])
777
+
704 778
 dnl AC_LIB_FIND(LIBNAME, HEADER, LINKTESTCODE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
705 779
 dnl Checks for flags needed to link with LIBNAME, for the existence of HEADER,
706 780
 dnl and the ability to link with LINKTESTCODE.