summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2016-05-28 13:07:22 +0200
committerJean Guyomarc'h <jean@guyomarch.bzh>2016-05-28 19:13:10 +0200
commit0193600e486759f4b0524b520e9128c2a3d19cbd (patch)
treefc505136086f514323db80a15e735f3c2ce51e7c /configure.ac
parent01c7fd7cda1f89c8c0257c97f9822e40c4fb2df8 (diff)
autotools: improve libunwind detection
Libuwind may not be shipped with a pkg-config file. It can be distributed on the system, but the autotools would fail to detect it because it relied only on pkg-config. We now first check with pkg-config, and then try to compile and link a program using libuwind to see if it is supported anyway. This is a first step towards a working eina_log_backtrace on Mac OS X.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 40a2edffac..9fd46ba9a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -865,11 +865,7 @@ case "${build_profile}" in
865 ;; 865 ;;
866esac 866esac
867 867
868PKG_CHECK_MODULES(UNWIND, [libunwind libunwind-generic], 868EFL_CHECK_LIBUNWIND
869 [have_unwind=yes], [have_unwind=no])
870AS_IF([test "x$have_unwind" = "xyes"],
871 [AC_DEFINE([HAVE_UNWIND], [1], [Have libunwind])])
872AM_CONDITIONAL(HAVE_UNWIND, test "x$have_unwind" = "xyes")
873 869
874EINA_CONFIG([HAVE_ALLOCA_H], [test "x${ac_cv_working_alloca_h}" = "xyes"]) 870EINA_CONFIG([HAVE_ALLOCA_H], [test "x${ac_cv_working_alloca_h}" = "xyes"])
875EINA_CONFIG([SAFETY_CHECKS], [test "x${have_safety_checks}" = "xyes"]) 871EINA_CONFIG([SAFETY_CHECKS], [test "x${have_safety_checks}" = "xyes"])