]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/src/engine/jambase.c
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / tools / build / src / engine / jambase.c
CommitLineData
7c673cae
FG
1/* Generated by mkjambase from Jambase */
2char *jambase[] = {
3/* Jambase */
11fdf7f2
TL
4"\n",
5"\n",
7c673cae
FG
6"if $(NT)\n",
7"{\n",
8"SLASH ?= \\\\ ;\n",
9"}\n",
10"SLASH ?= / ;\n",
11fdf7f2
TL
11"\n",
12"\n",
7c673cae
FG
13"rule find-to-root ( dir : patterns + )\n",
14"{\n",
15"local globs = [ GLOB $(dir) : $(patterns) ] ;\n",
16"while ! $(globs) && $(dir:P) != $(dir)\n",
17"{\n",
18"dir = $(dir:P) ;\n",
19"globs = [ GLOB $(dir) : $(patterns) ] ;\n",
20"}\n",
21"return $(globs) ;\n",
22"}\n",
11fdf7f2
TL
23"\n",
24"\n",
7c673cae 25".boost-build-file = ;\n",
11fdf7f2 26"\n",
7c673cae 27".bootstrap-file = ;\n",
11fdf7f2 28"\n",
7c673cae 29"BOOST_BUILD_PATH.user-value = $(BOOST_BUILD_PATH) ;\n",
11fdf7f2 30"\n",
7c673cae
FG
31"if ! $(BOOST_BUILD_PATH) && $(UNIX)\n",
32"{\n",
33"BOOST_BUILD_PATH = /usr/share/boost-build ;\n",
34"}\n",
11fdf7f2
TL
35"\n",
36"\n",
7c673cae
FG
37"rule _poke ( module-name ? : variables + : value * )\n",
38"{\n",
39"module $(<)\n",
40"{\n",
41"$(>) = $(3) ;\n",
42"}\n",
43"}\n",
11fdf7f2
TL
44"\n",
45"\n",
7c673cae
FG
46"rule boost-build ( dir ? )\n",
47"{\n",
48"if $(.bootstrap-file)\n",
49"{\n",
50"ECHO \"Error: Illegal attempt to re-bootstrap the build system by invoking\" ;\n",
51"ECHO ;\n",
52"ECHO \" 'boost-build\" $(dir) \";'\" ;\n",
53"ECHO ;\n",
54"EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
55"}\n",
11fdf7f2 56"\n",
7c673cae 57"BOOST_BUILD_PATH = $(dir:R=$(.boost-build-file:D)) $(BOOST_BUILD_PATH) ;\n",
11fdf7f2 58"\n",
7c673cae 59"_poke .ENVIRON : BOOST_BUILD_PATH : $(BOOST_BUILD_PATH) ;\n",
11fdf7f2 60"\n",
7c673cae
FG
61"local bootstrap-file = [ GLOB $(BOOST_BUILD_PATH) : bootstrap.jam ] ;\n",
62".bootstrap-file = $(bootstrap-file[1]) ;\n",
11fdf7f2 63"\n",
7c673cae
FG
64"if ! $(.bootstrap-file)\n",
65"{\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",
69"ECHO ;\n",
70"ECHO \" 'boost-build\" $(dir) \";'\" ;\n",
71"ECHO ;\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",
74"ECHO ;\n",
75"EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
76"}\n",
11fdf7f2 77"\n",
7c673cae
FG
78"if [ MATCH .*(--debug-configuration).* : $(ARGV) ]\n",
79"{\n",
80"ECHO \"notice: loading Boost.Build from\"\n",
81"[ NORMALIZE_PATH $(.bootstrap-file:D) ] ;\n",
82"}\n",
11fdf7f2 83"\n",
7c673cae
FG
84"include $(.bootstrap-file) ;\n",
85"}\n",
11fdf7f2
TL
86"\n",
87"\n",
7c673cae 88"{\n",
11fdf7f2 89"\n",
7c673cae
FG
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",
11fdf7f2 94"\n",
7c673cae
FG
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",
11fdf7f2 99"\n",
7c673cae 100".boost-build-file = $(boost-build-files[1]) ;\n",
11fdf7f2 101"\n",
7c673cae
FG
102"if ! $(.boost-build-file)\n",
103"{\n",
104"ECHO \"Unable to load Boost.Build: could not find \\\"boost-build.jam\\\"\" ;\n",
105"ECHO --------------------------------------------------------------- ;\n",
11fdf7f2 106"\n",
7c673cae
FG
107"if ! [ MATCH .*(bjam).* : $(ARGV[1]:BL) ]\n",
108"{\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",
112"ECHO ;\n",
113"}\n",
11fdf7f2 114"\n",
7c673cae
FG
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",
119"}\n",
11fdf7f2 120"\n",
7c673cae
FG
121"if [ MATCH .*(--debug-configuration).* : $(ARGV) ]\n",
122"{\n",
123"ECHO \"notice: found boost-build.jam at\"\n",
124"[ NORMALIZE_PATH $(.boost-build-file) ] ;\n",
125"}\n",
11fdf7f2 126"\n",
7c673cae 127"include $(.boost-build-file) ;\n",
11fdf7f2 128"\n",
7c673cae
FG
129"if ! $(.bootstrap-file)\n",
130"{\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",
135"ECHO ;\n",
136"ECHO \"However, it failed to call the \\\"boost-build\\\" rule to indicate\" ;\n",
137"ECHO \"the location of the build system.\" ;\n",
138"ECHO ;\n",
139"EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
140"}\n",
141"}\n",
7c673cae 1420 };