]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Only depend on iostream openssl lib if building with openssl
authorAki Tuomi <aki.tuomi@dovecot.fi>
Thu, 28 Dec 2017 08:47:28 +0000 (10:47 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 15 Jan 2018 09:18:44 +0000 (11:18 +0200)
Fixes build without openssl

src/lib-http/Makefile.am

index 6e3e2e410e490d4f2a670fe34650bb4e966c26b2..aee08a30bf8ba8464650e6e7aa40fc333f18db51 100644 (file)
@@ -148,6 +148,11 @@ test_http_deps = \
        ../lib-settings/libsettings.la \
        $(test_deps)
 
+test_http_libs_ssl=
+if BUILD_OPENSSL
+test_http_libs_ssl += ../lib-ssl-iostream/libssl_iostream_openssl.la
+endif
+
 test_http_payload_SOURCES = test-http-payload.c
 test_http_payload_LDFLAGS = -export-dynamic
 test_http_payload_LDADD = \
@@ -159,7 +164,8 @@ test_http_client_SOURCES = test-http-client.c
 test_http_client_LDFLAGS = -export-dynamic
 test_http_client_LDADD = \
        $(test_http_libs) \
-       ../lib-ssl-iostream/libssl_iostream_openssl.la
+       $(test_http_libs_ssl)
+
 test_http_client_DEPENDENCIES = \
        $(test_http_deps)