From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L133x-0001mX-MB for qemu-devel@nongnu.org; Fri, 14 Nov 2008 13:06:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L133r-0001m7-VD for qemu-devel@nongnu.org; Fri, 14 Nov 2008 13:06:32 -0500 Received: from [199.232.76.173] (port=49004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L133r-0001m2-SG for qemu-devel@nongnu.org; Fri, 14 Nov 2008 13:06:27 -0500 Received: from e2.ny.us.ibm.com ([32.97.182.142]:36082) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L133s-000426-CB for qemu-devel@nongnu.org; Fri, 14 Nov 2008 13:06:28 -0500 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by e2.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id mAEI6C72025614 for ; Fri, 14 Nov 2008 13:06:12 -0500 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mAEI6GqM1003766 for ; Fri, 14 Nov 2008 13:06:16 -0500 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mAEI6GnZ009796 for ; Fri, 14 Nov 2008 11:06:16 -0700 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-Id: Date: Fri, 14 Nov 2008 11:57:47 -0600 From: Deepa Srinivasan Subject: [Qemu-devel] [PATCH] qemu: Fix incorrect zlib check error 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 Cc: kvm-ppc@vger.kernel.org # HG changeset patch # User Deepa Srinivasan # Date 1226685276 21600 # Node ID ae59be00a22c4769a1116943ca5e07cec9154de0 # Parent 1a74ac23ff60cc2ab052072243dc4ff47faf5849 qemu: Fix incorrect zlib check error From: Deepa Srinivasan Include the CFLAGS and LDFLAGS variables in the check for zlib. When cross-compiling for PowerPC, the path for zlib headers and libraries are passed in the CFLAGS and LDFLAGS respectively. While this patch fixes only the check for zlib, this issue potentially affects other configure tests as well. Signed-off-by: Deepa Srinivasan --- [diffstat] configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) [diff] diff -r 1a74ac23ff60 -r ae59be00a22c qemu/configure --- a/qemu/configure Fri Nov 14 10:53:36 2008 -0600 +++ b/qemu/configure Fri Nov 14 11:54:36 2008 -0600 @@ -798,7 +798,7 @@ cat > $TMPC << EOF #include int main(void) { zlibVersion(); return 0; } EOF -if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $TMPC -lz 2> /dev/null ; then +if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $CFLAGS $LDFLAGS $TMPC -lz 2> /dev/null ; then : else echo