diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-04-28 15:45:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-04-28 15:45:46 +0200 |
commit | 696cbd224b4f78b99b8fc34538867303a8a922fc (patch) | |
tree | 5be9b86fef5861a318caca95a7f85774b5965316 /src/configure.ac | |
parent | b7637c44c26b057d1f3721d932bbab06d9f74393 (diff) | |
download | vim-git-696cbd224b4f78b99b8fc34538867303a8a922fc.tar.gz |
patch 8.0.0587: configure check for return value of tgetent skippedv8.0.0587
Problem: Configure check for return value of tgetent is skipped.
Solution: Always perform the check. (Marvin Schmidt, closes #1664)
Diffstat (limited to 'src/configure.ac')
-rw-r--r-- | src/configure.ac | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/configure.ac b/src/configure.ac index cdf39b3a9..d42455048 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -3355,10 +3355,9 @@ if test "x$vim_cv_terminfo" = "xyes" ; then AC_DEFINE(TERMINFO) fi -if test "x$olibs" != "x$LIBS"; then - AC_CACHE_CHECK([what tgetent() returns for an unknown terminal], [vim_cv_tgent], - [ - AC_RUN_IFELSE([AC_LANG_SOURCE([[ +AC_CACHE_CHECK([what tgetent() returns for an unknown terminal], [vim_cv_tgent], + [ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include "confdefs.h" #ifdef HAVE_TERMCAP_H # include <termcap.h> @@ -3369,18 +3368,17 @@ if test "x$olibs" != "x$LIBS"; then #endif main() {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } - ]])],[ - vim_cv_tgent=zero - ],[ - vim_cv_tgent=non-zero - ],[ - AC_MSG_ERROR(failed to compile test program.) - ]) + ]])],[ + vim_cv_tgent=zero + ],[ + vim_cv_tgent=non-zero + ],[ + AC_MSG_ERROR(failed to compile test program.) ]) - - if test "x$vim_cv_tgent" = "xzero" ; then - AC_DEFINE(TGETENT_ZERO_ERR, 0) - fi + ]) + +if test "x$vim_cv_tgent" = "xzero" ; then + AC_DEFINE(TGETENT_ZERO_ERR, 0) fi AC_MSG_CHECKING(whether termcap.h contains ospeed) |