summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 92a914c4..acdc8548 100644
--- a/configure.in
+++ b/configure.in
@@ -522,7 +522,10 @@ fi
# Warnings are there for a reason
if test "x$GCC" = "xyes"; then
- CFLAGS="$CFLAGS -Wall -Werror -ansi"
+ CFLAGS="$CFLAGS -Wall -ansi"
+ if test "x$enable_maintainer_mode" = "xyes"; then
+ CFLAGS="$CFLAGS -Werror"
+ fi
fi
# Use gnome-doc-utils: