summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2012-09-02 13:13:24 +0200
committerJan Djärv <jan.h.d@swipnet.se>2012-09-02 13:13:24 +0200
commitf278d339c9aea397620179bda2c396aaae073be1 (patch)
treedc24d70c54e95034ae29bcc5cf82c0176cea05f5 /configure.ac
parent8b33967313f09a736a833816d32fd52e10640969 (diff)
downloademacs-f278d339c9aea397620179bda2c396aaae073be1.tar.gz
* configure.ac (HAVE_GOBJECT): Check for gobject-2.0.
Fixes: debbugs:12332
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 43686361d07..0e2154aab6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2053,6 +2053,11 @@ if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
fi
if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
+ PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= 2.0, HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
+ if test "$HAVE_GOBJECT" = "yes"; then
+ SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
+ SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
+ fi
SAVE_CFLAGS="$CFLAGS"
SAVE_LIBS="$LIBS"
CFLAGS="$SETTINGS_CFLAGS $CFLAGS"