From nobody Wed Nov 5 16:56:25 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1536160833080898.7131773035209; Wed, 5 Sep 2018 08:20:33 -0700 (PDT) Received: from localhost ([::1]:56750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxZbV-00008U-K2 for importer@patchew.org; Wed, 05 Sep 2018 11:20:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxZaf-00085D-In for qemu-devel@nongnu.org; Wed, 05 Sep 2018 11:19:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxZac-00078L-EY for qemu-devel@nongnu.org; Wed, 05 Sep 2018 11:19:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43682) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fxZac-00076M-7h for qemu-devel@nongnu.org; Wed, 05 Sep 2018 11:19:30 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 79613C0273A1; Wed, 5 Sep 2018 15:19:29 +0000 (UTC) Received: from localhost (ovpn-116-4.gru2.redhat.com [10.97.116.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 014E4171BB; Wed, 5 Sep 2018 15:19:28 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Wed, 5 Sep 2018 12:19:27 -0300 Message-Id: <20180905151927.8884-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 05 Sep 2018 15:19:29 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] configure: Support --enable-capstone=internal 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: Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Danilo C. L. de Paula" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RDMRC_1 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Currently there's no way to make configure not try to use the system-provided capstone library using pkgconfig. Add support to --enable-capstone=3Dinternal option to make QEMU not use the system-provided library automatically. Signed-off-by: Eduardo Habkost --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 58862d2ae8..34ed00f6d9 100755 --- a/configure +++ b/configure @@ -1431,6 +1431,8 @@ for opt do ;; --enable-capstone=3Dsystem) capstone=3D"system" ;; + --enable-capstone=3Dinternal) capstone=3D"internal" + ;; --with-git=3D*) git=3D"$optarg" ;; --enable-git-update) git_update=3Dyes @@ -1635,6 +1637,9 @@ Advanced options (experts only): xen pv domain builder --enable-debug-stack-usage track the maximum stack usage of stacks created= by qemu_alloc_stack + --enable-capstone[=3DLOCATION] + Where to look for capstone library. + Supported options: internal, git, system =20 Optional features, enabled with --enable-FEATURE and disabled with --disable-FEATURE, default is enabled if available: --=20 2.18.0.rc1.1.g3f1ff2140