1
1

* acinclude.m4: Remove MC_ARG_ENABLE_DEVELOPER_MODE.

* configure.ac: Replace MC_ARG_ENABLE_DEVELOPER_MODE with a
simpler and more user-friendly piece of code.
Этот коммит содержится в:
Pavel Roskin 2005-05-11 21:56:57 +00:00
родитель 10c2c57663
Коммит 4f09f45404
3 изменённых файлов: 12 добавлений и 18 удалений

Просмотреть файл

@ -1,3 +1,9 @@
2005-05-11 Pavel Roskin <proski@gnu.org>
* acinclude.m4: Remove MC_ARG_ENABLE_DEVELOPER_MODE.
* configure.ac: Replace MC_ARG_ENABLE_DEVELOPER_MODE with a
simpler and more user-friendly piece of code.
2005-05-01 Roland Illig <roland.illig@gmx.de>
* syntax/c.syntax: Added missing punctuation characters.

Просмотреть файл

@ -957,20 +957,3 @@ 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],
AC_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
])

Просмотреть файл

@ -553,7 +553,12 @@ if test "$GLIBC21" != yes; then
AC_DEFINE(USE_INCLUDED_REGEX, 1, [Use the regex included here])
fi
MC_ARG_ENABLE_DEVELOPER_MODE()
dnl If default CFLAGS is used with gcc, add -Wall
if test -z "$ac_env_CFLAGS_set"; then
if test -n "$GCC"; then
CFLAGS="$CFLAGS -Wall"
fi
fi
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)