kconfig/lxdialog: get ncurses CFLAGS with pkg-config
No binary (build failed)
—
(log yok)
| @@ -21,7 +21,11 @@ ldflags() | |
| # Where is ncurses.h? | |
| ccflags() | |
| { | |
| - | if [ -f /usr/include/ncursesw/curses.h ]; then |
| + | if pkg-config --cflags ncursesw 2>/dev/null; then |
| + | echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1' |
| + | elif pkg-config --cflags ncurses 2>/dev/null; then |
| + | echo '-DCURSES_LOC="<ncurses.h>"' |
| + | elif [ -f /usr/include/ncursesw/curses.h ]; then |
| echo '-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"' | |
| echo ' -DNCURSES_WIDECHAR=1' | |
| elif [ -f /usr/include/ncurses/ncurses.h ]; then | |