From: vsr Date: Wed, 11 Jan 2006 08:31:00 +0000 (+0000) Subject: Merge changes from SALOME_3_DS branch X-Git-Tag: V_3_2_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=01667989751574f467b3810b8c4f8580d28240b9;p=tools%2Finstall.git Merge changes from SALOME_3_DS branch --- diff --git a/config_files/BOOST-1.30.2.sh b/config_files/BOOST-1.30.2.sh index bf0c29a..708d8fb 100755 --- a/config_files/BOOST-1.30.2.sh +++ b/config_files/BOOST-1.30.2.sh @@ -1,9 +1,11 @@ #!/bin/sh check_version(){ -ver=`egrep 'BOOST_VERSION [0-9]+' ${BOOSTDIR}/boost/version.hpp | sed 's/.*BOOST_VERSION \([0-9]\+\)/\1/g'` -if [ "$ver" = "103002" ]; then - return 0 +if [ -n "${BOOSTDIR}" ]; then + ver=`egrep 'BOOST_VERSION [0-9]+' ${BOOSTDIR}/boost/version.hpp | sed 's/.*BOOST_VERSION \([0-9]\+\)/\1/g'` + if [ "$ver" = "103002" ]; then + return 0 + fi fi return 1; } @@ -21,7 +23,27 @@ make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" # looks for the native product and collects it's environment (used by make_env()) try_native(){ -echo "It is impossible to use native BOOST." +boostdir="`find_in_path version.hpp /usr/include/boost`" +if [ -z "${boostdir}" ] ; then + boostdir="`find_in_path version.hpp /usr/share/include/boost`" +fi +if [ -n "${boostdir}" ] ; then + boostdir=`cd ${boostdir}/..; pwd` + ver=`egrep 'BOOST_VERSION [0-9]+' ${boostdir}/boost/version.hpp | sed 's/.*BOOST_VERSION \([0-9]\+\)/\1/g'` + if [ $ver -ge 103002 ] ; then + cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <