autoconf: add missing compression checks for libxc
PATCH RESEND 1/1 autoconf: add missing compression checks for libxc
# HG changeset patch
# User Roger Pau Monne <[email protected]> # Date 1329968425 -3600
# Node ID 6cec5dab2cb0e9e84d2f0177d9477815b074cce3 # Parent 32a4e2afa79722226af479728c7386a4b3c2c6e5
autoconf: add missing compression checks for libxc
Move missing checks from tools/libxc/Makefile to configure script.
Changes since v1:
* Check for header files.
config/Tools.mk.in +1 -0
@@ -43,6 +43,7 @@ CONFIG_LOMOUNT := @lomount@ #System options CONFIG_SYSTEM_LIBAIO:= @system_aio@ +ZLIB := @zlib@ CONFIG_LIBICONV := @libiconv@ CONFIG_GCRYPT := @libgcrypt@ CONFIG_EXT2FS := @libext2fs@
tools/configure +143 -0
155 lines not on this page · raw message
tools/configure.ac +10 -0
@@ -110,6 +110,16 @@ PKG_CHECK_MODULES(glib, glib-2.0) AX_DEFAULT_LIB # Checks for libraries. +AC_CHECK_HEADER([bzlib.h], [ +AC_CHECK_LIB([bz2], [BZ2_bzDecompressInit], [zlib="$zlib -DHAVE_BZLIB -lbz2"]) +]) +AC_CHECK_HEADER([lzma.h], [ +AC_CHECK_LIB([lzma], [lzma_stream_decoder], [zlib="$zlib -DHAVE_LZMA -llzma"]) +]) +AC_CHECK_HEADER([lzo/lzo1x.h], [ +AC_CHECK_LIB([lzo2], [lzo1x_decompress], [zlib="$zlib -DHAVE_LZO1X -llzo2"]) +]) +AC_SUBST(zlib) AC_CHECK_LIB([aio], [io_setup], [system_aio="y"], [system_aio="n"]) AC_SUBST(system_aio) AC_CHECK_LIB([crypto], [MD5], [], [AC_MSG_ERROR([Could not find libcrypto])])
tools/libxc/Makefile +1 -14
@@ -171,20 +171,7 @@ libxenguest.so.$(MAJOR): libxenguest.so. ifeq ($(CONFIG_MiniOS),y) zlib-options = else -zlib-options = $(shell \ - (. ../check/funcs.sh; \ - if has_header bzlib.h; then \ - echo "-DHAVE_BZLIB"; \ - echo "-lbz2"; \ - fi; \ - if has_header lzma.h; then \ - echo "-DHAVE_LZMA"; \ - echo "-llzma"; \ - fi; \ - if has_header lzo/lzo1x.h; then \ - echo "-DHAVE_LZO1X"; \ - echo "-llzo2"; \ - fi) | grep $(1)) +zlib-options = $(ZLIB) endif xc_dom_bzimageloader.o: CFLAGS += $(call zlib-options,D)
Roger Pau Monne writes ("[PATCH RESEND] autoconf: add missing compression checks for libxc"):
Quoted 1 line
autoconf: add missing compression checks for libxc
Both I and Jan acked this one earlier. When you repost, in future, can you please make sure to transpose those acks into your commit messages ? That saves me double-checking to find out who has acked what (and also helps avoid errors if I forget).
Thanks,
Ian.
2012/3/14 Ian Jackson <[email protected]>:
Quoted 8 lines
Roger Pau Monne writes ("[PATCH RESEND] autoconf: add missing compression checks for libxc"):
Quoted 1 line
autoconf: add missing compression checks for libxc
Committed-by Ian Jackson <[email protected]>Both I and Jan acked this one earlier. When you repost, in future, can you please make sure to transpose those acks into your commit messages ?
Yes sorry, I've done it with the other patch, but I completely forgot about this one, it's not good to do two things at the same time.
That saves me double-checking to find out who has acked
Quoted 4 lines
what (and also helps avoid errors if I forget).
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel