GNOME Bugzilla – Bug 731582
Please use AC_PATH_TOOL to improve cross-compile & multilib support
Last modified: 2014-07-25 19:09:08 UTC
Created attachment 278352 [details] [review] gtk+3 AC_PATH_TOOL patch Currently, GTK+ is using AC_PATH_PROG to find a few build tools such as 'cups-config'. This doesn't handle cases when there are multiple versions of such a tool installed such as when cross-compilation is done or multilib build is performed in Gentoo. Please switch the relevant macros from AC_PATH_PROG to AC_PATH_TOOL that prefers ${CHOST}-prefixed tools over non-prefixed tools. Potential cases for switch are: - AC_PATH_PROG(NM, nm, nm) -> i suspect different arch may need different version of nm, - AC_PATH_PROG(CUPS_CONFIG, cups-config, no) -> cups-config may contain arch/abi-specific paths. Possibly more tools may need AC_PATH_TOOL. I'm attaching patch for the two against gtk+3 master.
Created attachment 278353 [details] [review] gtk+2 AC_PATH_TOOL patch And a similar patch against gtk-2-24 branch.
This bug has been first mentioned in https://bugzilla.gnome.org/show_bug.cgi?id=671515. Please link it. Thanks, Andrey