Source: Thomas Anderson
Upstream: In progress
Reason: Use preferred pkg-config detection macro

diff -aur gnucash-2.6.7-old/configure.ac gnucash-2.6.7/configure.ac
--- gnucash-2.6.7-old/configure.ac	2015-06-27 10:32:50.000000000 -0700
+++ gnucash-2.6.7/configure.ac	2015-09-05 12:13:50.078382196 -0700
@@ -256,10 +256,12 @@
 ### --------------------------------------------------------------------------
 ### See if we have pkg-config
 
-AC_PATH_PROG(PKG_CONFIG,pkg-config)
+PKG_PROG_PKG_CONFIG
 if test "x$PKG_CONFIG" = x; then
   # @*%&$ Ximian programmers renamed this application
-  AC_PATH_PROG(PKG_CONFIG,pkgconfig)
+  # Cannot use PKG_PROG_PKG_CONFIG macro above for nonstandard binary name
+  export PKG_CONFIG=pkgconfig
+  PKG_PROG_PKG_CONFIG
   if test "x$PKG_CONFIG" = x; then
     AC_MSG_ERROR([Could not find the pkg-config (or pkgconfig) program.],)
   fi
