summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPetr Malat <oss@malat.biz>2021-12-23 11:47:04 +0100
committerPetr Malat <oss@malat.biz>2021-12-23 12:23:16 +0100
commit406165fcb2a1b3a49983d9e68fcbee9d3640fbea (patch)
tree3d62967daca48d0575f082c73c0c5cd4abd03367 /build
parent411284e3f5819a5726622f3f129ebf2859f2d46b (diff)
downloadlibarchive-406165fcb2a1b3a49983d9e68fcbee9d3640fbea.tar.gz
Support libzstd compiled with compressor disabled
ZSTD library can be compiled with the compressor disabled, which is handy on space restricted systems as the compressor accounts for more than two thirds of the library size. Detect this case and use libzstd for the decompression only. Compression will be done using zstd binary if it's available.
Diffstat (limited to 'build')
-rw-r--r--build/cmake/config.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in
index 5ddd2f33..ad799c02 100644
--- a/build/cmake/config.h.in
+++ b/build/cmake/config.h.in
@@ -738,6 +738,10 @@ typedef uint64_t uintmax_t;
/* Define to 1 if you have the `zstd' library (-lzstd). */
#cmakedefine HAVE_LIBZSTD 1
+/* Define to 1 if you have the `zstd' library (-lzstd) with compression
+ support. */
+#cmakedefine HAVE_LIBZSTD_COMPRESSOR 1
+
/* Define to 1 if you have the <limits.h> header file. */
#cmakedefine HAVE_LIMITS_H 1