[libgsf] Introspection: make this $prefix friendly.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsf] Introspection: make this $prefix friendly.
- Date: Tue, 26 Feb 2013 15:35:11 +0000 (UTC)
commit 8445ed2f1f464f9294188500198f6b2cb95a6b2e
Author: Morten Welinder <terra gnome org>
Date: Tue Feb 26 10:32:45 2013 -0500
Introspection: make this $prefix friendly.
configure.ac | 34 +++++++++++++++++++++++++++-------
1 files changed, 27 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index abc7cd6..fda67df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -109,20 +109,40 @@ enable_introspection=$found_introspection
AC_MSG_RESULT([$found_introspection])
-INTROSPECTION_SCANNER=
-INTROSPECTION_COMPILER=
-INTROSPECTION_GENERATE=
-INTROSPECTION_GIRDIR=
-INTROSPECTION_TYPELIBDIR=
if test "x$found_introspection" = "xyes"; then
+ dnl You can override INTROSPECTION_GIRDIR and INTROSPECTION_TYPELIBDIR
+ dnl if you wish. If you override the latter, you might want to set
+ dnl GI_TYPELIB_PATH to include the same directory. For example
+ dnl
+ dnl GI_TYPELIB_PATH=$PREFIX/lib64/girepository-1.0
+ dnl INTROSPECTION_TYPELIBDIR=$GI_TYPELIB_PATH
+ dnl INTROSPECTION_GIRDIR=$PREFIX/share/gir-1.0
+ dnl
+ dnl Note, that unlike binaries produced with libgsf, nothing tells
+ dnl python where to find libgsf, so you might also need to set
+ dnl LD_LIBRARY_PATH.
+
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
- INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
- INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
+ if test "x$INTROSPECTION_GIRDIR" = x; then
+ INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
+ fi
+ if test "x$INTROSPECTION_TYPELIBDIR" = x; then
+ INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
+ fi
INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir
gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
+else
+ INTROSPECTION_SCANNER=
+ INTROSPECTION_COMPILER=
+ INTROSPECTION_GENERATE=
+ INTROSPECTION_GIRDIR=
+ INTROSPECTION_TYPELIBDIR=
+ INTROSPECTION_CFLAGS=
+ INTROSPECTION_LIBS=
+ INTROSPECTION_MAKEFILE=
fi
AC_SUBST(INTROSPECTION_SCANNER)
AC_SUBST(INTROSPECTION_COMPILER)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]