diff options
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
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]), |