... | ... |
@@ -635,7 +635,9 @@ ac_includes_default="\ |
635 | 635 |
#endif" |
636 | 636 |
|
637 | 637 |
enable_option_checking=no |
638 |
-ac_subst_vars='ENABLE_YARA_FALSE |
|
638 |
+ac_subst_vars='ENABLE_CLAMSUBMIT_FALSE |
|
639 |
+ENABLE_CLAMSUBMIT_TRUE |
|
640 |
+ENABLE_YARA_FALSE |
|
639 | 641 |
ENABLE_YARA_TRUE |
640 | 642 |
ENABLE_LLVM_FALSE |
641 | 643 |
ENABLE_LLVM_TRUE |
... | ... |
@@ -692,8 +694,6 @@ LIBPRELUDE_CFLAGS |
692 | 692 |
LIBPRELUDE_CONFIG |
693 | 693 |
ENABLE_LIBFRESHCLAM_FALSE |
694 | 694 |
ENABLE_LIBFRESHCLAM_TRUE |
695 |
-ENABLE_CLAMSUBMIT_FALSE |
|
696 |
-ENABLE_CLAMSUBMIT_TRUE |
|
697 | 695 |
HAVE_YARA |
698 | 696 |
subdirs |
699 | 697 |
llvmconfig |
... | ... |
@@ -18718,9 +18718,9 @@ then |
18718 | 18718 |
as_fn_error $? "Please install zlib and zlib-devel packages" "$LINENO" 5 |
18719 | 18719 |
else |
18720 | 18720 |
|
18721 |
- vuln=`grep "ZLIB_VERSION \"1.2.0" $ZLIB_HOME/include/zlib.h` |
|
18721 |
+ vuln=`grep "ZLIB_VERSION \"1.2.0\"" $ZLIB_HOME/include/zlib.h` |
|
18722 | 18722 |
if test -z "$vuln"; then |
18723 |
- vuln=`grep "ZLIB_VERSION \"1.2.1" $ZLIB_HOME/include/zlib.h` |
|
18723 |
+ vuln=`grep "ZLIB_VERSION \"1.2.1\"" $ZLIB_HOME/include/zlib.h` |
|
18724 | 18724 |
fi |
18725 | 18725 |
|
18726 | 18726 |
if test -n "$vuln"; then |
... | ... |
@@ -24609,13 +24609,6 @@ fi |
24609 | 24609 |
|
24610 | 24610 |
|
24611 | 24611 |
|
24612 |
- if test "$have_curl" = "yes"; then |
|
24613 |
- ENABLE_CLAMSUBMIT_TRUE= |
|
24614 |
- ENABLE_CLAMSUBMIT_FALSE='#' |
|
24615 |
-else |
|
24616 |
- ENABLE_CLAMSUBMIT_TRUE='#' |
|
24617 |
- ENABLE_CLAMSUBMIT_FALSE= |
|
24618 |
-fi |
|
24619 | 24612 |
|
24620 | 24613 |
|
24621 | 24614 |
# Check whether --with-system-libmspack was given. |
... | ... |
@@ -27309,6 +27302,14 @@ else |
27309 | 27309 |
ENABLE_YARA_FALSE= |
27310 | 27310 |
fi |
27311 | 27311 |
|
27312 |
+ if test "X$have_curl" = "Xyes" && test "X$have_json" = "Xyes"; then |
|
27313 |
+ ENABLE_CLAMSUBMIT_TRUE= |
|
27314 |
+ ENABLE_CLAMSUBMIT_FALSE='#' |
|
27315 |
+else |
|
27316 |
+ ENABLE_CLAMSUBMIT_TRUE='#' |
|
27317 |
+ ENABLE_CLAMSUBMIT_FALSE= |
|
27318 |
+fi |
|
27319 |
+ |
|
27312 | 27320 |
no_recursion="yes"; |
27313 | 27321 |
|
27314 | 27322 |
ac_config_files="$ac_config_files libclamav/Makefile" |
... | ... |
@@ -27544,6 +27545,10 @@ if test -z "${ENABLE_YARA_TRUE}" && test -z "${ENABLE_YARA_FALSE}"; then |
27544 | 27544 |
as_fn_error $? "conditional \"ENABLE_YARA\" was never defined. |
27545 | 27545 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27546 | 27546 |
fi |
27547 |
+if test -z "${ENABLE_CLAMSUBMIT_TRUE}" && test -z "${ENABLE_CLAMSUBMIT_FALSE}"; then |
|
27548 |
+ as_fn_error $? "conditional \"ENABLE_CLAMSUBMIT\" was never defined. |
|
27549 |
+Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
27550 |
+fi |
|
27547 | 27551 |
|
27548 | 27552 |
: "${CONFIG_STATUS=./config.status}" |
27549 | 27553 |
ac_write_fail=0 |
... | ... |
@@ -29993,19 +29998,35 @@ else |
29993 | 29993 |
$as_echo "yes ($have_milter)" |
29994 | 29994 |
fi |
29995 | 29995 |
|
29996 |
+if test "X$have_curl" = "Xyes" && test "X$have_json" = "Xyes"; then |
|
29996 | 29997 |
|
29997 | 29998 |
|
29998 | 29999 |
$as_echo_n " clamsubmit : " |
29999 |
- if test "x$curl_msg" = "xno"; then : |
|
30000 |
- $as_echo "$have_curl (disabled)" |
|
30001 |
-elif test "x$curl_msg" = "xyes"; then : |
|
30002 |
- $as_echo "$have_curl" |
|
30003 |
-elif test "x$curl_msg" = "x"; then : |
|
30004 |
- $as_echo "$have_curl" |
|
30000 |
+ if test "xyes" = "xno"; then : |
|
30001 |
+ $as_echo "yes (disabled)" |
|
30002 |
+elif test "xyes" = "xyes"; then : |
|
30003 |
+ $as_echo "yes" |
|
30004 |
+elif test "xyes" = "x"; then : |
|
30005 |
+ $as_echo "yes" |
|
30005 | 30006 |
else |
30006 |
- $as_echo "$have_curl ($curl_msg)" |
|
30007 |
+ $as_echo "yes (yes)" |
|
30007 | 30008 |
fi |
30008 | 30009 |
|
30010 |
+else |
|
30011 |
+ |
|
30012 |
+ |
|
30013 |
+ $as_echo_n " clamsubmit : " |
|
30014 |
+ if test "xno" = "xno"; then : |
|
30015 |
+ $as_echo "no (disabled)" |
|
30016 |
+elif test "xno" = "xyes"; then : |
|
30017 |
+ $as_echo "no" |
|
30018 |
+elif test "xno" = "x"; then : |
|
30019 |
+ $as_echo "no" |
|
30020 |
+else |
|
30021 |
+ $as_echo "no (no)" |
|
30022 |
+fi |
|
30023 |
+ |
|
30024 |
+fi |
|
30009 | 30025 |
|
30010 | 30026 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Summary of engine performance features" >&5 |
30011 | 30027 |
$as_echo "$as_me: Summary of engine performance features" >&6;} |
... | ... |
@@ -199,6 +199,8 @@ AM_CONDITIONAL([ENABLE_LLVM], |
199 | 199 |
[test "$subdirfailed" != "yes" && test "$enable_llvm" != "no"]) |
200 | 200 |
AM_CONDITIONAL([ENABLE_YARA], |
201 | 201 |
[test "$enable_yara" != "no"]) |
202 |
+AM_CONDITIONAL([ENABLE_CLAMSUBMIT], |
|
203 |
+ [test "X$have_curl" = "Xyes" && test "X$have_json" = "Xyes"]) |
|
202 | 204 |
no_recursion="yes"; |
203 | 205 |
|
204 | 206 |
AC_OUTPUT([libclamav/Makefile]) |
... | ... |
@@ -229,7 +231,11 @@ CL_MSG_STATUS([IPv6 ],[$have_cv_ipv6],[$want_ipv6]) |
229 | 229 |
AC_MSG_NOTICE([Summary of optional tools]) |
230 | 230 |
CL_MSG_STATUS([clamdtop ],[$CURSES_LIBS],[$enable_clamdtop]) |
231 | 231 |
CL_MSG_STATUS([milter ],[yes],[$have_milter]) |
232 |
-CL_MSG_STATUS([clamsubmit ],[$have_curl],[$curl_msg]) |
|
232 |
+if test "X$have_curl" = "Xyes" && test "X$have_json" = "Xyes"; then |
|
233 |
+ CL_MSG_STATUS([clamsubmit ], [yes], [yes]) |
|
234 |
+else |
|
235 |
+ CL_MSG_STATUS([clamsubmit ], [no], [no]) |
|
236 |
+fi |
|
233 | 237 |
|
234 | 238 |
AC_MSG_NOTICE([Summary of engine performance features]) |
235 | 239 |
if test "x$enable_debug" = "xyes"; then |