GNOME Bugzilla – Bug 725635
use AC_PATH_TOOL to find libgcrypt-config for better cross-compile and multilib support
Last modified: 2014-09-28 14:19:03 UTC
Since libgcrypt-config is used to find host system libraries, libxslt's configure should be using AC_PATH_TOOL, not AC_PATH_PROG, to detect it. AC_PATH_TOOL would first try to look for ${CHOST}-libgcrypt-config (e.g. i686-pc-linux-gnu-libgcrypt-config) before falling back to plain libgcrypt-config. This makes things much easier when cross-compiling or when building libxslt on a fully multilib system.
Created attachment 270865 [details] [review] proposed patch
Just to be clear, I'd like to mention that it's the upstream-preferred way and it's used like that in libgcrypt.m4.
Created attachment 285240 [details] [review] 2in1 patch for libgcrypt-config and xml2-config The same applies to xml2-config. Alexandre, could you update the bug summary to mention both?
Applied the 2-in-1 patch: https://git.gnome.org/browse/libxslt/commit/?id=8df3ccba4f1840eb8d11467e27c50d6018e932c5