source: rtems/aclocal/check-custom-bsp.m4 @ f98cd898

4.104.114.84.95
Last change on this file since f98cd898 was 504112d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/18/04 at 09:38:02

2004-10-18 Ralf Corsepius <ralf_corsepius@…>

  • aclocal/check-bsps.m4: Add bspkit support. Don't check for presence of *.cfg.
  • aclocal/check-custom-bsp.m4: Add bspkit support.
  • Property mode set to 100644
File size: 584 bytes
Line 
1dnl $Id$
2
3AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
4AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
5AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
6  $2=
7  AC_MSG_CHECKING([for $1])
8  for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/"$1" \
9    "${srcdir}/${RTEMS_TOPdir}/make/custom/$1";
10  do
11    AS_IF([test -r $i],[
12      $2="$i"
13      break;
14    ])
15  done
16  AS_IF([test -n "[$]$2"],
17    [AC_MSG_RESULT([[$]$2])],
18    [AC_MSG_RESULT([no])])
19])
20
21AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
22  AC_REQUIRE([RTEMS_TOP])
23  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
24])
Note: See TracBrowser for help on using the repository browser.