1 # Macro to add for using pspell spellchecker libraries! -*- sh -*-
2 # @author@: Jürgen Vigna
4 AC_DEFUN(CHECK_WITH_PSPELL,
6 AC_MSG_CHECKING([for pspell support])
8 AC_HELP_STRING([--with-pspell],[use PSpell libraries]),
11 y*) USE_PSPELL="yes";;
19 if test "$USE_PSPELL" = "yes" ; then
20 AC_CHECK_HEADERS(pspell/pspell.h, break, USE_PSPELL=no)
21 AC_CHECK_LIB(pspell, new_pspell_config)
23 if test "$USE_PSPELL" = "yes"; then
24 AC_DEFINE(USE_PSPELL, 1, [Define as 1 to use the pspell library])
25 lyx_flags="$lyx_flags use-pspell"
28 AC_MSG_RESULT($USE_PSPELL)