Index: Makefile.in
--- Makefile.in.orig	2025-01-18 10:45:28.000000000 +0100
+++ Makefile.in	2025-01-19 16:02:27.938486000 +0100
@@ -853,10 +853,6 @@
 	"CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
 	"EXPECT=$(EXPECT)" \
 	"FLEX=$(FLEX)" \
-	"INSTALL=$(INSTALL)" \
-	"INSTALL_DATA=$(INSTALL_DATA)" \
-	"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
-	"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
 	"LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
 	"LEX=$(LEX)" \
 	"M4=$(M4)" \
Index: gdb/configure
--- gdb/configure.orig	2025-01-19 16:02:27.945115000 +0100
+++ gdb/configure	2025-01-19 16:05:47.030973000 +0100
@@ -29241,12 +29241,12 @@
 
 
 for ac_header in  \
-  curses.h \
-  cursesX.h \
   ncurses.h \
   ncurses/ncurses.h \
   ncurses/term.h \
   ncursesw/ncurses.h \
+  curses.h \
+  cursesX.h \
 
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
