]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Ignore the MT encoder in XZ 5.2 prerelease versions.
authorJoerg Sonnenberger <joerg@bec.de>
Wed, 22 Jun 2016 21:03:43 +0000 (23:03 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Wed, 22 Jun 2016 21:03:43 +0000 (23:03 +0200)
configure.ac

index 64775fa63829512cb020f1004c9979582e516863..4f7f432ab2d779ab718bf7be10a7188834834e64 100644 (file)
@@ -374,8 +374,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