From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbKdi-0000ok-LA for qemu-devel@nongnu.org; Sun, 22 Feb 2009 15:09:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbKdh-0000lg-6C for qemu-devel@nongnu.org; Sun, 22 Feb 2009 15:09:26 -0500 Received: from [199.232.76.173] (port=57494 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbKdh-0000ld-3B for qemu-devel@nongnu.org; Sun, 22 Feb 2009 15:09:25 -0500 Received: from cantor.suse.de ([195.135.220.2]:35885 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbKdg-0000Rw-Na for qemu-devel@nongnu.org; Sun, 22 Feb 2009 15:09:24 -0500 From: Alexander Graf Date: Sun, 22 Feb 2009 21:09:21 +0100 Message-Id: <1235333361-24200-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH] Darwin: Check for x86_64 only on i386 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: Alexander Graf , andreas.faerber@web.de The sysctl variable if we're 64-bit capable only exists on i386. So we should only check it if we're on i386. This suppresses a warning on PowerPC spotted by Andreas Faerber. Signed-off-by: Alexander Graf --- configure | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c3fbbbe..62925d8 100755 --- a/configure +++ b/configure @@ -244,9 +244,9 @@ Darwin) bsd="yes" darwin="yes" # on Leopard most of the system is 32-bit, so we have to ask the kernel it if we can run 64-bit userspace code -is_x86_64=`sysctl -n hw.optional.x86_64` -if [ "$is_x86_64" = "1" ]; then - cpu=x86_64 +if [ "$cpu" = "i386" ] ; then + is_x86_64=`sysctl -n hw.optional.x86_64` + [ "$is_x86_64" = "1" ] && cpu=x86_64 fi if [ "$cpu" = "x86_64" ] ; then OS_CFLAGS="-arch x86_64" -- 1.5.3.1