OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [aclocal/] [check-multiprocessing.m4] - Blame information for rev 1781

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
dnl
2
dnl check-multiprocessing.m4,v 1.11 2002/06/30 06:27:36 ralf Exp
3
dnl
4
 
5
AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
6
[dnl
7
AC_REQUIRE([RTEMS_ENABLE_MULTILIB])dnl
8
AC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnl
9
AC_REQUIRE([RTEMS_TOP])dnl
10
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
11
AC_REQUIRE([RTEMS_ENABLE_MULTIPROCESSING])dnl
12
AC_REQUIRE([RTEMS_BSP_ALIAS])dnl
13
 
14
AC_CACHE_CHECK([if wanting multiprocessing],
15
  [rtems_cv_want_multiprocessing],
16
  [
17
    AS_IF([test x"$multilib" = x"no"],
18
      [# no cpukit
19
       rtems_cv_want_multiprocessing="$enable_multiprocessing"
20
      ],[
21
#HACK: Should check for RTEMS_MULTIPROCESSING in cpuopts.h, instead
22
       rtems_cv_want_multiprocessing="$enable_multiprocessing"
23
      ])
24
  ])
25
 
26
AS_IF([test "$rtems_cv_want_multiprocessing" = "yes"],
27
[
28
  AC_CACHE_CHECK([whether BSP supports multiprocessing],
29
  [rtems_cv_HAS_MP],[
30
    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/shmsupp"; then
31
        rtems_cv_HAS_MP="yes" ;
32
    else
33
        rtems_cv_HAS_MP="no";
34
    fi
35
  ])
36
if test $rtems_cv_HAS_MP = "no"; then
37
AC_MSG_ERROR([multiprocessing requested but not supported])
38
fi
39
],[rtems_cv_HAS_MP="no";])
40
 
41
AC_SUBST(HAS_MP,[$rtems_cv_HAS_MP])
42
])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.