]> git.ipfire.org Git - thirdparty/util-linux.git/commit
meson: check slang headers only when slang library is found
authorKarel Zak <kzak@redhat.com>
Mon, 4 May 2026 12:15:45 +0000 (14:15 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 May 2026 09:05:41 +0000 (11:05 +0200)
commitadebde389801d2f7dc810c7c8155cc9855d18ee2
treea18d3818702e04735da692a3257d6f70b8096589
parentd2c5798b029c3e78800bdf7b5c2f7504c3eebbc9
meson: check slang headers only when slang library is found

The slcurses.h and slang*.h headers were detected unconditionally
in the generic header check loop. When the headers existed on the
system but slang was not actually used (ncurses preferred), irqtop
and cfdisk would include slcurses.h instead of ncurses.h, causing
build failures for ncurses-specific functions like vw_printw() and
resizeterm().

Move slang header checks after slang library detection, guarded by
lib_slang.found(), matching the autotools behavior where these
headers are only checked with --with-slang.

Signed-off-by: Karel Zak <kzak@redhat.com>
meson.build