summaryrefslogtreecommitdiffstats
path: root/macros/rtems-debug.m4
blob: d895b921b043d8b9f7b1d0fe85a00997596c9e2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## $Id$

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
])