forked from Mirrors/freeswitch
ba1aee8e3c
Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Fri Jun 26 18:17:10 2009 +0000 Implemented START-INPUT-TIMERS git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1014 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Fri Jun 26 16:56:38 2009 +0000 Fixed grammar file creation (the existing file must be truncated/overridden) git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1013 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Fri Jun 26 15:31:47 2009 +0000 Added GET-RESULT processing, properly set completion causes in the responses to DEFINE-GRAMMAR and RECOGNIZE requests git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1012 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Thu Jun 25 19:21:34 2009 +0000 Implemented grammar load/unload (DEFINE-GRAMMAR requests), implemented recognition complete timeout, introduced properties (to be loaded from config file) git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1011 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Wed Jun 24 14:31:37 2009 +0000 Added the NOTICE corresponding to the section 4 d of the Apache License, Version 2.0 git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1010 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Tue Jun 23 21:04:44 2009 +0000 Added identifier@pocketsphinx traces git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1009 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Tue Jun 23 21:03:02 2009 +0000 Added session identifier to engine channel (to be used for traces) git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1008 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Tue Jun 23 19:58:48 2009 +0000 Properly handled race between STOP request and RECOGNITION-COMPLETE event, other enhancements git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1007 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Tue Jun 23 19:55:57 2009 +0000 Added mpf_activity_detector_reset() git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1006 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Tue Jun 23 16:41:51 2009 +0000 Added 32kHz and 48kHz sampling rates (still no resampling support in MPF, also make sure RTP packet length <= 1500 bytes) git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1005 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Mon Jun 22 20:13:29 2009 +0000 Added flite m4 configure stuff git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1004 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Mon Jun 22 19:31:32 2009 +0000 Added pocketsphinx.vcproj and flite.vcproj project files into unimrcp.sln (disabled by default) git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1003 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Mon Jun 22 19:26:38 2009 +0000 Integrated utterance detection stuff (start-of-input, end-of-input), triggered partial and final recognition results git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1002 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: garmt.noname@gmail.com <garmt.noname@gmail.com@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Sun Jun 21 22:12:37 2009 +0000 First implementation of flite plugin - voice awb only git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1001 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Sun Jun 21 06:23:58 2009 +0000 Added framework for the development of flite plugin git-svn-id: https://unimrcp.googlecode.com/svn/trunk@1000 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Sat Jun 20 19:52:22 2009 +0000 Added missing include paths and libs required for pocketsphinx git-svn-id: https://unimrcp.googlecode.com/svn/trunk@999 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Sat Jun 20 17:32:37 2009 +0000 Started actual implementation of pocketsphinx plugin git-svn-id: https://unimrcp.googlecode.com/svn/trunk@998 f001bc3a-424a-0410-80a0-a715b8f413a8 Author: achaloyan <achaloyan@f001bc3a-424a-0410-80a0-a715b8f413a8> Date: Sat Jun 20 13:55:41 2009 +0000 Added acmacros for pocketsphinx libs (src and installed dirs are suppored), cleaned up ./configure related stuff a bit git-svn-id: https://unimrcp.googlecode.com/svn/trunk@997 f001bc3a-424a-0410-80a0-a715b8f413a8 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13987 d0543943-73ff-0310-b7d9-9358b9ac24b2
219 lines
6.4 KiB
Plaintext
219 lines
6.4 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.57)
|
|
|
|
AC_INIT([unimrcp],[0.6.0])
|
|
|
|
AC_CONFIG_AUX_DIR([build])
|
|
AC_CONFIG_MACRO_DIR([build/acmacros])
|
|
AC_PREFIX_DEFAULT(/usr/local/unimrcp)
|
|
|
|
plugindir='${prefix}/plugin'
|
|
confdir='${prefix}/conf'
|
|
logdir='${prefix}/log'
|
|
datadir='${prefix}/data'
|
|
|
|
AM_INIT_AUTOMAKE(foreign)
|
|
|
|
# Set default language
|
|
AC_LANG_C
|
|
|
|
AC_PROG_CC
|
|
AC_PROG_CXX
|
|
AC_PROG_INSTALL
|
|
|
|
# Skip detection of Fortran
|
|
m4_undefine([AC_PROG_F77])
|
|
m4_defun([AC_PROG_F77],[])
|
|
AC_PROG_LIBTOOL
|
|
|
|
# Get version information
|
|
get_version="build/get-version.sh"
|
|
version_hdr="build/uni_version.h"
|
|
plugin_version_hdr="libs/mrcp-engine/include/mrcp_resource_plugin.h"
|
|
UNI_DOTTED_VERSION="`$get_version all $version_hdr UNI`"
|
|
UNI_LT_VERSION="-version-info `$get_version libtool $version_hdr UNI`"
|
|
PLUGIN_LT_VERSION="-version-info `$get_version libtool $plugin_version_hdr PLUGIN`"
|
|
|
|
AC_SUBST(UNI_DOTTED_VERSION)
|
|
AC_SUBST(UNI_LT_VERSION)
|
|
AC_SUBST(PLUGIN_LT_VERSION)
|
|
|
|
echo "UniMRCP Version: ${UNI_DOTTED_VERSION}"
|
|
|
|
# Check APR
|
|
UNIMRCP_CHECK_APR
|
|
UNIMRCP_CHECK_APU
|
|
|
|
# Check SOFIA
|
|
UNIMRCP_CHECK_SOFIA
|
|
|
|
|
|
|
|
AC_SUBST(ac_aux_dir)
|
|
AC_SUBST(ac_macro_dir)
|
|
AC_SUBST(plugindir)
|
|
AC_SUBST(confdir)
|
|
AC_SUBST(logdir)
|
|
|
|
AC_DEFUN([AX_COMPILER_VENDOR],
|
|
[
|
|
AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor,
|
|
[ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=unknown
|
|
# note: don't check for gcc first since some other compilers define __GNUC__
|
|
for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
|
|
vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[
|
|
#if !($vencpp)
|
|
thisisanerror;
|
|
#endif
|
|
])], [ax_cv_]_AC_LANG_ABBREV[_compiler_vendor=`echo $ventest | cut -d: -f1`; break])
|
|
done
|
|
])
|
|
])
|
|
|
|
AX_COMPILER_VENDOR
|
|
|
|
#Enable maintainer mode
|
|
AC_ARG_ENABLE(maintainer-mode,
|
|
[AC_HELP_STRING([--enable-maintainer-mode ],[turn on debugging and compile time warnings])],
|
|
[enable_maintainer_mode="$enableval"],
|
|
[enable_maintainer_mode="no"])
|
|
|
|
if test "${enable_maintainer_mode}" != "no"; then
|
|
CFLAGS="$CFLAGS -g"
|
|
if test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
|
CFLAGS="$CFLAGS -Wall -Werror"
|
|
fi
|
|
fi
|
|
|
|
#Enable test suites
|
|
AC_ARG_ENABLE(test-suites,
|
|
[AC_HELP_STRING([--enable-test-suites ],[build test suites])],
|
|
[enable_test_suites="$enableval"],
|
|
[enable_test_suites="no"])
|
|
|
|
AM_CONDITIONAL([TEST_SUITES],[test "${enable_test_suites}" != "no"])
|
|
|
|
|
|
### Plugins ###
|
|
|
|
#Enable demo synthesizer plugin
|
|
AC_ARG_ENABLE(demosynth-plugin,
|
|
[AC_HELP_STRING([--disable-demosynth-plugin ],[exclude demo synthesizer plugin from build])],
|
|
[enable_demosynth_plugin="$enableval"],
|
|
[enable_demosynth_plugin="yes"])
|
|
|
|
AM_CONDITIONAL([DEMOSYNTH_PLUGIN],[test "${enable_demosynth_plugin}" = "yes"])
|
|
|
|
|
|
#Enable demo recognizer plugin
|
|
AC_ARG_ENABLE(demorecog-plugin,
|
|
[AC_HELP_STRING([--disable-demorecog-plugin ],[exclude demo recognizer plugin from build])],
|
|
[enable_demorecog_plugin="$enableval"],
|
|
[enable_demorecog_plugin="yes"])
|
|
|
|
AM_CONDITIONAL([DEMORECOG_PLUGIN],[test "${enable_demorecog_plugin}" = "yes"])
|
|
|
|
|
|
#Enable Cepstral Swift plugin
|
|
AC_ARG_ENABLE(cepstral-plugin,
|
|
[AC_HELP_STRING([--disable-cepstral-plugin ],[exclude cepstral plugin from build])],
|
|
[enable_cepstral_plugin="$enableval"],
|
|
[enable_cepstral_plugin="yes"])
|
|
|
|
if test "${enable_cepstral_plugin}" != "no"; then
|
|
UNIMRCP_CHECK_SWIFT
|
|
fi
|
|
|
|
AM_CONDITIONAL([CEPSTRAL_PLUGIN],[test "${enable_cepstral_plugin}" = "yes" &&\
|
|
test "${found_swift}" = "yes"])
|
|
|
|
|
|
#Enable PocketSphinx plugin
|
|
AC_ARG_ENABLE(pocketsphinx-plugin,
|
|
[AC_HELP_STRING([--enable-pocketsphinx-plugin ],[enable pocketsphinx plugin])],
|
|
[enable_pocketsphinx_plugin="$enableval"],
|
|
[enable_pocketsphinx_plugin="no"])
|
|
|
|
if test "${enable_pocketsphinx_plugin}" != "no"; then
|
|
UNIMRCP_CHECK_SPHINXBASE
|
|
UNIMRCP_CHECK_POCKETSPHINX
|
|
fi
|
|
|
|
AM_CONDITIONAL([POCKETSPHINX_PLUGIN],[test "${enable_pocketsphinx_plugin}" = "yes" &&\
|
|
test "${found_pocketsphinx}" = "yes" &&\
|
|
test "${found_sphinxbase}" = "yes"])
|
|
|
|
|
|
#Enable Flite plugin
|
|
AC_ARG_ENABLE(flite-plugin,
|
|
[AC_HELP_STRING([--enable-flite-plugin ],[enable flite plugin])],
|
|
[enable_flite_plugin="$enableval"],
|
|
[enable_flite_plugin="no"])
|
|
|
|
if test "${enable_flite_plugin}" != "no"; then
|
|
UNIMRCP_CHECK_FLITE
|
|
fi
|
|
|
|
AM_CONDITIONAL([FLITE_PLUGIN],[test "${enable_flite_plugin}" = "yes" &&\
|
|
test "${found_flite}" = "yes"])
|
|
|
|
|
|
AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])
|
|
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
libs/Makefile
|
|
libs/apr-toolkit/Makefile
|
|
libs/mpf/Makefile
|
|
libs/mrcp/Makefile
|
|
libs/mrcp-signaling/Makefile
|
|
libs/mrcpv2-transport/Makefile
|
|
libs/mrcp-engine/Makefile
|
|
libs/mrcp-server/Makefile
|
|
libs/mrcp-client/Makefile
|
|
libs/uni-rtsp/Makefile
|
|
modules/Makefile
|
|
modules/mrcp-sofiasip/Makefile
|
|
modules/mrcp-unirtsp/Makefile
|
|
plugins/Makefile
|
|
plugins/mrcp-cepstral/Makefile
|
|
plugins/mrcp-pocketsphinx/Makefile
|
|
plugins/mrcp-flite/Makefile
|
|
plugins/demo-synth/Makefile
|
|
plugins/demo-recog/Makefile
|
|
platforms/Makefile
|
|
platforms/libunimrcp-server/Makefile
|
|
platforms/libunimrcp-client/Makefile
|
|
platforms/unimrcp-server/Makefile
|
|
platforms/unimrcp-client/Makefile
|
|
tests/Makefile
|
|
tests/apttest/Makefile
|
|
tests/mpftest/Makefile
|
|
tests/mrcptest/Makefile
|
|
tests/rtsptest/Makefile
|
|
tests/strtablegen/Makefile
|
|
build/Makefile
|
|
build/pkgconfig/Makefile
|
|
build/pkgconfig/unimrcpclient.pc
|
|
build/pkgconfig/unimrcpserver.pc
|
|
build/pkgconfig/unimrcpplugin.pc
|
|
])
|
|
|
|
AC_OUTPUT
|
|
|
|
AC_MSG_NOTICE
|
|
AC_MSG_NOTICE([Report:])
|
|
AC_MSG_NOTICE([ UniMRCP: $UNI_DOTTED_VERSION])
|
|
AC_MSG_NOTICE([ APR: $apr_version])
|
|
AC_MSG_NOTICE([ APR-Util: $apu_version])
|
|
AC_MSG_NOTICE([ Sofia-SIP: $sofia_version])
|
|
AC_MSG_NOTICE([Plugins:])
|
|
AC_MSG_NOTICE([ Demo Synthesizer: $enable_demosynth_plugin])
|
|
AC_MSG_NOTICE([ Demo Recognizer: $enable_demorecog_plugin])
|
|
AC_MSG_NOTICE([ Cepstral: $enable_cepstral_plugin])
|
|
AC_MSG_NOTICE([ PocketSphinx: $enable_pocketsphinx_plugin])
|
|
AC_MSG_NOTICE([ Flite: $enable_flite_plugin])
|