File ibus-disable-introspect.patch of Package ibus.import4151

Index: ibus-1.3.8/configure.ac
===================================================================
--- ibus-1.3.8.orig/configure.ac
+++ ibus-1.3.8/configure.ac
@@ -169,7 +169,20 @@ else
 fi
 
 # GObject introspection
-GOBJECT_INTROSPECTION_CHECK([0.6.8])
+
+AC_ARG_ENABLE(gobject-introspection,
+    AS_HELP_STRING([--disable-gobject-introspection],
+                   [Do not use gobject-introspection code]),
+    [enable_gobject_introspection=$enableval],
+    [enable_gobject_introspection=yes]
+)
+AM_CONDITIONAL([HAVE_INTROSPECTION], [test "x$enable_gobject_introspection" = "xyes"])
+
+if test x"$enable_gobject_introspection" = x"yes"; then
+    GOBJECT_INTROSPECTION_CHECK([0.6.8])
+else
+    AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
+fi
 
 IBUS_GIR_SCANNERFLAGS=
 if test x"$found_introspection" = x"yes" ; then
@@ -397,7 +410,7 @@ Build options:
   Build python modules      $enable_python
   Build gconf modules       $enable_gconf
   Build memconf modules     $enable_memconf
-  Build introspection       $found_introspection
+  Build introspection       $enable_gobject_introspection
   IBus-1.0.gir scannerflags "$IBUS_GIR_SCANNERFLAGS"
   Build vala binding        $enable_vala
   Build document            $enable_gtk_doc