Configuration changes
Major changes
Section titled “Major changes”Improvements made to configure checks include
-
improve configure check for “install”.
-
add check for build-time utilities, in case cross-compiling is setup with an invalid
$BUILD_CC -
add configure check for
<sys/fsuid.h>, which may be needed for flatpacks -
add a consistency-check for termio(s)/tty headers, to help with cross-compiles
-
modify configure check for
MAKEFLAGS/MFLAGSto ignore existing value of these environment variables -
improve configurability of
allocaas used in Windows ports. -
modify configure script checks for
stdbool.hto fix build with older gcc version. -
add <new> to the possible headers declaring the C++
std::bad_alloc. -
modify check for
stdbool.hto be more conservative in case the headers are used with a compiler other than that which was used to configure -
remove dependency on
stdbool.hfrom configure script check for type of bool when C++ binding is omitted.
Configuration options
Section titled “Configuration options”There are a few new configure options:
--enable-install-prefix
Modify behavior of $DESTDIR to merge or replace the value set by --prefix.
--enable-named-pipes
The Windows driver uses named pipes for communicating with a pseudo console, allowing it to use escape sequences rather than Console API. This works well with mintty. On the downside, this feature may not work well with the Windows Terminal due to a longstanding bug in conhost.exe (#9461).
These configure options are modified:
--enable-exp-win32
This option is obsolete, replaced by --enable-named-pipes.
--enable-term-driver
This is enabled by default on platforms where the Windows driver can be compiled, e.g., Cygwin, MinGW32 and MSYS2.
Package configuration scripts
Section titled “Package configuration scripts”The configure script and makefiles optionally generate a script which reports the compiler and linker options needed to build a program with ncurses, as well as a data file which is used via pkg-config for the same purpose. Several improvements were made for these scripts:
-
improved filtering of
-Loptions inmisc/gen-pkgconfig.inand inmisc/ncurses-config.in -
modified
ncurses*-configto add-Ioption in--cflagwhere needed for--disable-overwriteto match “.pc” files. -
suppressed
-gand-fXXXflags fromCFLAGSinmisc/ncurses-config.in -
modified configure script to allow for
pkg-configusing DOS/Windows pathname syntax -
modified
misc/ncurses-config.in, improved match withpkg-config output. -
adjusted naming of test packages for MinGW
*-configscripts to match thepkg-confignames -
added
--cflags-only-Iand--cflags-only-otheroptions tomisc/ncurses-config.in