"Fossies" - the Fresh Open Source Software Archive

Member "bayonne-1.2.16/m4/ost_flite.m4" (10 Jun 2003, 2778 Bytes) of package /linux/misc/old/bayonne-1.2.16.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 dnl Copyright (C) 1999-2001 Open Source Telecom Corporation.
    2 dnl  
    3 dnl This program is free software; you can redistribute it and/or modify
    4 dnl it under the terms of the GNU General Public License as published by
    5 dnl the Free Software Foundation; either version 2 of the License, or
    6 dnl (at your option) any later version.
    7 dnl 
    8 dnl This program is distributed in the hope that it will be useful,
    9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
   10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   11 dnl GNU General Public License for more details.
   12 dnl 
   13 dnl You should have received a copy of the GNU General Public License
   14 dnl along with this program; if not, write to the Free Software 
   15 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   16 dnl 
   17 dnl As a special exception to the GNU General Public License, if you 
   18 dnl distribute this file as part of a program that contains a configuration 
   19 dnl script generated by Autoconf, you may include it under the same 
   20 dnl distribution terms that you use for the rest of that program.
   21 
   22 AC_DEFUN(OST_FLITE,[
   23 	ost_cv_flite_tts=false
   24 	AC_ARG_WITH(flite,   [--with-flite=DIR        Flite TTS subsystem],
   25 	[
   26 	FLITE_LIBS=""
   27 	FLITE_FLAGS=""
   28 	if test "$withval" == "" ; then
   29 		flite_libprefix="/usr/lib/flite"	
   30 		FLITE_FLAGS="-I/usr/include/flite"
   31 	else
   32 		flite_libprefix="$withval/lib"
   33 		FLITE_FLAGS="-I$withval/include"
   34 	fi
   35 	AC_MSG_CHECKING([for flite ($flite_libprefix)])
   36 	if test -d "$flite_libprefix" ; then
   37 		AC_MSG_RESULT(found)
   38 		ost_cv_flite_tts=true
   39 		AC_DEFINE(HAVE_FLITE, [1], [cmu flight])
   40 		FLITE_LIBS="-L$flite_libprefix -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite -lm"
   41 	else
   42 		AC_MSG_RESULT(missing)
   43 	fi	
   44 	AC_SUBST(FLITE_LIBS)
   45 	AC_SUBST(FLITE_FLAGS)
   46 	])
   47 
   48 	flite_libprefix="/opt/theta/lib"
   49 	FLITE_FLAGS="-I/opt/theta/include -DTHETA_VOICES=/opt/theta/voices"
   50         AC_ARG_WITH(theta,   [--with-theta=DIR        Theta TTS subsystem],
   51         [
   52         FLITE_FLAGS=""
   53         if test "$withval" == "" ; then
   54                 flite_libprefix="/opt/theta"
   55                 FLITE_FLAGS="-I/opt/theta/include -DTHETA_VOICES=/opt/theta/voices"
   56         else
   57                 flite_libprefix="$withval/lib"
   58                 FLITE_FLAGS="-I$withval/include -DTHETA_VOICES=$withval/voices"
   59         fi
   60 	])
   61         AC_MSG_CHECKING([for theta ($flite_libprefix)])
   62         if test -d "$flite_libprefix" ; then
   63                 AC_MSG_RESULT(found)
   64                 ost_cv_flite_tts=true
   65                 AC_DEFINE(HAVE_FLITE, [2])
   66                 FLITE_LIBS="-L$flite_libprefix -ltheta"
   67 		FLITE_FLAGS="$FLITE_FLAGS -DTHETA_PREFIX=$flite_libprefix"
   68         else
   69                 AC_MSG_RESULT(missing)
   70         fi
   71         AC_SUBST(FLITE_LIBS)
   72         AC_SUBST(FLITE_FLAGS)
   73 ])
   74 
   75 
   76