From 58e92392eafd244a9e72ee948e01dadbd9488336 Mon Sep 17 00:00:00 2001 From: Max Fillinger Date: Thu, 15 Feb 2018 15:57:51 +0100 Subject: [PATCH] configure: Show installation info for liblz4 if not found --- configure.ac | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ba833fb438..deabdb7219 100644 --- a/configure.ac +++ b/configure.ac @@ -2062,7 +2062,20 @@ fi # Check for lz4 -AC_CHECK_LIB(lz4, LZ4F_createCompressionContext, , ) +enable_liblz4="yes" +AC_CHECK_LIB(lz4, LZ4F_createCompressionContext, , enable_liblz4="no") + +if test "$enable_liblz4" = "no"; then + echo + echo " Compressed pcap logging is not available without liblz4." + echo " If you want to enable compression, you need to install it." + echo + echo " Ubuntu: apt-get install liblz4-dev" + echo " Fedora: dnf install lz4-devel" + echo " RHEL/CentOS: yum install epel-release" + echo " yum install lz4-devel" + echo +fi # get cache line size AC_PATH_PROG(HAVE_GETCONF_CMD, getconf, "no") @@ -2316,6 +2329,7 @@ SURICATA_BUILD_CONF="Suricata Configuration: Old barnyard2 support: ${enable_old_barnyard2} Hyperscan support: ${enable_hyperscan} Libnet support: ${enable_libnet} + liblz4 support: ${enable_liblz4} Rust support (experimental): ${enable_rust} Rust strict mode: ${enable_rust_strict} -- 2.47.2