All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastien Alaiwan <sebastien.alaiwan@icatis.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Minor correction in configure script
Date: Wed, 02 Aug 2006 16:47:26 -0000	[thread overview]
Message-ID: <44D0D70C.2090707@icatis.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

Hi developpers,
I've been building qemu more than a dozen times until now, and I've 
always been annoyed by the lack for a check for zlib during the 
configure stage. It's not a great patch but it'll avoid the build 
process to fail when zlib.h is not present.

If you use it, please tell me! :-)

Cheers,
Sebastien Alaiwan

[-- Attachment #2: qemu-configure-zlib-check --]
[-- Type: text/plain, Size: 528 bytes --]

diff -Naur qemu-0.8.2/configure qemu-0.8.2-patched/configure
--- qemu-0.8.2/configure	2006-07-22 19:23:34.000000000 +0200
+++ qemu-0.8.2-patched/configure	2006-08-02 18:41:04.000000000 +0200
@@ -442,6 +442,21 @@
 fi
 
 ##########################################
+# zlib probe
+
+cat > $TMPC <<EOF
+#include <zlib.h>
+int main(){return 0;}
+EOF
+$cc -o $TMPO $TMPC 1>/dev/null 2>&1
+if [ ! $? = 0 ]; then
+   echo "zlib not found!"
+   exit 1;
+fi
+
+
+
+##########################################
 # SDL probe
 
 sdl_too_old=no

                 reply	other threads:[~2006-08-02 16:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44D0D70C.2090707@icatis.com \
    --to=sebastien.alaiwan@icatis.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.