From: Jeremy Kerr Date: Tue, 5 Mar 2013 05:49:15 +0000 (+0800) Subject: configure.ac: Add --enable-werror X-Git-Tag: v1.0.0~746 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=c0a0d427bdc0cf18940874e9aa34006da98d10a1 configure.ac: Add --enable-werror Signed-off-by: Jeremy Kerr Signed-off-by: Geoff Levand --- diff --git a/configure.ac.in b/configure.ac.in index b1791cd..1f4a419 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -167,6 +167,14 @@ default_cflags="--std=gnu99 -g \ -Wall -W -Wunused -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wredundant-decls -Winline" +AC_ARG_ENABLE( + [werror], + [AS_HELP_STRING([--enable-werror], + [build programs with -Werror] + )], + [default_cflags="$default_cflags -Werror"] +) + AS_IF( [test "x$enable_debug" = "xyes"], [AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O0 -DDEBUG"])],