Received: from eggs.gnu.org ([208.118.235.92]:48031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4qUb-0007Jv-RP for qemu-devel@nongnu.org; Fri, 24 Aug 2012 05:47:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4qUY-0001yw-MU for qemu-devel@nongnu.org; Fri, 24 Aug 2012 05:47:53 -0400 Received: from speedy.comstyle.com ([206.51.28.2]:45592 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4qUY-0001yW-IE for qemu-devel@nongnu.org; Fri, 24 Aug 2012 05:47:50 -0400 Received: from rox.home.comstyle.com (unknown [IPv6:2001:470:b01e:3:18f5:25f2:15ea:d8b7]) (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 EB00E16B61 for ; Fri, 24 Aug 2012 05:47:40 -0400 (EDT) Date: Fri, 24 Aug 2012 05:47:39 -0400 From: Brad Smith Message-ID: <20120824094738.GH29273@rox.home.comstyle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] configure: some fixes for OpenBSD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org OpenBSD's uname works as expected with the -s flag so remove the special handling when determining the target OS. Use arch -s to retrieve the hardware architecture as uname -m will return the meta architecture instead of the hardware architecture (.e.g. macppc vs powerpc). Signed-off-by: Brad Smith diff --git a/configure b/configure index d97fd81..6073dd2 100755 --- a/configure +++ b/configure @@ -303,8 +303,6 @@ if check_define __linux__ ; then targetos="Linux" elif check_define _WIN32 ; then targetos='MINGW32' -elif check_define __OpenBSD__ ; then - targetos='OpenBSD' elif check_define __sun__ ; then targetos='SunOS' elif check_define __HAIKU__ ; then @@ -332,6 +330,11 @@ SunOS) if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then cpu="x86_64" fi + ;; +OpenBSD) + # 'uname -m' returns the meta arch macppc instead of the hw arch powerpc + cpu=`arch -s` + ;; esac if test ! -z "$cpu" ; then -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.