This adds a HAVE_COMPRESSION macro, which is undefined if neither zlib nor zstd are present, and is used to no-op compress.h/c. This also has a side effect of fixing SCons, since it won't define this macro.
Fixes: d7ecbd5bf837 ("util: create some standalone compression helpers")
012bc2fc776 meson, util: Make zlib optional again
Android.common.mk | 1 +
meson.build | 7 +++++++
src/util/compress.c | 21 +++++++++++++++++----
src/util/compress.h | 4 ++++
4 files changed, 29 insertions(+), 4 deletions(-)