-# Macro to add for using pspell spellchecker libraries! -*- sh -*-
-# @author@: Jürgen Vigna
-AC_DEFUN([CHECK_WITH_PSPELL],
-[
- lyx_use_pspell=true
- AC_ARG_WITH(pspell, AC_HELP_STRING([--with-pspell],[use PSpell libraries]))
- test "$with_pspell" = "no" && lyx_use_pspell=false
-
- if $lyx_use_pspell ; then
- AC_CHECK_HEADERS(pspell/pspell.h,, lyx_use_pspell=false)
- AC_CHECK_LIB(pspell, main, LIBS="-lpspell $LIBS", lyx_use_pspell=false)
-
- AC_MSG_CHECKING([whether to use pspell])
- if $lyx_use_pspell ; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(USE_PSPELL, 1, [Define as 1 to use the pspell library])
- lyx_flags="$lyx_flags use-pspell"
- else
- AC_MSG_RESULT(no)
- fi
- fi
- ])
-