From 596b210a358b63a7960f0d9caa27454fb511a6a4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 3 Nov 2013 19:06:51 +0000 Subject: Added --disable-error option to the configure script to allow building without -Werror. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 3acd841..4e607e0 100644 --- a/configure.ac +++ b/configure.ac @@ -145,12 +145,12 @@ dnl enable compiler warnings or not dnl AC_MSG_CHECKING(whether to abort on compiler warnings) -WARN_CFLAGS="" -AC_ARG_ENABLE(warn, - AC_HELP_STRING([--disable-warn], [do not abort on compiler warnings]), +WARN_CFLAGS="$WARN_CLFAGS -Wall" +AC_ARG_ENABLE(error, + AC_HELP_STRING([--disable-error], [do not abort on compiler warnings]), AC_MSG_RESULT(no), AC_MSG_RESULT(yes) - WARN_CFLAGS="$WARN_CFLAGS -Wall -Werror" + WARN_CFLAGS="$WARN_CFLAGS -Werror" ) AC_SUBST(WARN_CFLAGS) -- cgit v1.2.3