build/find_xml.m4: Check for libxml2 via pkg-config then xml2-config

Debian is taking steps to remove xml2-config in favour of pkg-config.
This means ModSecurity will build without libxml2 support by default
on Debian, Ubuntu and other distributions tracking Debian packages.

This patch modifies build/find_xml.m4 to check for libxml2 via
pkg-config, falling back to xml2-config if necessary.
This commit is contained in:
Hugh McMaster
2022-10-16 18:09:37 +11:00
parent 849cd7e848
commit baa38ddbaf
2 changed files with 42 additions and 18 deletions

View File

@@ -30,6 +30,7 @@ AC_PROG_MAKE_SET
AC_PROG_GREP
AC_PATH_PROGS(PERL, [perl perl5], )
AC_PATH_PROGS(ENV_CMD, [env printenv], )
PKG_PROG_PKG_CONFIG
# Checks for header files.
AC_HEADER_STDC