]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
configure.ac: define HAVE_LZMA_STREAM_ENCODER_MT if it is detected properly. 700/head
authorJuan RP <xtraeme@voidlinux.eu>
Thu, 5 May 2016 05:55:57 +0000 (07:55 +0200)
committerJuan RP <xtraeme@voidlinux.eu>
Thu, 5 May 2016 05:55:57 +0000 (07:55 +0200)
... otherwise HAVE_LZMA_STREAM_ENCODER_MT is undefined and the code
for multithreaded xz compression is skipped completely.

configure.ac

index 1ab54cb1ac3fdabd0bc30dc6f02ee00885b2797f..cb6943fa7f73fb81195ec79ba86f19695bfce781 100644 (file)
@@ -377,6 +377,9 @@ if test "x$with_lzma" != "xno"; then
       AC_LANG_PROGRAM([[#include <lzma.h>]],
                       [[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
+         AC_DEFINE([HAVE_LZMA_STREAM_ENCODER_MT], [1], [Define to 1 if you have the `lzma_stream_encoder_mt' function.])
+  fi
 fi
 
 AC_ARG_WITH([lzo2],