Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84354256 authored by Yaakov Selkowitz's avatar Yaakov Selkowitz Committed by Michal Marek
Browse files

kconfig: check ncursesw headers first in check-lxdialog



Commit 8c41e5e3 added a check for
ncursesw/curses.h for the case where ncurses and ncursesw are build
separately but only one is installed.  But if both are installed,
the headers ncurses/curses.h and ncursesw/curses.h differ, and since
libncursesw will be found first, so should ncursesw/curses.h.

Signed-off-by: default avatarYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent d7c67a2e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -19,12 +19,12 @@ ldflags()
# Where is ncurses.h?
ccflags()
{
	if [ -f /usr/include/ncurses/ncurses.h ]; then
	if [ -f /usr/include/ncursesw/curses.h ]; then
		echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"'
	elif [ -f /usr/include/ncurses/ncurses.h ]; then
		echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
	elif [ -f /usr/include/ncurses/curses.h ]; then
		echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
	elif [ -f /usr/include/ncursesw/curses.h ]; then
		echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"'
	elif [ -f /usr/include/ncurses.h ]; then
		echo '-DCURSES_LOC="<ncurses.h>"'
	else