Package: automake-1.15 Version: 1:1.15.1-3 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
I tried using valac during cross compilation and figured that one presently gets an "Exec format error", because it is implicitly marked Multi-Arch: no. So I considered whether it can be marked Multi-Arch: foreign and I conclude "no", because valac uses gcc and pkg-config and exposes their architecture-dependent behaviour. Thus we must consider valac to be a "tool". That means considering $ac_tool_prefix. AM_PROG_VALAC currently uses AC_PATH_PROG, so it does not consider $ac_tool_prefix. I think this is a bug and it really should be using AC_PATH_TOOL here. Please consider applying the attached patch. Helmut
Index: automake-1.15-1.15.1/m4/vala.m4 =================================================================== --- automake-1.15-1.15.1.orig/m4/vala.m4 +++ automake-1.15-1.15.1/m4/vala.m4 @@ -19,7 +19,7 @@ # AM_PROG_VALAC([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # -------------------------------------------------------------------------- AC_DEFUN([AM_PROG_VALAC], - [AC_PATH_PROG([VALAC], [valac], [valac]) + [AC_PATH_TOOL([VALAC], [valac], [valac]) AS_IF([test "$VALAC" != valac && test -n "$1"], [AC_MSG_CHECKING([whether $VALAC is at least version $1]) am__vala_version=`$VALAC --version | sed 's/Vala *//'`