From: nasm-bot f. H. P. A. <hp...@zy...> - 2016-03-03 20:42:20
|
Commit-ID: fdf0d073104454fcb57617c339205730a47a60c9 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=fdf0d073104454fcb57617c339205730a47a60c9 Author: H. Peter Anvin <hp...@zy...> AuthorDate: Thu, 3 Mar 2016 12:39:02 -0800 Committer: H. Peter Anvin <hp...@zy...> CommitDate: Thu, 3 Mar 2016 12:39:02 -0800 Make --disable-werror work autoconf's handling of --without and --disable are a bit counterintuitive: instead of calling the "not given" branch of the conditional, they instead call the "given" part of the conditional with an argument of "no". Make --disable-werror work as expected. Signed-off-by: H. Peter Anvin <hp...@zy...> --- configure.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.in b/configure.in index 01c0f07..86d2af9 100644 --- a/configure.in +++ b/configure.in @@ -186,6 +186,8 @@ PA_ADD_CFLAGS([-pedantic]) AC_ARG_ENABLE([werror], [AC_HELP_STRING([--enable-werror], [compile with -Werror to error out on any warning])], +[], [enable_werror=no]) +AS_IF([test x"$enable_werror" != xno], [PA_ADD_CFLAGS([-Werror])], [PA_ADD_CFLAGS([-Werror=implicit]) PA_ADD_CFLAGS([-Werror=missing-braces]) |