summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2009-01-20 22:38:14 +0000
committerJohan Dahlin <johan@src.gnome.org>2009-01-20 22:38:14 +0000
commit2dcbf7e1775b3bccd56eed84ec20f4f91bbe5a55 (patch)
tree87a432393878a5cc6a26319b5336b1bb12211660 /configure.in
parent4a5be24fea9af2b4a49bf331d6dc50efeb89735a (diff)
downloadpango-2dcbf7e1775b3bccd56eed84ec20f4f91bbe5a55.tar.gz
Bug 567934 – Add introspection support inside pango
2009-01-20 Johan Dahlin <jdahlin@async.com.br> Bug 567934 – Add introspection support inside pango * configure.in: * pango/Makefile.am: * pango/pango-attributes.c: * pango/pango-layout.c: svn path=/trunk/; revision=2798
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in29
1 files changed, 28 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index d09e6f8d..1abed9bc 100644
--- a/configure.in
+++ b/configure.in
@@ -44,7 +44,9 @@ AC_INIT(pango, pango_version(),
AC_CONFIG_SRCDIR([ChangeLog])
-AM_INIT_AUTOMAKE(1.9 gnits dist-bzip2 no-dist-gzip)
+dnl -Wno-portability tells automake to stop complaining about the
+dnl usage of GNU Make specific features.
+AM_INIT_AUTOMAKE(1.9 gnits dist-bzip2 no-dist-gzip -Wno-portability)
AM_CONFIG_HEADER([config.h])
@@ -463,6 +465,31 @@ LIBTHAI_REQUIRED_VERSION=0.1.9
PKG_CHECK_MODULES(LIBTHAI, libthai >= $LIBTHAI_REQUIRED_VERSION, have_libthai=true, AC_MSG_RESULT([no]))
#
+# Checks for GObject Introspection
+#
+have_introspection=false
+PKG_CHECK_MODULES(INTROSPECTION, gobject-introspection-1.0 >= 0.6.2, have_introspection=true, have_introspection=false)
+AM_CONDITIONAL(HAVE_INTROSPECTION, $have_introspection)
+
+G_IR_SCANNER=
+G_IR_COMPILER=
+G_IR_GENERATE=
+GIRDIR=
+TYPELIBDIR=
+if test $have_introspection; then
+ G_IR_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
+ G_IR_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
+ G_IR_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
+ GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
+ TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
+fi
+AC_SUBST(G_IR_SCANNER)
+AC_SUBST(G_IR_COMPILER)
+AC_SUBST(G_IR_GENERATE)
+AC_SUBST(GIRDIR)
+AC_SUBST(TYPELIBDIR)
+
+#
# Modules to build
#
arabic_modules="arabic-fc,arabic-lang"