lyx_mirror/config/aspell.m4
Lars Gullik Bjønnes 2c0668646a update m4 files and remove warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8774 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-25 14:42:10 +00:00

31 lines
833 B
Bash

# Macro to add for using aspell spellchecker libraries! -*- sh -*-
# Only checks for "new" aspell, > 0.50
AC_DEFUN([CHECK_WITH_ASPELL],
[
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)
])