aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-07-23 19:36:26 -0700
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commit1795206289c0d3c3dd7ad24c8f19ee3700b2ac83 (patch)
tree1032e8f9fd746b8d0b6cd85947e4a13d109b69e5 /configure
parent58065ceacda18dbae0e72d19ece6438ab06a332b (diff)
downloadscummvm-rg350-1795206289c0d3c3dd7ad24c8f19ee3700b2ac83.tar.gz
scummvm-rg350-1795206289c0d3c3dd7ad24c8f19ee3700b2ac83.tar.bz2
scummvm-rg350-1795206289c0d3c3dd7ad24c8f19ee3700b2ac83.zip
TTS: Add checks to configure.
Check for presence of required libraries Disable automatic build of TTS on MinGW32
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure29
1 files changed, 29 insertions, 0 deletions
diff --git a/configure b/configure
index 0a13ee0684..f1907427a8 100755
--- a/configure
+++ b/configure
@@ -4198,6 +4198,35 @@ EOF
fi
define_in_config_if_yes "$_ogg" 'USE_OGG'
echo "$_ogg"
+#
+# Check for TTS
+#
+echocheck "TTS libraries"
+if test "$_tts" = auto ; then
+ _tts=no
+ case $_host_os in
+ mingw*)
+ cat > $TMPC << EOF
+#include <windows.h>
+#include <Servprov.h>
+#include <sapi.h>
+int main(void) { return 0; }
+EOF
+ cc_check -lsapi -lole32 && _tts=yes
+ if test "$_host_os" = "mingw32" ; then
+ _tts=no
+ fi
+ ;;
+ linux*)
+ cat > $TMPC << EOF
+#include <speech-dispatcher/libspeechd.h>
+int main(void) { return 0; }
+EOF
+ cc_check -lspeechd && _tts=yes
+ ;;
+ esac
+fi
+echo "$_tts"
#
# Check for Vorbis