lyx_mirror/config/pspell.m4
John Levon 99215ea58f Support for new GNU aspell library. Final pspell fix ups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6578 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-26 01:20:25 +00:00

30 lines
794 B
Bash

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