configure: GLIB_COMPILE_RESOURCES is wrong when cross-compiling.
commit8e453330c981651ea6fbac9913c955c223a97c0f
authorJehan <jehan@girinstud.io>
Sun, 12 Aug 2018 14:08:41 +0000 (12 16:08 +0200)
committerJehan <jehan@girinstud.io>
Sun, 12 Aug 2018 20:52:45 +0000 (12 22:52 +0200)
tree1e4e4fb48cde95480008384da085e70f617d51b2
parentf8a1d574ee6295362f8d2b45ce41bc2a46ebfa63
configure: GLIB_COMPILE_RESOURCES is wrong when cross-compiling.

AM_PATH_GLIB_2_0 m4 macro actually computes this value using
$PKG_CONFIG. Yet $PKG_CONFIG variable is the pkg-config tool looking for
target libraries (not host), hence it would return the executable
`glib-compile-resources` built for the target.

Also using the same variable name invalidates our test: our own
AC_PATH_PROG was never run as the variable was already set. And no
environment variable could override this test anymore either. This is
why I rename the test variable to HOST_GLIB_COMPILE_RESOURCES.

(cherry picked from commit d1d9eb17e5c59f13f27ff1d906291d34b1022c9a)
app/core/Makefile.am
app/widgets/Makefile.am
configure.ac
libgimpwidgets/Makefile.am
plug-ins/pagecurl/Makefile.am