summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alk@tut.by>2014-03-01 12:38:08 -0800
committerAliaksey Kandratsenka <alk@tut.by>2014-03-01 12:45:03 -0800
commitfe566314267fc3f67c5068d0afe004b1733ff19a (patch)
tree521ebb072778842a4ef9bfed8281ac21cb53e622
parent91179961490a601f2c611889b3075e995fa5437e (diff)
downloadgperftools-fe566314267fc3f67c5068d0afe004b1733ff19a.tar.gz
unbreak building with libunwind
Caused by premature merging of previous patch. When we're searching for backtrace in libexecinfo and don't find it, we should not reset UNWIND_LIBS to empty value. Correct fix is to first search for backtrace in libunwind and then to search for it in libexecinfo.
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 3d135c3..129ab2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -208,8 +208,8 @@ fi
AM_CONDITIONAL(ENABLE_STATIC, test "$enable_static" = yes)
# 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_CHECK_LIB(unwind, backtrace, UNWIND_LIBS=-lunwind,
+ [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.