]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/engine/jambase.c
1 /* Generated by mkjambase from Jambase */
13 "rule find-to-root ( dir : patterns + )\n",
15 "local globs = [ GLOB $(dir) : $(patterns) ] ;\n",
16 "while ! $(globs) && $(dir:P) != $(dir)\n",
19 "globs = [ GLOB $(dir) : $(patterns) ] ;\n",
21 "return $(globs) ;\n",
25 ".boost-build-file = ;\n",
27 ".bootstrap-file = ;\n",
29 "BOOST_BUILD_PATH.user-value = $(BOOST_BUILD_PATH) ;\n",
31 "if ! $(BOOST_BUILD_PATH) && $(UNIX)\n",
33 "BOOST_BUILD_PATH = /usr/share/boost-build ;\n",
37 "rule _poke ( module-name ? : variables + : value * )\n",
46 "rule boost-build ( dir ? )\n",
48 "if $(.bootstrap-file)\n",
50 "ECHO \"Error: Illegal attempt to re-bootstrap the build system by invoking\" ;\n",
52 "ECHO \" 'boost-build\" $(dir) \";'\" ;\n",
54 "EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
57 "BOOST_BUILD_PATH = $(dir:R=$(.boost-build-file:D)) $(BOOST_BUILD_PATH) ;\n",
59 "_poke .ENVIRON : BOOST_BUILD_PATH : $(BOOST_BUILD_PATH) ;\n",
61 "local bootstrap-file = [ GLOB $(BOOST_BUILD_PATH) : bootstrap.jam ] ;\n",
62 ".bootstrap-file = $(bootstrap-file[1]) ;\n",
64 "if ! $(.bootstrap-file)\n",
66 "ECHO \"Unable to load Boost.Build: could not find build system.\" ;\n",
67 "ECHO --------------------------------------------------------- ;\n",
68 "ECHO \"$(.boost-build-file) attempted to load the build system by invoking\" ;\n",
70 "ECHO \" 'boost-build\" $(dir) \";'\" ;\n",
72 "ECHO \"but we were unable to find \\\"bootstrap.jam\\\" in the specified directory\" ;\n",
73 "ECHO \"or in BOOST_BUILD_PATH (searching \"$(BOOST_BUILD_PATH:J=\", \")\").\" ;\n",
75 "EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
78 "if [ MATCH .*(--debug-configuration).* : $(ARGV) ]\n",
80 "ECHO \"notice: loading Boost.Build from\"\n",
81 "[ NORMALIZE_PATH $(.bootstrap-file:D) ] ;\n",
84 "include $(.bootstrap-file) ;\n",
90 "local search-path = $(BOOST_BUILD_PATH) $(BOOST_ROOT) ;\n",
91 "local self = [ SELF_PATH ] ;\n",
92 "local boost-build-relative = ../../share/boost-build ;\n",
93 "local self-based-path = [ NORMALIZE_PATH $(boost-build-relative:R=$(self)) ] ;\n",
95 "local boost-build-files =\n",
96 "[ find-to-root [ PWD ] : boost-build.jam ]\n",
97 "[ GLOB $(self-based-path) : boost-build.jam ]\n",
98 "[ GLOB $(search-path) : boost-build.jam ] ;\n",
100 ".boost-build-file = $(boost-build-files[1]) ;\n",
102 "if ! $(.boost-build-file)\n",
104 "ECHO \"Unable to load Boost.Build: could not find \\\"boost-build.jam\\\"\" ;\n",
105 "ECHO --------------------------------------------------------------- ;\n",
107 "if ! [ MATCH .*(bjam).* : $(ARGV[1]:BL) ]\n",
109 "ECHO \"BOOST_ROOT must be set, either in the environment, or \" ;\n",
110 "ECHO \"on the command-line with -sBOOST_ROOT=..., to the root\" ;\n",
111 "ECHO \"of the boost installation.\" ;\n",
115 "ECHO \"Attempted search from\" [ PWD ] \"up to the root\" ;\n",
116 "ECHO \"at\" $(self-based-path) ;\n",
117 "ECHO \"and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: \"$(search-path:J=\", \")\".\" ;\n",
118 "EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
121 "if [ MATCH .*(--debug-configuration).* : $(ARGV) ]\n",
123 "ECHO \"notice: found boost-build.jam at\"\n",
124 "[ NORMALIZE_PATH $(.boost-build-file) ] ;\n",
127 "include $(.boost-build-file) ;\n",
129 "if ! $(.bootstrap-file)\n",
131 "ECHO \"Unable to load Boost.Build\" ;\n",
132 "ECHO -------------------------- ;\n",
133 "ECHO \"\\\"$(.boost-build-file)\\\" was found by searching from\" [ PWD ] \"up to the root\" ;\n",
134 "ECHO \"and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: \"$(search-path:J=\", \")\".\" ;\n",
136 "ECHO \"However, it failed to call the \\\"boost-build\\\" rule to indicate\" ;\n",
137 "ECHO \"the location of the build system.\" ;\n",
139 "EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",