Files
rtems/aclocal/check-tool.m4
Joel Sherrill 36202ecdea 2002-02-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/check-tool.m4: Remove AC_CHECK_TOOL_PREFIX, conditionalize
	check upon host_alias != build_alias.
2002-01-08 12:06:18 +00:00

12 lines
418 B
Plaintext

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)
])