From ed8ec1cf119e0886f816697e3ee367476d90bea2 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 17 Jun 2002 08:52:47 +0000 Subject: 2002-06-17 Ralf Corsepius * copied over from aclocal/. --- cpukit/aclocal/check-tool.m4 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cpukit/aclocal/check-tool.m4 (limited to 'cpukit/aclocal/check-tool.m4') diff --git a/cpukit/aclocal/check-tool.m4 b/cpukit/aclocal/check-tool.m4 new file mode 100644 index 0000000000..5a91490e74 --- /dev/null +++ b/cpukit/aclocal/check-tool.m4 @@ -0,0 +1,11 @@ +dnl $Id$ + +## Check for a cross tool, similar to AC_CHECK_TOOL, but do not fall back to +## the un-prefixed version of PROG-TO-CHECK-FOR. +dnl RTEMS_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]]) +AC_DEFUN(RTEMS_CHECK_TOOL, +[ + AS_IF([test "x$build_alias" != "x$host_alias"], + [rtems_tool_prefix=${ac_tool_prefix}]) + AC_CHECK_PROG($1, ${rtems_tool_prefix}$2, ${rtems_tool_prefix}$2, $3, $4) +]) -- cgit v1.2.3