diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 96a16dc..3c6af94 100644 --- a/configure.ac +++ b/configure.ac @@ -83,9 +83,15 @@ if test "x${address_sanitization}" = 'xyes'; then AC_SUBST([ASAN_CFLAGS]) fi -AC_CHECK_LIB([curses], [initscr]) -AC_CHECK_LIB([flite], [flite_init]) -AC_CHECK_LIB([flite_cmu_us_slt], [register_cmu_us_slt]) +AC_CHECK_LIB([curses], [initscr], + [timeteller_LDADD="-lcurses ${timeteller_LDADD}"], + [AC_MSG_ERROR([No library -lcurses found])]) +AC_CHECK_LIB([flite], [flite_init], + [timeteller_LDADD="-lflite ${timeteller_LDADD}"], + [AC_MSG_ERROR([No library -lflite found])]) +AC_CHECK_LIB([flite_cmu_us_slt], [register_cmu_us_slt], + [timeteller_LDADD="-lflite_cmu_us_slt ${timeteller_LDADD}"], + [AC_MSG_ERROR([No library -lflite_cmu_us_slt found])]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_HEADERS([config.h]) |