From 5a480fac520db1bab6f1336bee9b2031dbd36cab Mon Sep 17 00:00:00 2001 From: bringert Date: Tue, 13 Dec 2005 21:03:56 +0000 Subject: Added semi-working speech_input command. --- src/configure.ac | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src/configure.ac') diff --git a/src/configure.ac b/src/configure.ac index 64e1015bc..bfab7aebf 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -115,6 +115,41 @@ esac AC_SUBST(INTERRUPT) +dnl *********************************************** +dnl ATK speech recognition +dnl *********************************************** + +AC_ARG_WITH(atk, + AC_HELP_STRING([--with-atk=], + [Choose whether to compile in support for speech + recognition using ATK. Requires ATK and libatkrec. + Available alternatives are: 'yes', 'no' + (default = no)]), + [ATK="$withval"], + [ATK="no"]) + +case $ATK in + yes) + AC_MSG_CHECKING([for atkrec package]) + ATKREC_VERSION=`ghc-pkg latest atkrec` + if test "$ATKREC_VERSION" = ""; then + AC_MSG_RESULT(['not found']) + AC_MSG_WARN([Disabling ATK support.]) + ATK="no" + else + AC_MSG_RESULT([$ATKREC_VERSION]) + fi + ;; + no) + ;; + *) + AC_MSG_ERROR([Bad value for --with-atk: $ATK]) + + ;; +esac + +AC_SUBST(ATK) + dnl *********************************************** dnl java stuff dnl *********************************************** -- cgit v1.2.3