mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* acinclude.m4: Added macro MC_ARG_ENABLE_DEVELOPER_MODE.
This commit is contained in:
parent
c6a4eae10c
commit
26c8b13218
@ -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>
|
||||
|
||||
* syntax/eiffel.syntax: dos2unix; removed redundant cooledit
|
||||
|
17
acinclude.m4
17
acinclude.m4
@ -957,3 +957,20 @@ if test "$mc_cv_asm_labels" != yes; then
|
||||
[Define if functions cannot be renamed by asm labels])
|
||||
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
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user