Added debug options for --enable-maintainer mode

Also, added extra warnings and now all warnongs threaded as errors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-10-27 13:43:46 +02:00
parent c9b4b0159d
commit 3518f7c585

View File

@ -13,7 +13,6 @@ AM_INIT_AUTOMAKE(mc, ${VERSION} )
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AC_CANONICAL_HOST
AC_USE_SYSTEM_EXTENSIONS
@ -523,6 +522,12 @@ if test -z "$ac_env_CFLAGS_set"; then
fi
fi
if test x$USE_MAINTAINER_MODE = xyes; then
CFLAGS_WARNINGS="-Wall -Werror -Wwrite-strings -Wnested-externs -Wsign-compare -Wuninitialized"
CFLAGS_DEBUG="-g3 -O -ggdb"
CFLAGS="$CFLAGS $CFLAGS_WARNINGS $CFLAGS_DEBUG"
fi
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)