From de535440177bb59b06e2704fdea47fcdadb4b037 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sat, 29 Mar 2008 04:09:09 +0000 Subject: [PATCH] moving debug cflags below other stuff git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1061 7f574dfc-610e-0410-a909-a81674777703 --- configure.ac.in | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/configure.ac.in b/configure.ac.in index d4d8e44a..bc4a656b 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -303,19 +303,6 @@ else LIBS="$LIBS $LIBICONV" fi -dnl -dnl debug -dnl - -AC_ARG_ENABLE([debug], - AC_HELP_STRING([--enable-debug], [compile with debug symbols @<:@default=no@:>@]), - [want_debug="$enableval"], [want_debug=no]) - -if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then - CFLAGS="$CFLAGS -g3 -Werror" - AC_DEFINE([DEBUG], [], [Define for debugging]) -fi - dnl dnl X11 dnl @@ -570,6 +557,21 @@ dnl CFLAGS="$CFLAGS -Wall -W" +dnl +dnl debug +dnl + +AC_ARG_ENABLE([debug], + AC_HELP_STRING([--enable-debug], [compile with debug symbols @<:@default=no@:>@]), + [want_debug="$enableval"], [want_debug=no]) + +if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then + CFLAGS="$CFLAGS -g3 -Werror" +dnl for more 'extreme' testing +dnl CFLAGS="$CFLAGS -g3 -Werror -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Winline -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -g" + AC_DEFINE([DEBUG], [], [Define for debugging]) +fi + AC_SUBST(CFLAGS) AC_SUBST(X11_LIBS)