lxdialog: fix ncursesw include detection
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 21 May 2010 09:47:45 +0000 (11:47 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 21 May 2010 09:49:11 +0000 (11:49 +0200)
the lib was checked but the include not, do so.
TODO: check if upstream fixed that already or fix it there, too.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
scripts/kconfig/lxdialog/check-lxdialog.sh

index 5552154cbedb723411708a2723f1a4f07a30890f..acabe385ca1e819e0cd603462b9d27526525b6c6 100644 (file)
@@ -19,7 +19,11 @@ ldflags()
 # Where is ncurses.h?
 ccflags()
 {
-       if [ -f /usr/include/ncurses/ncurses.h ]; then
+       if [ -f /usr/include/ncursesw/ncurses.h ]; then
+               echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncurses.h>"'
+       elif [ -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>"'