diff options
Diffstat (limited to 'configure.ac.in')
-rw-r--r-- | configure.ac.in | 8 |
1 files changed, 8 insertions, 0 deletions
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"])], |