From fe5851ceaec2e233c48fc5707ece2f69fce77090 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 29 Jun 2000 15:29:31 +0000 Subject: Patch rtems-rc-20000627-1 from Ralf Corsepius that is part of the multilib/gnu-canonicalization movement: Changes: * New m4-macro: aclocal/multilib.am * Suppress multiprocessing if --enable-multilib is given to configure Notes: For now this patch only suppresses multiprocessing if --enable-multilib is given to configure and should not have any other side-effects, ie. it works around a minor issue which prevents introduction of multilibs in general. The RTEMS_ENABLE_MULTILIB_MASTER macro is the core part to build real multilibs, but can not be applied before other multilib related issues with RTEMS have been solved. (e.g. sptables.h, bsp_specs, Cygnus/Gnu canonicalization, _RTEMS_version, targopts.h, changing the installation point/tooldir support, etc.). --- aclocal/check-multiprocessing.m4 | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'aclocal/check-multiprocessing.m4') diff --git a/aclocal/check-multiprocessing.m4 b/aclocal/check-multiprocessing.m4 index 7ee1b6d7d6..e2bbe80b48 100644 --- a/aclocal/check-multiprocessing.m4 +++ b/aclocal/check-multiprocessing.m4 @@ -4,6 +4,7 @@ dnl AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING, [dnl +AC_REQUIRE([RTEMS_ENABLE_MULTILIB])dnl AC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnl AC_REQUIRE([RTEMS_TOP])dnl AC_REQUIRE([RTEMS_CHECK_CPU])dnl @@ -13,14 +14,20 @@ AC_REQUIRE([RTEMS_BSP_ALIAS])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}/${RTEMS_BSP_FAMILY}/shmsupp"; then - if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then - rtems_cv_HAS_MP="yes" ; + if test x"$multilib" = x"yes"; then + # FIXME: Currently, multilibs and multiprocessing can not be + # build simultaneously + rtems_cv_HAS_MP="disabled" + else + if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/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="disabled"; + rtems_cv_HAS_MP="no"; fi - else - rtems_cv_HAS_MP="no"; fi]) if test "$rtems_cv_HAS_MP" = "yes"; then HAS_MP="yes" -- cgit v1.2.3