From 06bd1cf97720394e45e0a5da017a640fc6c2bd38 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 15 Nov 2009 20:31:32 +0000 Subject: Add --disable-strict and build with -Werror by default. --- configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.2.3