Author: Helmut Grohne <helmut@subdivi.de>  
Description: Fix FTCBFS: uses the build architecture qmake
Last-Update: 2022-04-06
Forwarded: not-yet

bacula fails to cross build from source, because it attempts to use the
build architecture qmake while Build-Depends requested the host
architecture one.

bacula's configure.ac uses AC_PATH_PROG to locate qmake.
Once changing that to AC_PATH_TOOL, the host architecture qmake is being
used and this part magically works.

--- a/autoconf/configure.in
+++ b/autoconf/configure.in
@@ -157,7 +157,7 @@
 dnl The macro PKG_PROG_PKG_CONFIG avoids this problem.
 dnl AC_PATH_PROG(PKGCONFIG, pkg-config, pkg-config)
 PKG_PROG_PKG_CONFIG()
-AC_PATH_PROG(QMAKE, qmake, none)
+AC_PATH_TOOL(QMAKE, qmake, none)
 AC_PATH_PROG(GMAKE, gmake, none)
 AC_PATH_PROG(PIDOF, pidof, pidof)
 AC_PROG_AWK
