source: rtems/aclocal/enable-rtemsbsp.m4 @ e0ba3e8

4.104.114.84.95
Last change on this file since e0ba3e8 was 256cbec, checked in by Joel Sherrill <joel.sherrill@…>, on 07/10/00 at 19:12:07

Patch rtems-rc-20000708-1.diff from Ralf Corsepius <corsepiu@…>
that is another small step toward multilibs:

Changes:

  • Eliminate RTEMS_CHECK_CUSTOM_BSP from all configure.ins below exec/
  • Add RTEMS_CHECK_CUSTOM_BSP to the multilib-disabled branch in RTEMS_ENV_RTEMSCPU to preserve the old per-BSP building scheme functional.

Notes:

  • --enable-multilibs is still non-functional
  • This patch should not have any influence on the old building scheme (--disable-multilib should silently fall back to the old building scheme).
  • running ./bootstrap is required after applying the patch
  • Property mode set to 100644
File size: 1.4 KB
Line 
1dnl $Id$
2
3dnl Override the set of BSPs to be built.
4dnl used by the toplevel configure script
5dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
6AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
7[
8AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])dnl
9AC_ARG_ENABLE(rtemsbsp,
10[  --enable-rtemsbsp=bsp1 bsp2 ..      BSPs to include in build],
11[case "${enableval}" in
12  yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
13  *) $1=$enableval;;
14esac],[$1=""])
15])
16
17dnl Pass a single BSP via an environment variable
18dnl used by per BSP configure scripts
19AC_DEFUN(RTEMS_ENV_RTEMSBSP,
20[dnl
21AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
22AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
23AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
24
25AC_MSG_CHECKING([for RTEMS_BSP])
26AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
27[dnl
28  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
29])dnl
30if test -z "$rtems_cv_RTEMS_BSP"; then
31  AC_MSG_ERROR([Missing RTEMS_BSP])
32fi
33RTEMS_BSP="$rtems_cv_RTEMS_BSP"
34AC_MSG_RESULT(${RTEMS_BSP})
35AC_SUBST(RTEMS_BSP)
36
37## RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
38## AC_SUBST(RTEMS_ROOT)
39])
40
41AC_DEFUN(RTEMS_ENV_RTEMSCPU,
42[AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
43if test x"$multilib" = x"no"; then
44  RTEMS_ENV_RTEMSBSP
45  RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
46else
47  rtems_cv_RTEMS_BSP="multilib"
48  RTEMS_BSP="$rtems_cv_RTEMS_BSP"
49  AC_SUBST(RTEMS_BSP)
50## RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c
51## AC_SUBST(RTEMS_ROOT)
52fi
53])
Note: See TracBrowser for help on using the repository browser.