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],
22 [--enable-aspell@<:@=prefix@:>@],
23 [Enable aspell support for internal editor @<:@no@:>@] and optionally set path to aspell installation prefix @<:@default=/usr@:>@),
25 if test "x$enableval" = xno; then
28 test -d "$enable_aspell/include" && CPPFLAGS="$CPPFLAGS -I$enable_aspell/include"
35 if test x$with_internal_edit != xno -a x$enable_aspell != xno; then
36 AC_CHECK_HEADERS([aspell.h], [], [
37 AC_MSG_ERROR([Could not find aspell development headers])
40 if test x"$g_module_supported" != x; then
41 AC_DEFINE(HAVE_ASPELL, 1, [Define to enable aspell support])
42 edit_msg="yes with aspell support"
43 AC_MSG_NOTICE([using aspell for internal editor])
46 AC_MSG_ERROR([aspell support is disabled because gmodule support is not available])