libtool using AC_CHECK_TOOL to find file

Uwe Kleine-König <[email protected]> Wed, 25 Oct 2023 20:24:44 +0200
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
Hello,

while cross-building a package I noticed a warning emitted by configure:

	...
	checking for arm-v7a-linux-gnueabihf-file... no
	checking for file... file
	configure: WARNING: using cross tools not prefixed with host triplet

This was added in commit da2e35273572 ("libtool: replace some references
to /usr/bin/file and /bin/sh") by using AC_CHECK_TOOL to find the file
program (included in libtool 2.4.7).

I wonder if using AC_CHECK_PROG would be more appropriate here. Or is it
really expected that file is installed as a cross tool using a host
triplet prefix? The commit log doesn't mention anything in that
direction (and before that commit "/usr/bin/file" was used).

I'm not familiar with libtool development, so didn't even try to prepare
a patch.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmU5XWwACgkQj4D7WH0S
/k6g9wf/QqUAuc1lL8YJvCocYr77WDfPU1JMhUIe1jLOBdz4TDxa5qi/xfBRzUqh
JzLpJZW2nLj8g59sF5TQr5zlD56udBSYPoSrY5GWwyuPteVGc8mUTcclPr5d8+5O
YoQi3XWyhafRHd8EeehE4XhOpvKyG8D9GsiNzEJrWJ/pBLv7eAQ45gw3u9U5AsGL
GWf5iGU4FMUdEVfIKOqMz1qKVB88LoY7AEH4hFCAtyVqoJuxzHWPhwsAsCvbywd+
lHlt4w29pupY6cWYPwxOecOVAxvCnJGEXoqLtPoO3r93gZznzrm4FyFGkQsLd8Qk
4z8TZY3FsFB76LcAcmCUl3vqu2zPOQ==
=FDZQ
-----END PGP SIGNATURE-----