Mercurial > ~mikael > mcabber > hg
diff mcabber/configure.ac @ 1590:8d1bcc83ae32
Add support for spellchecking with Enchant (caolan)
Patch from the issue tracker:
http://bitbucket.org/McKael/mcabber-crew/issue/36/patch-to-spell-checking-using-enchant
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 04 Oct 2009 19:33:38 +0200 |
parents | 590ade2780bd |
children | 06fdfff29175 |
line wrap: on
line diff
--- a/mcabber/configure.ac Sun Oct 04 18:39:08 2009 +0200 +++ b/mcabber/configure.ac Sun Oct 04 19:33:38 2009 +0200 @@ -204,10 +204,19 @@ fi fi +# Check for Enchant stuff +AC_ARG_ENABLE(enchant, [ --enable-enchant enable enchant support], + enable_enchant=$enableval, enchant="") # Check for Aspell stuff AC_ARG_ENABLE(aspell, [ --enable-aspell enable aspell support], enable_aspell=$enableval, aspell="") -if test "x$enable_aspell" = "xyes"; then + +if test "x$enable_enchant" = "xyes"; then + PKG_CHECK_MODULES(ENCHANT, [enchant], + AC_DEFINE(WITH_ENCHANT, 1, [define if you want enchant support]) + ) +else + if test "x$enable_aspell" = "xyes"; then AC_CHECK_HEADERS(aspell.h, [ have_aspell_includes=yes ]) if test "x$have_aspell_includes" = "xyes"; then AC_CHECK_LIB(aspell, new_aspell_config, [ have_aspell_libs=yes ]) @@ -220,6 +229,7 @@ else enable_aspell=no fi + fi fi AC_DEFINE([BUILD_JABBER], 1, [build with jabber support])