diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-17 15:15:54 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-17 15:15:54 +0000 |
commit | d8bbc3e64d546271237e9fa9a713915e7c66b1aa (patch) | |
tree | 32ad75c7c54e54dbccd4dd08cd9d1c04360bcc2e /c/src/aclocal | |
parent | binutils-2.20. (diff) | |
download | rtems-d8bbc3e64d546271237e9fa9a713915e7c66b1aa.tar.bz2 |
2009-10-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* configure.ac: Pick up make/custom/*.
* aclocal/check-custom-bsp.m4: Adapt to changes to configure.ac.
Diffstat (limited to 'c/src/aclocal')
-rw-r--r-- | c/src/aclocal/check-custom-bsp.m4 | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/c/src/aclocal/check-custom-bsp.m4 b/c/src/aclocal/check-custom-bsp.m4 index 850ba2237e..d686e6e526 100644 --- a/c/src/aclocal/check-custom-bsp.m4 +++ b/c/src/aclocal/check-custom-bsp.m4 @@ -1,25 +1,21 @@ dnl $Id$ AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[ +AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target +AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir $2= for i in \ - "${srcdir}/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}"/*/make/custom/$1.cfg \ - "${srcdir}/${RTEMS_TOPdir}/make/custom/"$1.cfg; + `ls "${srcdir}/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}"/*/make/custom/$1 2>/dev/null`; do - AC_MSG_CHECKING([for $i]) AS_IF([test -r $i],[ $2="$i" - AC_MSG_RESULT([yes]) - break; - ],[ - AC_MSG_RESULT([no]) + break ]) done ]) AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[ - AC_REQUIRE([RTEMS_TOP]) - _RTEMS_CHECK_CUSTOM_BSP([[$]$1],[BSP_FOUND]) + _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND]) AS_IF([test -z "$BSP_FOUND"],[ AC_MSG_ERROR([missing [$]$1.cfg]) ]) |