From 31534155604188e25a686138f53e6e3a8f24ec2e Mon Sep 17 00:00:00 2001 From: Alexandre Montplaisir Date: Wed, 8 Feb 2012 18:19:12 -0500 Subject: [PATCH] Test for gmodule inclusion in all cases On recent glib versions, it seems gmodule needs to be included separately from glib/gtk, or it leads to compilation errors, e.g. undefined reference to `g_module_close' Signed-off-by: Mathieu Denis Signed-off by: Yannick Brosseau Signed-off-by: Alexandre Montplaisir Signed-off-by: Yannick Brosseau --- configure.ac | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index e5c110cc..58af406b 100644 --- a/configure.ac +++ b/configure.ac @@ -114,13 +114,11 @@ AM_CONDITIONAL([BUILD_JNI_INTERFACE], [ test "$with_jni_interface" = "yes" ] ) AS_IF([test "x$with_lttv_gui" = "xyes"],[ pkg_modules="gtk+-2.0 >= 2.0.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) -],[ - # Else, we still have a dependency on gmodule - # We will add flags for gmodule alone - pkg_modules="gmodule-2.0 >= 2.0.0" - PKG_CHECK_MODULES(GMODULE, [$pkg_modules]) ]) +pkg_modules="gmodule-2.0 >= 2.0.0" +PKG_CHECK_MODULES(GMODULE, [$pkg_modules]) + pkg_modules="gobject-2.0 >= 2.0.0" PKG_CHECK_MODULES(GOBJECT, [$pkg_modules]) -- 2.34.1