summaryrefslogtreecommitdiff
path: root/app-antivirus/clamav/files/clamav-0.102.2-fix-curl-detection.patch
blob: f89a704ea3e08433ada827069bad763eda9e4231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
https://bugs.gentoo.org/709616

--- a/configure.ac
+++ b/configure.ac
@@ -197,6 +197,10 @@ AC_CONFIG_FILES([
                  clamav-types.h
                  clamav-version.h])
 if test "x$enable_libclamav_only" != "xyes"; then
+    if test "$have_curl" = "no"; then
+        AC_MSG_ERROR([libcurl not found. libcurl (e.g. libcurl-devel) is required in order to build freshclam and clamsubmit.])
+    fi
+
     AC_CONFIG_FILES([
                      clamscan/Makefile
                      database/Makefile
--- a/m4/reorganization/libs/curl.m4
+++ b/m4/reorganization/libs/curl.m4
@@ -92,8 +92,6 @@ if test "X$have_curl" = "Xyes"; then
     )
 
     LDFLAGS="$save_LDFLAGS"
-else
-    AC_MSG_ERROR([libcurl not found. libcurl (e.g. libcurl-devel) is required in order to build freshclam and clamsubmit.])
 fi
 
 AC_SUBST([CLAMSUBMIT_LIBS])