From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54283 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8EdA-0008V6-Nf for qemu-devel@nongnu.org; Fri, 08 Apr 2011 12:33:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8Ed9-0003UQ-Hq for qemu-devel@nongnu.org; Fri, 08 Apr 2011 12:33:56 -0400 Received: from db3ehsobe001.messaging.microsoft.com ([213.199.154.139]:8227 helo=DB3EHSOBE001.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8Ed9-0003U9-DM for qemu-devel@nongnu.org; Fri, 08 Apr 2011 12:33:55 -0400 Received: from mail58-db3 (localhost.localdomain [127.0.0.1]) by mail58-db3-R.bigfish.com (Postfix) with ESMTP id 8CF96390415 for ; Fri, 8 Apr 2011 16:33:53 +0000 (UTC) Received: from DB3EHSMHS012.bigfish.com (unknown [10.3.81.248]) by mail58-db3.bigfish.com (Postfix) with ESMTP id 47085A10051 for ; Fri, 8 Apr 2011 16:33:53 +0000 (UTC) Date: Fri, 8 Apr 2011 11:33:49 -0500 From: Scott Wood Message-ID: <20110408163349.GA1212@schlenkerla.am.freescale.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] configure: avoid basename usage message List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org basename prints a missing-argument error when sdlconfig is empty and we're cross-compiling. Signed-off-by: Scott Wood --- configure | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/configure b/configure index ae97e11..c5b85fe 100755 --- a/configure +++ b/configure @@ -1233,7 +1233,8 @@ else fi sdl=no fi -if test -n "$cross_prefix" && test "`basename $sdlconfig`" = sdl-config; then +if test -n "$cross_prefix" -a -n "$sdlconfig" && \ + test "`basename $sdlconfig`" = sdl-config; then echo warning: using "\"$sdlconfig\"" to detect cross-compiled sdl >&2 fi -- 1.7.1