From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KobCk-00028H-D8 for qemu-devel@nongnu.org; Sat, 11 Oct 2008 05:56:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KobCh-00026d-IK for qemu-devel@nongnu.org; Sat, 11 Oct 2008 05:56:08 -0400 Received: from [199.232.76.173] (port=45506 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KobCg-000267-Gk for qemu-devel@nongnu.org; Sat, 11 Oct 2008 05:56:06 -0400 Received: from savannah.gnu.org ([199.232.41.3]:42100 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KobCg-0003Br-4L for qemu-devel@nongnu.org; Sat, 11 Oct 2008 05:56:06 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KobCf-0001a8-9R for qemu-devel@nongnu.org; Sat, 11 Oct 2008 09:56:05 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KobCf-0001a4-0k for qemu-devel@nongnu.org; Sat, 11 Oct 2008 09:56:05 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Sat, 11 Oct 2008 09:56:05 +0000 Subject: [Qemu-devel] [5456] Add a configure check for zlib (Ryota OZAKI). Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5456 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5456 Author: balrog Date: 2008-10-11 09:56:04 +0000 (Sat, 11 Oct 2008) Log Message: ----------- Add a configure check for zlib (Ryota OZAKI). This patch makes configure check zlib devel files installed. Current configure doesn't check that, so make will fail if they are not installed. Signed-off-by: Ryota Ozaki Modified Paths: -------------- trunk/configure Modified: trunk/configure =================================================================== --- trunk/configure 2008-10-11 09:33:03 UTC (rev 5455) +++ trunk/configure 2008-10-11 09:56:04 UTC (rev 5456) @@ -716,6 +716,23 @@ fi ########################################## +# zlib check + +cat > $TMPC << EOF +#include +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