diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2013-09-19 18:06:45 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-09-19 18:06:45 +0100 |
commit | b6136613ca6071ab017c46d796806326bdf8f3bb (patch) | |
tree | 137cf77a84eeb0be1dfead1d8f88464b21ef2cda /m4 | |
parent | 74a6857d26a22d1419c89b00ba5acbc8e2a2c68a (diff) |
gst-args.m4: also enable fatal warnings only for development versions
and not pre-releases. If we disable asserts, that will cause some
warnings which we should ignore.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/gst-args.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/m4/gst-args.m4 b/m4/gst-args.m4 index 4872e3c..b478c82 100644 --- a/m4/gst-args.m4 +++ b/m4/gst-args.m4 @@ -337,6 +337,7 @@ AC_DEFUN([AG_GST_ARG_ENABLE_BROKEN], dnl allow people (or build tools) to override default behaviour dnl for fatal compiler warnings +dnl Enable fatal warnings by default only for development versions AC_DEFUN([AG_GST_ARG_DISABLE_FATAL_WARNINGS], [ AC_ARG_ENABLE(fatal-warnings, @@ -349,5 +350,11 @@ AC_DEFUN([AG_GST_ARG_DISABLE_FATAL_WARNINGS], *) AC_MSG_ERROR(bad value ${enableval} for --disable-fatal-warnings) ;; esac ], - [FATAL_WARNINGS=$GST_GIT]) dnl Default value + [ + if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then + FATAL_WARNINGS=yes + else + FATAL_WARNINGS=no + fi + ]) ]) |