1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-11-07
Bug-Debian: https://bugs.debian.org/1096583
Description: Detecting terminfo in Debian is less painful due to known
Build-Depends thus forcing the needed variables to build with gcc-15
.
Also tiny hack to make test.c build despite old style definitions
--- a/configure.in
+++ b/configure.in
@@ -213,33 +213,12 @@ AC_CHECK_FUNC(finite, AC_DEFINE(HAVE_FIN
AC_CHECK_FUNC(isfinite, AC_DEFINE(HAVE_ISFINITE),)
AC_CHECK_FUNC(tparm, AC_DEFINE(HAVE_TPARM),)
-dnl -- Oh why does this have to be so painful? --
-AC_MSG_CHECKING(whether term.h works by itself)
-AC_TRY_RUN([
-#include <term.h>
-
-int main (void)
-{
- exit(0);
-}
-],
- AC_MSG_RESULT(yes),
- AC_MSG_RESULT(no)
- AC_MSG_CHECKING(whether term.h requires termio.h and curses.h)
- AC_TRY_RUN([
-#include <termio.h>
-#include <curses.h>
-#include <term.h>
-
-int main (void)
-{
- exit(0);
-}
- ],
- AC_MSG_RESULT(yes)
- AC_DEFINE(TERM_H_REQUIRES_CURSES_H),
- AC_MSG_RESULT(no, ugh)
- AC_DEFINE(DONT_USE_TERM_H), :), :)
+dnl -- Debian: use ncurses terminfo - thus it should not be that painful --
+AC_DEFINE(HAVE_TERM_H)
+AC_DEFINE(HAVE_TERMINFO)
+AC_DEFINE(HAVE_TPARM)
+AC_DEFINE(TERM_H_REQUIRES_CURSES_H)
+LIBS="$LIBS -lncurses"
AC_HEADER_STDC
AC_HEADER_TIME
--- a/Makefile.in
+++ b/Makefile.in
@@ -191,7 +191,7 @@ installdirs:
$(IP)$(DESTDIR)$(mandir)/man1
test.o: @srcdir@/test.c
- $(CC) -c @srcdir@/test.c
+ $(CC) -c -std=gnu17 @srcdir@/test.c
test: test.o
$(CC) test.o -o my_test
|