OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [aclocal/] [bsp-arg-enable.m4] - Blame information for rev 1781

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
dnl bsp-arg-enable.m4,v 1.2 2001/02/02 18:30:42 joel Exp
2
dnl
3
dnl RTEMS_BSP_ARG_ENABLE(FEATURE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE])
4
dnl
5
dnl Accept --enable-FEATURE=<RTEMS_BSP>:<bsp-value> and
6
dnl --enable-FEATURE=<value> in BSP-configure scripts.
7
dnl
8
dnl Configure scripts will receive <bsp-value> if <RTEMS_BSP> matches the
9
dnl actual value of the shell variable RTEMS_BSP (cf. RTEMS_ENV_RTEMSBSP),
10
dnl and the raw value passed to --enable-FEATURE otherwise.
11
dnl
12
AC_DEFUN(RTEMS_BSP_ARG_ENABLE,
13
[AC_REQUIRE([RTEMS_ENV_RTEMSBSP])
14
AC_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
])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.