configure: raise error if curses is not found

This commit is contained in:
Liss Tarnell 2017-09-25 13:14:35 +01:00
parent 000a019648
commit 6c853f1b95
2 changed files with 8 additions and 0 deletions

5
configure vendored
View file

@ -3870,6 +3870,11 @@ fi
LIBS=$ax_saved_LIBS LIBS=$ax_saved_LIBS
if test "x$ax_cv_curses" != xyes; then :
as_fn_error $? "XSI/SVR4 curses is required to compile TTS" "$LINENO" 5
fi
oLIBS="$LIBS" oLIBS="$LIBS"
LIBS="$LIBS $CURSES_LIB" LIBS="$LIBS $CURSES_LIB"
for ac_func in use_default_colors wcslcpy wcslcat for ac_func in use_default_colors wcslcpy wcslcat

View file

@ -24,6 +24,9 @@ AC_PROG_CC
AC_PROG_INSTALL AC_PROG_INSTALL
AX_WITH_CURSES AX_WITH_CURSES
AS_IF([test "x$ax_cv_curses" != xyes], [
AC_ERROR([XSI/SVR4 curses is required to compile TTS])
])
oLIBS="$LIBS" oLIBS="$LIBS"
LIBS="$LIBS $CURSES_LIB" LIBS="$LIBS $CURSES_LIB"
AC_CHECK_FUNCS([use_default_colors wcslcpy wcslcat]) AC_CHECK_FUNCS([use_default_colors wcslcpy wcslcat])