From: Uwe Kleine-König Date: Mon, 4 Dec 2023 20:47:57 +0000 (+0100) Subject: libtool: Use AC_CHECK_PROG instead of AC_CHECK_TOOL to find "file" X-Git-Tag: v2.5.0~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64bef5ba65f6820cd5f88e5249324b4f5955ee25;p=thirdparty%2Flibtool.git libtool: Use AC_CHECK_PROG instead of AC_CHECK_TOOL to find "file" This fixes a warning when cross-building: checking for arm-v7a-linux-gnueabihf-file... no checking for file... file configure: WARNING: using cross tools not prefixed with host triplet file isn't platform specific and not usually installed with a host triplet. So use AC_CHECK_PROG which differs from AC_CHECK_TOOL by not expecting such a host triplet prefix. * m4/libtool.m4 (_LT_DECL_FILECMD): Change AC_CHECK_TOOL to AC_CHECK_PROG. --- diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 02ab14505..b9d3b1a5e 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -8216,7 +8216,7 @@ AC_SUBST([DLLTOOL]) # ---------------- # Check for a file(cmd) program that can be used to detect file type and magic m4_defun([_LT_DECL_FILECMD], -[AC_CHECK_TOOL([FILECMD], [file], [:]) +[AC_CHECK_PROG([FILECMD], [file], [:]) _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) ])# _LD_DECL_FILECMD