From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWUVf-0004Ez-7j for qemu-devel@nongnu.org; Sun, 17 Jan 2010 07:45:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWUVZ-0004DW-NL for qemu-devel@nongnu.org; Sun, 17 Jan 2010 07:45:37 -0500 Received: from [199.232.76.173] (port=43515 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWUVZ-0004DQ-Hm for qemu-devel@nongnu.org; Sun, 17 Jan 2010 07:45:33 -0500 Received: from duck.dooz.org ([194.146.227.125]:35595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWUVZ-0001BA-4M for qemu-devel@nongnu.org; Sun, 17 Jan 2010 07:45:33 -0500 Received: from bee.dooz.org (serris.dooz.org [88.166.229.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by duck.dooz.org (Postfix) with ESMTP id 18F5BC809C for ; Sun, 17 Jan 2010 13:45:32 +0100 (CET) Date: Sun, 17 Jan 2010 13:45:28 +0100 From: =?iso-8859-1?Q?Lo=EFc?= Minier Message-ID: <20100117124528.GA24106@bee.dooz.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Check for sdl-config before calling it List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi On systems were sdl-config isn't installed, ./configure triggers this warning: ./configure: 957: sdl-config: not found The attached patch fixes the warning for me. Thanks, --=20 Lo=EFc Minier --OgqxwSJOaUobr8KG Content-Type: text/x-diff; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-Check-for-sdl-config-before-calling-it.patch" Content-Transfer-Encoding: quoted-printable >>From 94876939db7f46cf8d920e289d0d4f929d3b7df1 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Lo=3DC3=3DAFc=3D20Minier?=3D Date: Sun, 17 Jan 2010 13:42:04 +0100 Subject: [PATCH] Check for sdl-config before calling it MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit Check whether sdl-config is available before calling it, otherwise ./configure triggers a warning: ./configure: 957: sdl-config: not found If neither the .pc file not sdl-config are present, disable SDL support. Signed-off-by: Lo=EFc Minier --- configure | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 5631bbb..450e1a2 100755 --- a/configure +++ b/configure @@ -993,9 +993,11 @@ fi if $pkgconfig sdl --modversion >/dev/null 2>&1; then sdlconfig=3D"$pkgconfig sdl" _sdlversion=3D`$sdlconfig --modversion 2>/dev/null | sed 's/[^0-9]//g'= ` -else +elif which sdl-config >/dev/null 2>&1; then sdlconfig=3D'sdl-config' _sdlversion=3D`$sdlconfig --version | sed 's/[^0-9]//g'` +else + sdl=3Dno fi =20 sdl_too_old=3Dno --=20 1.6.5 --OgqxwSJOaUobr8KG--