+dnl PSPELL is user for spell checking
+AC_ARG_ENABLE(pspell,
+ [ --enable-pspell Enable pspell support [default=no]],
+ [ac_cv_enable_pspell=$enableval], [ac_cv_enable_pspell=no])
+AC_MSG_CHECKING([whether to use pspell])
+if test $ac_cv_enable_pspell = yes; then
+ AC_MSG_RESULT(yes)
+ AM_PATH_PSPELL(.12.2, AC_DEFINE(USE_PSPELL), [use_pspell=no
+ ac_cv_enable_pspell=no])
+else
+ AC_MSG_RESULT(no)
+fi
+