summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-12 19:23:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-12 19:23:14 +0000
commit396079844dda52776558ba51e3f8a12a22d98679 (patch)
tree700ddb508f8642deef3387e2ad9ab4735017fe4f /aclocal
parentAdded comment. (diff)
downloadrtems-396079844dda52776558ba51e3f8a12a22d98679.tar.bz2
Patch rtems-rc-20000712-1-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that is yet another multilib-related structual cleanup patch: Changes: * Make RTEMS_DEBUG a global per-cpu configuration option * Remove RTEMS_DEBUG from targopts.h * Add a global --enable-rtems-debug option disabled by default. * Add RTEMS_DEBUG to cpuopts.h * Remove all references to RTEMS_DEBUG from custom/*.cfg Notes: * RTEMS_DEBUG is set in c/src/exec/configure.in only (RTEMS_CHECK_RTEMS_DEBUG) and should be defined in cpuopts.h only. BSPs should not redefine it, but use the value being provided by cpuopts.h. => With multilibs, users have to choose: Either enable RTEMS_DEBUG for all BSPs and CPU_MODELs of a cpu or not. * Only few BSPs had RTEMS_DEBUG enabled, therefore I set the default to disabled. * This patch influences the per-BSP building scheme. Existing BSPs which set RTEMS_DEBUG in their make-target-options rule might have problems at runtime.
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/rtems-debug.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/aclocal/rtems-debug.m4 b/aclocal/rtems-debug.m4
new file mode 100644
index 0000000000..2f4941c3e1
--- /dev/null
+++ b/aclocal/rtems-debug.m4
@@ -0,0 +1,19 @@
+AC_DEFUN(RTEMS_ENABLE_RTEMS_DEBUG,
+[
+AC_ARG_ENABLE(rtems-debug,
+[ --disable-rtems-debug disable RTEMS_DEBUG],
+[case "${enableval}" in
+ yes) RTEMS_DEBUG=yes ;;
+ no) RTEMS_DEBUG=no ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for RTEMS_DEBUG]) ;;
+esac],[RTEMS_DEBUG=no])
+])
+
+AC_DEFUN(RTEMS_CHECK_RTEMS_DEBUG,
+[AC_REQUIRE(RTEMS_ENABLE_RTEMS_DEBUG)
+if test x"${RTEMS_DEBUG}" = x"yes";
+then
+ AC_DEFINE_UNQUOTED(RTEMS_DEBUG,1,[if RTEMS_DEBUG is enabled])
+fi
+])
+