diff --git a/configure.ac b/configure.ac index c12c2e779..2a547e239 100644 --- a/configure.ac +++ b/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]) diff --git a/m4.include/ac-glib.m4 b/m4.include/ac-glib.m4 index 9d35d1c29..dcf6a87f4 100644 --- a/m4.include/ac-glib.m4 +++ b/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