summaryrefslogtreecommitdiff
path: root/archivers/libarchive/files/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/libarchive/files/configure.ac')
-rw-r--r--archivers/libarchive/files/configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/archivers/libarchive/files/configure.ac b/archivers/libarchive/files/configure.ac
index e15ceee1e5f..27758a278e4 100644
--- a/archivers/libarchive/files/configure.ac
+++ b/archivers/libarchive/files/configure.ac
@@ -373,8 +373,11 @@ if test "x$with_lzma" != "xno"; then
AC_CACHE_CHECK(
[whether we have multithread support in lzma],
ac_cv_lzma_has_mt,
- [AC_COMPILE_IFELSE([
- AC_LANG_PROGRAM([[#include <lzma.h>]],
+ [AC_LINK_IFELSE([
+ AC_LANG_PROGRAM([[#include <lzma.h>]
+ [#if LZMA_VERSION < 50020000]
+ [#error unsupported]
+ [#endif]],
[[lzma_stream_encoder_mt(0, 0);]])],
[ac_cv_lzma_has_mt=yes], [ac_cv_lzma_has_mt=no])])
if test "x$ac_cv_lzma_has_mt" != xno; then