]> 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:43:32 +0000 (11:43 +0200)
Fixes build without openssl

src/lib-http/Makefile.am

index f2cf47852419cb27d2e78989625b873a0f446d96..241d5622639c349c357d440ecd4691032a1ee58d 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)