diff options
author | Stef Walter <stefw@gnome.org> | 2014-04-17 09:28:16 +0200 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2014-04-19 22:29:48 +0200 |
commit | 33ca9eb35cb9257094dc798e40c946405a54d996 (patch) | |
tree | a79e6e16891f5eb16cd63de615db76cfee1313a1 | |
parent | ec705567388fec87979b4a786a4422848111e377 (diff) |
No gir strict when gobject-introspection less than 1.39
Don't --enable-strict for girscanner when gobject-introspection
is less than 1.39, as it barfs on our headers.
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9d5fc40..7c359eb 100644 --- a/configure.ac +++ b/configure.ac @@ -304,7 +304,16 @@ if test "$enable_strict" = "yes"; then -DG_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED" TEST_MODE="thorough" - INTROSPECTION_FLAGS="--warn-error" + # HACK: Only set strict introspection if gir is greater than 1.39 + # https://bugzilla.gnome.org/show_bug.cgi?id=698367 + case $(pkg-config --modversion gobject-introspection-1.0) in + 1.3[[45678]]*) + INTROSPECTION_FLAGS="" + ;; + *) + INTROSPECTION_FLAGS="--warn-error" + ;; + esac AC_DEFINE_UNQUOTED(WITH_STRICT, 1, [More strict checks]) strict_status="yes (-Werror, thorough tests, fatals, no deprecations)" else |