X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=configure.ac.in;fp=configure.ac.in;h=1f4a4199193d24b0b9dd3a1d0facc61716547991;hp=b1791cd2a09b4dc1d9450a0aba7fbd6eb2b153e0;hb=c0a0d427bdc0cf18940874e9aa34006da98d10a1;hpb=59caf989e5e20f4a1238f23e512a586d5ba67de1 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"])],