]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/config/oldsetup.csh
Merging the VirtualMC branch to the main development branch (HEAD)
[u/mrichter/AliRoot.git] / AliGeant4 / config / oldsetup.csh
1 # $Id$
2 # ----------------------------------------------------------------
3 # This script sets the default environment variables for
4 # Alice Geant4 based prototype
5 # Options: -g     verbose mode
6 #          local  recomended local configuration
7 #   
8 # csh version by I.Gonzalez  18.2.2000
9
10
11
12 #
13 # ==================================================================
14 # Alice configuration options: Please define your selection with the
15 # variables below.
16 # ==================================================================
17
18
19 #
20 # ====== AG4_VERSION
21 # Geant4 version
22 # If set: the provided Geant4 version and not the default one is set
23 #setenv AG4_VERSION 2.0_test
24
25 #
26 # ====== AG4_VISUALIZE
27 # Set/Unset to get/avoid Geant4 visualisation.
28 setenv AG4_VISUALIZE 1
29 #unsetenv AG4_VISUALIZE
30
31 #
32 # ====== AG4_OPACS
33 # Set/Unset to get OPACS as a Geant4 visualisation driver.
34 #setenv AG4_OPACS 1
35 unsetenv AG4_OPACS
36
37 #
38 # ====== AG4_MAKESHLIB
39 # If set: shared libraris are created
40 setenv AG4_MAKESHLIB 1
41 #unsetenv AG4_MAKESHLIB
42
43
44 #
45 # Resolve input parameters
46 #
47 set VERBOSE = "NO"
48 set LOCAL = "NO"
49 set SILENT = "NO"
50 foreach param ( $* )
51   switch ( $param )
52     case -g:
53       set VERBOSE="YES"; shift; breaksw;
54     case local:
55       set LOCAL="YES"; shift; breaksw;
56     case silent:
57       set SILENT="YES"; shift; breaksw;
58   endsw
59 end
60
61 #
62 # ==================================================================
63 # Key path variables
64 # ==================================================================
65 #
66
67 if ( "$LOCAL" == "NO" ) then
68   # 
69   # AFS
70   #
71
72   # ====== ALICE_BASE
73   # ALICE base directory
74   set ALICE_BASE = /afs/cern.ch/alice/offline
75
76   # ====== G4_BASE
77   # Geant4 base directory
78   set G4_BASE = ${ALICE_BASE}/geant4
79
80   # ====== G4MC_BASE
81   # Geant4_mc base directory
82   set G4MC_BASE = ${ALICE_BASE}
83
84   # ====== LHCXX_BASE
85   # LHC++ base directory
86   set LHCXX_BASE = /afs/cern.ch/sw/lhcxx/specific/@sys
87
88   # ====== ROOT_BASE
89   # Root base directory  
90   set ROOT_BASE = /afs/cern.ch/alice/library/root
91   # to be removed after aCC support will be defined
92   # in the offline in a standard way    
93   if ( "`uname`" == "HP-UX" ) then 
94    set ROOT_BASE = /afs/cern.ch/alice/library/.hp_ux102/root.2.23.aCC
95   endif 
96
97   # ====== IRST_BASE
98   # IRST code check tool base directory
99   setenv IRST_BASE /afs/cern.ch/alice/offline/geant4/tools/IRST
100
101 else
102   # 
103   # recommended local installation
104   #
105
106   # ====== ALICE_BASE
107   # ALICE base directory
108   set ALICE_BASE = $ALICE_INSTALL/$ALICE_LEVEL
109
110   # ====== G4_BASE
111   # Geant4 base directory
112   set G4_BASE = $ALICE_BASE
113
114   # ====== G4MC_BASE
115   # Geant4_mc base directory
116   set G4MC_BASE = $ALICE_BASE
117
118   # ====== LHCXX_BASE
119   # LHC++ base directory
120   set LHCXX_BASE = $ALICE_BASE
121
122   # ====== ROOT_BASE
123   # Root base directory  
124   set ROOT_BASE = $ALICE_BASE
125
126   # ====== IRST_BASE
127   # IRST code check tool base directory
128   #setenv IRST_BASE $HOME/dev/tools/IRST
129
130 endif
131
132
133 #....................................... SKIP ................................
134 #
135 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
136 # You should not need to change 
137 # the lines below this one
138 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
139
140 # ====== AG4_INSTALL
141 # Alice Geant4 install directory
142 #
143 setenv AG4_INSTALL $ALICE_ROOT/AliGeant4
144
145 # Set variables depending on other variables
146 # if opacs is selected then select also visualize
147 if ( "$?AG4_OPACS" == 1 ) then
148   setenv AG4_VISUALIZE 1
149 endif
150
151 # Start the output
152 if ( "$VERBOSE" == "YES" ) then
153   echo " "
154   echo "    =========================================="
155   echo "      ALICE Geant4 environment configuration"
156   echo "    =========================================="
157
158   #
159   # Some output on the selections... 
160   #
161
162   if ("$?AG4_VISUALIZE" == 1) then
163     echo "Geant4 visualisation is     selected."
164   else
165     echo "Geant4 visualisation is NOT selected."
166   endif
167   if ("$?AG4_OPACS" == 1) then
168     echo "OPACS driver         is     selected."
169   else
170     echo "OPACS driver         is NOT selected."
171   endif
172   if ("$?AG4_NOPHYSICS" == 1) then
173     echo "Only geantino or charged geantino can be shooted."
174   else
175     echo "Full physics has been selected."
176   endif
177   if ("$?AG4_ODBMS" == 1) then
178     echo "The environment for using Objectivity will be set."
179   else
180     echo "No Geant4 Persistency."
181   endif
182
183 endif
184
185 #
186 # ROOT Alice definitions & options
187 # ==================================
188 #
189 if ( "$?ROOTSYS" == 0 ) then
190   setenv ROOTSYS ${ROOT_BASE}
191 endif
192 if ( "$VERBOSE" == "YES" ) then
193   echo " "
194   echo "ROOT"
195   echo "===="
196   echo ROOTSYS set to $ROOTSYS
197 endif
198
199 #
200 # Geant4  
201 # ==================================
202 #
203 if ( "$VERBOSE" == "YES" ) then
204   echo " "
205   echo "Geant4 env. variables..."
206   echo "============================"
207 endif
208
209 if ("$?AG4_VERSION" == 0) then
210   setenv G4INSTALL ${G4_BASE}/geant4
211 else
212   setenv G4INSTALL ${G4_BASE}/g4dev/geant4.${AG4_VERSION}
213 endif
214
215 if ("$?AG4_MAKESHLIB" == 0) then
216   unsetenv G4LIB_BUILD_SHARED
217 else  
218   setenv G4LIB_BUILD_SHARED 1
219 endif  
220
221 # path to data files needed by hadronic processes
222 setenv G4LEVELGAMMADATA ${G4INSTALL}/data/PhotonEvaporation
223
224 # This is architecture dependent...
225 set SYSTEM = `uname`
226 if ( $SYSTEM == "HP-UX" ) then
227   setenv G4SYSTEM "HP-aCC"
228   #setenv G4USE_OSPACE 1        # compiling with Object Space STL
229 endif 
230 if ( $SYSTEM == "Linux" ) then
231   # check compiler version
232   set COMPILER = "g++"
233   set TMPFILE = `mktemp -u /tmp/g4compiler.XXXXXX`
234   ${COMPILER} -v >& ${TMPFILE}
235   if ( "`cat ${TMPFILE} | grep 2.96 `" != "" ) then
236     echo "WARNING: Found version of 'g++' (2.96.XXX) is known to be buggy!"
237   endif   
238   if ( "`cat ${TMPFILE} | grep egcs `" != "" ) then
239     setenv G4SYSTEM "Linux-egcs"
240   else   
241     setenv G4SYSTEM "Linux-g++"
242   endif  
243   if ( "`cat ${TMPFILE} | grep 3.1 `" != "" ) then
244     setenv GCC3 1
245   endif
246   rm ${TMPFILE}
247 endif
248 if ( $SYSTEM == "OSF1" ) then
249   setenv G4SYSTEM "DEC-cxx"
250   #setenv G4NO_STD_NAMESPACE 1  # compiling witn non ISO/ANSI setup
251 endif 
252 if ( $SYSTEM == "SunOS" ) then
253   setenv G4SYSTEM "SUN-CC"
254   setenv G4USE_OSPACE 1         # compiling with Object Space STL
255 endif 
256 if ( "$VERBOSE" == "YES" ) then
257   echo "Architecture is $SYSTEM"
258   echo "Geant4 is istalled in $G4INSTALL"
259   echo "Geant4 architecture type is $G4SYSTEM"
260   if ( "$?G4USE_OSPACE" == 1 ) then
261     echo "ObjectSpace will be used for STL"
262   endif
263 endif
264
265 #
266 # Geant4_mc  
267 # ==================================
268 #
269 if ( "$VERBOSE" == "YES" ) then
270   echo " "
271   echo "Geant4_mc env. variables..."
272   echo "============================"
273 endif
274 setenv MCINSTALL ${G4MC_BASE}/geant4_mc
275 if ( "$VERBOSE" == "YES" ) then
276   echo "geant4_mc base directory: $MCINSTALL"
277 endif
278
279 #
280 # CLHEP
281 # ==================================
282 #
283
284 if ( -d $LHCXX_BASE/CLHEP/1.8.0.0 ) then
285   setenv CLHEP_BASE_DIR $LHCXX_BASE/CLHEP/1.8.0.0
286 else
287   echo "WARNING: CLHEP has not been found in the default path."
288   if ( "$VERBOSE" == "YES" ) then
289     echo "         Please set the variable CLHEP_BASE_DIR to its base path"
290     echo "         Example: setenv  CLHEP_BASE_DIR /afs/cern.ch/sw/lhcxx/specific/@sys/CLHEP/pro"
291   endif
292 endif
293 if ( "$VERBOSE" == "YES" ) then
294   echo "CLHEP base directory: $CLHEP_BASE_DIR"
295 endif
296
297
298 #
299 # Visualization
300 # ==================================
301 #
302
303 if ( "$?AG4_VISUALIZE" == 1 ) then
304   if ( "$VERBOSE" == "YES" ) then
305     echo "G4 Visualization env. variables..."
306   endif
307
308   #
309   # tcsh UI
310   #
311   if ( "$VERBOSE" == "YES" ) then
312     echo "* tcsh UI..."
313   endif
314   setenv G4UI_USE_TCSH         1
315
316   #
317   # Xm UI
318   #
319   if ( "$VERBOSE" == "YES" ) then
320     echo "* X11 with Motif..."
321   endif
322   setenv G4UI_BUILD_XM_DRIVER  1
323   setenv G4UI_BUILD_XM_SESSION 1
324   setenv G4UI_USE_XM           1
325
326   #
327   # Fukui Renderer
328   #
329   if ( "$VERBOSE" == "YES" ) then
330     echo "* Fukui Renderer (DAWN)..."
331   endif
332   setenv G4VIS_BUILD_DAWN_DRIVER     1
333   setenv G4VIS_USE_DAWN              1
334   #setenv G4DAWNFILE_VIEWER   david
335   setenv DAWN_HOME ${G4_BASE}/../tools/bin
336   if ( "`echo ${PATH} | grep ${DAWN_HOME} `" == "" ) then
337     setenv PATH "${PATH}:${DAWN_HOME}"
338     rehash
339   endif
340   setenv G4DAWN_MULTI_WINDOW 1
341   if ( $SYSTEM == "Linux" ) then
342     setenv G4DAWN_NAMED_PIPE 1
343   endif
344
345   if ( "$VERBOSE" == "YES" ) then
346     if ("$?G4VIS_USE_DAWN" == 1) then
347       echo "  Dawn driver activated"
348     endif
349     if ("$?G4DAWNFILE_VIEWER" == 1) then
350       echo "  Dawn file viewer set to ${G4DAWNFILE_VIEWER}"
351     endif
352     if ("$?DAWN_HOME" == 1) then
353       echo "  Dawn home path set to ${DAWN_HOME}"
354     endif
355     if ("$?G4DAWN_MULTI_WINDOW" == 1) then
356       echo "  Dawn multi window selected"
357     endif
358     if ("$?G4DAWN_NAMED_PIPE" == 1) then
359       echo "  Dawn named pipe selected"
360     endif
361   endif
362
363   # David flags
364   # Set colors for overlappings
365   setenv DAVID_RAINBOW_FLAG 1
366   #setenv DAVID_HIGHLIGHT_COLOR_R  r
367   #setenv DAVID_HIGHLIGHT_COLOR_G  g
368   #setenv DAVID_HIGHLIGHT_COLOR_B  b
369
370   # If set volumes names are shown
371   setenv DAVID_DISPLAY_PVNAME   1
372   # If set supresses the call to dawn
373   #setenv DAVID_NO_VIEW  1
374   setenv DAVID_EPSILON_3D  0.001
375
376   if ( "$VERBOSE" == "YES" ) then
377     if ("$?DAVID_RAINBOW_FLAG" == 1) then
378       echo "  DAVID Rainbow mode is ON"
379     endif
380     if ("$?DAVID_HIGHLIGHT_COLOR_R" == 1) then
381       echo "  DAVID Highlight color (Red) set to ${DAVID_HIGHLIGHT_COLOR_R}"
382     endif
383     if ("$?DAVID_HIGHLIGHT_COLOR_G" == 1) then
384       echo "  DAVID Highlight color (Green) set to ${DAVID_HIGHLIGHT_COLOR_G}"
385     endif
386     if ("$?DAVID_HIGHLIGHT_COLOR_B" == 1) then
387       echo "  DAVID Highlight color (Blue) set to ${DAVID_HIGHLIGHT_COLOR_B}"
388     endif
389     if ("$?DAVID_DISPLAY_PVNAME" == 1) then
390       echo "  DAVID will display intersected volumes name"
391     endif
392     if ("$?DAVID_DISPLAY_PVNAME" == 1) then
393       echo "  Dawn will not be called from DAVID"
394     endif
395     if ("$?DAVID_EPSILON_3D" == 1) then
396       echo "  DAVID tolerance set to ${DAVID_EPSILON_3D}"
397     endif
398   endif
399
400   #
401   # OpenGL
402   #
403   if ( "$VERBOSE" == "YES" ) then
404     echo "* OpenGL..."
405   endif
406   setenv G4VIS_BUILD_OPENGLX_DRIVER  1
407   setenv G4VIS_BUILD_OPENGLXM_DRIVER 1
408   setenv G4VIS_USE_OPENGLX           1
409   setenv G4VIS_USE_OPENGLXM          1
410   #setenv OGLHOME /usr/local
411   #setenv OGLLIBS "-L$OGLHOME/lib -lMesaGLU -lMesaGL"
412   setenv OGLHOME /usr
413   setenv OGLLIBS "-L$OGLHOME/lib -lGLU -lGL"
414   if ( $SYSTEM == "HP-UX" ) then
415     setenv OGLLIBS "-L/usr/lib ${OGLLIBS}"
416   endif
417   if ( $SYSTEM == "OSF1" ) then
418     # temporarily excluded
419     # due to problems with Root
420     unsetenv G4VIS_BUILD_OPENGLX_DRIVER
421     unsetenv G4VIS_BUILD_OPENGLXM_DRIVER
422     unsetenv G4VIS_USE_OPENGLX
423     unsetenv G4VIS_USE_OPENGLXM
424     unsetenv OGLHOME
425     unsetenv OGLLIBS
426   endif
427   if ( "$VERBOSE" == "YES" ) then
428     if ("$?G4VIS_USE_OPENGLX" == 1) then
429       echo "  OpenGL and  X11 driver activated"
430     endif
431     if ("$?G4VIS_USE_OPENGLXM" == 1) then
432       echo "  OpenGL with Motif extension driver activated"
433     endif
434     if ("$?OGLHOME" == 1) then
435       echo "  OpenGL path set to ${OGLHOME}"
436     endif
437     if ("$?OGLLIBS" == 1) then
438       echo "  OpenGL libraries set to ${OGLLIBS}"
439     endif
440   endif
441
442   #
443   # OpenInventor
444   #
445   if ( "$VERBOSE" == "YES" ) then
446     echo "* OpenInventor..."
447   endif
448   #setenv G4VIS_USE_OPENINVENTOR 1
449   #setenv OIHOME whatever
450   #setenv HEPVISDIR something
451   if ( "$VERBOSE" == "YES" ) then
452     if ("$?G4VIS_USE_OPENINVENTOR" == 1) then
453       echo "  OpenInventor driver activated"
454       echo "  OpenInventor path is ${OIHOME}"
455       echo "  HepVis path is ${HEPVISDIR}"
456     endif
457   endif
458
459   #
460   # VRML1
461   #
462   if ( "$VERBOSE" == "YES" ) then
463     echo "* VRML..."
464   endif
465   setenv G4VIS_BUILD_VRML_DRIVER        1
466   setenv G4VIS_USE_VRML                 1
467   #Set preferred vrml viewer to be invoked in this mode
468   setenv G4VRMLFILE_VIEWER vrweb
469   #Set host name for VRML1 visualization.... the g4vrmlview machine!
470   setenv G4VRML_HOST_NAME nohost
471   #Command to run java listener for VRML driver
472   #alias javavrml "java -classpath $G4_BASE/tools/bin/java g4vrmlview vrweb"
473
474   if ( "$VERBOSE" == "YES" ) then
475     if ("$?G4VIS_USE_VRML" == 1) then
476       echo "  VRML driver activated"
477       echo "  Host Name for remote visualization is ${G4VRML_HOST_NAME}"
478     endif
479   endif
480
481   #
482   # GAG
483   #
484   if ( "$VERBOSE" == "YES" ) then
485     echo "* Geant Adaptative GUI (GAG)..."
486   endif
487   #setenv G4UI_USE_GAG                   1
488   #setenv MOMOPATH     ${G4_BASE}/tools/GAG/tcltk
489   #if ( "`echo ${PATH} | grep ${MOMOPATH} `" == "" ) then
490   #  setenv PATH "${PATH}:${MOMOPATH}"
491   #  rehash
492   #endif
493   #set    NCLASSPATH = ".:${G4_BASE}/tools/swing-1.0.3/swingall.jar:${G4_BASE}/tools/GAG/java/GAG.jar"
494   #if ("$?CLASSPATH" == 0) then
495   #  setenv CLASSPATH $NCLASSPATH
496   #else
497   #  if ( "`echo ${CLASSPATH} | grep ${NCLASSPATH} `" == "" ) then
498   #    setenv CLASSPATH "${CLASSPATH}:${NCLASSPATH}"
499   #  endif
500   #endif
501
502   if ( "$VERBOSE" == "YES" ) then
503     if ("$?G4UI_USE_GAG" == 1) then
504       echo "  GAG UI activated"
505       echo "  Momo path set to $MOMOPATH"
506       echo "    NOTE: Run "\'tmomo\' "to use Momo (TK/Tcl version)"
507       echo "  The path to the java GAG code was updated"
508       echo "    NOTE: Run "\'java gag\'" to use GAG (java version)"
509     endif
510   endif
511
512 else
513   if ( "$VERBOSE" == "YES" ) then
514     echo Unsetting G4 Visualization env. variables...
515   endif
516
517   #XM
518   unsetenv G4UI_BUILD_XM_DRIVER
519   unsetenv G4UI_BUILD_XM_SESSION
520   unsetenv G4UI_USE_XM
521
522   # Dawn
523   unsetenv G4VIS_BUILD_DAWN_DRIVER
524   unsetenv G4VIS_USE_DAWN
525   unsetenv G4DAWNFILE_VIEWER
526   unsetenv DAWN_HOME
527   unsetenv G4DAWN_MULTI_WINDOW
528   if ( $SYSTEM == "Linux" ) then
529     unsetenv G4DAWN_NAMED_PIPE
530   endif
531
532   # David
533   unsetenv DAVID_RAINBOW_FLAG
534   unsetenv DAVID_HIGHLIGHT_COLOR_R
535   unsetenv DAVID_HIGHLIGHT_COLOR_G
536   unsetenv DAVID_HIGHLIGHT_COLOR_B
537   unsetenv DAVID_DISPLAY_PVNAME
538   unsetenv DAVID_NO_VIEW
539   unsetenv DAVID_EPSILON_3D
540   
541   # OpenGL
542   unsetenv G4VIS_BUILD_OPENGLX_DRIVER
543   unsetenv G4VIS_BUILD_OPENGLXM_DRIVER
544   unsetenv G4VIS_USE_OPENGLX
545   unsetenv G4VIS_USE_OPENGLXM
546   unsetenv OGLHOME
547   unsetenv OGLLIBS
548
549   # OpenInventor
550   unsetenv G4VIS_USE_OPENINVENTOR
551
552   # VRML1
553   unsetenv G4VIS_BUILD_VRML_DRIVER
554   unsetenv G4VIS_USE_VRML
555   unsetenv G4VRMLFILE_VIEWER
556   unsetenv G4VRML_HOST_NAME
557
558   # GAG
559   unsetenv G4UI_USE_GAG
560   unsetenv MOMOPATH
561
562 endif
563
564 #
565 # OPACS
566 #
567 if ( "$?AG4_OPACS" == 1 ) then
568   if ( "$VERBOSE" == "YES" ) then
569     echo "* OPACS..."
570   endif
571   setenv AG4_VISUALIZE 1
572
573   #
574   # OpenGL: needed by OPACS
575   #
576   setenv G4VIS_BUILD_OPENGLX_DRIVER 1
577   setenv G4VIS_USE_OPENGLX          1
578   setenv OGLHOME /usr/local
579   setenv OGLLIBS "-L$OGLHOME/lib -lMesaGLU -lMesaGL"
580   if ( $SYSTEM == "HP-UX" ) then
581     setenv OGLLIBS "-L/usr/lib ${OGLLIBS}"
582   endif
583
584   #
585   # OPACS
586   #
587   setenv G4VIS_BUILD_OPACS_DRIVER 1
588   setenv G4UI_BUILD_WO_DRIVER     1
589   setenv G4UI_BUILD_WO_SESSION    1
590   setenv G4VIS_USE_OPACS          1
591   setenv G4UI_USE_WO              1
592   setenv OPACS_HOME $G4_BASE/tools/OPACS
593   #setenv OPACS_HOME /afs/cern.ch/rd44/dev/OPACS
594   if ( $SYSTEM == "Linux" ) then
595     setenv G4_OPACS_WIDGET_SET lesstif
596   else
597     setenv G4_OPACS_WIDGET_SET Xm
598   endif
599   source $OPACS_HOME/OPACS/v3/setup.csh
600   setenv WOENVIRONMENT $AG4_INSTALL/bin/Alice.odb
601   setenv OPATH "$OPATH $G4INSTALL/environments/OPACS/usr"
602   if ( "$VERBOSE" == "YES" ) then
603     if ("$?G4VIS_USE_OPACS" == 1) then
604       echo "  OPACS driver activated"
605       echo "  OPACS path set to $OPACS_HOME"
606     endif
607   endif
608 else   
609   if ( "$VERBOSE" == "YES" ) then
610     echo "* Unsetting OPACS driver env. variables ..."
611   endif
612   unsetenv G4VIS_BUILD_OPACS_DRIVER
613   unsetenv G4UI_BUILD_WO_DRIVER
614   unsetenv G4UI_BUILD_WO_SESSION
615   unsetenv G4VIS_USE_OPACS
616   unsetenv G4UI_USE_WO
617   unsetenv OPACS_HOME
618   unsetenv G4_OPACS_WIDGET_SET
619   unsetenv G4OROOT
620   unsetenv WOENVIRONMENT
621   unsetenv OPATH
622 endif
623
624 #
625 # path to AliGeant4 config scripts
626 #  
627 if ( "`echo ${PATH} | grep ${AG4_INSTALL}/config `" == "" ) then
628   if ( "$VERBOSE" == "YES" ) then
629     echo Adding ${AG4_INSTALL}/config to the path...
630   endif
631   setenv PATH "${PATH}:${AG4_INSTALL}/config"
632 endif
633
634 #
635 # path to shared libraries
636
637 if ( $SYSTEM == "HP-UX" ) then
638   set SHLIBVAR = $SHLIB_PATH
639   set SHLIBVARNAME = SHLIB_PATH
640 endif 
641 if ( $SYSTEM == "Linux" ) then
642   set SHLIBVAR = $LD_LIBRARY_PATH
643   set SHLIBVARNAME = LD_LIBRARY_PATH
644 endif
645 if ( $SYSTEM == "OSF1" ) then
646   set SHLIBVAR = $LD_LIBRARY_PATH
647   set SHLIBVARNAME = LD_LIBRARY_PATH
648 endif
649 if ( $SYSTEM == "SunOS" ) then
650   set SHLIBVAR = $LD_LIBRARY_PATH
651   set SHLIBVARNAME = LD_LIBRARY_PATH
652 endif
653
654 if ( "`echo ${SHLIBVAR} | grep ${G4INSTALL}/lib/${G4SYSTEM} `" == "" ) then
655   if ( "$VERBOSE" == "YES" ) then
656     echo Adding ${G4INSTALL}/lib/${G4SYSTEM} to the shared libraries path...
657   endif
658   set SHLIBVAR="${G4INSTALL}/lib/${G4SYSTEM}:${SHLIBVAR}"
659 endif
660 if ( "`echo ${SHLIBVAR} | grep ${MCINSTALL}/lib/${G4SYSTEM} `" == "" ) then
661   if ( "$VERBOSE" == "YES" ) then
662     echo Adding ${MCINSTALL}/lib/${G4SYSTEM} to the shared libraries path...
663   endif
664   set SHLIBVAR="${MCINSTALL}/lib/${G4SYSTEM}:${SHLIBVAR}"
665 endif
666 if ( "`echo ${SHLIBVAR} | grep ${CLHEP_BASE_DIR}/lib `" == "" ) then
667   if ( "$VERBOSE" == "YES" ) then
668     echo Adding ${CLHEP_BASE_DIR}/lib to the shared libraries path...
669   endif
670   set SHLIBVAR="${CLHEP_BASE_DIR}/lib:${SHLIBVAR}"
671 endif
672
673 setenv $SHLIBVARNAME $SHLIBVAR
674
675
676 #
677 # Remove unneeded variables. If this is not done the vars. remain in the env.
678 #
679
680 unset ALICE_BASE
681 unset G4_BASE
682 unset LHCXX_BASE
683 unset SYSTEM
684 unset NCLASSPATH
685 unset SHLIBVAR
686 unset SHLIBVARNAME
687 unset LOCAL
688 unset VERBOSE
689
690 if ( "$SILENT" == "NO" ) then
691   echo "Default ALICE environment for GEANT4 has been set."
692 endif