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

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

tag geant4.9.4 beta 1 + modifs locales

  • Property svn:executable set to *
File size: 16.5 KB
RevLine 
[472]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#
[483]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
[593]39unsetenv  G4NEUTRONHPDATA
[483]40unsetenv  G4RADIOACTIVEDATA
[606]41unsetenv  G4ABLADATA
[1195]42unsetenv  G4REALSURFACEDATA
[1337]43unsetenv  G4NEUTRONXSDATA
[483]44
45unsetenv  G4LIB
46unsetenv  G4LIB_BUILD_G3TOG4
47unsetenv  G4LIB_BUILD_SHARED
48unsetenv  G4LIB_BUILD_STATIC
49unsetenv  G4LIB_BUILD_ZLIB
[606]50unsetenv  G4LIB_BUILD_GDML
[483]51unsetenv  G4LIB_USE_G3TOG4
52unsetenv  G4LIB_USE_GRANULAR
53unsetenv  G4LIB_USE_ZLIB
54
55unsetenv  G4SYSTEM
56
[1195]57unsetenv  G4UI_NONE
[483]58unsetenv  G4UI_BUILD_WIN32_SESSION
[1337]59unsetenv  G4UI_BUILD_XAW_SESSION
[483]60unsetenv  G4UI_BUILD_XM_SESSION
61unsetenv  G4UI_USE_TCSH
62unsetenv  G4UI_USE_WIN32
[1337]63unsetenv  G4UI_USE_XAW
[483]64unsetenv  G4UI_USE_XM
[689]65unsetenv  G4UI_USE_QT
[483]66
[1195]67unsetenv  G4VIS_NONE
[483]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
[689]76unsetenv  G4VIS_BUILD_OPENGLQT_DRIVER
[483]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
[689]86unsetenv  G4VIS_USE_OPENGLQT
[483]87
88######################################
89#
[472]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
[1337]101    setenv G4INSTALL "$g4final_install/src/geant4"
102    echo "On this machine the G4INSTALL=\$G4INSTALL"
[472]103else
[1337]104    setenv G4INSTALL "$g4install"
105    echo "On this machine the G4INSTALL=\$G4INSTALL"
[472]106endif
107
108#+
109if ( X$g4includes_flag != Xn ) then
[1337]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"
[472]117endif
118
119#+
120if ( X$g4lib != X ) then
[1337]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"
[472]128endif
129
130#+
131if ( X$g4levelgammadata != X ) then
[1337]132    setenv G4LEVELGAMMADATA "$g4levelgammadata"
133    echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
[472]134endif
135
136#+
137if ( X$g4radioactivedata != X ) then
[1337]138    setenv G4RADIOACTIVEDATA "$g4radioactivedata"
139    echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
[472]140endif
141
142#+
143if ( X$g4ledata != X ) then
[1337]144    setenv G4LEDATA "$g4ledata"
145    echo "On this machine the G4LEDATA=\$G4LEDATA"
[472]146endif
147
148#+
149if ( X$g4neutronhpcrosssections != X ) then
[1337]150    setenv G4NEUTRONHPDATA "$g4neutronhpcrosssections"
151    echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
[472]152endif
153
154#+
[606]155if ( X$g4abladata != X ) then
[1337]156    setenv G4ABLADATA "$g4abladata"
157    echo "On this machine the G4ABLADATA=\$G4ABLADATA"
[606]158endif
159
160#+
[1195]161if ( X$g4realsurfacedata != X ) then
[1337]162    setenv G4REALSURFACEDATA "$g4realsurfacedata"
163    echo "On this machine the G4REALSURFACEDATA=\$G4REALSURFACEDATA"
[1195]164endif
[472]165
[1337]166#+
167if ( X$g4neutronxsdata != X ) then
168    setenv G4NEUTRONXSDATA "$g4neutronxsdata"
169    echo "On this machine the G4NEUTRONXSDATA=\$G4NEUTRONXSDATA"
170endif
[1195]171
[1337]172
[472]173#
174# g4clhep.U
175#
176if ( X$g4clhep_base_dir != X ) then
[1337]177    setenv CLHEP_BASE_DIR "$g4clhep_base_dir"
178    echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
[472]179endif
180
181#+
182if ( X$g4clhep_include_dir != X ) then
[1337]183    setenv CLHEP_INCLUDE_DIR "$g4clhep_include_dir"
184    echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
[472]185endif
186
187#+
188if ( X$g4clhep_lib_dir != X ) then
[1337]189    setenv CLHEP_LIB_DIR "$g4clhep_lib_dir"
190    echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
[472]191endif
192
193#+
194if ( X$g4clhep_lib != X ) then
[1337]195    setenv CLHEP_LIB "$g4clhep_lib"
196    echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
[472]197endif
198
199#+
200#
201# g4debug
202#
[483]203if ( X$g4debug == Xy ) then
[1337]204    setenv G4DEBUG 1
205    echo "On this machine the G4DEBUG=\$G4DEBUG"
[472]206endif
207
208
209#
210# g4ui
211#
212#+
[1195]213if ( X$g4ui_none == Xy ) then
[1337]214    setenv G4UI_NONE 1
215    echo "On this machine G4UI_NONE is set, so no user interfaces are available"
[1195]216endif
217
218# Check for Windows!
219if ( "X\$G4SYSTEM" != "XWIN32-VC" && "X\$G4SYSTEM" != "XWIN32-VC7" ) then
[1337]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
[1195]224endif
[1337]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"
[1195]230endif
231
232#+
[1337]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#+
[472]239if ( X$g4ui_build_xm_session == Xy ) then
[1337]240    setenv G4UI_BUILD_XM_SESSION 1
241    echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
[472]242endif
243
244#+
245if ( X$g4ui_use_xm == Xy ) then
[1337]246    setenv G4UI_USE_XM 1
247    echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
[472]248endif
249
250#+
251if ( X$g4ui_build_win32_session == Xy ) then
[1337]252    setenv G4UI_BUILD_WIN32_SESSION 1
253    echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
[472]254endif
255
256#+
257if ( X$g4ui_use_win32 == Xy ) then
[1337]258    setenv G4UI_USE_WIN32 1
259    echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
[472]260endif
261
[689]262#+
263if ( X$g4ui_build_qt_session == Xy ) then
[1337]264    setenv G4UI_BUILD_QT_SESSION 1
265    echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
[689]266endif
267
268#+
269if ( X$g4ui_use_qt == Xy ) then
[1337]270    setenv G4UI_USE_QT 1
271    echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
[689]272endif
273
274
275
[472]276#
277# g4vis
278#
279#+
[1195]280if ( X$g4vis_none == Xy ) then
[1337]281    setenv G4VIS_NONE 1
282    echo "On this machine G4VIS_NONE is set, so no vis drivers are available"
[1195]283endif
284
285#+
[472]286if ( X$g4vis_build_dawn_driver == Xy ) then
[1337]287    setenv G4VIS_BUILD_DAWN_DRIVER 1
288    echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
[472]289endif
290
291#+
292if ( X$g4vis_build_openglx_driver == Xy ) then
[1337]293    setenv G4VIS_BUILD_OPENGLX_DRIVER 1
294    echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
[472]295endif
296
297#+
298if ( X$g4vis_build_openglxm_driver == Xy ) then
[1337]299    setenv G4VIS_BUILD_OPENGLXM_DRIVER 1
300    echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
[472]301endif
302
303#+
304if ( X$g4vis_build_openglwin32_driver == Xy ) then
[1337]305    setenv G4VIS_BUILD_OPENGLWIN32_DRIVER 1
306    echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
[472]307endif
308
309#+
310if ( X$g4vis_build_oix_driver == Xy ) then
[1337]311    setenv G4VIS_BUILD_OIX_DRIVER 1
312    echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
[472]313endif
314
315#+
316if ( X$g4vis_build_raytracerx_driver == Xy ) then
[1337]317    setenv G4VIS_BUILD_RAYTRACERX_DRIVER 1
318    echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER"
[472]319endif
320
321#+
322if ( X$g4vis_build_oiwin32_driver == Xy ) then
[1337]323    setenv G4VIS_BUILD_OIWIN32_DRIVER 1
324    echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
[472]325endif
326
327#+
328if ( X$g4vis_build_vrml_driver == Xy ) then
[1337]329    setenv G4VIS_BUILD_VRML_DRIVER 1
330    echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
[472]331endif
332
333#+
[689]334if ( X$g4vis_build_openglqt_driver == Xy ) then
[1337]335    setenv G4VIS_BUILD_OPENGLQT_DRIVER 1
336    echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
[689]337endif
338
339
340#+
[472]341if ( X$g4vis_use_dawn == Xy ) then
[1337]342    setenv G4VIS_USE_DAWN 1
343    echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
[472]344endif
345
346#+
347if ( X$g4vis_use_openglx == Xy ) then
[1337]348    setenv G4VIS_USE_OPENGLX 1
349    echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
[472]350endif
351
352#+
353if ( X$g4vis_use_openglxm == Xy ) then
[1337]354    setenv G4VIS_USE_OPENGLXM 1
355    echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
[472]356endif
357
358#+
359if ( X$g4vis_use_openglwin32 == Xy ) then
[1337]360    setenv G4VIS_USE_OPENGLWIN32 1
361    echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
[472]362endif
363
364#+
365if ( X$g4vis_use_oix == Xy ) then
[1337]366    setenv G4VIS_USE_OIX 1
367    echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
[472]368endif
369
370#+
371if ( X$g4vis_use_raytracerx == Xy ) then
[1337]372    setenv G4VIS_USE_RAYTRACERX 1
373    echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX"
[472]374endif
375
376#+
377if ( X$g4vis_use_oiwin32 == Xy ) then
[1337]378    setenv G4VIS_USE_OIWIN32 1
379    echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
[472]380endif
381
382#+
383if ( X$g4vis_use_vrml == Xy ) then
[1337]384    setenv G4VIS_USE_VRML 1
385    echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
[472]386endif
387
388#+
[689]389if ( X$g4vis_use_openglqt == Xy ) then
[1337]390    setenv G4VIS_USE_OPENGLQT 1
391    echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
[689]392endif
393
394#+
[472]395if ( X$g4vis_oglhome != X )  then
[1337]396    setenv OGLHOME "$g4vis_oglhome"
397    echo "On this machine the OGLHOME=\$OGLHOME"
[472]398endif
399
400#+
401if ( X$g4vis_oivhome != X )  then
[1337]402    setenv OIVHOME "$g4vis_oivhome"
403    echo "On this machine the OIVHOME=\$OIVHOME"
[472]404endif
405
[689]406
407#+
[472]408if ( X$g4vis_build_openglxm_driver != X )  then
[1337]409    setenv XMFLAGS "$g4vis_xmflags"
410    echo "On this machine the XMFLAGS=\$XMFLAGS"
[472]411endif
412
413#+
414if ( X$g4vis_build_openglxm_driver != X )  then
[1337]415    setenv XMLIBS "$g4vis_xmlibs"
416    echo "On this machine the XMLIBS=\$XMLIBS"
[472]417endif
418
419#+
420if ( X$g4ui_build_xm_session != X )  then
[1337]421    setenv XMFLAGS "$g4vis_xmflags"
422    echo "On this machine the XMFLAGS=\$XMFLAGS"
[472]423endif
424
425#+
426if ( X$g4ui_build_xm_session != X )  then
[1337]427    setenv XMLIBS "$g4vis_xmlibs"
428    echo "On this machine the XMLIBS=\$XMLIBS"
[472]429endif
430
[1337]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
[886]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
[1337]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"
[886]454endif
[606]455
[886]456if ( "X$g4vis_build_openglqt_driver" == "Xy" || "X$g4vis_build_openglqt_driver" == "Xy" )  then
[1337]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"
[886]471endif
472
473
474
475
476
[472]477#
[606]478# Use GDML module
479#
480#+
481if ( X$g4lib_build_gdml == Xy ) then
[1337]482    setenv G4LIB_BUILD_GDML 1
483    echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
[606]484endif
485
486if ( X$g4lib_build_gdml == Xy ) then
[1337]487    setenv XERCESCROOT "$g4gdml_xercesc_root"
488    echo "On this machine the XERCESCROOT=\$XERCESCROOT"
[606]489endif
490
491
492
493
494#
[472]495# Use G3TOG4 module
496#
497#+
498if ( X$g4wlib_build_g3tog4 == Xy )  then
[1337]499    setenv G4LIB_BUILD_G3TOG4 1
500    echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
[472]501endif
502
503if ( X$g4w_use_g3tog4 == Xy )  then
[1337]504    setenv G4LIB_USE_G3TOG4 1
505    echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
[472]506endif
507
508
509#
510# Use ZLIB module
511#
512#+
513if ( X$g4wlib_build_zlib == Xy )  then
[1337]514    setenv G4LIB_BUILD_ZLIB 1
515    echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
[472]516endif
517
518if ( X$g4w_use_ZLIB == Xy )  then
[1337]519    setenv G4LIB_USE_ZLIB 1
520    echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
[472]521endif
522
523#+
524#
525# g4shared
526#
527if ( X$g4lib_build_shared == Xy ) then
[1337]528    setenv G4LIB_BUILD_SHARED 1
529    echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
[472]530endif
531
532if ( X$g4lib_build_static == Xy ) then
[1337]533    setenv G4LIB_BUILD_STATIC 1
534    echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
[472]535endif
536
537#+
538#
539# g4granular
540#
541if ( X$g4lib_use_granular == Xy ) then
[1337]542    setenv G4LIB_USE_GRANULAR 1
543    echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
[472]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
[1337]559    echo "In your environment you have the G4WORKDIR=$G4WORKDIR"
[472]560else
[1337]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
[472]569endif
570
571#
[1337]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
[483]577
[1337]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
[483]583
[1337]584        setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
[606]585
[1337]586        if ( ${?G4LIB_BUILD_GDML} ) then
587            setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
588        endif
[606]589
[1337]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
[472]602else
[1337]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
[606]611
[1337]612        setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
[606]613
[1337]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
[472]629endif
630
[1337]631
[472]632#
[1337]633# Warning about LD_LIBRARY_PATH
[483]634#
[1337]635echo ''
[483]636if ( ${?G4LIB_BUILD_SHARED} ) then
[1337]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
[483]642else
[1337]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
[483]648endif
[1337]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 ''
[606]657
[483]658#
[472]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.