mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
streamline hunspell checking
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37988 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
30d9ea948b
commit
6b88f5bcb7
@ -51,15 +51,10 @@ AC_DEFUN([CHECK_WITH_HUNSPELL],
|
||||
test "$with_hunspell" = "no" && lyx_use_hunspell=false
|
||||
|
||||
if $lyx_use_hunspell ; then
|
||||
AC_CHECK_HEADERS(hunspell/hunspell.hxx,
|
||||
[lyx_use_hunspell=true; break;],
|
||||
AC_CHECK_HEADERS(hunspell/hunspell.hxx,
|
||||
[AC_SEARCH_LIBS(Hunspell_spell,
|
||||
[hunspell hunspell-1.2],, [lyx_use_hunspell=false])],
|
||||
[lyx_use_hunspell=false])
|
||||
|
||||
if test x$lyx_use_hunspell = xtrue ; then
|
||||
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
|
||||
fi
|
||||
AC_MSG_CHECKING([whether to use hunspell])
|
||||
if $lyx_use_hunspell ; then
|
||||
@ -69,7 +64,6 @@ AC_DEFUN([CHECK_WITH_HUNSPELL],
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user