From: Jeff Lucovsky Date: Thu, 17 Jun 2021 12:52:17 +0000 (-0400) Subject: configure.ac: Support libunwind configuration X-Git-Tag: suricata-6.0.5~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=285f57861e1e342f4bca5169b03ce2ce195d04f2;p=thirdparty%2Fsuricata.git configure.ac: Support libunwind configuration This commit adds support for enabling libunwind -- a library that can be used to display stack information. Libunwind is enabled and used by Suricata if present during configuration. A diagnostic message is displayed if libunwind cannot be found. (cherry picked from commit 303dd29b501d9f27b60d1b400986f04b99df2453) --- diff --git a/configure.ac b/configure.ac index 18fc82db65..79cdd4cd34 100644 --- a/configure.ac +++ b/configure.ac @@ -1791,6 +1791,13 @@ ;; esac + AC_CHECK_LIB(unwind,unw_backtrace,,LIBUNW="no") + if test "$LIBUNW" = "no"; then + echo + echo " libunwind library and development headers not found" + echo " stacktrace on unexpected termination due to signal not possible" + echo + fi; AC_ARG_ENABLE(ebpf, AS_HELP_STRING([--enable-ebpf],[Enable eBPF support]),