From: Philippe Proulx Date: Fri, 5 May 2017 20:47:17 +0000 (-0400) Subject: configure.ac: define BT_ENABLE_DEBUG_INFO depending on the support X-Git-Tag: v2.0.0-pre1~307 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=7433a3a4c66cf9f182afb61ce3d77a83474053be configure.ac: define BT_ENABLE_DEBUG_INFO depending on the support Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- 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.)])