From patchwork Sat Jun 18 19:49:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 637554 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rX74p5WZDz9sDG for ; Sun, 19 Jun 2016 05:50:02 +1000 (AEST) Received: from localhost ([::1]:36185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEMFg-0005mH-3G for incoming@patchwork.ozlabs.org; Sat, 18 Jun 2016 15:49:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEMF1-0005RB-MK for qemu-devel@nongnu.org; Sat, 18 Jun 2016 15:49:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEMEz-0008QL-TX for qemu-devel@nongnu.org; Sat, 18 Jun 2016 15:49:14 -0400 Received: from qemu.weilnetz.de ([2a03:4000:2:362::1]:52359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEMEz-0008QE-My for qemu-devel@nongnu.org; Sat, 18 Jun 2016 15:49:13 -0400 Received: by qemu.weilnetz.de (Postfix, from userid 1000) id 6607117FA78; Sat, 18 Jun 2016 21:49:10 +0200 (CEST) From: Stefan Weil To: QEMU Developer Date: Sat, 18 Jun 2016 21:49:09 +0200 Message-Id: <1466279349-28865-1-git-send-email-sw@weilnetz.de> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a03:4000:2:362::1 Subject: [Qemu-devel] [PATCH] configure: Don't run AVX optimization requirement check on Mac OS X X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Stefan Weil Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" The test currently only works with ELF and requires readelf, but OS X does not use ELF binaries. Signed-off-by: Stefan Weil --- configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index 10cb212..89ffd28 100755 --- a/configure +++ b/configure @@ -1778,6 +1778,11 @@ fi ########################################## # avx2 optimization requirement check +# This check currently only works for hosts with ELF, +# so don't run it on Darwin. + +if [ "$darwin" != "yes" ] ; then + cat > $TMPC << EOF #pragma GCC push_options #pragma GCC target("avx2") @@ -1797,6 +1802,8 @@ if compile_object "" ; then fi fi +fi # "$darwin" != "yes" + ######################################### # zlib check