configure:

- while checking for the ncurses library, remove bashisms, and make it POSIX compliant

 -------- diffstat follows --------
 /trunk/configure |    8     7     1     0 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
This commit is contained in:
Yann E. MORIN" 2009-05-11 20:24:29 +00:00
parent 45ccabcbfb
commit 674c493dd2

8
configure vendored
View File

@ -350,7 +350,13 @@ has_or_abort prog=readlink
has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h" \
err="'ncurses' headers files were not found"
has_or_abort lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )" \
ncurses_libs="$( for l in ncursesw ncurses curses; do \
for x in so a dylib; do \
printf "lib$l.$x "; \
done; \
done \
)"
has_or_abort lib="${ncurses_libs}" \
err="'ncurses' library was not found"
#---------------------------------------------------------------------