summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-26 10:39:26 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-26 10:39:26 +0000
commit896ca4579f4275c4ced2e0e1d0c6d46db0255831 (patch)
treef8cbcf50817d3a193f90fe4a058228930c54b2cb
parentfc69229a4ccd22e1d65858342e395214c047fb2e (diff)
downloadlasso-896ca4579f4275c4ced2e0e1d0c6d46db0255831.tar.gz
lasso-896ca4579f4275c4ced2e0e1d0c6d46db0255831.tar.xz
lasso-896ca4579f4275c4ced2e0e1d0c6d46db0255831.zip
Core: in configure.ac, activate warning when debugging, not in normal build
* configure.ac: remove -Wxxx flag from AM_CFLAGS, add them if --enable-debugging is used.
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e1af63a6..ec3ff403 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,7 +87,7 @@ dnl Check for programs
dnl
AC_PROG_CC
CFLAGS=""
-AM_CFLAGS="-Wall -Wextra -Werror"
+AM_CFLAGS=""
AC_HEADER_STDC
LT_AC_PROG_RC
AC_EXEEXT
@@ -731,7 +731,7 @@ AC_ARG_ENABLE(debugging, [ --enable-debugging enable debuging optimizati
if test "z$enable_debugging" = "zyes" ; then
enable_debugging=yes
LASSO_DEFINES="$LASSO_DEFINES -DLASSO_DEBUG"
- CFLAGS="-O0 -g"
+ AM_CFLAGS="-O0 -g -Wall -Wextra -Werror"
else
enable_debugging=no
fi