Source: gerbv
Version: 2.6.1-2
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

gerbv fails to cross build from source, because it uses the build
architecture pkg-config. It uses AC_PATH_PROG to find pkg-config and
thus fails to consider $ac_tool_prefix. Switching to the upstream macro
PKG_PROG_PKG_CONFIG fixes that and makes gerbv cross build successfully.

Helmut
Index: gerbv-2.6.1/configure.ac
===================================================================
--- gerbv-2.6.1.orig/configure.ac
+++ gerbv-2.6.1/configure.ac
@@ -185,8 +185,8 @@
 AM_CONDITIONAL(HAVE_MAGICK, test x$have_magick = xyes)
 
 # Check for pkg-config
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-if test "$PKG_CONFIG" = "no"; then
+PKG_PROG_PKG_CONFIG
+if test "x$PKG_CONFIG" = "x"; then
 	AC_MSG_ERROR([Cannot find pkg-config, make sure it is installed and in your PATH])
 fi      
 

Reply via email to