test "$with_hunspell" = "no" && lyx_use_hunspell=false
if $lyx_use_hunspell ; then
- AC_CHECK_HEADERS(hunspell/hunspell.hxx,
- [lyx_use_hunspell=true; break;],
- [lyx_use_hunspell=false])
- AC_CHECK_LIB(hunspell, main, LIBS="-lhunspell $LIBS", lyx_use_hunspell=false)
-
+ PKG_CHECK_MODULES([HUNSPELL], [hunspell], [], [lyx_use_hunspell=false])
AC_MSG_CHECKING([whether to use hunspell])
if $lyx_use_hunspell ; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
- fi
- ])
+ fi
+ ])
### Check if we want spell libraries, prefer new aspell or hunspell
CHECK_WITH_ASPELL
AM_CONDITIONAL(USE_ASPELL, $lyx_use_aspell)
- if $lyx_use_aspell ; then
-### Check for aspell framework name
- LYX_WITH_DIR([aspell-framework],[name of aspell framework],aspell_framework, NONE)
- if ! test "x${lyx_cv_aspell_framework}" = xNONE; then
- AC_DEFINE_UNQUOTED([ASPELL_FRAMEWORK], "${lyx_cv_aspell_framework}")
- else
- AC_DEFINE(ASPELL_FRAMEWORK, [""], [Define as name of aspell framework])
- fi
- fi
-
CHECK_WITH_ENCHANT
AM_CONDITIONAL(USE_ENCHANT, $lyx_use_enchant)