* acinclude.m4: Added macro MC_ARG_ENABLE_DEVELOPER_MODE.

This commit is contained in:
Roland Illig 2005-04-21 22:28:48 +00:00
parent c6a4eae10c
commit 26c8b13218
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-04-22 Roland Illig <roland.illig@gmx.de>
* acinclude.m4: Added macro MC_ARG_ENABLE_DEVELOPER_MODE.
2005-04-17 Leonard den Ottolander <leonard * den ottolander nl> 2005-04-17 Leonard den Ottolander <leonard * den ottolander nl>
* syntax/eiffel.syntax: dos2unix; removed redundant cooledit * syntax/eiffel.syntax: dos2unix; removed redundant cooledit

View File

@ -957,3 +957,20 @@ if test "$mc_cv_asm_labels" != yes; then
[Define if functions cannot be renamed by asm labels]) [Define if functions cannot be renamed by asm labels])
fi fi
]) ])
AC_DEFUN([MC_ARG_ENABLE_DEVELOPER_MODE],
[AC_ARG_ENABLE([developer-mode],
AS_HELP_STRING([--enable-developer-mode], [Enable debugging help]))
AM_CONDITIONAL([DEVELOPER], [test x"$enable_developer_mode" = x"yes"])
if test x"$enable_developer_mode" = x"yes"; then
AC_DEFINE([MC_ENABLE_DEBUGGING_CODE], [1], [Enable debugging code])
if test x"$GCC" = x"yes"; then
dnl Developers get some useful warnings and debugging support.
dnl This will make the backtrace output more readable.
CFLAGS="-W -Wall -ggdb ${CFLAGS}"
fi
elif test x"$GCC" = x"yes"; then
dnl Some warnings cannot hurt at all
CFLAGS="-Wall"
fi
])