summaryrefslogtreecommitdiffstats
path: root/aclocal/check-multiprocessing.m4
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-08-02 15:33:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-08-02 15:33:26 +0000
commitfdb37e81ecb6b66685cc06bf0f2bab62e4f59dce (patch)
tree518b98f16a217cf39554c60b06fd98c002316959 /aclocal/check-multiprocessing.m4
parentAdded more sections to pick up all of the new C++ sections. (diff)
downloadrtems-fdb37e81ecb6b66685cc06bf0f2bab62e4f59dce.tar.bz2
New file from Ralf Corsepius <corsepiu@faw.uni-ulm.de> missed being added
in a previous patch.
Diffstat (limited to '')
-rw-r--r--aclocal/check-multiprocessing.m426
1 files changed, 26 insertions, 0 deletions
diff --git a/aclocal/check-multiprocessing.m4 b/aclocal/check-multiprocessing.m4
new file mode 100644
index 0000000000..1e65a0a644
--- /dev/null
+++ b/aclocal/check-multiprocessing.m4
@@ -0,0 +1,26 @@
+dnl $Id$
+
+AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING,
+[dnl
+AC_REQUIRE([RTEMS_TOP])dnl
+AC_REQUIRE([RTEMS_CHECK_CPU])dnl
+AC_CACHE_CHECK([whether BSP supports multiprocessing],
+ rtems_cv_HAS_MP,
+ [dnl
+ if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${$1}/shmsupp"; then
+ if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then
+ rtems_cv_HAS_MP="yes" ;
+ else
+ rtems_cv_HAS_MP="disabled";
+ fi
+ else
+ rtems_cv_HAS_MP="no";
+ fi
+ ])
+if test "$rtems_cv_HAS_MP" = "yes"; then
+HAS_MP="yes"
+else
+HAS_MP="no"
+fi
+AC_SUBST(HAS_MP)
+])