mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
- Include definition of PCRE2_CODE_UNIT_WIDTH to allow the header test to compile correctly - Add description to the definition of HAVE_PCRE2_PCRE2_H to prevent an autoheader missing template error
This commit is contained in:
17
configure.ac
17
configure.ac
@@ -529,12 +529,17 @@ AC_HELP_STRING([--with-libpcre=included], [Always use the version included with
|
||||
# If they didn't specify it, we try to find it
|
||||
if test $have_pcre != yes -a $requested_included_pcre != yes ; then
|
||||
AC_CHECK_HEADER(pcre2.h,
|
||||
AC_CHECK_LIB(pcre2-8, pcre2_compile_8, [have_pcre=yes ]),
|
||||
[AC_CHECK_HEADER(pcre2/pcre2.h,
|
||||
[AC_CHECK_LIB(pcre2-8, pcre2_compile_8, [have_pcre=yes
|
||||
AC_DEFINE(HAVE_PCRE2_PCRE2_H, 1)])]
|
||||
)]
|
||||
)
|
||||
AC_CHECK_LIB(pcre2-8,
|
||||
pcre2_compile_8,
|
||||
[have_pcre=yes ]),
|
||||
AC_CHECK_HEADER(pcre2/pcre2.h,
|
||||
AC_CHECK_LIB(pcre2-8,
|
||||
pcre2_compile_8,
|
||||
[have_pcre=yes
|
||||
AC_DEFINE(HAVE_PCRE2_PCRE2_H, 1, [Using system pcre2/pcre2.h])]),
|
||||
[],
|
||||
[#define PCRE2_CODE_UNIT_WIDTH 8]),
|
||||
[#define PCRE2_CODE_UNIT_WIDTH 8])
|
||||
fi
|
||||
|
||||
# If we still don't have it, we use our own
|
||||
|
||||
Reference in New Issue
Block a user