source: rtems/testsuites/aclocal/check-tool.m4 @ 33a105fb

4.115
Last change on this file since 33a105fb was 33a105fb, checked in by Joel Sherrill <joel.sherrill@…>, on 05/07/12 at 16:08:48

Revert: Remove CVS Ids

See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.

  • Property mode set to 100644
File size: 420 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.