[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] build system cleanup
From: |
Trevor Saunders |
Subject: |
[PATCH 1/2] build system cleanup |
Date: |
Thu, 2 Sep 2010 19:00:18 -0400 |
From: William Hubbs <address@hidden>
To: address@hidden
rename configure.in to configure.ac
This commit renames configure.in to configure.ac, which brings it in
line with current autotools recommendations.
updated extra_dist in main makefile
NEWS, TODO, AUTHORS, COPYING, INSTALL and README are automatically
distributed and do not need to be listed. The intl directory should be
listed without the wildcards since everything in it is being
distributed.
---
Makefile.am | 2 +-
configure.ac | 403 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 403 ----------------------------------------------------------
3 files changed, 404 insertions(+), 404 deletions(-)
create mode 100644 configure.ac
delete mode 100644 configure.in
diff --git a/Makefile.am b/Makefile.am
index 5353ce9..9b06be3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,6 +2,6 @@
SUBDIRS= src config doc
-EXTRA_DIST= ChangeLog NEWS TODO AUTHORS COPYING INSTALL README intl/*.c
intl/*.h build.sh version.sh
+EXTRA_DIST= intl build.sh version.sh
MAINTAINERCLEANFILES=configure
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..ca6c49b
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,403 @@
+
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(configure.in)
+
+AC_LANG(C)
+
+dnl progs
+AC_PROG_CC
+
+dnl info
+AM_INIT_AUTOMAKE("speech-dispatcher", "`cat version.sh|grep '^VERSION'|awk -F=
'{print $2}'`")
+
+AM_CONFIG_HEADER(config.h)
+
+# Command-line arguments.
+AC_ARG_ENABLE([python],
+ [AS_HELP_STRING([--disable-python], [do not install python bindings])],
+ [],
+ [enable_python=check])
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS(limits.h sys/ioctl.h sys/time.h unistd.h)
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_HEADER_TIME
+
+# Python support
+# Python 2.4 or greater should be acceptable.
+AS_IF([test $enable_python != "no"],
+ [AM_PATH_PYTHON([2.4],
+ [enable_python=yes],
+ [AS_IF([test $enable_python = "yes"],
+ [AC_MSG_FAILURE([python is not available])])])])
+AM_CONDITIONAL([HAVE_PYTHON], [test "$enable_python" = 'yes'])
+
+dnl Checks for library functions.
+AC_PROG_GCC_TRADITIONAL
+AC_CHECK_FUNCS(select socket)
+
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+
+AC_PROG_LIBTOOL
+
+# by Marcelo Magallon <mmagallo at efis.ucr.ac.cr>
+# Turn around -rpath problem with libtool
+# This define should be improbable enough to not conflict with anything
+case ${host} in
+ *-pc-linux-gnu)
+ AC_MSG_RESULT([Fixing libtool for -rpath problems.])
+ sed < libtool > libtool-2 \
+ 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec="
-D__LIBTOOL_IS_A_FOOL__ "/'
+ mv libtool-2 libtool
+ chmod 755 libtool
+ ;;
+esac
+
+dnl Checks for libraries.
+AC_CHECK_LIB(m,
+ sqrt, echo "",
+ echo "*** Required math library missing! See INSTALL .";exit 1)
+AC_CHECK_LIB(dl,
+ main, echo "",
+ echo "*** Required dl library missing! See INSTALL .";exit 1)
+AC_CHECK_LIB(dotconf,
+ main, echo "",
+ echo "*** Required DotConf library missing! See INSTALL .";exit 1)
+AC_CHECK_LIB(glib-2.0,
+ g_list_append, echo "",
+ echo "*** Required Glib-2.0 library missing! See INSTALL .";exit 1)
+AC_CHECK_LIB(pthread,
+ pthread_create, echo "",
+ echo "*** Required pthread library missing! See INSTALL .";exit 1)
+
+dnl Check for libsndfile.
+PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
+
+AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile},
+ [Set to 1 if you have libsndfile.])
+
+AC_SUBST(SNDFILE_CFLAGS)
+AC_SUBST(SNDFILE_LIBS)
+
+dnl Check for Flite (currently required)
+AC_CHECK_LIB(flite,
+ flite_init, echo "",
+ echo "",
+ -lm)
+
+AC_CHECK_LIB(flite_cmulex,
+ cmu_lex_init, echo "",
+ echo "",
+ -lflite -lm)
+
+AC_CHECK_LIB(flite_usenglish,
+ usenglish_init, echo "",
+ echo "",
+ -lflite -lm)
+
+flite_basic="-lflite_cmulex -lflite_usenglish -lflite -lm";
+
+AC_CHECK_LIB(flite_cmu_us_kal16,
+ register_cmu_us_kal,
flite_ok="true";flite_kal="-lflite_cmu_us_kal16";echo "16-bit Kal Flite voice
found. Flite support enabled.",
+ AC_CHECK_LIB(flite_cmu_us_kal16,
+ register_cmu_us_kal16,
+ flite_ok="true";
+ flite_kal="-lflite_cmu_us_kal16";
+ echo "16-bit Kal Flite voice found. Flite support enabled.";
+ AC_DEFINE([HAVE_REGISTER_CMU_US_KAL16], 1,
+ [Use cmu_register_us_kal16 to register the 16-bit
voice.]),
+ AC_CHECK_LIB(flite_cmu_us_kal,
+ register_cmu_us_kal,
flite_ok="true";flite_kal="-lflite_cmu_us_kal";
+ echo "8-bit Kal Flite voice found. Flite support
enabled.",
+ flite_ok="false"; echo "Flite libraries missing.
Compiling without Flite support!",
+ $flite_basic),
+ $flite_basic),
+ $flite_basic)
+
+AC_SUBST(flite_basic)
+AC_SUBST(flite_kal)
+
+AC_ARG_WITH(flite, AS_HELP_STRING(--with-flite, Compile with Festival Lite
(Flite) support),
+ if test $withval = "no"; then
+ echo "Forced compilation without Flite support.";
+ flite_ok="false";
+ else
+ if test $flite_ok = "false"; then
+ echo "Flite support is not available. Sorry."; exit 1;
+ fi
+ fi
+ echo "")
+
+AM_CONDITIONAL(flite_support, test $flite_ok = "true")
+
+dnl Check for IBM TTS
+AC_CHECK_LIB(ibmeci,
+ eciStop,
+ ibmtts_ok="true";ibmtts_include="-I/opt/IBM/ibmtts/inc/"; echo
"Compiling with IBM TTS support.",
+ ibmtts_ok="false";ibmtts_include=""; echo "*** IBM TTS ECI library
missing. Compiling without IBM TTS support! See INSTALL.";,
+ -libmeci)
+
+AC_ARG_WITH(ibmtts, AS_HELP_STRING(--with-ibmtts, Compile with IBM TTS
support),
+ if test $withval = "no"; then
+ echo "Forced compilation without IBMTTS support.";
+ ibmtts_ok="false";
+ else
+ if test $ibmtts_ok = "false"; then
+ echo "IBM TTS support is not available. Sorry."; exit 1;
+ fi
+ fi
+ echo "")
+
+AM_CONDITIONAL(ibmtts_support, test $ibmtts_ok = "true")
+
+AC_SUBST(ibmtts_include)
+
+# Additional library check added by Willie Walker to account
+# for how the SunStudio CC compiler works.
+#
+dnl check for espeak support
+if test "$GCC" = yes; then
+ EXTRA_ESPEAK_LIBS="-lpthread -lm"
+else
+ EXTRA_ESPEAK_LIBS="-lpthread -lm -lCstd -lCrun"
+fi
+AC_SUBST(EXTRA_ESPEAK_LIBS)
+
+AC_CHECK_LIB(espeak,
+espeak_Synth,
+ espeak_ok="true"; echo "Compiling with espeak support.",
+ espeak_ok="false"; echo "Espeak not found.",
+ $EXTRA_ESPEAK_LIBS)
+
+AC_ARG_WITH(espeak, AS_HELP_STRING(--with-espeak, Compile with espeak support),
+ if test $withval = "no"; then
+ echo "Forced compilation without espeak support.";
+ espeak_ok="false";
+ else
+ if test $espeak_ok = "false"; then
+ echo "Espeak support is not available. Sorry."; exit 1;
+ fi
+ fi
+ echo "")
+
+AM_CONDITIONAL(espeak_support, test $espeak_ok = "true")
+
+dnl check for dumbtts support
+AC_CHECK_LIB(dumbtts,
+ dumbtts_TTSInit,
+ ivona_ok="true"; echo "Compiling with Ivona support.";,
+ ivona_ok="false"; echo "Dumbtts library not found. Not installing
Ivona.";,
+ -ldumbtts)
+
+AC_ARG_WITH(ivona, AS_HELP_STRING(--with-ivona, Compile with ivona support),
+ if test $withval = "no"; then
+ echo "Forced compilation without ivona support.";
+ ivona_ok="false";
+ else
+ if test $ivona_ok = "false"; then
+ echo "Ivona support is not available. Sorry."; exit 1;
+ fi
+ fi
+ echo "")
+
+AM_CONDITIONAL(ivona_support, test $ivona_ok = "true")
+
+STATIC_AUDIO_PLUGINS_LIST=""
+SPD_AUDIO_LIBS=
+
+AC_CHECK_LIB(audio,
+ AuOpenServer,
+ nas_aud="true";echo "Compiling with NAS support.";,
+ nas_aud="false";echo "*** NAS Audio library missing. Compiling without
NAS support! See INSTALL.";,
+ -L/usr/X11R6/lib -lXau)
+
+AC_ARG_WITH(nas, AS_HELP_STRING(--with-nas, Compile with Network Audio System
(NAS) support),
+ if test $withval = "no"; then
+ echo "Forced compilation without NAS support.";
+ nas_aud="false";
+ else
+ if test $nas_aud = "false"; then
+ echo "NAS support is not available. Sorry."; exit 1;
+ fi
+ fi
+ echo "")
+
+AM_CONDITIONAL(nas_support, test $nas_aud = "true")
+if test $nas_aud = "true"; then
+ STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST nas";
+ SPD_AUDIO_LIBS="$SPD_AUDIO_LIBS -laudio -L/usr/X11R6/lib"
+fi
+
+AC_CHECK_HEADER(sys/soundcard.h, oss_aud="true";echo "Compiling with OSS
support", oss_aud="false";echo "*** OSS missing. Compiling without OSS support!
See INSTALL.")
+AC_ARG_WITH(oss, AS_HELP_STRING(--with-oss, Compile with OSS support),
+ if test $withval = "no"; then
+ echo "Forced compilation without OSS support."
+ oss_aud="false"
+ else
+ if test $oss_aud = "false"; then
+ echo "OSS support is not available. Sorry."
+ exit 1
+ fi
+ fi
+ echo "")
+AM_CONDITIONAL(oss_support, test $oss_aud = "true")
+if test $oss_aud = "true"; then
+ STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST oss";
+fi
+
+AC_CHECK_LIB(ao,
+ ao_play,
+ libao_aud="true";echo "Compiling with libao support.";,
+ libao_aud="false";echo "*** libao library missing. Compiling without
libao support! See INSTALL.";)
+
+AC_ARG_WITH(libao, AS_HELP_STRING(--with-libao, Compile with libao support),
+ if test $withval = "no"; then
+ echo "Forced compilation without libao support.";
+ libao_aud="false";
+ else
+ if test $libao_aud = "false"; then
+ echo "libao support is not available. Sorry."; exit 1;
+ fi
+ fi
+ echo "")
+
+AM_CONDITIONAL(libao_support, test $libao_aud = "true")
+if test $libao_aud = "true"; then
+ STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST libao";
+ SPD_AUDIO_LIBS="$SPD_AUDIO_LIBS -lao"
+fi
+
+
+AC_CHECK_LIB(asound,
+ snd_pcm_open,
+ alsa_aud="true";echo "Compiling with ALSA support.";,
+ alsa_aud="false";echo "*** ALSA C API library missing. Compiling
without ALSA support! See INSTALL.";)
+
+AC_ARG_WITH(alsa, AS_HELP_STRING(--with-alsa, Compile with ALSA support),
+ if test $withval = "no"; then
+ echo "Forced compilation without ALSA support.";
+ alsa_aud="false";
+ else
+ if test $alsa_aud = "false"; then
+ echo "ALSA support is not available. Sorry."; exit 1;
+ fi
+ fi
+ echo "")
+
+AM_CONDITIONAL(alsa_support, test $alsa_aud = "true")
+if test $alsa_aud = "true"; then
+ STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST alsa";
+ SPD_AUDIO_LIBS="$SPD_AUDIO_LIBS -lasound"
+fi
+
+AC_CHECK_LIB(pulse,
+ pa_threaded_mainloop_new,
+ pulse_aud="true";echo "Compiling with PulseAudio support.";,
+ pulse_aud="false";echo "*** PulseAudio library missing. Compiling
without PulseAudio support! See INSTALL.";,
+ -lpulse)
+
+
+
+AC_ARG_WITH(pulse, AS_HELP_STRING(--with-pulse, Compile with PulseAudio
support),
+ if test $withval = "no"; then
+ echo "Forced compilation without PulseAudio support.";
+ pulse_aud="false";
+ else
+ if test $pulse_aud = "false"; then
+ echo "PulseAudio support is not available. Sorry."; exit
1;
+ fi
+ fi
+ echo "")
+
+AM_CONDITIONAL(pulse_support, test $pulse_aud = "true")
+if test $pulse_aud = "true"; then
+ STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST pulse";
+ SPD_AUDIO_LIBS="$SPD_AUDIO_LIBS -lpulse-simple"
+fi
+
+for name in $STATIC_AUDIO_PLUGINS_LIST; do
+
STATIC_AUDIO_PLUGINS_GET="$STATIC_AUDIO_PLUGINS_GET${name}_plugin_get,";
+ STATIC_AUDIO_PLUGINS_EXTERN="${STATIC_AUDIO_PLUGINS_EXTERN} extern
spd_audio_plugin_t const * ${name}_plugin_get (void); "
+done
+
+dnl used in src/audio/static_plugins.c.in
+AC_SUBST(STATIC_AUDIO_PLUGINS_EXTERN)
+AC_SUBST(STATIC_AUDIO_PLUGINS_GET)
+AC_SUBST(SPD_AUDIO_LIBS)
+
+AC_PATH_PROG([PYTHON],[python])
+
+glib_include=`pkg-config --cflags glib-2.0`
+AC_SUBST(glib_include)
+glib_libs=`pkg-config --libs glib-2.0`
+AC_SUBST(glib_libs)
+gthread_libs=`pkg-config --libs gthread-2.0`
+AC_SUBST(gthread_libs)
+
+AC_SUBST(datadir)
+
+spdconfdir='${sysconfdir}/speech-dispatcher'
+AC_SUBST(spdconfdir)
+moduleconfdir='${spdconfdir}/modules'
+AC_SUBST(moduleconfdir)
+clientconfdir='${spdconfdir}/clients'
+AC_SUBST(clientconfdir)
+
+spdconforigdir='${datadir}/speech-dispatcher/conf'
+AC_SUBST(spdconforigdir)
+moduleconforigdir='${spdconforigdir}/modules'
+AC_SUBST(moduleconforigdir)
+clientconforigdir='${spdconforigdir}/clients'
+AC_SUBST(clientconforigdir)
+spddesktopconforigdir='${spdconforigdir}/desktop'
+AC_SUBST(spddesktopconforigdir)
+
+snddatadir='${datadir}/sounds/speech-dispatcher'
+AC_SUBST(snddatadir)
+modulebindir='${libdir}/speech-dispatcher-modules'
+AC_SUBST(modulebindir)
+spdlibdir='${libdir}/speech-dispatcher'
+AC_SUBST(spdlibdir)
+spdlib2dir='${libdir}/speech-dispatcher'
+AC_SUBST(spdlib2dir)
+
+LIB_SDAUDIO_CURRENT=2 # Current main version (increment on every API change --
incompatible AND extensions)
+LIB_SDAUDIO_REVISION=3 # Current minor version (increment on every
implementation change)
+LIB_SDAUDIO_AGE=0 # Number of backward compatible main versions
(LIB_SDAUDIO_CURRENT incrementations since last incompatible)
+AC_SUBST(LIB_SDAUDIO_CURRENT)
+AC_SUBST(LIB_SDAUDIO_REVISION)
+AC_SUBST(LIB_SDAUDIO_AGE)
+
+LIB_SPD_CURRENT=4 # Current main version (increment on every API change --
incompatible AND extensions)
+LIB_SPD_REVISION=1 # Current minor version (increment on every implementation
change)
+LIB_SPD_AGE=2 # Number of backward compatible main versions
(LIB_SDAUDIO_CURRENT incrementations since last incompatible)
+AC_SUBST(LIB_SPD_CURRENT)
+AC_SUBST(LIB_SPD_REVISION)
+AC_SUBST(LIB_SPD_AGE)
+
+# Extra libraries for sockets added by Willie Walker
+# based upon how SunStudio libraries work. Also
+# conditionally set other compiler/linker flags.
+#
+if test "$GCC" = yes; then
+ EXTRA_SOCKET_LIBS=""
+ ERROR_CFLAGS="-Wall"
+ RPATH="-rpath"
+ RDYNAMIC="-rdynamic"
+else
+ EXTRA_SOCKET_LIBS="-lsocket -lnsl"
+ ERROR_CFLAGS="-errwarn=%all -errtags=yes -erroff=E_STATEMENT_NOT_REACHED"
+ RPATH="-R"
+ RDYNAMIC=""
+fi
+AC_SUBST(EXTRA_SOCKET_LIBS)
+AC_SUBST(ERROR_CFLAGS)
+AC_SUBST(RPATH)
+AC_SUBST(RDYNAMIC)
+
+AC_OUTPUT([Makefile src/Makefile src/server/Makefile src/modules/Makefile
src/c/Makefile src/c/api/Makefile src/c/clients/Makefile
src/c/clients/say/Makefile src/c/clients/spdsend/Makefile src/tests/Makefile
src/audio/Makefile src/audio/static_plugins.c config/Makefile
config/modules/Makefile config/clients/Makefile doc/Makefile
src/python/Makefile src/python/speechd/Makefile
src/python/speechd_config/Makefile])
+
diff --git a/configure.in b/configure.in
deleted file mode 100644
index ca6c49b..0000000
--- a/configure.in
+++ /dev/null
@@ -1,403 +0,0 @@
-
-dnl Process this file with autoconf to produce a configure script.
-AC_INIT(configure.in)
-
-AC_LANG(C)
-
-dnl progs
-AC_PROG_CC
-
-dnl info
-AM_INIT_AUTOMAKE("speech-dispatcher", "`cat version.sh|grep '^VERSION'|awk -F=
'{print $2}'`")
-
-AM_CONFIG_HEADER(config.h)
-
-# Command-line arguments.
-AC_ARG_ENABLE([python],
- [AS_HELP_STRING([--disable-python], [do not install python bindings])],
- [],
- [enable_python=check])
-
-dnl Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS(limits.h sys/ioctl.h sys/time.h unistd.h)
-
-dnl Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
-AC_HEADER_TIME
-
-# Python support
-# Python 2.4 or greater should be acceptable.
-AS_IF([test $enable_python != "no"],
- [AM_PATH_PYTHON([2.4],
- [enable_python=yes],
- [AS_IF([test $enable_python = "yes"],
- [AC_MSG_FAILURE([python is not available])])])])
-AM_CONDITIONAL([HAVE_PYTHON], [test "$enable_python" = 'yes'])
-
-dnl Checks for library functions.
-AC_PROG_GCC_TRADITIONAL
-AC_CHECK_FUNCS(select socket)
-
-AC_PROG_INSTALL
-AC_PROG_MAKE_SET
-
-AC_PROG_LIBTOOL
-
-# by Marcelo Magallon <mmagallo at efis.ucr.ac.cr>
-# Turn around -rpath problem with libtool
-# This define should be improbable enough to not conflict with anything
-case ${host} in
- *-pc-linux-gnu)
- AC_MSG_RESULT([Fixing libtool for -rpath problems.])
- sed < libtool > libtool-2 \
- 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec="
-D__LIBTOOL_IS_A_FOOL__ "/'
- mv libtool-2 libtool
- chmod 755 libtool
- ;;
-esac
-
-dnl Checks for libraries.
-AC_CHECK_LIB(m,
- sqrt, echo "",
- echo "*** Required math library missing! See INSTALL .";exit 1)
-AC_CHECK_LIB(dl,
- main, echo "",
- echo "*** Required dl library missing! See INSTALL .";exit 1)
-AC_CHECK_LIB(dotconf,
- main, echo "",
- echo "*** Required DotConf library missing! See INSTALL .";exit 1)
-AC_CHECK_LIB(glib-2.0,
- g_list_append, echo "",
- echo "*** Required Glib-2.0 library missing! See INSTALL .";exit 1)
-AC_CHECK_LIB(pthread,
- pthread_create, echo "",
- echo "*** Required pthread library missing! See INSTALL .";exit 1)
-
-dnl Check for libsndfile.
-PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
-
-AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile},
- [Set to 1 if you have libsndfile.])
-
-AC_SUBST(SNDFILE_CFLAGS)
-AC_SUBST(SNDFILE_LIBS)
-
-dnl Check for Flite (currently required)
-AC_CHECK_LIB(flite,
- flite_init, echo "",
- echo "",
- -lm)
-
-AC_CHECK_LIB(flite_cmulex,
- cmu_lex_init, echo "",
- echo "",
- -lflite -lm)
-
-AC_CHECK_LIB(flite_usenglish,
- usenglish_init, echo "",
- echo "",
- -lflite -lm)
-
-flite_basic="-lflite_cmulex -lflite_usenglish -lflite -lm";
-
-AC_CHECK_LIB(flite_cmu_us_kal16,
- register_cmu_us_kal,
flite_ok="true";flite_kal="-lflite_cmu_us_kal16";echo "16-bit Kal Flite voice
found. Flite support enabled.",
- AC_CHECK_LIB(flite_cmu_us_kal16,
- register_cmu_us_kal16,
- flite_ok="true";
- flite_kal="-lflite_cmu_us_kal16";
- echo "16-bit Kal Flite voice found. Flite support enabled.";
- AC_DEFINE([HAVE_REGISTER_CMU_US_KAL16], 1,
- [Use cmu_register_us_kal16 to register the 16-bit
voice.]),
- AC_CHECK_LIB(flite_cmu_us_kal,
- register_cmu_us_kal,
flite_ok="true";flite_kal="-lflite_cmu_us_kal";
- echo "8-bit Kal Flite voice found. Flite support
enabled.",
- flite_ok="false"; echo "Flite libraries missing.
Compiling without Flite support!",
- $flite_basic),
- $flite_basic),
- $flite_basic)
-
-AC_SUBST(flite_basic)
-AC_SUBST(flite_kal)
-
-AC_ARG_WITH(flite, AS_HELP_STRING(--with-flite, Compile with Festival Lite
(Flite) support),
- if test $withval = "no"; then
- echo "Forced compilation without Flite support.";
- flite_ok="false";
- else
- if test $flite_ok = "false"; then
- echo "Flite support is not available. Sorry."; exit 1;
- fi
- fi
- echo "")
-
-AM_CONDITIONAL(flite_support, test $flite_ok = "true")
-
-dnl Check for IBM TTS
-AC_CHECK_LIB(ibmeci,
- eciStop,
- ibmtts_ok="true";ibmtts_include="-I/opt/IBM/ibmtts/inc/"; echo
"Compiling with IBM TTS support.",
- ibmtts_ok="false";ibmtts_include=""; echo "*** IBM TTS ECI library
missing. Compiling without IBM TTS support! See INSTALL.";,
- -libmeci)
-
-AC_ARG_WITH(ibmtts, AS_HELP_STRING(--with-ibmtts, Compile with IBM TTS
support),
- if test $withval = "no"; then
- echo "Forced compilation without IBMTTS support.";
- ibmtts_ok="false";
- else
- if test $ibmtts_ok = "false"; then
- echo "IBM TTS support is not available. Sorry."; exit 1;
- fi
- fi
- echo "")
-
-AM_CONDITIONAL(ibmtts_support, test $ibmtts_ok = "true")
-
-AC_SUBST(ibmtts_include)
-
-# Additional library check added by Willie Walker to account
-# for how the SunStudio CC compiler works.
-#
-dnl check for espeak support
-if test "$GCC" = yes; then
- EXTRA_ESPEAK_LIBS="-lpthread -lm"
-else
- EXTRA_ESPEAK_LIBS="-lpthread -lm -lCstd -lCrun"
-fi
-AC_SUBST(EXTRA_ESPEAK_LIBS)
-
-AC_CHECK_LIB(espeak,
-espeak_Synth,
- espeak_ok="true"; echo "Compiling with espeak support.",
- espeak_ok="false"; echo "Espeak not found.",
- $EXTRA_ESPEAK_LIBS)
-
-AC_ARG_WITH(espeak, AS_HELP_STRING(--with-espeak, Compile with espeak support),
- if test $withval = "no"; then
- echo "Forced compilation without espeak support.";
- espeak_ok="false";
- else
- if test $espeak_ok = "false"; then
- echo "Espeak support is not available. Sorry."; exit 1;
- fi
- fi
- echo "")
-
-AM_CONDITIONAL(espeak_support, test $espeak_ok = "true")
-
-dnl check for dumbtts support
-AC_CHECK_LIB(dumbtts,
- dumbtts_TTSInit,
- ivona_ok="true"; echo "Compiling with Ivona support.";,
- ivona_ok="false"; echo "Dumbtts library not found. Not installing
Ivona.";,
- -ldumbtts)
-
-AC_ARG_WITH(ivona, AS_HELP_STRING(--with-ivona, Compile with ivona support),
- if test $withval = "no"; then
- echo "Forced compilation without ivona support.";
- ivona_ok="false";
- else
- if test $ivona_ok = "false"; then
- echo "Ivona support is not available. Sorry."; exit 1;
- fi
- fi
- echo "")
-
-AM_CONDITIONAL(ivona_support, test $ivona_ok = "true")
-
-STATIC_AUDIO_PLUGINS_LIST=""
-SPD_AUDIO_LIBS=
-
-AC_CHECK_LIB(audio,
- AuOpenServer,
- nas_aud="true";echo "Compiling with NAS support.";,
- nas_aud="false";echo "*** NAS Audio library missing. Compiling without
NAS support! See INSTALL.";,
- -L/usr/X11R6/lib -lXau)
-
-AC_ARG_WITH(nas, AS_HELP_STRING(--with-nas, Compile with Network Audio System
(NAS) support),
- if test $withval = "no"; then
- echo "Forced compilation without NAS support.";
- nas_aud="false";
- else
- if test $nas_aud = "false"; then
- echo "NAS support is not available. Sorry."; exit 1;
- fi
- fi
- echo "")
-
-AM_CONDITIONAL(nas_support, test $nas_aud = "true")
-if test $nas_aud = "true"; then
- STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST nas";
- SPD_AUDIO_LIBS="$SPD_AUDIO_LIBS -laudio -L/usr/X11R6/lib"
-fi
-
-AC_CHECK_HEADER(sys/soundcard.h, oss_aud="true";echo "Compiling with OSS
support", oss_aud="false";echo "*** OSS missing. Compiling without OSS support!
See INSTALL.")
-AC_ARG_WITH(oss, AS_HELP_STRING(--with-oss, Compile with OSS support),
- if test $withval = "no"; then
- echo "Forced compilation without OSS support."
- oss_aud="false"
- else
- if test $oss_aud = "false"; then
- echo "OSS support is not available. Sorry."
- exit 1
- fi
- fi
- echo "")
-AM_CONDITIONAL(oss_support, test $oss_aud = "true")
-if test $oss_aud = "true"; then
- STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST oss";
-fi
-
-AC_CHECK_LIB(ao,
- ao_play,
- libao_aud="true";echo "Compiling with libao support.";,
- libao_aud="false";echo "*** libao library missing. Compiling without
libao support! See INSTALL.";)
-
-AC_ARG_WITH(libao, AS_HELP_STRING(--with-libao, Compile with libao support),
- if test $withval = "no"; then
- echo "Forced compilation without libao support.";
- libao_aud="false";
- else
- if test $libao_aud = "false"; then
- echo "libao support is not available. Sorry."; exit 1;
- fi
- fi
- echo "")
-
-AM_CONDITIONAL(libao_support, test $libao_aud = "true")
-if test $libao_aud = "true"; then
- STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST libao";
- SPD_AUDIO_LIBS="$SPD_AUDIO_LIBS -lao"
-fi
-
-
-AC_CHECK_LIB(asound,
- snd_pcm_open,
- alsa_aud="true";echo "Compiling with ALSA support.";,
- alsa_aud="false";echo "*** ALSA C API library missing. Compiling
without ALSA support! See INSTALL.";)
-
-AC_ARG_WITH(alsa, AS_HELP_STRING(--with-alsa, Compile with ALSA support),
- if test $withval = "no"; then
- echo "Forced compilation without ALSA support.";
- alsa_aud="false";
- else
- if test $alsa_aud = "false"; then
- echo "ALSA support is not available. Sorry."; exit 1;
- fi
- fi
- echo "")
-
-AM_CONDITIONAL(alsa_support, test $alsa_aud = "true")
-if test $alsa_aud = "true"; then
- STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST alsa";
- SPD_AUDIO_LIBS="$SPD_AUDIO_LIBS -lasound"
-fi
-
-AC_CHECK_LIB(pulse,
- pa_threaded_mainloop_new,
- pulse_aud="true";echo "Compiling with PulseAudio support.";,
- pulse_aud="false";echo "*** PulseAudio library missing. Compiling
without PulseAudio support! See INSTALL.";,
- -lpulse)
-
-
-
-AC_ARG_WITH(pulse, AS_HELP_STRING(--with-pulse, Compile with PulseAudio
support),
- if test $withval = "no"; then
- echo "Forced compilation without PulseAudio support.";
- pulse_aud="false";
- else
- if test $pulse_aud = "false"; then
- echo "PulseAudio support is not available. Sorry."; exit
1;
- fi
- fi
- echo "")
-
-AM_CONDITIONAL(pulse_support, test $pulse_aud = "true")
-if test $pulse_aud = "true"; then
- STATIC_AUDIO_PLUGINS_LIST="$STATIC_AUDIO_PLUGINS_LIST pulse";
- SPD_AUDIO_LIBS="$SPD_AUDIO_LIBS -lpulse-simple"
-fi
-
-for name in $STATIC_AUDIO_PLUGINS_LIST; do
-
STATIC_AUDIO_PLUGINS_GET="$STATIC_AUDIO_PLUGINS_GET${name}_plugin_get,";
- STATIC_AUDIO_PLUGINS_EXTERN="${STATIC_AUDIO_PLUGINS_EXTERN} extern
spd_audio_plugin_t const * ${name}_plugin_get (void); "
-done
-
-dnl used in src/audio/static_plugins.c.in
-AC_SUBST(STATIC_AUDIO_PLUGINS_EXTERN)
-AC_SUBST(STATIC_AUDIO_PLUGINS_GET)
-AC_SUBST(SPD_AUDIO_LIBS)
-
-AC_PATH_PROG([PYTHON],[python])
-
-glib_include=`pkg-config --cflags glib-2.0`
-AC_SUBST(glib_include)
-glib_libs=`pkg-config --libs glib-2.0`
-AC_SUBST(glib_libs)
-gthread_libs=`pkg-config --libs gthread-2.0`
-AC_SUBST(gthread_libs)
-
-AC_SUBST(datadir)
-
-spdconfdir='${sysconfdir}/speech-dispatcher'
-AC_SUBST(spdconfdir)
-moduleconfdir='${spdconfdir}/modules'
-AC_SUBST(moduleconfdir)
-clientconfdir='${spdconfdir}/clients'
-AC_SUBST(clientconfdir)
-
-spdconforigdir='${datadir}/speech-dispatcher/conf'
-AC_SUBST(spdconforigdir)
-moduleconforigdir='${spdconforigdir}/modules'
-AC_SUBST(moduleconforigdir)
-clientconforigdir='${spdconforigdir}/clients'
-AC_SUBST(clientconforigdir)
-spddesktopconforigdir='${spdconforigdir}/desktop'
-AC_SUBST(spddesktopconforigdir)
-
-snddatadir='${datadir}/sounds/speech-dispatcher'
-AC_SUBST(snddatadir)
-modulebindir='${libdir}/speech-dispatcher-modules'
-AC_SUBST(modulebindir)
-spdlibdir='${libdir}/speech-dispatcher'
-AC_SUBST(spdlibdir)
-spdlib2dir='${libdir}/speech-dispatcher'
-AC_SUBST(spdlib2dir)
-
-LIB_SDAUDIO_CURRENT=2 # Current main version (increment on every API change --
incompatible AND extensions)
-LIB_SDAUDIO_REVISION=3 # Current minor version (increment on every
implementation change)
-LIB_SDAUDIO_AGE=0 # Number of backward compatible main versions
(LIB_SDAUDIO_CURRENT incrementations since last incompatible)
-AC_SUBST(LIB_SDAUDIO_CURRENT)
-AC_SUBST(LIB_SDAUDIO_REVISION)
-AC_SUBST(LIB_SDAUDIO_AGE)
-
-LIB_SPD_CURRENT=4 # Current main version (increment on every API change --
incompatible AND extensions)
-LIB_SPD_REVISION=1 # Current minor version (increment on every implementation
change)
-LIB_SPD_AGE=2 # Number of backward compatible main versions
(LIB_SDAUDIO_CURRENT incrementations since last incompatible)
-AC_SUBST(LIB_SPD_CURRENT)
-AC_SUBST(LIB_SPD_REVISION)
-AC_SUBST(LIB_SPD_AGE)
-
-# Extra libraries for sockets added by Willie Walker
-# based upon how SunStudio libraries work. Also
-# conditionally set other compiler/linker flags.
-#
-if test "$GCC" = yes; then
- EXTRA_SOCKET_LIBS=""
- ERROR_CFLAGS="-Wall"
- RPATH="-rpath"
- RDYNAMIC="-rdynamic"
-else
- EXTRA_SOCKET_LIBS="-lsocket -lnsl"
- ERROR_CFLAGS="-errwarn=%all -errtags=yes -erroff=E_STATEMENT_NOT_REACHED"
- RPATH="-R"
- RDYNAMIC=""
-fi
-AC_SUBST(EXTRA_SOCKET_LIBS)
-AC_SUBST(ERROR_CFLAGS)
-AC_SUBST(RPATH)
-AC_SUBST(RDYNAMIC)
-
-AC_OUTPUT([Makefile src/Makefile src/server/Makefile src/modules/Makefile
src/c/Makefile src/c/api/Makefile src/c/clients/Makefile
src/c/clients/say/Makefile src/c/clients/spdsend/Makefile src/tests/Makefile
src/audio/Makefile src/audio/static_plugins.c config/Makefile
config/modules/Makefile config/clients/Makefile doc/Makefile
src/python/Makefile src/python/speechd/Makefile
src/python/speechd_config/Makefile])
-
--
1.7.1