Skip to content

Commit 5260d66

Browse files
committed
Ticket #2995: do not link GModule if it is not required (save space on embedded systems).
Signed-off-by: Andrew Borodin <[email protected]>
1 parent c194851 commit 5260d66

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

configure.ac

+3
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ AM_CONDITIONAL(USE_ASPELL, [test x"$enable_aspell" = xyes ])
483483
AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"])
484484
AM_CONDITIONAL(CHARSET, [test -n "$have_charset"])
485485
AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"])
486+
dnl Clarify do we really need GModule
487+
AM_CONDITIONAL([HAVE_GMODULE], [test -n "$g_module_supported" && \
488+
test x"$textmode_x11_support" = x"yes" -o x"$enable_aspell" = x"yes"])
486489

487490
AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS], ["$ac_configure_args"], [MC configure arguments])
488491

m4.include/ac-glib.m4

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ AC_DEFUN([AC_G_MODULE_SUPPORTED], [
3232
;;
3333
esac
3434
35-
AM_CONDITIONAL([HAVE_GMODULE], [test x"$g_module_supported" != x])
36-
3735
dnl
3836
dnl Try to find static libraries for glib and gmodule.
3937
dnl

0 commit comments

Comments
 (0)