Use pkg-config to find libxml2, falling back to xml2-config if necessary by hughmcmaster · Pull Request #2818 · owasp-modsecurity/ModSecurity (original) (raw)
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/libxml.m4
to check for libxml2
via pkg-config
, falling back to xml2-config
if necessary.
Patch for ModSecurity v2, as discussed in #2714.