--- a/meson.build Mon Aug 22 03:58:14 2016 -0400 +++ b/meson.build Mon Aug 22 04:07:00 2016 -0400 @@ -1692,7 +1692,7 @@ if compiler.has_function('sasl_client_init', args : '-lsasl2') USE_CYRUS_SASL = true conf.set('HAVE_CYRUS_SASL', true) - SASL_LIBS = '-lsasl2' + sasl = declare_dependency(link_args : '-lsasl2') else USE_CYRUS_SASL = false error('Cyrus SASL library not found') @@ -1700,6 +1700,9 @@ else USE_CYRUS_SASL = false endif +if not USE_CYRUS_SASL + sasl = declare_dependency() +endif ####################################################################### # Check for Kerberos (for Zephyr)