Blame SOURCES/0082-build-make-curl-required-by-secrets.patch

ecf709
From 1ea81a335baa08746df7daf2707c070271990937 Mon Sep 17 00:00:00 2001
ecf709
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
ecf709
Date: Wed, 22 Mar 2017 12:32:31 +0100
ecf709
Subject: [PATCH 82/90] build: make curl required by secrets
ecf709
MIME-Version: 1.0
ecf709
Content-Type: text/plain; charset=UTF-8
ecf709
Content-Transfer-Encoding: 8bit
ecf709
ecf709
Also remove --disable-libcurl since it doesn't make sense.
ecf709
ecf709
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
ecf709
Reviewed-by: Simo Sorce <simo@redhat.com>
ecf709
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
ecf709
(cherry picked from commit 793f2573b2beaf8b48eab850429482acf68ec2b1)
ecf709
---
ecf709
 configure.ac            |  6 +++++-
ecf709
 src/external/libcurl.m4 | 16 ++--------------
ecf709
 2 files changed, 7 insertions(+), 15 deletions(-)
ecf709
ecf709
diff --git a/configure.ac b/configure.ac
ecf709
index cf5e2557ef0a1bd6374200aa33abea6c509d03aa..80d8ea9ff5785b0d76edbb04f454d0dd8c8a1e6d 100644
ecf709
--- a/configure.ac
ecf709
+++ b/configure.ac
ecf709
@@ -201,9 +201,13 @@ if test x$with_secrets = xyes; then
ecf709
 fi
ecf709
 
ecf709
 if test x$with_kcm = xyes; then
ecf709
-    m4_include([src/external/libcurl.m4])
ecf709
     m4_include([src/external/libuuid.m4])
ecf709
 fi
ecf709
+
ecf709
+if test x$with_kcm = xyes -o x$with_secrets = xyes; then
ecf709
+    m4_include([src/external/libcurl.m4])
ecf709
+fi
ecf709
+
ecf709
 # This variable is defined by external/libcurl.m4, but conditionals
ecf709
 # must be always evaluated
ecf709
 AM_CONDITIONAL([BUILD_WITH_LIBCURL],
ecf709
diff --git a/src/external/libcurl.m4 b/src/external/libcurl.m4
ecf709
index b420b04ad806bd1251f086b773ffe480d39f8bd3..42be308cd1e4b04e736daf887be9b75ea92db80e 100644
ecf709
--- a/src/external/libcurl.m4
ecf709
+++ b/src/external/libcurl.m4
ecf709
@@ -1,17 +1,5 @@
ecf709
-AC_ARG_ENABLE([curl],
ecf709
-              [AS_HELP_STRING([--disable-curl-support],
ecf709
-                              [do not build with libcurl support])],
ecf709
-              [enable_libcurl=$enableval],
ecf709
-              [enable_libcurl=yes])
ecf709
-
ecf709
-found_libcurl="no"
ecf709
-AS_IF([test x$enable_libcurl = xyes],
ecf709
-      [PKG_CHECK_MODULES([CURL],
ecf709
-                         [libcurl],
ecf709
-                         [found_libcurl=yes],
ecf709
-                         [AC_MSG_ERROR([
ecf709
-The libcurl development library was not found.])
ecf709
-      ])])
ecf709
+PKG_CHECK_MODULES([CURL], [libcurl], [found_libcurl=yes],
ecf709
+              [AC_MSG_ERROR([The libcurl development library was not found.])])
ecf709
 
ecf709
 AS_IF([test x"$found_libcurl" = xyes],
ecf709
     CFLAGS="$CFLAGS $CURL_CFLAGS"
ecf709
-- 
ecf709
2.9.3
ecf709