mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-17 10:32:15 +00:00
autotools: support optionally building the extended Russian and Chinese dictionaries
This commit is contained in:
@@ -173,6 +173,44 @@ AM_CONDITIONAL(OPT_MBROLA, [test x"$have_mbrola" = xyes])
|
||||
AM_CONDITIONAL(OPT_SONIC, [test x"$have_sonic" = xyes])
|
||||
AM_CONDITIONAL(OPT_ASYNC, [test x"$have_async" = xyes])
|
||||
|
||||
dnl ================================================================
|
||||
dnl Extended dictionary checks.
|
||||
dnl ================================================================
|
||||
|
||||
AC_ARG_WITH([extdict-ru],
|
||||
[AS_HELP_STRING([--with-extdict-ru], [use the extended Russian Dictionary file @<:@default=no@:>@])],
|
||||
[])
|
||||
|
||||
if test "$with_extdict_ru" = "yes" ; then
|
||||
have_extdict_ru=yes
|
||||
else
|
||||
have_extdict_ru=no
|
||||
fi
|
||||
|
||||
AC_ARG_WITH([extdict-zh],
|
||||
[AS_HELP_STRING([--with-extdict-zh], [use the extended Mandarin Chinese Dictionary file @<:@default=no@:>@])],
|
||||
[])
|
||||
|
||||
if test "$with_extdict_zh" = "yes" ; then
|
||||
have_extdict_zh=yes
|
||||
else
|
||||
have_extdict_zh=no
|
||||
fi
|
||||
|
||||
AC_ARG_WITH([extdict-zhy],
|
||||
[AS_HELP_STRING([--with-extdict-zhy], [use the extended Cantonese Chinese Dictionary file @<:@default=no@:>@])],
|
||||
[])
|
||||
|
||||
if test "$with_extdict_zhy" = "yes" ; then
|
||||
have_extdict_zhy=yes
|
||||
else
|
||||
have_extdict_zhy=no
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_RU_EXTENDED_DICTIONARY, [test x"$have_extdict_ru" = xyes])
|
||||
AM_CONDITIONAL(HAVE_ZH_EXTENDED_DICTIONARY, [test x"$have_extdict_zh" = xyes])
|
||||
AM_CONDITIONAL(HAVE_ZHY_EXTENDED_DICTIONARY, [test x"$have_extdict_zhy" = xyes])
|
||||
|
||||
dnl ================================================================
|
||||
dnl wxWidgets checks.
|
||||
dnl ================================================================
|
||||
@@ -215,4 +253,9 @@ AC_MSG_NOTICE([
|
||||
MBROLA: ${have_mbrola}
|
||||
Sonic: ${have_sonic}
|
||||
Async: ${have_async}
|
||||
|
||||
Extended Dictionaries:
|
||||
Russian: ${have_extdict_ru}
|
||||
Chinese (Mandarin): ${have_extdict_zh}
|
||||
Chinese (Cantonese): ${have_extdict_zhy}
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user