diff options
author | Guillem Jover <guillem@debian.org> | 2012-06-07 10:55:59 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2012-06-08 07:52:46 +0200 |
commit | 7180e8e3e8583fe101b9d1883bad3a5b3af650aa (patch) | |
tree | 2f73e93912c6de06ce11edf240beec1a642e3e70 /m4 | |
parent | 137a40cbdd4767d0f1864237d59fb8cd6581af63 (diff) | |
download | dpkg-7180e8e3e8583fe101b9d1883bad3a5b3af650aa.tar.gz |
libdpkg: Add liblzma compression support
Use liblzma if available instead of external commands to handle .xz
and .lzma compressed files.
Among other things, this means the xz-utils package no longer has to
be part of the base system.
Based-on-patch-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/dpkg-libs.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/dpkg-libs.m4 b/m4/dpkg-libs.m4 index 8a3134ba5..bbc096c65 100644 --- a/m4/dpkg-libs.m4 +++ b/m4/dpkg-libs.m4 @@ -42,6 +42,13 @@ AC_DEFUN([DPKG_LIB_ZLIB], [ DPKG_WITH_COMPRESS_LIB([zlib], [zlib.h], [gzdopen], [z]) ])# DPKG_LIB_ZLIB +# DPKG_LIB_LZMA +# ------------- +# Check for lzma library. +AC_DEFUN([DPKG_LIB_LZMA], [ + DPKG_WITH_COMPRESS_LIB([liblzma], [lzma.h], [lzma_alone_decoder], [lzma]) +])# DPKG_LIB_LZMA + # DPKG_LIB_BZ2 # ------------ # Check for bz2 library. |