diff options
author | mirabilos <tg@mirbsd.org> | 2015-07-22 14:40:24 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-07-25 16:19:37 +0200 |
commit | 903927dfd3dcebfbae7b1085004a973d71cb2f2f (patch) | |
tree | f6b34d7e2cb91824a439df4ecfa2d77a982e1999 /scripts/scan-tools.sh | |
parent | 74e47303e19fa31f5fa8ae053e4bdc87ec1c0eaa (diff) |
fix ncursesw detection on Debian sid
Diffstat (limited to 'scripts/scan-tools.sh')
-rw-r--r-- | scripts/scan-tools.sh | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh index b5d35183a..835606e60 100644 --- a/scripts/scan-tools.sh +++ b/scripts/scan-tools.sh @@ -176,16 +176,14 @@ if [[ $X != *@(Native compiler works)* ]]; then out=1 fi -if [[ ! -s /usr/include/ncurses.h ]]; then - if [[ ! -s /usr/include/curses.h ]]; then - if [[ ! -s /usr/include/ncurses/ncurses.h ]]; then - if [[ ! -s /usr/local/opt/ncurses/include/ncursesw/ncurses.h ]]; then - echo Install ncurses header files, please. - echo - out=1 - fi - fi - fi +if [[ ! -s /usr/include/ncursesw/curses.h && \ + ! -s /usr/include/ncurses.h && \ + ! -s /usr/include/curses.h && \ + ! -s /usr/include/ncurses/ncurses.h && \ + ! -s /usr/local/opt/ncurses/include/ncursesw/ncurses.h ]]; then + echo Install ncurses header files, please. + echo + out=1 fi if ! which wget >/dev/null 2>&1; then |