From ea14663edc68e19c7e0f05736e8ce51891bee51f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 3 Jan 2003 21:14:04 +0000 Subject: 2003-01-03 Joel Sherrill * Makefile.am, configure.ac, samples/Makefile.am: Do not configure them unless multiprocessing is enabled. --- c/src/ada-tests/ChangeLog | 5 +++++ c/src/ada-tests/Makefile.am | 5 ++++- c/src/ada-tests/configure.ac | 12 +++++++++++- c/src/ada-tests/samples/Makefile.am | 7 ++++++- 4 files changed, 26 insertions(+), 3 deletions(-) (limited to 'c/src/ada-tests') diff --git a/c/src/ada-tests/ChangeLog b/c/src/ada-tests/ChangeLog index baaf177f86..94b97bdea1 100644 --- a/c/src/ada-tests/ChangeLog +++ b/c/src/ada-tests/ChangeLog @@ -1,3 +1,8 @@ +2003-01-03 Joel Sherrill + + * Makefile.am, configure.ac, samples/Makefile.am: Do not configure + them unless multiprocessing is enabled. + 2002-12-06 Ralf Corsepius * configure.ac: Remove RTEMS_CHECK_BSP_CACHE. diff --git a/c/src/ada-tests/Makefile.am b/c/src/ada-tests/Makefile.am index b20463be19..ff982e8a43 100644 --- a/c/src/ada-tests/Makefile.am +++ b/c/src/ada-tests/Makefile.am @@ -7,7 +7,10 @@ include $(top_srcdir)/../../../automake/compile.am include $(top_srcdir)/../../../automake/lib.am SUBDIRS = support samples sptests tmtests -# SUBDIRS += mptests + +if HAS_MP +SUBDIRS += mptests +endif EXTRA_DIST = ada.am diff --git a/c/src/ada-tests/configure.ac b/c/src/ada-tests/configure.ac index 9c177a1537..f35f1b29ec 100644 --- a/c/src/ada-tests/configure.ac +++ b/c/src/ada-tests/configure.ac @@ -23,11 +23,14 @@ RTEMS_ENABLE_MULTIPROCESSING RTEMS_ENV_RTEMSBSP RTEMS_CHECK_CPU RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) +RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) AS_IF([test x"$HAVE_GNAT" = x"no"],[ AC_MSG_ERROR([No acceptable GNATMAKE found.]) ]) +AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes") + RTEMS_CHECK_TOOL([GNATPREP],[gnatprep],[]) # FIXME: Enable building the examples which are known to be broken @@ -43,13 +46,18 @@ AC_CONFIG_FILES([support/Makefile]) AC_CONFIG_FILES([ samples/Makefile +samples/base_sp/Makefile samples/hello/Makefile samples/ticker/Makefile -samples/base_sp/Makefile +]) + +if test "$HAS_MP" = "yes"; then +AC_CONFIG_FILES([ samples/base_mp/Makefile samples/base_mp/node1/Makefile samples/base_mp/node2/Makefile ]) +fi AC_CONFIG_FILES([ sptests/Makefile @@ -112,6 +120,7 @@ tmtests/tmck/Makefile tmtests/tmoverhd/Makefile ]) +if test "$HAS_MP" = "yes"; then AC_CONFIG_FILES([ mptests/Makefile mptests/mp01/Makefile @@ -131,5 +140,6 @@ mptests/mp01/node2/Makefile #mptests/mp12/Makefile #mptests/mp13/Makefile #mptests/mp14/Makefile +fi AC_OUTPUT diff --git a/c/src/ada-tests/samples/Makefile.am b/c/src/ada-tests/samples/Makefile.am index b32eadfc6b..512bf021c0 100644 --- a/c/src/ada-tests/samples/Makefile.am +++ b/c/src/ada-tests/samples/Makefile.am @@ -1,6 +1,11 @@ ## $Id$ -SUBDIRS = hello ticker base_sp base_mp +SUBDIRS = hello ticker base_sp + +if HAS_MP +SUBDIRS += base_mp +endif + include $(top_srcdir)/../../../automake/subdirs.am include $(top_srcdir)/../../../automake/local.am -- cgit v1.2.3