autotools: add support for disabling MBROLA (--without-mbrola/--with-mbrola=no)

This commit is contained in:
Reece H. Dunn
2013-09-16 10:37:45 +01:00
parent a725bba818
commit 83df50a40f
4 changed files with 19 additions and 6 deletions
+13 -1
View File
@@ -138,7 +138,18 @@ else
have_klatt=yes
fi
AM_CONDITIONAL(OPT_KLATT, [test x"$have_klatt" = xyes])
AC_ARG_WITH([mbrola],
[AS_HELP_STRING([--with-mbrola], [enable the MBROLA speech synthesizer @<:@default=yes@:>@])],
[])
if test "$with_mbrola" = "no" ; then
have_mbrola=no
else
have_mbrola=yes
fi
AM_CONDITIONAL(OPT_KLATT, [test x"$have_klatt" = xyes])
AM_CONDITIONAL(OPT_MBROLA, [test x"$have_mbrola" = xyes])
dnl ================================================================
dnl wxWidgets checks.
@@ -179,4 +190,5 @@ AC_MSG_NOTICE([
audio configuration: ${AUDIO}
Klatt: ${have_klatt}
MBROLA: ${have_mbrola}
])