2001-07-05 14:00:36 +00:00
|
|
|
|
# Macro to add for using pspell spellchecker libraries! -*- sh -*-
|
2000-08-28 13:13:45 +00:00
|
|
|
|
# @author@: J<>rgen Vigna
|
|
|
|
|
|
|
|
|
|
AC_DEFUN(CHECK_WITH_PSPELL,
|
|
|
|
|
[
|
|
|
|
|
AC_ARG_WITH(pspell,
|
2003-03-03 23:19:01 +00:00
|
|
|
|
AC_HELP_STRING([--with-pspell],[use PSpell libraries]),
|
|
|
|
|
[
|
|
|
|
|
case "$withval" in
|
2003-03-26 01:20:25 +00:00
|
|
|
|
y*) USING_PSPELL="yes";;
|
|
|
|
|
*) USING_PSPELL="no";;
|
2003-03-03 23:19:01 +00:00
|
|
|
|
esac
|
|
|
|
|
],
|
|
|
|
|
[
|
2003-03-26 01:20:25 +00:00
|
|
|
|
USING_PSPELL="yes"
|
2003-03-03 23:19:01 +00:00
|
|
|
|
])
|
2000-08-28 13:13:45 +00:00
|
|
|
|
|
2003-03-26 01:20:25 +00:00
|
|
|
|
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")
|
2000-08-28 13:13:45 +00:00
|
|
|
|
|
2003-03-26 01:20:25 +00:00
|
|
|
|
if test "$USING_PSPELL" = "yes"; then
|
2003-03-03 23:19:01 +00:00
|
|
|
|
AC_DEFINE(USE_PSPELL, 1, [Define as 1 to use the pspell library])
|
|
|
|
|
lyx_flags="$lyx_flags use-pspell"
|
|
|
|
|
fi
|
2000-08-28 13:13:45 +00:00
|
|
|
|
fi
|
2003-03-25 21:14:44 +00:00
|
|
|
|
AC_MSG_CHECKING([whether to use pspell])
|
2003-03-26 01:20:25 +00:00
|
|
|
|
AC_MSG_RESULT($USING_PSPELL)
|
2003-03-03 23:19:01 +00:00
|
|
|
|
])
|