From 01667989751574f467b3810b8c4f8580d28240b9 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 11 Jan 2006 08:31:00 +0000 Subject: [PATCH] Merge changes from SALOME_3_DS branch --- config_files/BOOST-1.30.2.sh | 32 +++++++++++++++++++++++++++----- config_files/BOOST-1.31.0.sh | 22 +++++++++++++++++++++- config_files/CAS-6.0.sh | 4 ++-- 3 files changed, 50 insertions(+), 8 deletions(-) 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 <