Package: autoconf-archive Version: 20190106-2 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs Control: affects -1 + src:projectm
projectm fails to cross build from source, because it uses AX_HAVE_QT from autoconf-archive and that macro hard codes the build architecture qmake. Please consider applying the attached patch to have it use the host architecture qmake. Helmut
--- autoconf-archive-20190106.orig/m4/ax_have_qt.m4 +++ autoconf-archive-20190106/m4/ax_have_qt.m4 @@ -62,9 +62,10 @@ AC_DEFUN([AX_HAVE_QT], AC_REQUIRE([AC_PATH_X]) AC_REQUIRE([AC_PATH_XTRA]) + AC_CHECK_TOOL([QMAKE],[qmake],[false]) AC_MSG_CHECKING(for Qt) # If we have Qt5 or later in the path, we're golden - ver=`qmake --version | grep -o "Qt version ."` + ver=`$QMAKE --version | grep -o "Qt version ."` if test "$ver" ">" "Qt version 4"; then have_qt=yes # This pro file dumps qmake's variables, but it only works on Qt 5 or later @@ -105,7 +106,7 @@ percent.target = % percent.commands = @echo -n "\$(\$(@))\ " QMAKE_EXTRA_TARGETS += percent EOF - qmake $am_have_qt_pro -o $am_have_qt_makefile + $QMAKE $am_have_qt_pro -o $am_have_qt_makefile QT_CXXFLAGS=`make -s -f $am_have_qt_makefile CXXFLAGS INCPATH` QT_LIBS=`make -s -f $am_have_qt_makefile LIBS` rm $am_have_qt_pro $am_have_qt_makefile @@ -117,7 +118,7 @@ EOF QT_LUPDATE=`which lupdate` # Get Qt version from qmake - QT_DIR=`qmake --version | grep -o -E /.+` + QT_DIR=`$QMAKE --version | grep -o -E /.+` # All variables are defined, report the result AC_MSG_RESULT([$have_qt: