dnl ================
dnl checks for FreeTTS
dnl ================

AC_ARG_ENABLE(kttsd-freetts,
              AC_HELP_STRING([--enable-kttsd-freetts],
                             [build KTTSD FreeTTS Plugin [default=yes]]),
              freetts_plugin=$enableval,
              freetts_plugin=yes)

compile_freetts_plugin="yes"

if test "x$freetts_plugin" = "xno"; then
  compile_freetts_plugin="no"
fi

dnl Check for festival executable.
dnl Note that Festival Interactive plugin is always built
dnl whether binary is found or not, unless user overrides with -disable-freetts.
AC_PATH_PROG(freetts_bindir, "freetts.jar", "no")

AM_CONDITIONAL(include_kttsd_freetts, test "x$compile_freetts_plugin" = "xyes")
