#889920 AM_PROG_VALAC should consider $ac_tool_prefix

Package:
automake
Source:
automake-1.16
Submitter:
Helmut Grohne
Date:
2025-11-11 04:05:02 UTC
Severity:
normal
Tags:
#889920#5
Date:
2018-02-08 19:27:58 UTC
From:
To:
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