From 7c6e9243108371eec809ce71f17bd02720d7fb25 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Sun, 26 Sep 2004 14:10:37 +0000 Subject: another way --- configure.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.in b/configure.in index 045d12d9..5f9f56f1 100644 --- a/configure.in +++ b/configure.in @@ -51,7 +51,10 @@ esac AC_ARG_ENABLE(autoconf, [ --enable-Werror abort compilation after any C compiler warning], + enable_werror=$enableval, enable_werror=no) +if test x$enable_werror = xyes; then ADD_CFLAGS="-Werror -W -Wpointer-arith") +fi AC_SUBST(ADD_CFLAGS) dnl Add these flags if we're using GCC. -- cgit v1.2.3