Commit d48032f7 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

Add configure check for sapi.h

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7136d004
......@@ -3250,6 +3250,14 @@ AM_CONDITIONAL([HAVE_FONTCONFIG], [test "${have_fontconfig}" = "yes"])
AM_CONDITIONAL([HAVE_FRIBIDI], [test "${have_fribidi}" = "yes"])
AM_CONDITIONAL([HAVE_HARFBUZZ], [test "${have_harfbuzz}" = "yes"])
dnl
dnl SAPI (text to Speech renderer for Windows)
dnl
AC_CHECK_HEADERS(sapi.h, [
have_sapi="yes"
],[AC_MSG_WARN([sapi.h not found. Text to Speech renderer for Windows disabled])])
AM_CONDITIONAL([HAVE_SAPI], [test "${have_sapi}" = "yes"])
dnl
dnl QuartzText vout module (iOS/Mac OS)
......
......@@ -42,11 +42,13 @@ libnsspeechsynthesizer_plugin_la_LDFLAGS = -Wl,-framework,Cocoa
text_LTLIBRARIES += libnsspeechsynthesizer_plugin.la
endif
if HAVE_SAPI
libsapi_plugin_la_SOURCES = text_renderer/sapi.cpp
libsapi_plugin_la_LIBADD = -lole32
if HAVE_WIN32
text_LTLIBRARIES += libsapi_plugin.la
endif
endif
libsvg_plugin_la_SOURCES = text_renderer/svg.c
libsvg_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(SVG_CFLAGS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment