[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] configure needs to check zlib devel files installed
From: |
Ryota OZAKI |
Subject: |
[Qemu-devel] [PATCH] configure needs to check zlib devel files installed |
Date: |
Sat, 4 Oct 2008 06:00:02 +0900 |
Hi,
This patch makes configure check zlib devel files installed.
Current configure doesn't check that, so make will fail if they
are not installed.
Thanks,
ozaki-r
Signed-off-by: Ryota Ozaki <address@hidden>
---
configure | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
Index: configure
===================================================================
--- configure (revision 5408)
+++ configure (working copy)
@@ -707,6 +707,23 @@
fi
##########################################
+# zlib check
+
+cat > $TMPC << EOF
+#include <zlib.h>
+int main(void) { zlibVersion(); return 0; }
+EOF
+if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -lz 2> /dev/null ; then
+ :
+else
+ echo
+ echo "Error: zlib check failed"
+ echo "Make sure to have the zlib libs and headers installed."
+ echo
+ exit 1
+fi
+
+##########################################
# SDL probe
sdl_too_old=no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] configure needs to check zlib devel files installed,
Ryota OZAKI <=