From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbbWb-0001iW-A5 for qemu-devel@nongnu.org; Mon, 23 Feb 2009 09:11:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbbWZ-0001iD-U2 for qemu-devel@nongnu.org; Mon, 23 Feb 2009 09:11:13 -0500 Received: from [199.232.76.173] (port=40679 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbbWZ-0001iA-N4 for qemu-devel@nongnu.org; Mon, 23 Feb 2009 09:11:11 -0500 Received: from savannah.gnu.org ([199.232.41.3]:41995 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbbWZ-0007AC-DQ for qemu-devel@nongnu.org; Mon, 23 Feb 2009 09:11:11 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LbbWY-0001l8-Tz for qemu-devel@nongnu.org; Mon, 23 Feb 2009 14:11:11 +0000 Received: from malc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LbbWY-0001l4-Mu for qemu-devel@nongnu.org; Mon, 23 Feb 2009 14:11:10 +0000 MIME-Version: 1.0 Errors-To: malc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: malc Message-Id: Date: Mon, 23 Feb 2009 14:11:10 +0000 Subject: [Qemu-devel] [6640] 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 Revision: 6640 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6640 Author: malc Date: 2009-02-23 14:11:10 +0000 (Mon, 23 Feb 2009) Log Message: ----------- Darwin: Check for x86_64 only on i386 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 Modified Paths: -------------- trunk/configure Modified: trunk/configure =================================================================== --- trunk/configure 2009-02-23 13:16:07 UTC (rev 6639) +++ trunk/configure 2009-02-23 14:11:10 UTC (rev 6640) @@ -244,9 +244,9 @@ 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"