boost.atomic: ppc fix
[boost_lockfree.git] / project-root.jam
blobcfff3dd3bf2313e55d243c8534551841bd295fe6
2 #   Copyright (c) 2006 João Abecasis
4 #   Distributed under the Boost Software License, Version 1.0. (See
5 #   accompanying file LICENSE_1_0.txt or copy at
6 #   http://www.boost.org/LICENSE_1_0.txt)
9 ##
10 ##  IMPORTANT NOTE: This file MUST NOT be copied over a boost installation
13 path-constant top : . ;
15 import modules ;
16 import path ;
18 local boost-root = [ modules.peek : BOOST_ROOT ] ;
20 if ! $(boost-root)
22     local boost-search-dirs = [ modules.peek : BOOST_BUILD_PATH ] ;
24     for local dir in $(boost-search-dirs)
25     {
26         if [ path.glob $(dir)/../../../ : boost/version.hpp ]
27         {
28             boost-root += $(dir)/../../../ ;
29         }
30     }
32     if $(boost-root)
33     {
34         boost-root = [ path.make $(boost-root[1]) ] ;
35     }
36     else
37     {
38         ECHO "Warning: couldn't find BOOST_ROOT in" $(boost-root) ;
39     }
42 path-constant BOOST_ROOT : $(boost-root) ;