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