summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-04-20 17:27:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-04-20 17:27:55 +0000
commit084556d6ec059790d6b5c5bd12ecf35c1657477c (patch)
tree380ade899b5f6dea72016ee53636079c90334c83 /aclocal
parentb9799049e4707bed3e14615ff8367c483754aad5 (diff)
downloadrtems-084556d6ec059790d6b5c5bd12ecf35c1657477c.tar.bz2
2001-04-20 Eric Valette <valette@crf.canon.fr>
* aclocal/check-rdbg.m4: Added check to determine which PowerPC BSPs support the new exception processing model and consequently, librdbg.
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/check-rdbg.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/aclocal/check-rdbg.m4 b/aclocal/check-rdbg.m4
index 2ea5919c36..17fc09bee2 100644
--- a/aclocal/check-rdbg.m4
+++ b/aclocal/check-rdbg.m4
@@ -15,6 +15,27 @@ AC_CACHE_CHECK([whether BSP supports librdbg],
elif test -d "$srcdir/${RTEMS_TOPdir}/c/src/librdbg/src/${RTEMS_CPU}/any";
then
rtems_cv_HAS_RDBG="yes" ;
+ elif test "${RTEMS_CPU}" = "powerpc";
+ then
+ A=`grep -l RTEMS_PPC_EXCEPTION_PROCESSING_MODEL $srcdir/${RTEMS_TOPdir}/make/custom/* 2>/dev/null`;
+ C=""
+ for i in ${A} ;
+ do
+ B=`basename ${i} .cfg`;
+ C="${C} ${B}";
+ done
+ target_found="no";
+ for j in ${C} ;
+ do
+ if test "${$1}" = "${j}" ;
+ then
+ target_found="yes";
+ fi
+ done
+ if test "$target_found" = "yes" ;
+ then
+ rtems_cv_HAS_RDBG="yes" ;
+ fi
else
rtems_cv_HAS_RDBG="no";
fi