eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.ac 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. AC_PREREQ([2.63])
  2. AC_INIT([eSpeak], [1.46], [https://github.com/rhdunn/espeak/issues], [espeak], [https://github.com/rhdunn/espeak])
  3. AM_INIT_AUTOMAKE()
  4. m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES])
  5. AM_SILENT_RULES([yes])
  6. AC_CONFIG_SRCDIR([src])
  7. AC_CONFIG_MACRO_DIR([m4])
  8. AC_CONFIG_HEADERS([config.h])
  9. dnl ================================================================
  10. dnl Program checks.
  11. dnl ================================================================
  12. AC_PROG_CXX
  13. AC_PROG_MAKE_SET
  14. AC_PROG_LIBTOOL
  15. AC_CHECK_PROG(NDKBUILD_CHECK,[ndk-build],yes)
  16. if test x"$NDKBUILD_CHECK" != xyes ; then
  17. AC_MSG_ERROR([Please ensure that the Android NDK is installed and ndk-build is usable from the command line.])
  18. fi
  19. dnl ================================================================
  20. dnl getopt checks.
  21. dnl ================================================================
  22. AC_CHECK_HEADERS([getopt.h])
  23. AC_CHECK_FUNCS([getopt_long])
  24. dnl ================================================================
  25. dnl PulseAudio checks.
  26. dnl ================================================================
  27. AC_ARG_WITH([pulseaudio],
  28. [AS_HELP_STRING([--with-pulseaudio], [use the pulseaudio library for audio output @<:@default=yes@:>@])],
  29. [])
  30. if test "$with_pulseaudio" = "no"; then
  31. echo "Disabling pulseaudio output support via pulseaudio"
  32. have_pulseaudio=no
  33. else
  34. PKG_CHECK_MODULES(PULSEAUDIO, [libpulse >= 0.9],
  35. [
  36. have_pulseaudio=yes
  37. ],[
  38. have_pulseaudio=no
  39. ])
  40. fi
  41. dnl ================================================================
  42. dnl PortAudio checks.
  43. dnl ================================================================
  44. AC_ARG_WITH([portaudio],
  45. [AS_HELP_STRING([--with-portaudio], [use the portaudio library for audio output @<:@default=yes@:>@])],
  46. [])
  47. if test "$with_portaudio" = "no"; then
  48. echo "Disabling portaudio output support via portaudio"
  49. have_portaudio=no
  50. else
  51. AC_CHECK_HEADERS([portaudio.h],
  52. [
  53. have_portaudio=yes
  54. ],[
  55. have_portaudio=no
  56. ])
  57. fi
  58. dnl ================================================================
  59. dnl Audio checks.
  60. dnl ================================================================
  61. if test "$have_portaudio" = yes ; then
  62. if test "$have_pulseaudio" = yes ; then
  63. PKG_CHECK_MODULES(PULSEAUDIO_SIMPLE, [libpulse-simple >= 0.9],
  64. [
  65. have_pulseaudio=yes
  66. AUDIO=runtime
  67. ],[
  68. have_pulseaudio=no
  69. AUDIO=portaudio
  70. ])
  71. else
  72. AUDIO=portaudio
  73. fi
  74. elif test "$have_pulseaudio" = yes ; then
  75. AUDIO=pulseaudio
  76. else
  77. AUDIO=disabled
  78. fi
  79. AC_SUBST(AUDIO)
  80. AM_CONDITIONAL(AUDIO_RUNTIME, [test x"$AUDIO" = xruntime])
  81. AM_CONDITIONAL(AUDIO_PULSEAUDIO, [test x"$AUDIO" = xpulseaudio])
  82. AM_CONDITIONAL(AUDIO_PORTAUDIO, [test x"$AUDIO" = xportaudio])
  83. AM_CONDITIONAL(AUDIO_PORTAUDIO0, [test x"$AUDIO" = xportaudio0])
  84. AM_CONDITIONAL(AUDIO_PORTAUDIO2, [test x"$AUDIO" = xportaudio2])
  85. AM_CONDITIONAL(AUDIO_SADA, [test x"$AUDIO" = xsada])
  86. dnl ================================================================
  87. dnl wxWidgets checks.
  88. dnl ================================================================
  89. AC_CHECK_PROG(WXCONFIG_CHECK,wx-config,yes)
  90. if test x"$WXCONFIG_CHECK" != x"yes" ; then
  91. AC_MSG_ERROR([Please install wxWidgets which is needed for espeakedit.])
  92. fi
  93. WX_LIBS=`wx-config --libs`
  94. WX_CXXFLAGS=`wx-config --cxxflags`
  95. WX_VERSION=`wx-config --version`
  96. AC_SUBST(WX_LIBS)
  97. AC_SUBST(WX_CXXFLAGS)
  98. dnl ================================================================
  99. dnl Generate output.
  100. dnl ================================================================
  101. AC_CONFIG_FILES([Makefile src/Makefile])
  102. AC_OUTPUT
  103. AC_MSG_NOTICE([
  104. Configuration for eSpeak complete.
  105. Source code location: ${srcdir}
  106. Compiler: ${CXX}
  107. Compiler flags: ${CXXFLAGS}
  108. wxWidgets: ${WX_VERSION}
  109. pulseaudio: ${have_pulseaudio}
  110. portaudio: ${have_portaudio}
  111. audio configuration: ${AUDIO}
  112. ])