pspell autoconf support
[claws.git] / configure.in
index 7786200df97ba510e438d57b82ea76296c3d7f84..94bc1380e57ba5d74e9ef0cc4c5124866d8a8b42 100644 (file)
@@ -251,6 +251,19 @@ else
        AC_MSG_RESULT(no)
 fi
 
        AC_MSG_RESULT(no)
 fi
 
+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
+
 dnl check if gdk / gtk was compiled with USE_XIM
 AC_MSG_CHECKING([whether GTK was compiled with XIM support])
 CFLAGS_SAVE="$CFLAGS"
 dnl check if gdk / gtk was compiled with USE_XIM
 AC_MSG_CHECKING([whether GTK was compiled with XIM support])
 CFLAGS_SAVE="$CFLAGS"
@@ -337,6 +350,7 @@ echo "LDAP       : $ac_cv_enable_ldap"
 echo "compface   : $ac_cv_enable_compface"
 echo "libjconv   : $ac_cv_enable_jconv"
 echo "IPv6       : $ac_cv_enable_ipv6"
 echo "compface   : $ac_cv_enable_compface"
 echo "libjconv   : $ac_cv_enable_jconv"
 echo "IPv6       : $ac_cv_enable_ipv6"
+echo "Pspell     : $ac_cv_enable_pspell"
 echo ""
 echo "The binary will be installed in $prefix/bin"
 echo ""
 echo ""
 echo "The binary will be installed in $prefix/bin"
 echo ""