aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-03-22 16:33:27 +0100
committerTobias Brunner <tobias@strongswan.org>2017-03-23 18:29:18 +0100
commit5e8e71d4050cd3a6e123252d87920196be33ab70 (patch)
tree26e6027f3a5849373538d0bcb4500faea0c2a7e3
parent1003cf23304da0819832137654cd9bab1fc3ff6a (diff)
downloadstrongswan-5e8e71d4050cd3a6e123252d87920196be33ab70.tar.bz2
strongswan-5e8e71d4050cd3a6e123252d87920196be33ab70.tar.xz
configure: Fix test for libunwind
Most functions in libunwind.h are actually mapped via macros to obscure function names, so checking for these would require some elaborate test via AC_LINK_IFELSE(). However, unw_backtrace() seems to be one of the few actual functions so lets use this for now, even though we don't call it ourselves later. Fixes: 016228c15843 ("configure: Check for actual functions in libraries with AC_CHECK_LIB")
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 5453e5b01..89d885c77 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1222,7 +1222,7 @@ if test x$bfd_backtraces = xtrue; then
fi
if test x$unwind_backtraces = xtrue; then
- AC_CHECK_LIB([unwind],[unw_getcontext],[LIBS="$LIBS"],[AC_MSG_ERROR([libunwind not found!])],[])
+ AC_CHECK_LIB([unwind],[unw_backtrace],[LIBS="$LIBS"],[AC_MSG_ERROR([libunwind not found!])],[])
AC_CHECK_HEADER([libunwind.h],[AC_DEFINE([HAVE_LIBUNWIND_H],,[have libunwind.h])],
[AC_MSG_ERROR([libunwind.h header not found!])])
UNWINDLIB="-lunwind"