From 8fa3fed3a4196b38fadb5ee901827a166f879d3f Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 3 Feb 2015 16:50:33 +0100 Subject: btrfs-progs: autoconf: check if backtrace is really supported Signed-off-by: David Sterba --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index dd677371..95e28093 100644 --- a/configure.ac +++ b/configure.ac @@ -68,6 +68,12 @@ AS_IF([test "x$enable_backtrace" = xno], [ AC_DEFINE([BTRFS_DISABLE_BACKTRACE], [1], [disable backtrace stuff in kerncompat.h ]) ]) +if test "x$enable_backtrace" = xyes; then + AC_CHECK_HEADERS([execinfo.h]) + AC_CHECK_FUNCS([backtrace backtrace_symbols_fd], [], + AC_MSG_ERROR([standard library does not have backtrace support])) +fi + AC_ARG_ENABLE([documentation], AS_HELP_STRING([--disable-documentation], [do not build domumentation]), -- cgit v1.2.3