From b8836fcd19deb4b9d74d2541b1a9753cad4625b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Fri, 4 Mar 2011 20:47:05 +0000 Subject: [PATCH] Fix config detection for hunspell-1.2 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37850 a592a061-630c-0410-9148-cb99ea01b6c8 --- config/spell.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/spell.m4 b/config/spell.m4 index ae4c2b85e9..0fc7b3efbe 100644 --- a/config/spell.m4 +++ b/config/spell.m4 @@ -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) -- 2.39.2