diff options
author | Tomas Chvatal <tchvatal@suse.cz> | 2011-08-10 09:50:26 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-08-10 10:33:37 +0200 |
commit | 3eddd0cde3324130bc981332183f5cbd78155f14 (patch) | |
tree | 4be775f0787f9b88ba0ca2e6949c031050037591 /configure.ac | |
parent | 84f4a628c7712a763555605c62bffafa7ed22089 (diff) |
Invert the logic for werror enable to be on by default and add missing braces.
Signed-off-by: Tomas Chvatal <tchvatal@suse.cz>
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 3dee587..94db70e 100644 --- a/configure.ac +++ b/configure.ac @@ -56,9 +56,9 @@ AS_IF([test "x$enable_static_tools" = "xyes"], [ AM_CONDITIONAL(STATIC_TOOLS, [test "x$enable_static_tools" = "xyes"]) AC_ARG_ENABLE([werror], - [AS_HELP_STRING([--enable-werror], [Treat all warnings as errors, usefull for development])] + [AS_HELP_STRING([--disable-werror], [Treat all warnings as errors, usefull for development])] ) -AS_IF([test x"$enable_werror" = "xyes"], [ +AS_IF([test x"$enable_werror" != "xno"], [ CFLAGS="$CFLAGS -Werror" CXXFLAGS="$CXXFLAGS -Werror" ]) @@ -96,7 +96,7 @@ case "$host" in ;; esac AC_MSG_RESULT([$native_win32]) -AM_CONDITIONAL(OS_WIN32, test "x$native_win32" = "xyes") +AM_CONDITIONAL(OS_WIN32, [test "x$native_win32" = "xyes"]) AC_SUBST(LIBVISIO_WIN32_RESOURCE) AC_SUBST(VSD2RAW_WIN32_RESOURCE) AC_SUBST(VSD2XHTML_WIN32_RESOURCE) |