source: rtems/c/src/aclocal/bsp-arg-enable.m4 @ 4778c6e0

4.11
Last change on this file since 4778c6e0 was 9550125e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 26, 2003 at 6:18:03 AM

2003-11-26 Ralf Corsepius <corsepiu@…>

  • aclocal/bsp-arg-enable.m4, aclocal/canonical-target-name.m4, aclocal/canonicalize-tools.m4, aclocal/check-custom-bsp.m4, aclocal/check-posix.m4, aclocal/check-rdbg.m4, aclocal/check-tool.m4, aclocal/config-subdirs.m4, aclocal/enable-bare.m4, aclocal/enable-cxx.m4, aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4, aclocal/enable-posix.m4, aclocal/enable-rdbg.m4, aclocal/enable-rtemsbsp.m4, aclocal/env-rtemsbsp.m4, aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/gcc-specs.m4, aclocal/i386-gas-code16.m4, aclocal/multilib.m4, aclocal/path-ksh.m4, aclocal/prog-cc.m4, aclocal/prog-cxx.m4, aclocal/project-root.m4, aclocal/rtems-top.m4, aclocal/target.m4, aclocal/tool-paths.m4: Fix underquoting to silence automake-1.8.
  • 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.