]> git.sur5r.net Git - kconfig-frontends/commitdiff
configure: build with -Werror by default for devel
authorYann E. MORIN" <yann.morin.1998@free.fr>
Sat, 26 Jan 2013 18:00:32 +0000 (19:00 +0100)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Sat, 26 Jan 2013 18:00:32 +0000 (19:00 +0100)
When building a devel snapshot (eg. a checkout if the repo), build
with -Werror by default, unles overriden by the user. This should
hopefully help catch errors early.

For releases, do not build with -Werror by default, unless the user
explicitly request -Werror.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
configure.ac

index b8ced6710898493f7470760834d445c429dd9efc..bf357865d8ce9660bf6c1edfa277a7ffcb1c4ddc 100644 (file)
@@ -63,7 +63,13 @@ AC_ARG_ENABLE(
         [*],   [wall_CFLAGS=""])])
 AC_SUBST([wall_CFLAGS],[${wall_CFLAGS}])
 
-# By default, do not build with -Werror, unless the user asks for it
+# For releases, do not build with -Werror, unless the user explcitly
+# requests to build with -Werror.
+# For the devel tree, do build with -Werror by default, unless user
+# explicitly disables -Werror
+AS_IF(
+    [test "$(${srcdir}/scripts/version.sh --internal)" = "hg"],
+    [werror_CFLAGS=-Werror])
 AC_ARG_ENABLE(
     [werror],
     [AS_HELP_STRING(