summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMarcel Dijkstra <[email protected]>2012-05-16 04:13:53 +0200
committerMarcel Dijkstra <[email protected]>2012-05-16 04:13:53 +0200
commit1558f59456ae8abe428c8378910e6a1f26bf9411 (patch)
tree64a2e878c94898d971aa056395d8dc38b45cf793 /configure.in
parenta57d08ce5672bcabae2de9a31d6660eac1c5880a (diff)
downloadcaja-1558f59456ae8abe428c8378910e6a1f26bf9411.tar.bz2
caja-1558f59456ae8abe428c8378910e6a1f26bf9411.tar.xz
only depend on gmodule-2.0 if it exists
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index e96d8465..dd2d0b9c 100644
--- a/configure.in
+++ b/configure.in
@@ -423,8 +423,8 @@ LIBCAJA_EXTENSION_LIBS="`$PKG_CONFIG --libs $LIBCAJA_EXTENSION_MODULES`"
AC_SUBST(LIBCAJA_EXTENSION_LIBS)
dnl core caja
-CORE_MODULES="glib-2.0 gmodule-2.0 mate-desktop-2.0 gthread-2.0 gio-2.0 gio-unix-2.0
-gail mateconf-2.0 libxml-2.0 $EXTRA_CORE_MODULES gtk+-$GTK_API_VERSION"
+PKG_CHECK_MODULES(GMODULE, gmodule-2.0, [GMODULE_ADD="gmodule-2.0"],[GMODULE_ADD=""])
+CORE_MODULES="glib-2.0 $GMODULE_ADD mate-desktop-2.0 gthread-2.0 gio-2.0 gio-unix-2.0 gail mateconf-2.0 libxml-2.0 $EXTRA_CORE_MODULES gtk+-$GTK_API_VERSION"
CORE_CFLAGS="`$PKG_CONFIG --cflags $CORE_MODULES` $x_cflags"
AC_SUBST(CORE_CFLAGS)
CORE_LIBS="`$PKG_CONFIG --libs $CORE_MODULES` $x_libs"