]> git.lyx.org Git - features.git/blobdiff - config/spell.m4
Fix config detection for hunspell-1.2
[features.git] / config / spell.m4
index ae4c2b85e96a00194cde79e1a4952596b0928fda..0fc7b3efbee516c448373eac3faafebcd6a63690 100644 (file)
@@ -54,8 +54,11 @@ AC_DEFUN([CHECK_WITH_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_CHECK_LIB(hunspell, main, LIBS="-lhunspell $LIBS", lyx_use_hunspell=false)
+       if test x$lyx_use_hunspell = xfalse ; then
+           AC_CHECK_LIB(hunspell-1.2, main, [LIBS="-lhunspell-1.2 $LIBS" lyx_use_hunspell=true], lyx_use_hunspell=false)
+       fi
        AC_MSG_CHECKING([whether to use hunspell])
        if $lyx_use_hunspell ; then
                AC_MSG_RESULT(yes)