source: rtems/c/src/aclocal/check-custom-bsp.m4 @ 06df9bf

4.104.115
Last change on this file since 06df9bf was bc7353d5, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/15/09 at 03:50:38

2009-10-15 Ralf Corsépius <ralf.corsepius@…>

  • aclocal/check-custom-bsp.m4: Let _RTEMS_CHECK_CUSTOM_BSP look for *.cfg into c/src/lib/libbsp/<cpu>/<bsp_family>/make/custom.
  • Property mode set to 100644
File size: 557 bytes
Line 
1dnl $Id$
2
3AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
4  $2=
5  for i in \
6    "${srcdir}/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}"/*/make/custom/$1.cfg \
7    "${srcdir}/${RTEMS_TOPdir}/make/custom/"$1.cfg;
8  do
9    AC_MSG_CHECKING([for $i])
10    AS_IF([test -r $i],[
11      $2="$i"
12      AC_MSG_RESULT([yes])
13      break;
14    ],[
15      AC_MSG_RESULT([no])
16    ])
17  done
18])
19
20AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
21  AC_REQUIRE([RTEMS_TOP])
22  _RTEMS_CHECK_CUSTOM_BSP([[$]$1],[BSP_FOUND])
23  AS_IF([test -z "$BSP_FOUND"],[
24    AC_MSG_ERROR([missing [$]$1.cfg])
25  ])
26])
Note: See TracBrowser for help on using the repository browser.