Skip to content

Commit

Permalink
Merge branch 'master' of github.com:natmchugh/festival
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel McHugh committed Mar 3, 2012
2 parents 8b1209b + bc89205 commit d4fa5ff
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,23 @@ dnl hmmm sometimes its /include/festival sometimes it /include
done
fi
if test "$PHP_SPEECH_TOOLS_DIR" != "no" && test "$PHP_SPEECH_TOOLS_DIR" != "yes"; then
AC_MSG_CHECKING([path given $PHP_SPEECH_TOOLS_DIR])
if test -r $PHP_SPEECH_TOOLS_DIR/include/EST.h; then
EST_DIR=$PHP_SPEECH_TOOLS_DIR
fi
else
AC_MSG_CHECKING([for EST headers])
for i in /usr /usr/lib /usr/lib/speech_tools ; do
for i in /usr /usr/lib ; do
AC_MSG_CHECKING([looking in $i])
if test -r $i/include/EST.h; then
EST_DIR=$i
EST_INC_DIR=$EST_DIR/include
AC_MSG_RESULT(found EST in $i)
elif test -r $i/include/speech_tools/EST.h; then
EST_DIR=$i
EST_INC_DIR=$EST_DIR/include/speech_tools
AC_MSG_RESULT(found EST in $i)

fi
done
fi
Expand All @@ -49,7 +57,7 @@ fi
if test -z "$EST_DIR"; then
AC_MSG_ERROR(EST.h not found)
else
PHP_ADD_INCLUDE($EST_DIR/include)
PHP_ADD_INCLUDE($EST_INC_DIR)
PHP_ADD_LIBRARY_WITH_PATH(estbase, $EST_DIR/lib, FESTIVAL_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(estools, $EST_DIR/lib, FESTIVAL_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(eststring, $EST_DIR/lib, FESTIVAL_SHARED_LIBADD)
Expand All @@ -58,4 +66,4 @@ fi
PHP_SUBST(FESTIVAL_SHARED_LIBADD)
PHP_REQUIRE_CXX()
PHP_ADD_LIBRARY(stdc++, "", FESTIVAL_SHARED_LIBADD)
PHP_NEW_EXTENSION(festival, festival_php.cpp, $ext_shared)
PHP_NEW_EXTENSION(festival, festival_php.cpp, $ext_shared)

0 comments on commit d4fa5ff

Please sign in to comment.