summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-11-15 20:31:32 +0000
committerStef Walter <stef@memberwebs.com>2009-11-15 20:31:32 +0000
commit06bd1cf97720394e45e0a5da017a640fc6c2bd38 (patch)
tree64c17fd05ac8b5cf6bf890d7bf977c6e1d1e7ba9
parent363a869b000ee1c9337bc0086108f6a5960da326 (diff)
Add --disable-strict and build with -Werror by default.
-rw-r--r--configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 807b872..015de22 100644
--- a/configure.in
+++ b/configure.in
@@ -21,6 +21,18 @@ AC_CHECK_HEADERS([openssl/rsa.h], ,
CFLAGS="$CFLAGS -g -O0 -Wall"
+AC_ARG_ENABLE(strict,
+ AC_HELP_STRING([--disable-strict],
+ [Don't use -Werror while building]))
+
+AC_MSG_CHECKING([Use -Werror])
+if test "$enable_strict" != "no"; then
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -Werror"
+else
+ AC_MSG_RESULT(no)
+fi
+
AC_CONFIG_FILES([
Makefile
doc/Makefile