From 7433a3a4c66cf9f182afb61ce3d77a83474053be Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 5 May 2017 16:47:17 -0400 Subject: [PATCH] configure.ac: define BT_ENABLE_DEBUG_INFO depending on the support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 0ca41afb..8dc537a3 100644 --- a/configure.ac +++ b/configure.ac @@ -368,6 +368,8 @@ AC_ARG_ENABLE([debug-info], [AS_IF([test "x$enableval" = xyes], [_enable_debug_info=yes], [_enable_debug_info=no])], []) AM_CONDITIONAL([ENABLE_DEBUG_INFO], [test "x$_enable_debug_info" = xyes]) +AC_DEFINE([BT_ENABLE_DEBUG_INFO], [1], [Enable debug info support]) + AS_IF([test "x$_enable_debug_info" = xyes], [ # Check if libelf and libdw are present AC_CHECK_LIB([elf], [elf_version], [], [AC_MSG_ERROR(Missing libelf (from elfutils >= 0.154) which is required by debug info. You can disable this feature using --disable-debug-info.)]) -- 2.34.1