diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-05-02 21:50:09 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-05-02 21:50:09 +0000 |
commit | 2bd5bf19aedd50db76b3cb56fd425d2e24dbdd9f (patch) | |
tree | 9966de55842a0811417d4f64e089fa17f0f593d0 /configure | |
parent | 66be9f5713ecdc649071820829af972460616abf (diff) | |
download | crosstool-ng-2bd5bf19aedd50db76b3cb56fd425d2e24dbdd9f.tar.gz crosstool-ng-2bd5bf19aedd50db76b3cb56fd425d2e24dbdd9f.tar.bz2 crosstool-ng-2bd5bf19aedd50db76b3cb56fd425d2e24dbdd9f.zip |
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(-)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -152,6 +152,16 @@ has_or_abort() { done ;; ::?*) + for item in ${lib}; do + printf "Checking for '${item}'... " + where="$( gcc -print-file-name="${item}" )" + if [ "${where}" != "${item}" ]; then + where="$( readlink -e "${where}" )" + status=yes + break; + fi + printf "no\n" + done ;; esac if [ -z "${status}" ]; then @@ -335,10 +345,13 @@ has_or_abort prog=tar has_or_abort prog=gzip has_or_abort prog=bzip2 has_or_abort prog=lzma +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="ncursesw ncurses curses" err="'ncurses' library was not found" + +has_or_abort lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )" \ + err="'ncurses' library was not found" #--------------------------------------------------------------------- # Compute the version string |