|
|
@ -212,7 +212,7 @@ dnl the above AC_PROG_CC may set CFLAGS to "-O2 -g" |
|
|
if test "$enable_debug" = "no"; then |
|
|
if test "$enable_debug" = "no"; then |
|
|
if test "x$GCC" = "xyes"; then |
|
|
if test "x$GCC" = "xyes"; then |
|
|
AC_MSG_WARN(Removing debugging option!) |
|
|
AC_MSG_WARN(Removing debugging option!) |
|
|
CFLAGS="$ext_CFLAGS -O2 -Wall -s" |
|
|
|
|
|
|
|
|
CFLAGS="$ext_CFLAGS -O2 -Wall -Wno-unused-parameter -s" |
|
|
else |
|
|
else |
|
|
AC_MSG_WARN(Removing debugging option!) |
|
|
AC_MSG_WARN(Removing debugging option!) |
|
|
CFLAGS="$ext_CFLAGS -O2" |
|
|
CFLAGS="$ext_CFLAGS -O2" |
|
|
@ -220,7 +220,7 @@ if test "$enable_debug" = "no"; then |
|
|
else |
|
|
else |
|
|
AC_DEFINE(NGDEBUG,1,[Compile with debug info]) |
|
|
AC_DEFINE(NGDEBUG,1,[Compile with debug info]) |
|
|
if test "x$GCC" = "xyes"; then |
|
|
if test "x$GCC" = "xyes"; then |
|
|
CFLAGS="$ext_CFLAGS -g -O0 -Wall" |
|
|
|
|
|
|
|
|
CFLAGS="$ext_CFLAGS -g -O0 -Wall -Wno-unused-parameter" |
|
|
else |
|
|
else |
|
|
CFLAGS="$ext_CFLAGS -g" |
|
|
CFLAGS="$ext_CFLAGS -g" |
|
|
fi |
|
|
fi |
|
|
|