configure: Add option --enable-Werror to add -Werror to CFLAGS.
[pspp-builds.git] / configure.ac
index 2ba3ba35253abcdafdd04bd8b1197bcade0ba203..ce508eec588fa7e61fb23bef55ffc79dd9dbc32d 100644 (file)
@@ -26,6 +26,7 @@ AC_ARG_ENABLE(
                   [Attempt to allow building against older versions of dependent libraries])])
 
 PSPP_ENABLE_OPTION(-Wdeclaration-after-statement)
+PSPP_ENABLE_WERROR
 
 AM_CONDITIONAL(cc_is_gcc, test x"$GCC" = x"yes" )