From: Peter Johnson Date: Tue, 13 Feb 2007 06:29:01 +0000 (-0000) Subject: Only enable -ansi -pedantic -Wall in maintainer mode. X-Git-Tag: v0.6.0~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ce59d4085feef1f862045feb57a8d5447ba55db;p=yasm Only enable -ansi -pedantic -Wall in maintainer mode. svn path=/trunk/yasm/; revision=1766 --- diff --git a/configure.ac b/configure.ac index e07c7b3e..b34ea250 100644 --- a/configure.ac +++ b/configure.ac @@ -217,8 +217,10 @@ if test "$gcov" = "yes"; then fi # If we're using GCC, then we can turn on -ansi -pedantic -Wall too. -if test "$GCC" = yes; then - MORE_CFLAGS="-ansi -pedantic -Wall $MORE_CFLAGS" +if test "$USE_MAINTAINER_MODE" = "yes"; then + if test "$GCC" = yes; then + MORE_CFLAGS="-ansi -pedantic -Wall $MORE_CFLAGS" + fi fi AC_SUBST(MORE_CFLAGS)