/aclocal/check-bsps.m4

http://rtems-atapi.googlecode.com/ · m4 · 19 lines · 17 code · 2 blank · 0 comment · 0 complexity · 339fb8bc528528891eb830da92f288cf MD5 · raw file

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