--- a/configure.in 2024-06-19 23:14:54.243999953 +0300 +++ b/configure.in 2024-06-19 23:15:21.253961581 +0300 @@ -549,6 +549,7 @@ #ifdef HAVE_TERMCAP_H # include #endif +#include main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }], res="OK", res="FAIL", res="FAIL") if test "$res" = "OK"; then @@ -571,6 +572,8 @@ #ifdef HAVE_TERMCAP_H # include #endif +#include +#include main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }], [ AC_MSG_RESULT([no -- we are in termcap land])