aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMarc Schink <dev@zapb.de>2020-08-12 13:54:10 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-09-27 17:39:44 +0100
commit67008e1bea2dd1a89d77802b892d3390e8a55455 (patch)
treec8fc94be0a33ce94af08526d12564fd4241c33cb /configure.ac
parent762ddcb74948852b0dfb25fcbca0965b09249a2f (diff)
downloadriscv-openocd-67008e1bea2dd1a89d77802b892d3390e8a55455.zip
riscv-openocd-67008e1bea2dd1a89d77802b892d3390e8a55455.tar.gz
riscv-openocd-67008e1bea2dd1a89d77802b892d3390e8a55455.tar.bz2
Use capstone for ARM disassembler
Change-Id: I1c9bf3f8178d4a06babe23a918e4411833ebc418 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/4812 Tested-by: jenkins Reviewed-by: Fredrik Hederstierna <fredrik@hederstierna.com> Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 90ac2a9..fc6734c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -639,6 +639,15 @@ PKG_CHECK_MODULES([LIBUSB1], [libusb-1.0], [
PKG_CHECK_MODULES([LIBUSB0], [libusb], [use_libusb0=yes], [use_libusb0=no])
+PKG_CHECK_MODULES([CAPSTONE], [capstone], [have_capstone=yes],
+ [have_capstone=no])
+
+AS_IF([test "x$have_capstone" = "xyes"], [
+ AC_DEFINE([HAVE_CAPSTONE], [1], [1 if you have captone disassembly framework.])
+], [
+ AC_DEFINE([HAVE_CAPSTONE], [0], [0 if you don't have captone disassembly framework.])
+])
+
for hidapi_lib in hidapi hidapi-hidraw hidapi-libusb; do
PKG_CHECK_MODULES([HIDAPI],[$hidapi_lib],[
use_hidapi=yes
@@ -757,6 +766,7 @@ AM_CONDITIONAL([USE_LIBGPIOD], [test "x$use_libgpiod" = "xyes"])
AM_CONDITIONAL([USE_HIDAPI], [test "x$use_hidapi" = "xyes"])
AM_CONDITIONAL([USE_LIBJAYLINK], [test "x$use_libjaylink" = "xyes"])
AM_CONDITIONAL([RSHIM], [test "x$build_rshim" = "xyes"])
+AM_CONDITIONAL([HAVE_CAPSTONE], [test "x$have_capstone" = "xyes"])
AM_CONDITIONAL([MINIDRIVER], [test "x$build_minidriver" = "xyes"])
AM_CONDITIONAL([MINIDRIVER_DUMMY], [test "x$build_minidriver_dummy" = "xyes"])