X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=config%2Fspell.m4;h=1a2a1e9522fd68d3741ddf6824c2be595844f97a;hb=467422f9df784e2e6bab4f0cc8fcfbc166c59bd4;hp=71a0b7bcad37da34f2b6dc6d8c107238c66e6308;hpb=9359d73ddeda5fd6086a8de3ceac826901bdb332;p=lyx.git diff --git a/config/spell.m4 b/config/spell.m4 index 71a0b7bcad..1a2a1e9522 100644 --- a/config/spell.m4 +++ b/config/spell.m4 @@ -51,7 +51,12 @@ AC_DEFUN([CHECK_WITH_HUNSPELL], test "$with_hunspell" = "no" && lyx_use_hunspell=false if $lyx_use_hunspell ; then - PKG_CHECK_MODULES([HUNSPELL], [hunspell], [], [lyx_use_hunspell=false]) + PKG_CHECK_MODULES([HUNSPELL], [hunspell], [], [ + 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) + ]) AC_MSG_CHECKING([whether to use hunspell]) if $lyx_use_hunspell ; then AC_MSG_RESULT(yes)