source: rtems/aclocal/check-tool.m4 @ d0d73ec

4.104.114.84.95
Last change on this file since d0d73ec was 36202ec, checked in by Joel Sherrill <joel.sherrill@…>, on 01/08/02 at 12:06:18

2002-02-07 Ralf Corsepius <corsepiu@…>

  • aclocal/check-tool.m4: Remove AC_CHECK_TOOL_PREFIX, conditionalize check upon host_alias != build_alias.
  • Property mode set to 100644
File size: 418 bytes
Line 
1dnl $Id$
2
3## Check for a cross tool, similar to AC_CHECK_TOOL, but do not fall back to
4## the un-prefixed version of PROG-TO-CHECK-FOR.
5dnl RTEMS_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]])
6AC_DEFUN(RTEMS_CHECK_TOOL,
7[
8  AS_IF([test "x$build_alias" != "x$host_alias"],
9    [rtems_tool_prefix=${ac_tool_prefix}])
10  AC_CHECK_PROG($1, ${rtems_tool_prefix}$2, ${rtems_tool_prefix}$2, $3, $4)
11])
Note: See TracBrowser for help on using the repository browser.