2003-03-26 01:20:25 +00:00
|
|
|
# Macro to add for using aspell spellchecker libraries! -*- sh -*-
|
|
|
|
|
|
|
|
# Only checks for "new" aspell, > 0.50
|
|
|
|
|
2004-05-25 14:42:10 +00:00
|
|
|
AC_DEFUN([CHECK_WITH_ASPELL],
|
2003-03-26 01:20:25 +00:00
|
|
|
[
|
|
|
|
AC_ARG_WITH(aspell,
|
|
|
|
AC_HELP_STRING([--with-aspell],[use ASpell libraries]),
|
|
|
|
[
|
|
|
|
case "$withval" in
|
|
|
|
y*) USING_ASPELL="yes";;
|
|
|
|
*) USING_ASPELL="no";;
|
|
|
|
esac
|
|
|
|
],
|
|
|
|
[
|
|
|
|
USING_ASPELL="yes"
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "$USING_ASPELL" = "yes" ; then
|
|
|
|
AC_CHECK_HEADERS(aspell.h aspell/aspell.h, USING_ASPELL="yes", USING_ASPELL="no")
|
|
|
|
AC_CHECK_LIB(aspell, new_aspell_config, LIBS="-laspell $LIBS"; USING_ASPELL="yes", USING_ASPELL="no")
|
|
|
|
|
|
|
|
if test "$USING_ASPELL" = "yes"; then
|
|
|
|
AC_DEFINE(USE_ASPELL, 1, [Define as 1 to use the aspell library])
|
|
|
|
lyx_flags="$lyx_flags use-aspell"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING([whether to use aspell])
|
|
|
|
AC_MSG_RESULT($USING_ASPELL)
|
|
|
|
])
|