#!/bin/bash if [ "$check" = "1" ]; then if [ "$make_install" = "yes" ]; then install_prefix=$SIMPATH_INSTALL else install_prefix=$SIMPATH/basics/boost fi checkfile=$install_prefix/lib/libboost_unit_test_framework.so if (not_there Boost $checkfile); then cd $SIMPATH/basics untar boost $BOOSTVERSION.tar.bz2 ln -s $BOOSTVERSION boost cd $SIMPATH/basics/boost # mysed "10.6 10.5 10.4 10.3 10.2 10.1" "10.7 10.6 10.5 10.4 10.3 10.2 10.1" tools/build/v2/tools/darwin.jam if [ "$compiler" = "intel" ]; then ./bootstrap.sh --with-libraries=regex,random,test,filesystem,system,thread,date_time,serialization --with-toolset=intel-linux ./b2 --build-dir=$PWD/tmp --toolset=intel --prefix=$install_prefix --layout=system install elif [ "$compiler" = "PGI" ]; then ./bootstrap.sh --with-libraries=regex,random,test,filesystem,system,thread,date_time,serialization --with-toolset=pgi ./b2 --build-dir=$PWD/tmp --toolset=pgi --prefix=$install_prefix --layout=system install elif [ "$compiler" = "Clang" ]; then ./bootstrap.sh --with-libraries=regex,random,test,filesystem,system,thread,date_time,serialization --with-toolset=clang ./b2 --build-dir=$PWD/tmp --toolset=clang --prefix=$install_prefix --layout=system install elif [ "$arch" = "macosx64" ]; then ./bootstrap.sh --with-libraries=regex,random,test,filesystem,system,thread,date_time,serialization --with-toolset=darwin ./b2 --build-dir=$PWD/tmp --toolset=darwin --prefix=$install_prefix --layout=system install elif [ "$arch" = "macosx" ]; then ./bootstrap.sh --with-libraries=regex,random,test,filesystem,system,thread,date_time,serialization --with-toolset=darwin ./b2 --build-dir=$PWD/tmp --toolset=darwin --prefix=$install_prefix --layout=system install else ./bootstrap.sh --with-libraries=regex,random,test,filesystem,system,thread,date_time,serialization --with-toolset=gcc ./b2 --build-dir=$PWD/tmp --toolset=gcc --prefix=$install_prefix --layout=system install fi if [ "$platform" = "macosx" ]; then cd $install_prefix/lib create_links dylib so fi check_all_libraries $install_prefix/lib check_success Boost $checkfile check=$? fi fi cd $SIMPATH return 1