⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 WinCE平台上的语音识别程序
💻 IN
字号:
dnl Welcome to the Sphinx automated build system.dnl try not to hurt yourself ;)AC_INIT(pocketsphinx, 0.3)AM_INIT_AUTOMAKE([no-define dist-bzip2 dist-zip])CFLAGS=${CFLAGS:--g -O2 -Wall}AC_CANONICAL_HOSTdnldnl Set proper compiler flags and such for some platformsdnlcase $host in     arm-wince-pe*)	CFLAGS=${CFLAGS:--march=armv4 -mapcs-32 -malignment-traps}	LIBS='-lc -lgcc -lwinsock -lcoredll'	CFLAGS="$CFLAGS -DNEWLIB -DSARM -DWIN32 -DGNUWINCE"	;;     *uclinux*)	# uClinux needs special "flat" binaries	LDFLAGS="$LDFLAGS -Wl,-elf2flt"	;;     *)     ;;esac     AC_ISC_POSIXAC_PROG_CCAM_PROG_CC_STDCAM_PROG_ASAC_HEADER_STDCAC_WORDS_BIGENDIANAC_TYPE_SIGNALAC_CHECK_TYPES(long long)AC_CHECK_SIZEOF(long long)dnldnl Get SphinxBase source from command line if givendnlAC_ARG_WITH(sphinxbase,	AS_HELP_STRING([--with-sphinxbase=DIRECTORY],			[look for SphinxBase source files in DIRECTORY]),			sphinxbase=$withval)dnldnl Get SphinxBase build directory from command line if givendnlAC_ARG_WITH(sphinxbase-build,	AS_HELP_STRING([--with-sphinxbase-build=DIRECTORY],			[look for SphinxBase object files in DIRECTORY]),	sphinxbasebuild=$withval)dnldnl Check for installed SphinxBasednl FIXME: How do we find the installed headers robustly?dnlAC_CHECK_HEADER(sphinxbase/sphinx_config.h,CPPFLAGS="-I/usr/include/sphinxbase -I/usr/local/include/sphinxbase",[if test x$sphinxbase = x; then   # Look for sphinxbase in the parent directory   for sb in ../sphinxbase*; do       AC_MSG_CHECKING([for sphinxbase in $sb])       if test -f "$sb/include/prim_type.h"; then          sphinxbase="`pwd`/$sb"	  AC_MSG_RESULT(yes)       else	  AC_MSG_RESULT(no)       fi   donefi])dnldnl Now verify SphinxBase if defineddnl Sadly, this doesn't work when cross-compiling (for some dumb reason...)dnl: ${sphinxbasebuild=$sphinxbase}if test x$sphinxbase != x && test x$cross_compiling = xyes; then   CPPFLAGS="-I$sphinxbase/include -I$sphinxbasebuild/include $CPPFLAGS"   LDFLAGS="$LDFLAGS -L$sphinxbasebuild/src/libsphinxfe -L$sphinxbasebuild/src/libsphinxfeat \		     -L$sphinxbasebuild/src/libsphinxutil -L$sphinxbasebuild/src/libsphinxad"fiif test x$sphinxbase != x && test x$cross_compiling != xyes; then   AC_CHECK_FILE($sphinxbase/include/prim_type.h,CPPFLAGS="-I$sphinxbase/include $CPPFLAGS",   AC_ERROR([SphinxBase headers not found in $sphinxbase.  Please use the--with-sphinxbase option to `configure' to specify the location ofSphinxBase.  Run $0 --help for more information.]))fiif test x$sphinxbasebuild != x && test x$cross_compiling != xyes; then   AC_CHECK_FILE($sphinxbasebuild/src/libsphinxutil/libsphinxutil.la,[CPPFLAGS="-I$sphinxbasebuild/include $CPPFLAGS"LDFLAGS="$LDFLAGS -L$sphinxbasebuild/src/libsphinxfe -L$sphinxbasebuild/src/libsphinxfeat \		  -L$sphinxbasebuild/src/libsphinxutil -L$sphinxbasebuild/src/libsphinxad"],		   AC_ERROR([SphinxBase libraries were not found in $sphinxbasebuild.Use the --with-sphinxbase-build option to `configure' to specifythe build directory for SphinxBase.  Run $0 --help for more information.]))fiAC_PATH_PROG(PERL,perl)AC_PATH_PROG(CSH,csh)AC_SUBST(PERL)AC_SUBST(CSH)AM_PROG_LIBTOOLAC_OUTPUT([Makefileinclude/Makefilesrc/Makefilesrc/libpocketsphinx/Makefilesrc/programs/Makefilemodel/Makefilemodel/hmm/Makefilemodel/hmm/wsj0/Makefilemodel/hmm/tidigits/Makefilemodel/lm/Makefilemodel/lm/turtle/Makefilemodel/lm/swb/Makefilemodel/lm/tidigits/Makefilescripts/Makefilescripts/pocketsphinx_testscripts/pocketsphinx_swbscripts/pocketsphinx_tidigitstest/Makefiletest/testfuncs.shtest/unit/Makefiletest/regression/Makefile])chmod +x scripts/pocketsphinx_test

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -