char stream_valid;
#endif
-#ifdef HAVE_LZMA_H
+#if HAVE_LZMA_H && HAVE_LIBLZMA
lzma_stream zipx_lzma_stream;
char zipx_lzma_valid;
#endif
return (ARCHIVE_OK);
}
-#ifdef HAVE_LZMA_H
+#if HAVE_LZMA_H && HAVE_LIBLZMA
static int
zipx_xz_init(struct archive_read *a, struct zip *zip)
{
/* If we're here, then we're good! */
return (ARCHIVE_OK);
}
-#endif /* HAVE_LZMA_H */
+#endif /* HAVE_LZMA_H && HAVE_LIBLZMA */
static int
zipx_ppmd8_init(struct archive_read *a, struct zip *zip)
r = zip_read_data_zipx_bzip2(a, buff, size, offset);
break;
#endif
-#ifdef HAVE_LZMA_H
+#if HAVE_LZMA_H && HAVE_LIBLZMA
case 14: /* ZIPx LZMA compression. */
r = zip_read_data_zipx_lzma_alone(a, buff, size, offset);
break;
inflateEnd(&zip->stream);
#endif
-#ifdef HAVA_LZMA_H
+#if HAVA_LZMA_H && HAVE_LIBLZMA
if (zip->zipx_lzma_valid) {
lzma_end(&zip->zipx_lzma_stream);
}