ext/hls/meson.build: fix dependency logic
authorAdam Duskett <aduskett@gmail.com>
Wed, 29 May 2019 18:33:02 +0000 (18:33 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 29 May 2019 18:33:02 +0000 (18:33 +0000)
commit43eaf5ac4a08b27f08c9be476e15aa6c64848a4b
treea5828101a9b972613e28bc0b49d46f40e689b67a
parent1b774e2da88d920fe0fe4d552085481bc8f319c6
ext/hls/meson.build: fix dependency logic

Currently, if one was to set -Dhls-crypto to either libgcrypt or openssl
instead of auto, the following lines would fail because hls_crypto_dep is not
yet set:

if not hls_crypto_dep.found() and ['auto', 'libgcrypt'].contains(hls_crypto)
if not hls_crypto_dep.found() and ['auto', 'openssl'].contains(hls_crypto)

Instead, change "if not hls_crypto_dep.found()" to "if not have_hls_crypto"
which fixes the error.
ext/hls/meson.build