Check for the library containing the backtrace() function.
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Sat, 4 Jul 2009 11:12:32 +0000 (13:12 +0200)
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Sat, 4 Jul 2009 11:12:32 +0000 (13:12 +0200)
On FreeBSD the backtrace() function as well as the execinfo.h headers are
provided by libexecinfo (an optional package). PulseAudio “automagically”
identifies execinfo.h and proceeds to use it, but then will fail to link
against the library.

Thanks to Alexis Ballier for reporting.

configure.ac

index 00121f8..9c96d1c 100644 (file)
@@ -388,6 +388,7 @@ AC_SEARCH_LIBS([timer_create], [rt])
 
 # BSD
 AC_SEARCH_LIBS([connect], [socket])
+AC_SEARCH_LIBS([backtrace], [execinfo])
 
 # Non-standard