mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
99215ea58f
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6578 a592a061-630c-0410-9148-cb99ea01b6c8
31 lines
831 B
Bash
31 lines
831 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)
|
|
])
|