If the Hunspell test fails, then hunspell should be disabled, I'll do this for

all the tests eventually.

Originally committed to SVN as r2123.
This commit is contained in:
Amar Takhar 2008-03-23 22:12:25 +00:00
parent 0bb2c0733e
commit 1a68069ee2

View file

@ -382,15 +382,6 @@ AC_ARG_WITH(hunspell, [ --without-hunspell build without hunspell support
if test "x$with_hunspell" != xno; then
PKG_CHECK_MODULES(HUNSPELL, hunspell <= 1.1.10, [with_old_hunspell=yes], [with_old_hunspell=no])
fi
AM_CONDITIONAL([HAVE_HUNSPELL], [test "$with_old_hunspell" != "no"])
if test "$with_old_hunspell" = "yes"; then
AC_DEFINE(WITH_OLD_HUNSPELL, 1, [Enable Older Hunspell support.])
HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS -DWITH_OLD_HUNSPELL"
with_hunspell="yes"
with_hunspell_version="(old hunspell)"
else
with_hunspell="no"
fi
AC_AGI_COMPILE([Hunspell], [hunspell], [$HUNSPELL_CFLAGS], [$HUNSPELL_LIBS],[
#include <hunspell.hxx>
@ -403,8 +394,18 @@ int main(void) {
if test "$agi_with_hunspell" = "no" && test "$with_hunspell" = "yes"; then
AC_MSG_WARN([Hunspell detected, but it doesn't work..])
with_old_hunspell="no"
fi
AM_CONDITIONAL([HAVE_HUNSPELL], [test "$with_old_hunspell" != "no"])
if test "$with_old_hunspell" = "yes"; then
AC_DEFINE(WITH_OLD_HUNSPELL, 1, [Enable Older Hunspell support.])
HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS -DWITH_OLD_HUNSPELL"
with_hunspell="yes"
with_hunspell_version="(old hunspell)"
else
with_hunspell="no"
fi
######################