From dafcf9baddbd6f26e8db8f8d3ac1a09bdc38c188 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Thu, 15 Jan 2009 01:04:55 +0000 Subject: [PATCH] * Cleanup Hunspell block (remove legacy code) * Fix disabling of hunspell if compile test fails. Originally committed to SVN as r2696. --- configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 0fb58916d..960b90a81 100644 --- a/configure.in +++ b/configure.in @@ -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)") 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],[ #include int main(void) { @@ -661,6 +661,7 @@ fi if test "$agi_cv_with_hunspell" = "no" && test "$with_hunspell" = "yes"; then AC_MSG_WARN([Hunspell detected, but it doesn't work...]) + with_hunspell="no" fi if test "$with_hunspell" = "yes"; then