autotools: improve libunwind detection
authorJean Guyomarc'h <jean@guyomarch.bzh>
Sat, 28 May 2016 11:07:22 +0000 (13:07 +0200)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Sat, 28 May 2016 17:14:16 +0000 (19:14 +0200)
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.

Makefile.am

index 1efae6e..f966432 100644 (file)
@@ -42,6 +42,7 @@ m4/efl_compiler.m4 \
 m4/efl_doxygen.m4 \
 m4/efl_path_max.m4 \
 m4/efl_threads.m4 \
+m4/efl_libunwind.m4 \
 m4/eina_check.m4 \
 m4/eina_config.m4 \
 m4/eio_check_options.m4 \