source: trunk/config/scripts/env.csh.SH@ 1346

Last change on this file since 1346 was 1337, checked in by garnier, 15 years ago

tag geant4.9.4 beta 1 + modifs locales

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