Files
espeak-ng/configure.ac
T

78 lines
2.0 KiB
Plaintext

AC_PREREQ([2.65])
AC_INIT([eSpeak], [1.46], [https://github.com/rhdunn/espeak/issues], [espeak], [https://github.com/rhdunn/espeak])
AM_INIT_AUTOMAKE()
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES])
AM_SILENT_RULES([yes])
AC_CONFIG_SRCDIR([src])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
dnl ================================================================
dnl Program checks.
dnl ================================================================
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
dnl ================================================================
dnl getopt checks.
dnl ================================================================
AC_CHECK_HEADERS([getopt.h])
AC_CHECK_FUNCS([getopt_long])
dnl ================================================================
dnl PulseAudio checks.
dnl ================================================================
AC_ARG_WITH([pulseaudio],
[AS_HELP_STRING([--with-pulseaudio], [use the pulseaudio library for audio output @<:@default=yes@:>@])],
[])
if test "$with_pulseaudio" = "no"; then
echo "Disabling pulseaudio output support via pulseaudio"
have_pulseaudio=no
else
PKG_CHECK_MODULES(PULSEAUDIO, [libpulse >= 0.9],
[
have_pulseaudio=yes
],[
have_pulseaudio=no
])
fi
dnl ================================================================
dnl Audio checks.
dnl ================================================================
if test "$have_pulseaudio" = yes ; then
AUDIO=pulseaudio
else
AUDIO=disabled
fi
AC_SUBST(AUDIO)
dnl ================================================================
dnl Generate output.
dnl ================================================================
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
AC_MSG_NOTICE([
Configuration for eSpeak complete.
Source code location: ${srcdir}
Compiler: ${CXX}
Compiler flags: ${CXXFLAGS}
pulseaudio: ${have_pulseaudio}
audio configuration: ${AUDIO}
])