Browse Source

Ticket #2995: do not link GModule if it is not required (save space on embedded systems).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 11 years ago
parent
commit
5260d6612c
2 changed files with 3 additions and 2 deletions
  1. 3 0
      configure.ac
  2. 0 2
      m4.include/ac-glib.m4

+ 3 - 0
configure.ac

@@ -483,6 +483,9 @@ AM_CONDITIONAL(USE_ASPELL, [test x"$enable_aspell" = xyes ])
 AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"])
 AM_CONDITIONAL(CHARSET, [test -n "$have_charset"])
 AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"])
+dnl Clarify do we really need GModule
+AM_CONDITIONAL([HAVE_GMODULE], [test -n "$g_module_supported" && \
+                                test x"$textmode_x11_support" = x"yes" -o x"$enable_aspell" = x"yes"])
 
 AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS], ["$ac_configure_args"], [MC configure arguments])
 

+ 0 - 2
m4.include/ac-glib.m4

@@ -32,8 +32,6 @@ AC_DEFUN([AC_G_MODULE_SUPPORTED], [
             ;;
     esac
 
-    AM_CONDITIONAL([HAVE_GMODULE], [test x"$g_module_supported" != x])
-
     dnl
     dnl Try to find static libraries for glib and gmodule.
     dnl