* [Qemu-devel] [PATCH] configure needs to check zlib devel files installed
@ 2008-10-03 21:00 Ryota OZAKI
0 siblings, 0 replies; only message in thread
From: Ryota OZAKI @ 2008-10-03 21:00 UTC (permalink / raw)
To: qemu-devel; +Cc: Ryota OZAKI
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 <ozaki.ryota@gmail.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-03 21:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-03 21:00 [Qemu-devel] [PATCH] configure needs to check zlib devel files installed Ryota OZAKI
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).