From patchwork Wed Jan 27 12:10:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Lo=C3=AFc_Minier?= X-Patchwork-Id: 43792 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 203A8B7CF0 for ; Wed, 27 Jan 2010 23:22:51 +1100 (EST) Received: from localhost ([127.0.0.1]:60158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na6kL-0008Uu-Aq for incoming@patchwork.ozlabs.org; Wed, 27 Jan 2010 07:11:45 -0500 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 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 0C69AC809C; Wed, 27 Jan 2010 13:10:25 +0100 (CET) Received: by bee.dooz.org (Postfix, from userid 1000) id 1C30B2324; Wed, 27 Jan 2010 13:10:20 +0100 (CET) From: =?UTF-8?q?Lo=C3=AFc=20Minier?= To: qemu-devel@nongnu.org Date: Wed, 27 Jan 2010 13:10:03 +0100 Message-Id: <1264594205-14940-1-git-send-email-lool@dooz.org> X-Mailer: git-send-email 1.6.5 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: blauwirbel@gmail.com, =?UTF-8?q?Lo=C3=AFc=20Minier?= Subject: [Qemu-devel] [PATCH 1/3] Check for sdl-config before calling it X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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ïc 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="$pkgconfig sdl" _sdlversion=`$sdlconfig --modversion 2>/dev/null | sed 's/[^0-9]//g'` -else +elif which sdl-config >/dev/null 2>&1; then sdlconfig='sdl-config' _sdlversion=`$sdlconfig --version | sed 's/[^0-9]//g'` +else + if test "$sdl" = "yes" ; then + feature_not_found "sdl" + fi + sdl=no fi sdl_too_old=no