From 91179961490a601f2c611889b3075e995fa5437e Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Tue, 25 Feb 2014 21:41:28 +0100 Subject: [PATCH] Look for backtrace() in libexecinfo as well. Signed-off-by: Aliaksey Kandratsenka --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a15276e..3d135c3 100644 --- a/configure.ac +++ b/configure.ac @@ -207,8 +207,9 @@ fi # Some tests test the behavior of .so files, and only make sense for dynamic. AM_CONDITIONAL(ENABLE_STATIC, test "$enable_static" = yes) -# We want to link in libunwind if it exists +# We want to link in libunwind or libexecinfo if it exists AC_CHECK_LIB(unwind, backtrace, UNWIND_LIBS=-lunwind, UNWIND_LIBS=) +AC_CHECK_LIB(execinfo, backtrace, UNWIND_LIBS=-lexecinfo, UNWIND_LIBS=) AC_SUBST(UNWIND_LIBS) # On x86_64, instead of libunwind, we can choose to compile with frame-pointers.