diff options
author | Keith Packard <keithp@keithp.com> | 2009-06-29 23:05:27 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-06-29 23:05:27 -0700 |
commit | 4ca2d910f3be689fd3c78a4f1be0555d6b1a30c1 (patch) | |
tree | bf84ba9d1919c3c5ab4364b0a80fbe6e4dd6699c /configure.ac | |
parent | 527d7c803ed9597b210634018cb2eb9d048d9846 (diff) |
Use flite to announce flight state
This uses the flite voice synthesis library from festival to announce
altitude and speed information during the rocket flight.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 178a53f4..b2467c3b 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,16 @@ if test "x$GCC" = "xyes"; then fi AC_SUBST(WARN_CFLAGS) +AC_CHECK_HEADERS(flite/flite.h,HAVE_FLITE_H=yes,HAVE_FLITE_H=no) +AC_CHECK_LIB(flite, flite_init,HAVE_LIBFLITE=yes,HAVE_LIBFLITE=no,-lm) + +if test "x$HAVE_FLITE_H" = "xyes" -a "x$HAVE_LIBFLITE" = "xyes"; then + AC_DEFINE(HAVE_FLITE,1,[Define if the flite library is usable]) + AC_SUBST(FLITE_LIBS,"-lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite -lm") + AC_SUBST(FLITE_INCS,-Iflite) +fi +AM_CONDITIONAL(USE_FLITE,test "x$HAVE_FLITE_H" = "xyes" -a "x$HAVE_LIBFLITE" = "xyes") + PKG_CHECK_MODULES([GNOME], [gtk+-2.0 libglade-2.0 gconf-2.0]) PKG_CHECK_MODULES([LIBUSB], [libusb-1.0]) |