# HG changeset patch # User "Yann E. MORIN" # Date 1242073469 0 # Node ID 61e81db78cf4146243e937845f1df2388c1830b9 # Parent c4646b0c7b9d4c2ce9b784157b48504b3f88a7a9 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(-) diff -r c4646b0c7b9d -r 61e81db78cf4 configure --- a/configure Mon May 11 20:19:50 2009 +0000 +++ b/configure Mon May 11 20:24:29 2009 +0000 @@ -350,7 +350,13 @@ 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" #---------------------------------------------------------------------