meson: Add a sanity check regarding echo cancellers

Taken straight out of the configure.ac file.

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-19 18:44:20 +07:00 committed by Arun Raghavan
parent b28c4e9aea
commit 5a6e45f5b4

View file

@ -319,6 +319,12 @@ if webrtc_dep.found()
cdata.set('HAVE_WEBRTC', 1)
endif
# Some sanity checks
if not speex_dep.found() and not webrtc_dep.found() and not get_option('adrian-aec')
error('At least one echo canceller implementation must be available!')
endif
# Now generate config.h from everything above
configure_file(output : 'config.h', configuration : cdata)