From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Na6jA-0008UE-TB for qemu-devel@nongnu.org; Wed, 27 Jan 2010 07:10:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Na6j5-0008Pu-Bb for qemu-devel@nongnu.org; Wed, 27 Jan 2010 07:10:31 -0500 Received: from [199.232.76.173] (port=41899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na6j5-0008Pr-6b for qemu-devel@nongnu.org; Wed, 27 Jan 2010 07:10:27 -0500 Received: from duck.dooz.org ([194.146.227.125]:57943) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Na6j4-0004cD-Rt for qemu-devel@nongnu.org; Wed, 27 Jan 2010 07:10:27 -0500 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Wed, 27 Jan 2010 13:10:03 +0100 Message-Id: <1264594205-14940-1-git-send-email-lool@dooz.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 1/3] 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 Cc: blauwirbel@gmail.com, =?UTF-8?q?Lo=C3=AFc=20Minier?= 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=C3=AFc Minier --- configure | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 1f6de41..27ab724 100755 --- a/configure +++ b/configure @@ -997,9 +997,14 @@ 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 + if test "$sdl" =3D "yes" ; then + feature_not_found "sdl" + fi + sdl=3Dno fi =20 sdl_too_old=3Dno --=20 1.6.5