From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1TMW-00048D-O6 for qemu-devel@nongnu.org; Wed, 07 Sep 2011 21:25:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1TMV-00077z-HC for qemu-devel@nongnu.org; Wed, 07 Sep 2011 21:25:04 -0400 Received: from speedy.comstyle.com ([206.51.28.2]:13137 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1TMV-00077X-Eg for qemu-devel@nongnu.org; Wed, 07 Sep 2011 21:25:03 -0400 Received: from rox.home.comstyle.com (rox.home.comstyle.com [IPv6:2001:470:b01e:3:ca0a:a9ff:fe93:42c9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id 52FE39853D for ; Wed, 7 Sep 2011 21:24:58 -0400 (EDT) Date: Wed, 7 Sep 2011 21:24:56 -0400 From: Brad Message-ID: <20110908012456.GA29428@rox.home.comstyle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] configure: Detect predefined compiler symbols for ARM and HPPA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org configure: Detect predefined compiler symbols for ARM and HPPA To be able to detect some ARM / HPPA based architectures such as with OpenBSD/(armish / zaurus) or OpenBSD/hppa. Signed-off-by: Brad Smith --- configure | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/configure b/configure index c7948b6..3bc6904 100755 --- a/configure +++ b/configure @@ -284,6 +284,12 @@ elif check_define __s390__ ; then else cpu="s390" fi +elif check_define __ARMEB__ ; then + cpu="armv4b" +elif check_define __ARMEL__ ; then + cpu="armv4l" +elif check_define __hppa__ ; then + cpu="hppa" else cpu=`uname -m` fi @@ -304,7 +310,7 @@ case "$cpu" in armv*l) cpu="armv4l" ;; - parisc|parisc64) + hppa|parisc|parisc64) cpu="hppa" ;; mips*) -- 1.7.6