]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure.ac: Support libunwind configuration
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 17 Jun 2021 12:52:17 +0000 (08:52 -0400)
committerVictor Julien <vjulien@oisf.net>
Mon, 3 Jan 2022 11:02:29 +0000 (12:02 +0100)
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.

configure.ac

index 037adda17007f34d6baf940c215c8441eff45564..c5aeac4fe12f370e1189ab3aa9c34ff821ec27a2 100644 (file)
     ;;
     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]),