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