diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-08-06 17:04:28 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-08-06 17:04:28 +0200 |
commit | f0b814dddb1b74c91fd54af412ad356fc68be4a2 (patch) | |
tree | 0cb2c6ee2389abe4aa9ad0ad0a2b11c511f9dab9 /jtools/prereq.sh | |
parent | 5e64a4a52672248415e73543ec43ebe47f49d3da (diff) |
really compile openadk without host java and ant
Diffstat (limited to 'jtools/prereq.sh')
-rw-r--r-- | jtools/prereq.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/jtools/prereq.sh b/jtools/prereq.sh new file mode 100644 index 000000000..2604de1ab --- /dev/null +++ b/jtools/prereq.sh @@ -0,0 +1,27 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +# test for existing /usr/include/asm +if [ ! -d "/usr/include/asm" ]; then + echo "ERROR: directory \"/usr/include/asm\" not found." + echo "on some systems this is name asm-generic." + echo "try to create a link to the asm directory with" + echo "\"ln -s /usr/include/asm-generic /usr/include/asm\"" + exit 1 +fi + +# test if all files from the files.needed file are available +for LINE in `cat files.needed`; do + + FILE=`echo ${LINE} | awk -F ";" '{print $1}'` + LIB=`echo ${LINE} | awk -F ";" '{print $2}'` + + #echo -n "looking for development files of \"${LIB}\"..." + FOUND=`find /usr/include /usr/lib -name "${FILE}" | wc -l` + if [ ${FOUND} -lt 1 ]; then + echo "not found!"; + echo "Please install the development header files for the library \"${LIB}\"." + exit 1 + fi + +done |