PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/aclocal/check-bsps.m4

http://rtems-atapi.googlecode.com/
m4 | 19 lines | 17 code | 2 blank | 0 comment | 0 complexity | 339fb8bc528528891eb830da92f288cf MD5 | raw file
 1dnl $Id: check-bsps.m4,v 1.33 2007/08/10 08:14:46 thomas Exp $
 2
 3dnl Report all available bsps for a target within the source tree
 4dnl
 5dnl RTEMS_CHECK_BSPS(bsp_list)
 6AC_DEFUN([RTEMS_CHECK_BSPS],
 7[
 8AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
 9AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
10AC_REQUIRE([RTEMS_RTEMSPATH])dnl sets RTEMSPATH
11
12AC_MSG_CHECKING([for available BSPs])
13  $1=
14  bsps=`ls "${RTEMSPATH}/make/custom/*.cfg 2>/dev/null` | sed -e "s,default.cfg,,"
15  $1="[$]$1 $bsps"
16  AS_IF([test -z "[$]$1"],
17    [AC_MSG_RESULT([none])],
18    [AC_MSG_RESULT([$]$1)])
19])dnl