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