aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@baylibre.com>2024-04-15 13:33:48 +0200
committerThomas Schwinge <tschwinge@baylibre.com>2024-04-16 09:43:47 +0200
commit3ebc7898a55988e84ab3625700a827e3e82b016f (patch)
treeb559834eac019ef4222c85a218e93d8dd028b91e /config
parent79ff53453e88e40c4f2ecf6f7f7409afc41b46fc (diff)
downloadgcc-3ebc7898a55988e84ab3625700a827e3e82b016f.zip
gcc-3ebc7898a55988e84ab3625700a827e3e82b016f.tar.gz
gcc-3ebc7898a55988e84ab3625700a827e3e82b016f.tar.bz2
build: Don't check for host-prefixed 'cargo' program
Follow-up to commit 3e1e73fc99584440e5967577f2049573eeaf4596 "build: Check for cargo when building rust language": On 2024-04-15T13:14:42+0200, I wrote: > I now wonder: instead of 'AC_CHECK_TOOL', shouldn't this use > 'AC_CHECK_PROG'? (We always want plain 'cargo', not host-prefixed > 'aarch64-linux-gnu-cargo' etc., right?) I'll look into changing this. * configure: Regenerate. config/ * acx.m4 (ACX_PROG_CARGO): Use 'AC_CHECK_PROGS'.
Diffstat (limited to 'config')
-rw-r--r--config/acx.m43
1 files changed, 1 insertions, 2 deletions
diff --git a/config/acx.m4 b/config/acx.m4
index 3c5fe67..c45e55e 100644
--- a/config/acx.m4
+++ b/config/acx.m4
@@ -427,8 +427,7 @@ fi
# Test for Rust
# We require cargo and rustc for some parts of the rust compiler.
AC_DEFUN([ACX_PROG_CARGO],
-[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])
-AC_CHECK_TOOL(CARGO, cargo, no)
+[AC_CHECK_PROGS(CARGO, cargo, no)
if test "x$CARGO" != xno; then
have_cargo=yes
else