AC_ARG_ENABLE([strict-ansi],
[ --enable-strict-ansi Enable strict ANSI compliance build default=no],
[STRICT=$enableval], [STRICT="no"])
AC_ARG_ENABLE([strict-ansi],
[ --enable-strict-ansi Enable strict ANSI compliance build default=no],
[STRICT=$enableval], [STRICT="no"])
- # cvs builds are always debug
+ AC_ARG_ENABLE([debug],
+ [ --enable-debug build a debug version default=no],
+ [DEBUG=$enableval], [DEBUG="no"])
+
+ # these special builds are always debug
# Check what compiler we are using
AC_MSG_CHECKING([for GNU CC])
if test "$GCC" = "yes"; then
AC_MSG_RESULT([yes])
if test "$DEBUG" = "yes"; then
# Check what compiler we are using
AC_MSG_CHECKING([for GNU CC])
if test "$GCC" = "yes"; then
AC_MSG_RESULT([yes])
if test "$DEBUG" = "yes"; then
FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return"
FLAGS="$FLAGS -Wcast-qual -Wbad-function-cast -Wpointer-arith"
# for Python.h
FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return"
FLAGS="$FLAGS -Wcast-qual -Wbad-function-cast -Wpointer-arith"
# for Python.h