source: rtems/testsuites/aclocal/check-custom-bsp.m4 @ 152a2841

4.115
Last change on this file since 152a2841 was 4f8237f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/17/09 at 15:55:06

2009-10-17 Ralf Corsepius <ralf.corsepius@…>

  • aclocal/check-custom-bsp.m4: Fix up AC_REQUIRES.
  • Property mode set to 100644
File size: 534 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  for i in ${rtems_rootdir}make/custom/$1;
7  do
8    AC_MSG_CHECKING([for $i])
9    AS_IF([test -r $i],[
10      $2="$i"
11      AC_MSG_RESULT([yes])
12      break;
13    ],[
14      AC_MSG_RESULT([no])
15    ])
16  done
17])
18
19AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
20  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
21  AS_IF([test -z "$BSP_FOUND"],[
22    AC_MSG_ERROR([missing [$]$1.cfg])
23  ])
24])
Note: See TracBrowser for help on using the repository browser.