diff options
author | Luca <deri@ntop.org> | 2020-02-02 22:07:21 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2020-02-02 22:07:21 +0100 |
commit | 6dbe81588f7cb1d40e8d33da17b790bcf3a22e94 (patch) | |
tree | 381b04e5c22b1868fe6c8e99b455c1398f9183c2 | |
parent | 2b6a6391920438e8c0535d45ea0007f486757530 (diff) |
Added --with-pcre to enable libpcre usage
-rw-r--r-- | configure.seed | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.seed b/configure.seed index 6cf9046d6..092b9c022 100644 --- a/configure.seed +++ b/configure.seed @@ -161,9 +161,13 @@ AM_CONDITIONAL([HAS_FUZZLDFLAGS], [test "x$has_sanitizefuzzer" = "xyes"]) AC_CHECK_LIB(pthread, pthread_setaffinity_np, AC_DEFINE_UNQUOTED(HAVE_PTHREAD_SETAFFINITY_NP, 1, [libc has pthread_setaffinity_np])) -AC_CHECK_LIB(pcre, pcre_compile, AC_DEFINE_UNQUOTED(HAVE_PCRE, 1, [libpcre(-dev) is present])) -if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then : -ADDITIONAL_LIBS=-lpcre +dnl> PCRE +AC_ARG_WITH(pcre, [ --with-pcre Enable nDPI build with libpcre]) +if test "${with_pcre+set}" = set; then : + AC_CHECK_LIB(pcre, pcre_compile, AC_DEFINE_UNQUOTED(HAVE_PCRE, 1, [libpcre(-dev) is present])) + if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then : + ADDITIONAL_LIBS=-lpcre + fi fi AC_CONFIG_FILES([Makefile example/Makefile example/Makefile.dpdk tests/Makefile libndpi.pc src/include/ndpi_define.h src/lib/Makefile python/Makefile fuzz/Makefile]) |