diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-02-19 19:55:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-02-19 19:55:40 +0000 |
commit | 89376b7141edb6f927fb940c27391cda6e67c785 (patch) | |
tree | 57dd01fd9328b879289493ba848ae5c34c607b91 /m4/rtems-checktool.m4 | |
download | libbsdport-89376b7141edb6f927fb940c27391cda6e67c785.tar.bz2 |
Initial import.initial
Diffstat (limited to 'm4/rtems-checktool.m4')
-rw-r--r-- | m4/rtems-checktool.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/rtems-checktool.m4 b/m4/rtems-checktool.m4 new file mode 100644 index 0000000..b5e4da1 --- /dev/null +++ b/m4/rtems-checktool.m4 @@ -0,0 +1,11 @@ +## 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. +## Also - if tool is not found then produce an error. +#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}]) + RTEMS_CHECK_PROG($1, ${rtems_tool_prefix}$2, ${rtems_tool_prefix}$2, $3, $4) + AC_SUBST($1) +]) |