2 dnl Internal editor support.
4 AC_DEFUN([MC_WITH_INTERNAL_EDIT], [
6 AC_ARG_WITH([internal_edit],
7 AS_HELP_STRING([--with-internal-edit], [Enable internal editor @<:@yes@:>@]))
9 if test x$with_internal_edit != xno; then
10 AC_DEFINE(USE_INTERNAL_EDIT, 1, [Define to enable internal editor])
12 AC_MSG_NOTICE([using internal editor])
20 AC_ARG_ENABLE([aspell],
21 AS_HELP_STRING([--enable-aspell], [Enable aspell support for internal editor @<:@no@:>@]),
23 if test "x$enableval" = xno; then
32 if test x$with_internal_edit != xno -a x$enable_aspell != xno; then
33 AC_CHECK_HEADERS([aspell.h], [], [
34 AC_ERROR([Could not find aspell development headers])
37 if test x"$g_module_supported" != x; then
38 AC_DEFINE(HAVE_ASPELL, 1, [Define to enable aspell support])
39 edit_msg="yes with aspell support"
40 AC_MSG_NOTICE([using aspell for internal editor])
43 AC_MSG_NOTICE([aspell support is disabled because gmodule support is not available])