From 046cf4db3163365cc00b599b8c00c68d5c0d2eff Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Tue, 17 Apr 2007 10:01:39 +0000 Subject: Fix --with(out)-warnings-as-errors test so warnings-as-errors can be disabled (with gcc) svn path=/trunk/; revision=21453 --- wiretap/configure.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wiretap') diff --git a/wiretap/configure.in b/wiretap/configure.in index 20b357cd6d..d5cea44085 100644 --- a/wiretap/configure.in +++ b/wiretap/configure.in @@ -88,12 +88,12 @@ AC_ARG_WITH(warnings-as-errors, AC_HELP_STRING( [--with-warnings-as-errors], [Treat warnings as errors (only for gcc). [default=yes]]), [ - if test "x$GCC" != "x" && test "x$withval" != "xno"; then - with_warnings_as_errors="no" - AC_MSG_RESULT(no) - else + if test "x$GCC" != "x" && test "x$withval" == "xyes"; then with_warnings_as_errors="yes" AC_MSG_RESULT(yes) + else + with_warnings_as_errors="no" + AC_MSG_RESULT(no) fi ], if test "x$GCC" != "x" && test "x$wireshark_extra_gcc_flags" = "x"; then -- cgit v1.2.3