Use PKG_CHECK_MODULES to find libxml2 and lib(e)xslt
[PATCH] Please use PKG_CHECK_MODULES to detect the libxml2 and libxslt libraries
The paths in pkg-config files differ across arches, so they can't go in /usr/share or /usr/lib for that matter. Thanks for the merge.
Hi, thanks for responding so quickly. libxml2's pkg-config file is definitely included in the Debian stable development package (libxml2-dev). The correct pkg-config command is pkg-config libxml-2.0 --{libs|cflags|exists} Note that PKG_CHECK_MODULES takes libxml-2.0 as the second argument (as per the patch in post 1).
Hi, thanks for responding so quickly. libxml2's pkg-config file is definitely included in the Debian stable development package. The correct pkg-config command is pkg-config libxml-2.0 --{libs|cflags|exists} Note that PKG_CHECK_MODULES takes libxml-2.0 as the second argument (as per the patch in post 1).
Hi, thanks for responding so quickly. libxml2's pkg-config file is definitely included in the Debian stable development package. The correct pkg-config command is pkg-config libxml-2.0 --{libs|cflags|exists} Note that PKG_CHECK_MODULES just takes libxml-2.0, as per the patch in post 1.
Hmmm. I thought I was logged in.
Hi Bart, Your patch improves on my version quite nicely. I was able to build, install and uninstall the pkg-config files with no problems. Thank you for the review and updated patch.