aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2007-04-14 00:41:08 +0000
committerJörg Mayer <jmayer@loplof.de>2007-04-14 00:41:08 +0000
commitd5b5c41fa9fb2001bd6f3298f7235e39c7f1cc69 (patch)
tree64c5ed04f15dee7be4497a3e3098970c4fb130b4 /wiretap
parent6c8b972c62d20556d68e3cec19f282e6808af388 (diff)
Same as for top level configure.in
svn path=/trunk/; revision=21426
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/configure.in24
1 files changed, 16 insertions, 8 deletions
diff --git a/wiretap/configure.in b/wiretap/configure.in
index 8c47fdbaf5..20b357cd6d 100644
--- a/wiretap/configure.in
+++ b/wiretap/configure.in
@@ -83,20 +83,28 @@ else
fi
rm -rf conftest*
+AC_MSG_CHECKING(whether we should treat compiler warnings as errors)
AC_ARG_WITH(warnings-as-errors,
- AC_HELP_STRING( [--without-warnings-as-errors],
- [Don't treat warnings as errors (only for gcc). [default=yes]]),
+ AC_HELP_STRING( [--with-warnings-as-errors],
+ [Treat warnings as errors (only for gcc). [default=yes]]),
[
- without_warnings_as_errors="no"
- if test "x$GCC" != "x" && test "x$withval" = "xno"; then
- without_warnings_as_errors="yes"
+ if test "x$GCC" != "x" && test "x$withval" != "xno"; then
+ with_warnings_as_errors="no"
+ AC_MSG_RESULT(no)
+ else
+ with_warnings_as_errors="yes"
+ AC_MSG_RESULT(yes)
fi
],
- if test "x$GCC" != "x"; then
- without_warnings_as_errors="no"
+ if test "x$GCC" != "x" && test "x$wireshark_extra_gcc_flags" = "x"; then
+ with_warnings_as_errors="yes"
+ AC_MSG_RESULT(yes)
+ else
+ with_warnings_as_errors="no"
+ AC_MSG_RESULT(no)
fi
)
-AM_CONDITIONAL(HAVE_WARNINGS_AS_ERRORS, test "x$without_warnings_as_errors" = "xno")
+AM_CONDITIONAL(HAVE_WARNINGS_AS_ERRORS, test "x$with_warnings_as_errors" = "xyes")
#
# Add any platform-specific compiler flags needed.