* Cleanup Hunspell block (remove legacy code)

* Fix disabling of hunspell if compile test fails.

Originally committed to SVN as r2696.
This commit is contained in:
Amar Takhar 2009-01-15 01:04:55 +00:00
parent 0035436eff
commit dafcf9badd

View file

@ -648,7 +648,7 @@ AM_CONDITIONAL([WITH_CSRI], [test "$with_csri" = "yes"])
AC_ARG_WITH(hunspell, [ --without-hunspell build without hunspell support (default: auto)], hunspell_disabled="(disabled)") AC_ARG_WITH(hunspell, [ --without-hunspell build without hunspell support (default: auto)], hunspell_disabled="(disabled)")
if test "$with_hunspell" != "no"; then if test "$with_hunspell" != "no"; then
PKG_CHECK_MODULES(HUNSPELL, hunspell >= 1.2.0, [with_hunspell=yes], [with_hunspell=no]) PKG_CHECK_MODULES(HUNSPELL, hunspell >= 1.2.0, [with_hunspell="yes"], [with_hunspell="no"])
AC_AGI_COMPILE([Hunspell], [hunspell], [$HUNSPELL_CFLAGS], [$HUNSPELL_LIBS],[ AC_AGI_COMPILE([Hunspell], [hunspell], [$HUNSPELL_CFLAGS], [$HUNSPELL_LIBS],[
#include <hunspell.hxx> #include <hunspell.hxx>
int main(void) { int main(void) {
@ -661,6 +661,7 @@ fi
if test "$agi_cv_with_hunspell" = "no" && test "$with_hunspell" = "yes"; then if test "$agi_cv_with_hunspell" = "no" && test "$with_hunspell" = "yes"; then
AC_MSG_WARN([Hunspell detected, but it doesn't work...]) AC_MSG_WARN([Hunspell detected, but it doesn't work...])
with_hunspell="no"
fi fi
if test "$with_hunspell" = "yes"; then if test "$with_hunspell" = "yes"; then