Fix bug #3418 ‘Building on a Cross Compiling toolchain doesn't work’
authorRicardo Mones <ricardo@mones.org>
Fri, 31 Aug 2018 18:36:54 +0000 (20:36 +0200)
committerRicardo Mones <ricardo@mones.org>
Fri, 31 Aug 2018 18:36:54 +0000 (20:36 +0200)
The bug is really fixed in commit 8eee2fd5ddb9d24d8f58bf88afdea8ca67daaea5
This only adds a slight modification of the remaining portion of the
patch checking the macro itself, from the original attached to the bug
by ridai.govinda@gmail.com.

configure.ac

index 50766e1..4a06390 100644 (file)
@@ -65,6 +65,14 @@ AC_SUBST(GIT_VERSION)
 AC_CHECK_PROG(HAVE_GTK_ICON_CACHE, gtk-update-icon-cache, yes, no)
 AM_CONDITIONAL(UPDATE_GTK_ICON_CACHE, test x"$HAVE_GTK_ICON_CACHE" = xyes)
 
+dnl Require pkg-config
+m4_ifndef([PKG_PROG_PKG_CONFIG],
+    [m4_fatal([Could not locate the pkg-config autoconf macros. These
+are usually located in /usr/share/aclocal/pkg.m4. If your macros
+are in a different location, try setting the environment variable
+ACLOCAL_FLAGS before running ./autogen.sh or autoreconf again. E.g.:
+export ACLOCAL_FLAGS="-I/other/macro/dir"])
+])
 PKG_PROG_PKG_CONFIG
 
 dnl libtool versioning