From: Philippe Antoine Date: Thu, 3 Nov 2022 10:02:07 +0000 (+0100) Subject: pcre: configurable paths for PCRE2 for include/lib X-Git-Tag: suricata-7.0.0-rc1~395 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8157%2Fhead;p=thirdparty%2Fsuricata.git pcre: configurable paths for PCRE2 for include/lib Ticket: #5572 --- diff --git a/configure.ac b/configure.ac index c42396cdab..65aacf6eba 100644 --- a/configure.ac +++ b/configure.ac @@ -580,6 +580,19 @@ LIBS="${TMPLIBS} -lz" fi + AC_ARG_WITH(libpcre2_includes, + [ --with-libpcre2-includes=DIR libpcre2 include directory], + [with_libpcre2_includes="$withval"],[with_libpcre2_includes="no"]) + AC_ARG_WITH(libpcre2_libraries, + [ --with-libpcre2-libraries=DIR libpcre2 library directory], + [with_libpcre2_libraries="$withval"],[with_libpcre2_libraries="no"]) + + if test "$with_libpcre2_includes" != "no"; then + CPPFLAGS="${CPPFLAGS} -I${with_libpcre2_includes}" + fi + if test "$with_libpcre2_libraries" != "no"; then + LDFLAGS="${LDFLAGS} -L${with_libpcre2_libraries}" + fi PCRE2="" AC_CHECK_LIB(pcre2-8, pcre2_compile_8,,PCRE2="no") if test "$PCRE2" = "no"; then