source: rtems/c/src/aclocal/bsp-arg-enable.m4 @ 865bffd1

4.115
Last change on this file since 865bffd1 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: 670 bytes
Line 
1dnl $Id$
2dnl
3dnl RTEMS_BSP_ARG_ENABLE(FEATURE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE])
4dnl
5dnl Accept --enable-FEATURE=<RTEMS_BSP>:<bsp-value> and
6dnl --enable-FEATURE=<value> in BSP-configure scripts.
7dnl
8dnl Configure scripts will receive <bsp-value> if <RTEMS_BSP> matches the
9dnl actual value of the shell variable RTEMS_BSP (cf. RTEMS_ENV_RTEMSBSP),
10dnl and the raw value passed to --enable-FEATURE otherwise.
11dnl
12AC_DEFUN([RTEMS_BSP_ARG_ENABLE],
13[AC_REQUIRE([RTEMS_ENV_RTEMSBSP])
14AC_ARG_ENABLE([$1],[$2],
15[enableval=`echo "[$enable_]patsubst([$1], -, _)" | sed -e "s%^${RTEMS_BSP}:%%"`
16  eval "[enable_]patsubst([$1], -, _)='$enableval'"
17$3],[$4])
18])
Note: See TracBrowser for help on using the repository browser.