1 | case $CONFIG in |
---|
2 | '') |
---|
3 | if test -f config.sh; then TOP=.; |
---|
4 | elif test -f ../config.sh; then TOP=..; |
---|
5 | elif test -f ../../config.sh; then TOP=../..; |
---|
6 | elif test -f ../../../config.sh; then TOP=../../..; |
---|
7 | elif test -f ../../../../config.sh; then TOP=../../../..; |
---|
8 | else |
---|
9 | echo "Can't find config.sh."; exit 1 |
---|
10 | fi |
---|
11 | . $TOP/config.sh |
---|
12 | ;; |
---|
13 | esac |
---|
14 | : This forces SH files to create target in same directory as SH file. |
---|
15 | : This is so that make depend always knows where to find SH derivatives. |
---|
16 | case "$0" in |
---|
17 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; |
---|
18 | esac |
---|
19 | #echo "Extracting env.sh (with variable substitutions)" |
---|
20 | : This section of the file will have variable substitutions done on it. |
---|
21 | : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!. |
---|
22 | : Protect any dollar signs and backticks that you do not want interpreted |
---|
23 | : by putting a backslash in front. You may delete these comments. |
---|
24 | $spitshell >env.sh <<!GROK!THIS! |
---|
25 | ###################################### |
---|
26 | # |
---|
27 | # g4system.U |
---|
28 | # |
---|
29 | #+ |
---|
30 | G4SYSTEM="$g4system" |
---|
31 | export G4SYSTEM |
---|
32 | if [ X\$g4non_display = X ] ; then |
---|
33 | echo "On this machine the G4SYSTEM=\$G4SYSTEM" |
---|
34 | fi |
---|
35 | |
---|
36 | # |
---|
37 | # g4dirs.U |
---|
38 | # |
---|
39 | #+ |
---|
40 | if [ X$g4install != X$g4final_install ] ; then |
---|
41 | G4INSTALL="$g4final_install/src/geant4" |
---|
42 | else |
---|
43 | G4INSTALL="$g4install" |
---|
44 | fi |
---|
45 | export G4INSTALL |
---|
46 | if [ X\$g4non_display = X ] ; then |
---|
47 | echo "On this machine the G4INSTALL=\$G4INSTALL" |
---|
48 | fi |
---|
49 | |
---|
50 | #+ |
---|
51 | if [ X$g4includes_flag != Xn ] ; then |
---|
52 | if [ X$g4install != X$g4final_install ] ; then |
---|
53 | G4INCLUDE="$g4final_install/include/geant4" |
---|
54 | else |
---|
55 | G4INCLUDE="$g4install/include/" |
---|
56 | fi |
---|
57 | export G4INCLUDE |
---|
58 | if [ X\$g4non_display = X ] ; then |
---|
59 | echo "On this machine the G4INCLUDE=\$G4INCLUDE" |
---|
60 | fi |
---|
61 | #else |
---|
62 | #G4BASE="$g4final_install/include/geant4/source" |
---|
63 | #export G4BASE |
---|
64 | #if [ X\$g4non_display = X ] ; then |
---|
65 | #echo "On this machine the G4BASE=\$G4BASE" |
---|
66 | #fi |
---|
67 | fi |
---|
68 | |
---|
69 | #+ |
---|
70 | if [ X$g4lib != X ] ; then |
---|
71 | if [ X$g4install != X$g4final_install ] ; then |
---|
72 | G4LIB="$g4final_install/lib/geant4" |
---|
73 | else |
---|
74 | G4LIB="$g4install/lib" |
---|
75 | fi |
---|
76 | export G4LIB |
---|
77 | if [ X\$g4non_display = X ] ; then |
---|
78 | echo "On this machine the G4LIB=\$G4LIB" |
---|
79 | fi |
---|
80 | fi |
---|
81 | |
---|
82 | #+ |
---|
83 | if [ X$g4levelgammadata != X ] ; then |
---|
84 | G4LEVELGAMMADATA="$g4levelgammadata" |
---|
85 | export G4LEVELGAMMADATA |
---|
86 | if [ X\$g4non_display = X ] ; then |
---|
87 | echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA" |
---|
88 | fi |
---|
89 | fi |
---|
90 | |
---|
91 | #+ |
---|
92 | if [ X$g4radioactivedata != X ] ; then |
---|
93 | G4RADIOACTIVEDATA="$g4radioactivedata" |
---|
94 | export G4RADIOACTIVEDATA |
---|
95 | if [ X\$g4non_display = X ] ; then |
---|
96 | echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA" |
---|
97 | fi |
---|
98 | fi |
---|
99 | |
---|
100 | #+ |
---|
101 | if [ X$g4ledata != X ] ; then |
---|
102 | G4LEDATA="$g4ledata" |
---|
103 | export G4LEDATA |
---|
104 | if [ X\$g4non_display = X ] ; then |
---|
105 | echo "On this machine the G4LEDATA=\$G4LEDATA" |
---|
106 | fi |
---|
107 | fi |
---|
108 | |
---|
109 | #+ |
---|
110 | if [ X$g4neutronhpcrosssections != X ] ; then |
---|
111 | NeutronHPCrossSections="$g4neutronhpcrosssections" |
---|
112 | export NeutronHPCrossSections |
---|
113 | if [ X\$g4non_display = X ] ; then |
---|
114 | echo "On this machine the NeutronHPCrossSections=\$NeutronHPCrossSections" |
---|
115 | fi |
---|
116 | fi |
---|
117 | |
---|
118 | #+ |
---|
119 | if [ X$g4elasticdata != X ] ; then |
---|
120 | G4ELASTICDATA="$g4elasticdata" |
---|
121 | export G4ELASTICDATA |
---|
122 | if [ X\$g4non_display = X ] ; then |
---|
123 | echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA" |
---|
124 | fi |
---|
125 | fi |
---|
126 | |
---|
127 | # |
---|
128 | # g4clhep.U |
---|
129 | # |
---|
130 | if [ X$g4clhep_base_dir != X ] ; then |
---|
131 | CLHEP_BASE_DIR="$g4clhep_base_dir" |
---|
132 | export CLHEP_BASE_DIR |
---|
133 | if [ X\$g4non_display = X ] ; then |
---|
134 | echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR" |
---|
135 | fi |
---|
136 | fi |
---|
137 | |
---|
138 | #+ |
---|
139 | if [ X$g4clhep_include_dir != X ] ; then |
---|
140 | CLHEP_INCLUDE_DIR="$g4clhep_include_dir" |
---|
141 | export CLHEP_INCLUDE_DIR |
---|
142 | if [ X\$g4non_display = X ] ; then |
---|
143 | echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR" |
---|
144 | fi |
---|
145 | fi |
---|
146 | |
---|
147 | #+ |
---|
148 | if [ X$g4clhep_lib_dir != X ] ; then |
---|
149 | CLHEP_LIB_DIR="$g4clhep_lib_dir" |
---|
150 | export CLHEP_LIB_DIR |
---|
151 | if [ X\$g4non_display = X ] ; then |
---|
152 | echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR" |
---|
153 | fi |
---|
154 | fi |
---|
155 | |
---|
156 | #+ |
---|
157 | if [ X$g4clhep_lib != X ] ; then |
---|
158 | CLHEP_LIB="$g4clhep_lib" |
---|
159 | export CLHEP_LIB |
---|
160 | if [ X\$g4non_display = X ] ; then |
---|
161 | echo "On this machine the CLHEP_LIB=\$CLHEP_LIB" |
---|
162 | fi |
---|
163 | fi |
---|
164 | |
---|
165 | #+ |
---|
166 | # |
---|
167 | # g4debug |
---|
168 | # |
---|
169 | if [ X$g4debug != X ] ; then |
---|
170 | G4DEBUG="$g4debug" |
---|
171 | export G4DEBUG |
---|
172 | if [ X\$g4non_display = X ] ; then |
---|
173 | echo "On this machine the G4DEBUG=\$G4DEBUG" |
---|
174 | fi |
---|
175 | fi |
---|
176 | |
---|
177 | # |
---|
178 | # g4analysis |
---|
179 | # |
---|
180 | #+ |
---|
181 | if [ X$g4wanalysis_use = Xy ] ; then |
---|
182 | G4ANALYSIS_USE=1 |
---|
183 | export G4ANALYSIS_USE |
---|
184 | if [ X\$g4non_display = X ] ; then |
---|
185 | echo "On this machine the G4ANALYSIS_USE=\$G4ANALYSIS_USE" |
---|
186 | fi |
---|
187 | fi |
---|
188 | |
---|
189 | # |
---|
190 | # g4ui |
---|
191 | # |
---|
192 | #+ |
---|
193 | if [ X$g4ui_build_xaw_session = Xy ] ; then |
---|
194 | G4UI_BUILD_XAW_SESSION=1 |
---|
195 | export G4UI_BUILD_XAW_SESSION |
---|
196 | if [ X\$g4non_display = X ] ; then |
---|
197 | echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION" |
---|
198 | fi |
---|
199 | fi |
---|
200 | |
---|
201 | #+ |
---|
202 | if [ X$g4ui_use_xaw = Xy ] ; then |
---|
203 | G4UI_USE_XAW=1 |
---|
204 | export G4UI_USE_XAW |
---|
205 | if [ X\$g4non_display = X ] ; then |
---|
206 | echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW" |
---|
207 | fi |
---|
208 | fi |
---|
209 | |
---|
210 | #+ |
---|
211 | if [ X$g4ui_build_xm_session = Xy ] ; then |
---|
212 | G4UI_BUILD_XM_SESSION=1 |
---|
213 | export G4UI_BUILD_XM_SESSION |
---|
214 | if [ X\$g4non_display = X ] ; then |
---|
215 | echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION" |
---|
216 | fi |
---|
217 | fi |
---|
218 | |
---|
219 | #+ |
---|
220 | if [ X$g4ui_use_xm = Xy ] ; then |
---|
221 | G4UI_USE_XM=1 |
---|
222 | export G4UI_USE_XM |
---|
223 | if [ X\$g4non_display = X ] ; then |
---|
224 | echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM" |
---|
225 | fi |
---|
226 | fi |
---|
227 | |
---|
228 | #+ |
---|
229 | if [ X$g4ui_build_win32_session = Xy ] ; then |
---|
230 | G4UI_BUILD_WIN32_SESSION=1 |
---|
231 | export G4UI_BUILD_WIN32_SESSION |
---|
232 | if [ X\$g4non_display = X ] ; then |
---|
233 | echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION" |
---|
234 | fi |
---|
235 | fi |
---|
236 | |
---|
237 | #+ |
---|
238 | if [ X$g4ui_use_win32 = Xy ] ; then |
---|
239 | G4UI_USE_WIN32=1 |
---|
240 | export G4UI_USE_WIN32 |
---|
241 | if [ X\$g4non_display = X ] ; then |
---|
242 | echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32" |
---|
243 | fi |
---|
244 | fi |
---|
245 | |
---|
246 | # |
---|
247 | # g4vis |
---|
248 | # |
---|
249 | #+ |
---|
250 | if [ X$g4vis_build_dawn_driver = Xy ] ; then |
---|
251 | G4VIS_BUILD_DAWN_DRIVER=1 |
---|
252 | export G4VIS_BUILD_DAWN_DRIVER |
---|
253 | if [ X\$g4non_display = X ] ; then |
---|
254 | echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER" |
---|
255 | fi |
---|
256 | fi |
---|
257 | |
---|
258 | #+ |
---|
259 | if [ X$g4vis_build_openglx_driver = Xy ] ; then |
---|
260 | G4VIS_BUILD_OPENGLX_DRIVER=1 |
---|
261 | export G4VIS_BUILD_OPENGLX_DRIVER |
---|
262 | if [ X\$g4non_display = X ] ; then |
---|
263 | echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER" |
---|
264 | fi |
---|
265 | fi |
---|
266 | |
---|
267 | #+ |
---|
268 | if [ X$g4vis_build_openglxm_driver = Xy ] ; then |
---|
269 | G4VIS_BUILD_OPENGLXM_DRIVER=1 |
---|
270 | export G4VIS_BUILD_OPENGLXM_DRIVER |
---|
271 | if [ X\$g4non_display = X ] ; then |
---|
272 | echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER" |
---|
273 | fi |
---|
274 | fi |
---|
275 | |
---|
276 | #+ |
---|
277 | if [ X$g4vis_build_openglwin32_driver = Xy ] ; then |
---|
278 | G4VIS_BUILD_OPENGLWIN32_DRIVER=1 |
---|
279 | export G4VIS_BUILD_OPENGLWIN32_DRIVER |
---|
280 | if [ X\$g4non_display = X ] ; then |
---|
281 | echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER" |
---|
282 | fi |
---|
283 | fi |
---|
284 | |
---|
285 | #+ |
---|
286 | if [ X$g4vis_build_oix_driver = Xy ] ; then |
---|
287 | G4VIS_BUILD_OIX_DRIVER=1 |
---|
288 | export G4VIS_BUILD_OIX_DRIVER |
---|
289 | if [ X\$g4non_display = X ] ; then |
---|
290 | echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER" |
---|
291 | fi |
---|
292 | fi |
---|
293 | |
---|
294 | #+ |
---|
295 | if [ X$g4vis_build_raytracerx_driver = Xy ] ; then |
---|
296 | G4VIS_BUILD_RAYTRACERX_DRIVER=1 |
---|
297 | export G4VIS_BUILD_RAYTRACERX_DRIVER |
---|
298 | if [ X\$g4non_display = X ] ; then |
---|
299 | echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER" |
---|
300 | fi |
---|
301 | fi |
---|
302 | |
---|
303 | #+ |
---|
304 | if [ X$g4vis_build_oiwin32_driver = Xy ] ; then |
---|
305 | G4VIS_BUILD_OIWIN32_DRIVER=1 |
---|
306 | export G4VIS_BUILD_OIWIN32_DRIVER |
---|
307 | if [ X\$g4non_display = X ] ; then |
---|
308 | echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER" |
---|
309 | fi |
---|
310 | fi |
---|
311 | |
---|
312 | #+ |
---|
313 | if [ X$g4vis_build_vrml_driver = Xy ] ; then |
---|
314 | G4VIS_BUILD_VRML_DRIVER=1 |
---|
315 | export G4VIS_BUILD_VRML_DRIVER |
---|
316 | if [ X\$g4non_display = X ] ; then |
---|
317 | echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER" |
---|
318 | fi |
---|
319 | fi |
---|
320 | |
---|
321 | #+ |
---|
322 | if [ X$g4vis_use_dawn = Xy ] ; then |
---|
323 | G4VIS_USE_DAWN=1 |
---|
324 | export G4VIS_USE_DAWN |
---|
325 | if [ X\$g4non_display = X ] ; then |
---|
326 | echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN" |
---|
327 | fi |
---|
328 | fi |
---|
329 | |
---|
330 | #+ |
---|
331 | if [ X$g4vis_use_openglx = Xy ] ; then |
---|
332 | G4VIS_USE_OPENGLX=1 |
---|
333 | export G4VIS_USE_OPENGLX |
---|
334 | if [ X\$g4non_display = X ] ; then |
---|
335 | echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX" |
---|
336 | fi |
---|
337 | fi |
---|
338 | |
---|
339 | #+ |
---|
340 | if [ X$g4vis_use_openglxm = Xy ] ; then |
---|
341 | G4VIS_USE_OPENGLXM=1 |
---|
342 | export G4VIS_USE_OPENGLXM |
---|
343 | if [ X\$g4non_display = X ] ; then |
---|
344 | echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM" |
---|
345 | fi |
---|
346 | fi |
---|
347 | |
---|
348 | #+ |
---|
349 | if [ X$g4vis_use_openglwin32 = Xy ] ; then |
---|
350 | G4VIS_USE_OPENGLWIN32=1 |
---|
351 | export G4VIS_USE_OPENGLWIN32 |
---|
352 | if [ X\$g4non_display = X ] ; then |
---|
353 | echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32" |
---|
354 | fi |
---|
355 | fi |
---|
356 | |
---|
357 | #+ |
---|
358 | if [ X$g4vis_use_oix = Xy ] ; then |
---|
359 | G4VIS_USE_OIX=1 |
---|
360 | export G4VIS_USE_OIX |
---|
361 | if [ X\$g4non_display = X ] ; then |
---|
362 | echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX" |
---|
363 | fi |
---|
364 | fi |
---|
365 | |
---|
366 | #+ |
---|
367 | if [ X$g4vis_use_raytracerx = Xy ] ; then |
---|
368 | G4VIS_USE_RAYTRACERX=1 |
---|
369 | export G4VIS_USE_RAYTRACERX |
---|
370 | if [ X\$g4non_display = X ] ; then |
---|
371 | echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX" |
---|
372 | fi |
---|
373 | fi |
---|
374 | |
---|
375 | #+ |
---|
376 | if [ X$g4vis_use_oiwin32 = Xy ] ; then |
---|
377 | G4VIS_USE_OIWIN32=1 |
---|
378 | export G4VIS_USE_OIWIN32 |
---|
379 | if [ X\$g4non_display = X ] ; then |
---|
380 | echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32" |
---|
381 | fi |
---|
382 | fi |
---|
383 | |
---|
384 | #+ |
---|
385 | if [ X$g4vis_use_vrml = Xy ] ; then |
---|
386 | G4VIS_USE_VRML=1 |
---|
387 | export G4VIS_USE_VRML |
---|
388 | if [ X\$g4non_display = X ] ; then |
---|
389 | echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML" |
---|
390 | fi |
---|
391 | fi |
---|
392 | |
---|
393 | #+ |
---|
394 | if [ X$g4vis_oglhome != X ] ; then |
---|
395 | OGLHOME="$g4vis_oglhome" |
---|
396 | export OGLHOME |
---|
397 | if [ X\$g4non_display = X ] ; then |
---|
398 | echo "On this machine the OGLHOME=\$OGLHOME" |
---|
399 | fi |
---|
400 | fi |
---|
401 | |
---|
402 | #+ |
---|
403 | if [ X$g4vis_oivhome != X ] ; then |
---|
404 | OIVHOME="$g4vis_oivhome" |
---|
405 | export OIVHOME |
---|
406 | if [ X\$g4non_display = X ] ; then |
---|
407 | echo "On this machine the OIVHOME=\$OIVHOME" |
---|
408 | fi |
---|
409 | fi |
---|
410 | |
---|
411 | #+ |
---|
412 | if [ X$g4vis_build_openglxm_driver != X ] ; then |
---|
413 | XMFLAGS="$g4vis_xmflags" |
---|
414 | export XMFLAGS |
---|
415 | if [ X\$g4non_display = X ] ; then |
---|
416 | echo "On this machine the XMFLAGS=\$XMFLAGS" |
---|
417 | fi |
---|
418 | fi |
---|
419 | |
---|
420 | #+ |
---|
421 | if [ X$g4vis_build_openglxm_driver != X ] ; then |
---|
422 | XMLIBS="$g4vis_xmlibs" |
---|
423 | export XMLIBS |
---|
424 | if [ X\$g4non_display = X ] ; then |
---|
425 | echo "On this machine the XMLIBS=\$XMLIBS" |
---|
426 | fi |
---|
427 | fi |
---|
428 | |
---|
429 | #+ |
---|
430 | if [ X$g4ui_build_xm_session != X ] ; then |
---|
431 | XMFLAGS="$g4vis_xmflags" |
---|
432 | export XMFLAGS |
---|
433 | if [ X\$g4non_display = X ] ; then |
---|
434 | echo "On this machine the XMFLAGS=\$XMFLAGS" |
---|
435 | fi |
---|
436 | fi |
---|
437 | |
---|
438 | #+ |
---|
439 | if [ X$g4vis_build_xm_session != X ] ; then |
---|
440 | XMLIBS="$g4vis_xmlibs" |
---|
441 | export XMLIBS |
---|
442 | if [ X\$g4non_display = X ] ; then |
---|
443 | echo "On this machine the XMLIBS=\$XMLIBS" |
---|
444 | fi |
---|
445 | fi |
---|
446 | |
---|
447 | #+ |
---|
448 | if [ X$g4ui_build_xaw_session != X ] ; then |
---|
449 | XAWFLAGS="$g4ui_xawflags" |
---|
450 | export XAWFLAGS |
---|
451 | if [ X\$g4non_display = X ] ; then |
---|
452 | echo "On this machine the XAWFLAGS=\$XAWFLAGS" |
---|
453 | fi |
---|
454 | fi |
---|
455 | |
---|
456 | #+ |
---|
457 | if [ X$g4ui_build_xaw_session != X ] ; then |
---|
458 | XAWLIBS="$g4ui_xawlibs" |
---|
459 | export XAWLIBS |
---|
460 | if [ X\$g4non_display = X ] ; then |
---|
461 | echo "On this machine the XAWLIBS=\$XAWLIBS" |
---|
462 | fi |
---|
463 | fi |
---|
464 | |
---|
465 | # |
---|
466 | # Use G3TOG4 module |
---|
467 | # |
---|
468 | #+ |
---|
469 | if [ X$g4wlib_build_g3tog4 = Xy ] ; then |
---|
470 | G4LIB_BUILD_G3TOG4=1 |
---|
471 | export G4LIB_BUILD_G3TOG4 |
---|
472 | if [ X\$g4non_display = X ] ; then |
---|
473 | echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4" |
---|
474 | fi |
---|
475 | fi |
---|
476 | |
---|
477 | if [ X$g4w_use_g3tog4 = Xy ] ; then |
---|
478 | G4LIB_USE_G3TOG4=1 |
---|
479 | export G4LIB_USE_G3TOG4 |
---|
480 | if [ X\$g4non_display = X ] ; then |
---|
481 | echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4" |
---|
482 | fi |
---|
483 | fi |
---|
484 | |
---|
485 | # |
---|
486 | # Use ZLIB module |
---|
487 | # |
---|
488 | #+ |
---|
489 | if [ X$g4wlib_build_zlib = Xy ] ; then |
---|
490 | G4LIB_BUILD_ZLIB=1 |
---|
491 | export G4LIB_BUILD_ZLIB |
---|
492 | echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB" |
---|
493 | fi |
---|
494 | |
---|
495 | if [ X$g4w_use_zlib = Xy ] ; then |
---|
496 | G4LIB_USE_ZLIB=1 |
---|
497 | export G4LIB_USE_ZLIB |
---|
498 | echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB" |
---|
499 | fi |
---|
500 | |
---|
501 | |
---|
502 | #+ |
---|
503 | # |
---|
504 | # g4shared |
---|
505 | # |
---|
506 | if [ X$g4lib_build_shared = Xy ] ; then |
---|
507 | G4LIB_BUILD_SHARED=1 |
---|
508 | export G4LIB_BUILD_SHARED |
---|
509 | if [ X\$g4non_display = X ] ; then |
---|
510 | echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED" |
---|
511 | fi |
---|
512 | fi |
---|
513 | |
---|
514 | if [ X$g4lib_build_static = Xy ] ; then |
---|
515 | G4LIB_BUILD_STATIC=1 |
---|
516 | export G4LIB_BUILD_STATIC |
---|
517 | if [ X\$g4non_display = X ] ; then |
---|
518 | echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC" |
---|
519 | fi |
---|
520 | fi |
---|
521 | |
---|
522 | #+ |
---|
523 | # |
---|
524 | # g4granular |
---|
525 | # |
---|
526 | if [ X$g4lib_use_granular = Xy ] ; then |
---|
527 | G4LIB_USE_GRANULAR=1 |
---|
528 | export G4LIB_USE_GRANULAR |
---|
529 | if [ X\$g4non_display = X ] ; then |
---|
530 | echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR" |
---|
531 | fi |
---|
532 | fi |
---|
533 | |
---|
534 | # Check for Windows! |
---|
535 | if test "X\$G4SYSTEM" != "XWIN32-VC" -a "X\$G4SYSTEM" != "XWIN32-VC7"; then |
---|
536 | #+ |
---|
537 | # |
---|
538 | # UI_USE_TCSH for Unix |
---|
539 | # |
---|
540 | G4UI_USE_TCSH=1 |
---|
541 | export G4UI_USE_TCSH |
---|
542 | if [ X\$g4non_display = X ] ; then |
---|
543 | echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH" |
---|
544 | fi |
---|
545 | fi |
---|
546 | |
---|
547 | ##################################################################### |
---|
548 | |
---|
549 | !GROK!THIS! |
---|
550 | |
---|
551 | : In the following dollars and backticks do not need the extra backslash. |
---|
552 | $spitshell >>env.sh <<'!NO!SUBS!' |
---|
553 | |
---|
554 | |
---|
555 | #+ |
---|
556 | # |
---|
557 | # G4WORKDIR |
---|
558 | # |
---|
559 | if [ $G4WORKDIR ] ; then |
---|
560 | |
---|
561 | if [ X$g4non_display = X ] ; then |
---|
562 | echo "In your environment you have the G4WORKDIR=$G4WORKDIR" |
---|
563 | fi # if non_display |
---|
564 | |
---|
565 | else |
---|
566 | |
---|
567 | if [ X$g4non_display = X ] ; then |
---|
568 | |
---|
569 | # Check for Windows! |
---|
570 | if test "X$G4SYSTEM" = "XWIN32-VC" -o "X$G4SYSTEM" = "XWIN32-VC7"; then |
---|
571 | |
---|
572 | echo "G4WORKDIR will be set to c:/geant4 (in "native" Windows syntax)" |
---|
573 | G4WORKDIR="c:/geant4" |
---|
574 | export G4WORKDIR |
---|
575 | |
---|
576 | else # if Unix |
---|
577 | |
---|
578 | echo "G4WORKDIR will be set to HOME/geant4=$HOME/geant4" |
---|
579 | export G4WORKDIR=$HOME/geant4 |
---|
580 | |
---|
581 | fi # if platforms |
---|
582 | |
---|
583 | fi |
---|
584 | |
---|
585 | fi |
---|
586 | |
---|
587 | # |
---|
588 | # Shared libraries |
---|
589 | # |
---|
590 | if [ $G4LIB_BUILD_SHARED ] ; then |
---|
591 | if [ $LD_LIBRARY_PATH ] ; then |
---|
592 | LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM} |
---|
593 | export LD_LIBRARY_PATH |
---|
594 | else |
---|
595 | LD_LIBRARY_PATH=${G4LIB}/${G4SYSTEM} |
---|
596 | export LD_LIBRARY_PATH |
---|
597 | fi |
---|
598 | fi |
---|
599 | |
---|
600 | # |
---|
601 | # For BIN |
---|
602 | # |
---|
603 | PATH=${PATH}:${G4WORKDIR}/bin/${G4SYSTEM} |
---|
604 | export PATH |
---|
605 | |
---|
606 | !NO!SUBS! |
---|
607 | chmod 755 env.sh |
---|
608 | $eunicefix env.sh |
---|