Files
rtems/c/src/aclocal/check-custom-bsp.m4
Ralf Corsepius ba5288db0e 2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* alocal/check-custom-bsp.m4: Reflect new location of bspkit*cfg.
2004-10-22 14:47:07 +00:00

25 lines
521 B
Plaintext

dnl $Id$
AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/cfg/$1 \
${srcdir}/${RTEMS_TOPdir}/make/custom/$1;
do
AC_MSG_CHECKING([for $i])
AS_IF([test -r $i],[
$2="$i"
AC_MSG_RESULT([yes])
break;
],[
AC_MSG_RESULT([no])
])
done
])
AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
AC_REQUIRE([RTEMS_TOP])
_RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
AS_IF([test -z "$BSP_FOUND"],[
AC_MSG_ERROR([missing [$]$1.cfg])
])
])