From 1905ab5f7d9e224e8ff3d810fd6f4e27e9ce4370 Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Mon, 6 Aug 2018 12:57:52 +0100 Subject: [PATCH] Depend on hyperscan --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index d62e5c42..d8c9e82d 100644 --- a/configure.ac +++ b/configure.ac @@ -320,6 +320,18 @@ dnl End OpenSSL detection dnl Specialized functions and libraries dnl =================================== +AC_ARG_ENABLE(hyperscan, +AC_HELP_STRING([--disable-hyperscan],[Disable hyperscan support]), +[hyperscan=$enableval],[hyperscan=yes]) + +if test "$hyperscan" = yes; then + +CPPFLAGS="$CPPFLAGS $(pkg-config --cflags libhs)" +LIBS="$LIBS $(pkg-config --libs libhs)" +AC_CHECK_HEADER(hs_common.h) + +fi + AC_ARG_WITH(zlib-path, AC_HELP_STRING([--with-zlib-path=DIR],[Path to libz.so for ziplinks support.]), [LIBS="$LIBS -L$withval"],)