diff options
author | Will Dietz <w@wdtz.org> | 2018-02-10T02·57-0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-02-10T03·02-0600 |
commit | 5a082ad15a0f46dc1cbfd8aa5cb3ad9d94b5f178 (patch) | |
tree | de60f50719c3fd824e8dee3acb0dc7481ca786ec /src | |
parent | 960e9c560e335c65d378805fdb2594e7079a0c45 (diff) |
configure.ac: check if lzma has MT support, fix deb build/etc.
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/compression.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/compression.cc b/src/libutil/compression.cc index ed15761b32a2..c509472b3846 100644 --- a/src/libutil/compression.cc +++ b/src/libutil/compression.cc @@ -192,6 +192,7 @@ struct XzSink : CompressionSink XzSink(Sink & nextSink, const bool parallel) : nextSink(nextSink) { lzma_ret ret; +#ifdef HAVE_LZMA_MT if (parallel) { lzma_mt mt_options = {}; mt_options.flags = 0; @@ -208,6 +209,7 @@ struct XzSink : CompressionSink ret = lzma_stream_encoder_mt( &strm, &mt_options); } else +#endif ret = lzma_easy_encoder( &strm, 6, LZMA_CHECK_CRC64); |