source: rtems/aclocal/check-rdbg.m4 @ c2113d3

4.104.114.84.95
Last change on this file since c2113d3 was 60c7524, checked in by Joel Sherrill <joel.sherrill@…>, on 10/17/01 at 20:30:38

2001-10-17 Ralf Corsepius <corsepiu@…>

  • aclocal/check-rdbg.m4: Fix latent bug exposed by removal of config.cache's which prevented powerpc targets librdbg from building.
  • Property mode set to 100644
File size: 950 bytes
Line 
1dnl $Id$
2dnl
3AC_DEFUN(RTEMS_CHECK_RDBG,
4[dnl
5AC_REQUIRE([RTEMS_TOP])dnl
6AC_REQUIRE([RTEMS_CHECK_CPU])dnl
7AC_REQUIRE([RTEMS_CHECK_NETWORKING])dnl
8AC_REQUIRE([RTEMS_ENABLE_RDBG])dnl
9AC_CACHE_CHECK([whether BSP supports librdbg],
10  rtems_cv_HAS_RDBG,
11  [
12    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/librdbg/src/${RTEMS_CPU}/${$1}";
13    then
14      rtems_cv_HAS_RDBG="yes" ;
15    elif test -d "$srcdir/${RTEMS_TOPdir}/c/src/librdbg/src/${RTEMS_CPU}/any";
16    then
17      rtems_cv_HAS_RDBG="yes" ;
18    elif test "${RTEMS_CPU}" = "powerpc";
19    then
20        A=`grep -l RTEMS_PPC_EXCEPTION_PROCESSING_MODEL $srcdir/${RTEMS_TOPdir}/make/custom/* 2>/dev/null`;
21        C=""
22        for i in ${A} ;
23        do
24           B=`basename ${i} .cfg`;
25           C="${C} ${B}";
26        done
27        rtems_cv_HAS_RDBG="no";
28        for j in ${C} ;
29        do
30                if test "${$1}" = "${j}" ;
31                then
32                        rtems_cv_HAS_RDBG="yes";
33                fi
34        done
35    else
36      rtems_cv_HAS_RDBG="no";
37    fi
38  ])
39HAS_RDBG="$rtems_cv_HAS_RDBG"
40AC_SUBST(HAS_RDBG)
41])
Note: See TracBrowser for help on using the repository browser.