0002-fix-introspection-check.patch 1.0 KB

12345678910111213141516171819202122232425262728
  1. Fix HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
  2. During autoreconf GOBJECT_INTROSPECTION_CHECK could not be resolved because we
  3. don't have introspection which provides its custom m4 macro. Reconfigure fails
  4. with:
  5. gdk/Makefile.am:196: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
  6. gtk/Makefile.am:1347: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
  7. We avoid to add a copy of introspection.m4 in the m4 directory of libgtk3 by
  8. adding a check, as performed in Systemd.
  9. Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com>
  10. --- a/configure.ac
  11. +++ b/configure.ac
  12. @@ -1621,7 +1621,10 @@
  13. # GObject introspection
  14. ##################################################
  15. -GOBJECT_INTROSPECTION_CHECK(introspection_required_version)
  16. +m4_ifdef([GOBJECT_INTROSPECTION_CHECK],
  17. + [GOBJECT_INTROSPECTION_CHECK(introspection_required_version)],
  18. + [AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
  19. + enable_introspection=no])
  20. ##################################################
  21. # colord module