Add check for the {n,}curses library.
Add check for readlink, needed to check for libraries.
-------- diffstat follows --------
/trunk/configure | 15 14 1 0 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
1.1 --- a/configure Sat May 02 18:23:58 2009 +0000
1.2 +++ b/configure Sat May 02 21:50:09 2009 +0000
1.3 @@ -152,6 +152,16 @@
1.4 done
1.5 ;;
1.6 ::?*)
1.7 + for item in ${lib}; do
1.8 + printf "Checking for '${item}'... "
1.9 + where="$( gcc -print-file-name="${item}" )"
1.10 + if [ "${where}" != "${item}" ]; then
1.11 + where="$( readlink -e "${where}" )"
1.12 + status=yes
1.13 + break;
1.14 + fi
1.15 + printf "no\n"
1.16 + done
1.17 ;;
1.18 esac
1.19 if [ -z "${status}" ]; then
1.20 @@ -335,10 +345,13 @@
1.21 has_or_abort prog=gzip
1.22 has_or_abort prog=bzip2
1.23 has_or_abort prog=lzma
1.24 +has_or_abort prog=readlink
1.25
1.26 has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h" \
1.27 err="'ncurses' headers files were not found"
1.28 -#has_or_abort lib="ncursesw ncurses curses" err="'ncurses' library was not found"
1.29 +
1.30 +has_or_abort lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )" \
1.31 + err="'ncurses' library was not found"
1.32
1.33 #---------------------------------------------------------------------
1.34 # Compute the version string