mirror of https://github.com/xemu-project/xemu.git
configure: adding support to lzfse library.
This commit includes the support to lzfse opensource library. With this library dmg block driver can decompress images with this type of compression inside. Signed-off-by: Julio Faracco <jcfaracco@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
c13e80d792
commit
83bc1f9768
|
@ -57,6 +57,8 @@ ssh.o-libs := $(LIBSSH2_LIBS)
|
||||||
block-obj-dmg-bz2-$(CONFIG_BZIP2) += dmg-bz2.o
|
block-obj-dmg-bz2-$(CONFIG_BZIP2) += dmg-bz2.o
|
||||||
block-obj-$(if $(CONFIG_DMG),m,n) += $(block-obj-dmg-bz2-y)
|
block-obj-$(if $(CONFIG_DMG),m,n) += $(block-obj-dmg-bz2-y)
|
||||||
dmg-bz2.o-libs := $(BZIP2_LIBS)
|
dmg-bz2.o-libs := $(BZIP2_LIBS)
|
||||||
|
block-obj-$(if $(CONFIG_LZFSE),m,n) += dmg-lzfse.o
|
||||||
|
dmg-lzfse.o-libs := $(LZFSE_LIBS)
|
||||||
qcow.o-libs := -lz
|
qcow.o-libs := -lz
|
||||||
linux-aio.o-libs := -laio
|
linux-aio.o-libs := -laio
|
||||||
parallels.o-cflags := $(LIBXML2_CFLAGS)
|
parallels.o-cflags := $(LIBXML2_CFLAGS)
|
||||||
|
|
|
@ -434,6 +434,7 @@ capstone=""
|
||||||
lzo=""
|
lzo=""
|
||||||
snappy=""
|
snappy=""
|
||||||
bzip2=""
|
bzip2=""
|
||||||
|
lzfse=""
|
||||||
guest_agent=""
|
guest_agent=""
|
||||||
guest_agent_with_vss="no"
|
guest_agent_with_vss="no"
|
||||||
guest_agent_ntddscsi="no"
|
guest_agent_ntddscsi="no"
|
||||||
|
@ -1310,6 +1311,10 @@ for opt do
|
||||||
;;
|
;;
|
||||||
--enable-bzip2) bzip2="yes"
|
--enable-bzip2) bzip2="yes"
|
||||||
;;
|
;;
|
||||||
|
--enable-lzfse) lzfse="yes"
|
||||||
|
;;
|
||||||
|
--disable-lzfse) lzfse="no"
|
||||||
|
;;
|
||||||
--enable-guest-agent) guest_agent="yes"
|
--enable-guest-agent) guest_agent="yes"
|
||||||
;;
|
;;
|
||||||
--disable-guest-agent) guest_agent="no"
|
--disable-guest-agent) guest_agent="no"
|
||||||
|
@ -1745,6 +1750,8 @@ disabled with --disable-FEATURE, default is enabled if available:
|
||||||
snappy support of snappy compression library
|
snappy support of snappy compression library
|
||||||
bzip2 support of bzip2 compression library
|
bzip2 support of bzip2 compression library
|
||||||
(for reading bzip2-compressed dmg images)
|
(for reading bzip2-compressed dmg images)
|
||||||
|
lzfse support of lzfse compression library
|
||||||
|
(for reading lzfse-compressed dmg images)
|
||||||
seccomp seccomp support
|
seccomp seccomp support
|
||||||
coroutine-pool coroutine freelist (better performance)
|
coroutine-pool coroutine freelist (better performance)
|
||||||
glusterfs GlusterFS backend
|
glusterfs GlusterFS backend
|
||||||
|
@ -2263,6 +2270,24 @@ EOF
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
##########################################
|
||||||
|
# lzfse check
|
||||||
|
|
||||||
|
if test "$lzfse" != "no" ; then
|
||||||
|
cat > $TMPC << EOF
|
||||||
|
#include <lzfse.h>
|
||||||
|
int main(void) { lzfse_decode_scratch_size(); return 0; }
|
||||||
|
EOF
|
||||||
|
if compile_prog "" "-llzfse" ; then
|
||||||
|
lzfse="yes"
|
||||||
|
else
|
||||||
|
if test "$lzfse" = "yes"; then
|
||||||
|
feature_not_found "lzfse" "Install lzfse devel"
|
||||||
|
fi
|
||||||
|
lzfse="no"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# libseccomp check
|
# libseccomp check
|
||||||
|
|
||||||
|
@ -6090,6 +6115,7 @@ echo "Live block migration $live_block_migration"
|
||||||
echo "lzo support $lzo"
|
echo "lzo support $lzo"
|
||||||
echo "snappy support $snappy"
|
echo "snappy support $snappy"
|
||||||
echo "bzip2 support $bzip2"
|
echo "bzip2 support $bzip2"
|
||||||
|
echo "lzfse support $lzfse"
|
||||||
echo "NUMA host support $numa"
|
echo "NUMA host support $numa"
|
||||||
echo "libxml2 $libxml2"
|
echo "libxml2 $libxml2"
|
||||||
echo "tcmalloc support $tcmalloc"
|
echo "tcmalloc support $tcmalloc"
|
||||||
|
@ -6612,6 +6638,11 @@ if test "$bzip2" = "yes" ; then
|
||||||
echo "BZIP2_LIBS=-lbz2" >> $config_host_mak
|
echo "BZIP2_LIBS=-lbz2" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$lzfse" = "yes" ; then
|
||||||
|
echo "CONFIG_LZFSE=y" >> $config_host_mak
|
||||||
|
echo "LZFSE_LIBS=-llzfse" >> $config_host_mak
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$libiscsi" = "yes" ; then
|
if test "$libiscsi" = "yes" ; then
|
||||||
echo "CONFIG_LIBISCSI=m" >> $config_host_mak
|
echo "CONFIG_LIBISCSI=m" >> $config_host_mak
|
||||||
echo "LIBISCSI_CFLAGS=$libiscsi_cflags" >> $config_host_mak
|
echo "LIBISCSI_CFLAGS=$libiscsi_cflags" >> $config_host_mak
|
||||||
|
|
Loading…
Reference in New Issue