[vlc-devel] [PATCH] configure: disable SAPI if sapi.h cannot be used

Steve Lhomme robux4 at gmail.com
Tue Jan 26 16:21:11 CET 2016


From: Steve Lhomme <slhomme at matroska.org>

for Winstore apps the code is hidden
---
 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1a26bf1..ba5d910 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3273,10 +3273,10 @@ AM_CONDITIONAL([HAVE_HARFBUZZ], [test "${have_harfbuzz}" = "yes"])
 dnl
 dnl SAPI (text to Speech renderer for Windows)
 dnl
-AC_CHECK_HEADERS(sapi.h, [
+AC_CHECK_TYPES([ISpObjectToken],[
               have_sapi="yes"
-            ],[AC_MSG_WARN([sapi.h not found. Text to Speech renderer for Windows disabled])])
-
+            ],[AC_MSG_WARN([sapi.h not found. Text to Speech renderer for Windows disabled])],
+              [#include <sapi.h>])
 AM_CONDITIONAL([HAVE_SAPI], [test "${have_sapi}" = "yes"])
 
 dnl
-- 
2.6.1.windows.1



More information about the vlc-devel mailing list