From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MMoSc-0002rC-HC for qemu-devel@nongnu.org; Fri, 03 Jul 2009 15:30:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MMoSZ-0002pg-2a for qemu-devel@nongnu.org; Fri, 03 Jul 2009 15:30:14 -0400 Received: from [199.232.76.173] (port=43012 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMoSY-0002pb-QH for qemu-devel@nongnu.org; Fri, 03 Jul 2009 15:30:10 -0400 Received: from moutng.kundenserver.de ([212.227.126.188]:51005) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MMoSY-0006Db-6b for qemu-devel@nongnu.org; Fri, 03 Jul 2009 15:30:10 -0400 From: Stefan Weil Date: Fri, 3 Jul 2009 21:29:45 +0200 Message-Id: <1246649386-6006-1-git-send-email-weil@mail.berlios.de> In-Reply-To: <4A4E5AFC.4020206@mail.berlios.de> References: <4A4E5AFC.4020206@mail.berlios.de> Subject: [Qemu-devel] [PATCH] Check availability of uuid header / lib List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers The Universally Unique Identifier library will be used for the new vdi block driver and maybe other parts of QEMU. Signed-off-by: Stefan Weil --- Makefile | 1 + Makefile.target | 2 ++ configure | 21 +++++++++++++++++++++ 3 files changed, 24 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 66c28e5..b6bb41a 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ else DOCS= endif +LIBS+=$(CONFIG_UUID_LIBS) LIBS+=$(PTHREADLIBS) LIBS+=$(CLOCKLIBS) diff --git a/Makefile.target b/Makefile.target index a593503..21f9b3e 100644 --- a/Makefile.target +++ b/Makefile.target @@ -541,6 +541,8 @@ ifdef CONFIG_BLUEZ LIBS += $(CONFIG_BLUEZ_LIBS) endif +LIBS += $(CONFIG_UUID_LIBS) + # xen backend driver support obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o ifeq ($(CONFIG_XEN), yes) diff --git a/configure b/configure index 73cc6b1..aab2c33 100755 --- a/configure +++ b/configure @@ -972,6 +972,22 @@ if $cc $ARCH_CFLAGS -o $TMPE $TMPC > /dev/null 2> /dev/null ; then fi ########################################## +# uuid_generate() probe, used for vdi block driver +uuid="no" +cat > $TMPC << EOF +#include +int main(void) +{ + uuid_t my_uuid; + uuid_generate(my_uuid); + return 0; +} +EOF +if $cc $ARCH_CFLAGS -o $TMPE $TMPC -luuid >/dev/null 2>&1; then + uuid="yes" +fi + +########################################## # vde libraries probe if test "$vde" = "yes" ; then cat > $TMPC << EOF @@ -1453,6 +1469,7 @@ echo "Install blobs $blobs" echo -e "KVM support $kvm" echo "fdt support $fdt" echo "preadv support $preadv" +echo "uuid support $uuid" if test $sdl_too_old = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -1697,6 +1714,10 @@ fi if test "$fnmatch" = "yes" ; then echo "#define HAVE_FNMATCH_H 1" >> $config_h fi +if test "$uuid" = "yes" ; then + echo "#define HAVE_UUID_H 1" >> $config_h + echo "CONFIG_UUID_LIBS=-luuid" >> $config_mak +fi qemu_version=`head $source_path/VERSION` echo "VERSION=$qemu_version" >>$config_mak echo "#define QEMU_VERSION \"$qemu_version\"" >> $config_h -- 1.5.6.5