source: trunk/config/scripts/env.sh.SH @ 994

Last change on this file since 994 was 886, checked in by garnier, 16 years ago

change and better Leopard check on Mac OSX

  • Property svn:executable set to *
File size: 17.4 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.sh (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.sh <<!GROK!THIS!
25######################################
26#
27# Clean all G4 envs
28unset  CLHEP_BASE_DIR
29unset  CLHEP_INCLUDE_DIR
30unset  CLHEP_LIB
31unset  CLHEP_LIB_DIR
32
33unset  G4ANALYSIS_USE
34unset  G4DEBUG
35unset  G4INCLUDE
36unset  G4INSTALL
37
38unset  G4LEDATA
39unset  G4LEVELGAMMADATA
40unset  G4NEUTRONHPDATA
41unset  G4RADIOACTIVEDATA
42unset  G4ABLADATA
43
44unset  G4LIB
45unset  G4LIB_BUILD_G3TOG4
46unset  G4LIB_BUILD_SHARED
47unset  G4LIB_BUILD_STATIC
48unset  G4LIB_BUILD_ZLIB
49unset  G4LIB_BUILD_GDML
50unset  G4LIB_USE_G3TOG4
51unset  G4LIB_USE_GRANULAR
52unset  G4LIB_USE_ZLIB
53
54unset  G4SYSTEM
55
56unset  G4UI_BUILD_WIN32_SESSION
57unset  G4UI_BUILD_XAW_SESSION
58unset  G4UI_BUILD_XM_SESSION
59unset  G4UI_USE_TCSH
60unset  G4UI_USE_WIN32
61unset  G4UI_USE_XAW
62unset  G4UI_USE_XM
63unset  G4UI_USE_QT
64
65unset  G4VIS_BUILD_DAWN_DRIVER
66unset  G4VIS_BUILD_OIWIN32_DRIVER
67unset  G4VIS_BUILD_OIX_DRIVER
68unset  G4VIS_BUILD_OPENGLWIN32_DRIVER
69unset  G4VIS_BUILD_OPENGLXM_DRIVER
70unset  G4VIS_BUILD_OPENGLX_DRIVER
71unset  G4VIS_BUILD_RAYTRACERX_DRIVER
72unset  G4VIS_BUILD_VRML_DRIVER
73unset  G4VIS_BUILD_OPENGLQT_DRIVER
74
75unset  G4VIS_USE_DAWN
76unset  G4VIS_USE_OIWIN32
77unset  G4VIS_USE_OIX
78unset  G4VIS_USE_OPENGLWIN32
79unset  G4VIS_USE_OPENGLX
80unset  G4VIS_USE_OPENGLXM
81unset  G4VIS_USE_RAYTRACERX
82unset  G4VIS_USE_VRML
83unset  G4VIS_USE_OPENGLQT
84
85
86#
87# g4system.U
88#
89#+
90G4SYSTEM="$g4system"
91export G4SYSTEM
92if [ X\$g4non_display = X ] ; then
93echo "On this machine the G4SYSTEM=\$G4SYSTEM"
94fi
95
96#
97# g4dirs.U
98#
99#+
100if [ X$g4install != X$g4final_install ] ; then
101G4INSTALL="$g4final_install/src/geant4"
102else
103G4INSTALL="$g4install"
104fi
105export G4INSTALL
106if [ X\$g4non_display = X ] ; then
107echo "On this machine the G4INSTALL=\$G4INSTALL"
108fi
109
110#+
111if [ X$g4includes_flag != Xn ] ; then 
112if [ X$g4install != X$g4final_install ] ; then
113G4INCLUDE="$g4final_install/include/geant4"
114else
115G4INCLUDE="$g4install/include/"
116fi
117export G4INCLUDE
118if [ X\$g4non_display = X ] ; then
119echo "On this machine the G4INCLUDE=\$G4INCLUDE"
120fi
121#else
122#G4BASE="$g4final_install/include/geant4/source"
123#export G4BASE
124#if [ X\$g4non_display = X ] ; then
125#echo "On this machine the G4BASE=\$G4BASE"
126#fi
127fi
128
129#+
130if [ X$g4lib != X ] ; then 
131if [ X$g4install != X$g4final_install ] ; then
132G4LIB="$g4final_install/lib/geant4"
133else
134G4LIB="$g4install/lib"
135fi
136export G4LIB
137if [ X\$g4non_display = X ] ; then
138echo "On this machine the G4LIB=\$G4LIB"
139fi
140fi
141
142#+
143if [ X$g4levelgammadata != X ] ; then 
144G4LEVELGAMMADATA="$g4levelgammadata"
145export G4LEVELGAMMADATA
146if [ X\$g4non_display = X ] ; then
147echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
148fi
149fi
150
151#+
152if [ X$g4radioactivedata != X ] ; then 
153G4RADIOACTIVEDATA="$g4radioactivedata"
154export G4RADIOACTIVEDATA
155if [ X\$g4non_display = X ] ; then
156echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
157fi
158fi
159
160#+
161if [ X$g4ledata != X ] ; then 
162G4LEDATA="$g4ledata"
163export G4LEDATA
164if [ X\$g4non_display = X ] ; then
165echo "On this machine the G4LEDATA=\$G4LEDATA"
166fi
167fi
168
169#+
170if [ X$g4neutronhpcrosssections != X ] ; then 
171G4NEUTRONHPDATA="$g4neutronhpcrosssections"
172export G4NEUTRONHPDATA
173if [ X\$g4non_display = X ] ; then
174echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
175fi
176fi
177
178#+
179if [ X$g4abladata != X ] ; then 
180G4ABLADATA="$g4abladata"
181export G4ABLADATA
182if [ X\$g4non_display = X ] ; then
183echo "On this machine the G4ABLADATA=\$G4ABLADATA"
184fi
185fi
186
187
188
189
190#+
191#if [ X$g4elasticdata != X ] ; then
192#G4ELASTICDATA="$g4elasticdata"
193#export G4ELASTICDATA
194#if [ X\$g4non_display = X ] ; then
195#echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA"
196#fi
197#fi
198
199#
200# g4clhep.U
201#
202if [ X$g4clhep_base_dir != X ] ; then 
203CLHEP_BASE_DIR="$g4clhep_base_dir"
204export CLHEP_BASE_DIR
205if [ X\$g4non_display = X ] ; then
206echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
207fi
208fi
209
210#+
211if [ X$g4clhep_include_dir != X ] ; then 
212CLHEP_INCLUDE_DIR="$g4clhep_include_dir"
213export CLHEP_INCLUDE_DIR
214if [ X\$g4non_display = X ] ; then
215echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
216fi
217fi
218
219#+
220if [ X$g4clhep_lib_dir != X ] ; then 
221CLHEP_LIB_DIR="$g4clhep_lib_dir"
222export CLHEP_LIB_DIR
223if [ X\$g4non_display = X ] ; then
224echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
225fi
226fi
227
228#+
229if [ X$g4clhep_lib != X ] ; then 
230CLHEP_LIB="$g4clhep_lib"
231export CLHEP_LIB
232if [ X\$g4non_display = X ] ; then
233echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
234fi
235fi
236
237#+
238#
239# g4debug
240#
241if [ X$g4debug = Xy ] ; then 
242G4DEBUG=1
243export G4DEBUG
244if [ X\$g4non_display = X ] ; then
245echo "On this machine the G4DEBUG=\$G4DEBUG"
246fi
247fi
248
249#
250# g4analysis
251#
252#+
253if [ X$g4wanalysis_use = Xy ] ; then
254G4ANALYSIS_USE=1
255export G4ANALYSIS_USE
256if [ X\$g4non_display = X ] ; then
257echo "On this machine the G4ANALYSIS_USE=\$G4ANALYSIS_USE"
258fi
259fi 
260
261#
262# g4ui
263#
264#+
265if [ X$g4ui_build_xaw_session = Xy ] ; then
266G4UI_BUILD_XAW_SESSION=1
267export G4UI_BUILD_XAW_SESSION
268if [ X\$g4non_display = X ] ; then
269echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION"
270fi
271fi 
272
273#+
274if [ X$g4ui_use_xaw = Xy ] ; then
275G4UI_USE_XAW=1
276export G4UI_USE_XAW
277if [ X\$g4non_display = X ] ; then
278echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW"
279fi
280fi 
281
282#+
283if [ X$g4ui_build_xm_session = Xy ] ; then
284G4UI_BUILD_XM_SESSION=1
285export G4UI_BUILD_XM_SESSION
286if [ X\$g4non_display = X ] ; then
287echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
288fi
289fi 
290
291#+
292if [ X$g4ui_use_xm = Xy ] ; then
293G4UI_USE_XM=1
294export G4UI_USE_XM
295if [ X\$g4non_display = X ] ; then
296echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
297fi
298fi 
299
300#+
301if [ X$g4ui_build_win32_session = Xy ] ; then
302G4UI_BUILD_WIN32_SESSION=1
303export G4UI_BUILD_WIN32_SESSION
304if [ X\$g4non_display = X ] ; then
305echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
306fi
307fi 
308
309#+
310if [ X$g4ui_use_win32 = Xy ] ; then
311G4UI_USE_WIN32=1
312export G4UI_USE_WIN32
313if [ X\$g4non_display = X ] ; then
314echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
315fi
316fi 
317
318
319#+
320if [ X$g4ui_build_qt_session = Xy ] ; then
321G4UI_BUILD_QT_SESSION=1
322export G4UI_BUILD_QT_SESSION
323if [ X\$g4non_display = X ] ; then
324echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
325fi
326fi 
327
328#+
329if [ X$g4ui_use_qt = Xy ] ; then
330G4UI_USE_QT=1
331export G4UI_USE_QT
332if [ X\$g4non_display = X ] ; then
333echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
334fi
335fi 
336
337
338
339#
340# g4vis
341#
342#+
343if [ X$g4vis_build_dawn_driver = Xy ] ; then
344G4VIS_BUILD_DAWN_DRIVER=1
345export G4VIS_BUILD_DAWN_DRIVER
346if [ X\$g4non_display = X ] ; then
347echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
348fi
349fi 
350
351#+
352if [ X$g4vis_build_openglx_driver = Xy ] ; then
353G4VIS_BUILD_OPENGLX_DRIVER=1
354export G4VIS_BUILD_OPENGLX_DRIVER
355if [ X\$g4non_display = X ] ; then
356echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
357fi
358fi 
359
360#+
361if [ X$g4vis_build_openglxm_driver = Xy ] ; then
362G4VIS_BUILD_OPENGLXM_DRIVER=1
363export G4VIS_BUILD_OPENGLXM_DRIVER
364if [ X\$g4non_display = X ] ; then
365echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
366fi
367fi 
368
369#+
370if [ X$g4vis_build_openglwin32_driver = Xy ] ; then
371G4VIS_BUILD_OPENGLWIN32_DRIVER=1
372export G4VIS_BUILD_OPENGLWIN32_DRIVER
373if [ X\$g4non_display = X ] ; then
374echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
375fi
376fi 
377
378#+
379if [ X$g4vis_build_oix_driver = Xy ] ; then
380G4VIS_BUILD_OIX_DRIVER=1
381export G4VIS_BUILD_OIX_DRIVER
382if [ X\$g4non_display = X ] ; then
383echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
384fi
385fi 
386
387#+
388if [ X$g4vis_build_raytracerx_driver = Xy ] ; then
389G4VIS_BUILD_RAYTRACERX_DRIVER=1
390export G4VIS_BUILD_RAYTRACERX_DRIVER
391if [ X\$g4non_display = X ] ; then
392echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER"
393fi
394fi 
395
396#+
397if [ X$g4vis_build_oiwin32_driver = Xy ] ; then
398G4VIS_BUILD_OIWIN32_DRIVER=1
399export G4VIS_BUILD_OIWIN32_DRIVER
400if [ X\$g4non_display = X ] ; then
401echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
402fi
403fi 
404
405#+
406if [ X$g4vis_build_vrml_driver = Xy ] ; then
407G4VIS_BUILD_VRML_DRIVER=1
408export G4VIS_BUILD_VRML_DRIVER
409if [ X\$g4non_display = X ] ; then
410echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
411fi
412fi 
413
414#+
415if [ X$g4vis_build_openglqt_driver = Xy ] ; then
416G4VIS_BUILD_OPENGLQT_DRIVER=1
417export G4VIS_BUILD_OPENGLQT_DRIVER
418if [ X\$g4non_display = X ] ; then
419echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
420fi
421fi 
422
423
424
425#+
426if [ X$g4vis_use_dawn = Xy ] ; then
427G4VIS_USE_DAWN=1
428export G4VIS_USE_DAWN
429if [ X\$g4non_display = X ] ; then
430echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
431fi
432fi 
433
434#+
435if [ X$g4vis_use_openglx = Xy ] ; then
436G4VIS_USE_OPENGLX=1
437export G4VIS_USE_OPENGLX
438if [ X\$g4non_display = X ] ; then
439echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
440fi
441fi 
442
443#+
444if [ X$g4vis_use_openglxm = Xy ] ; then
445G4VIS_USE_OPENGLXM=1
446export G4VIS_USE_OPENGLXM
447if [ X\$g4non_display = X ] ; then
448echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
449fi
450fi 
451
452#+
453if [ X$g4vis_use_openglwin32 = Xy ] ; then
454G4VIS_USE_OPENGLWIN32=1
455export G4VIS_USE_OPENGLWIN32
456if [ X\$g4non_display = X ] ; then
457echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
458fi
459fi 
460
461#+
462if [ X$g4vis_use_oix = Xy ] ; then
463G4VIS_USE_OIX=1
464export G4VIS_USE_OIX
465if [ X\$g4non_display = X ] ; then
466echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
467fi
468fi 
469
470#+
471if [ X$g4vis_use_raytracerx = Xy ] ; then
472G4VIS_USE_RAYTRACERX=1
473export G4VIS_USE_RAYTRACERX
474if [ X\$g4non_display = X ] ; then
475echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX"
476fi
477fi 
478
479#+
480if [ X$g4vis_use_oiwin32 = Xy ] ; then
481G4VIS_USE_OIWIN32=1
482export G4VIS_USE_OIWIN32
483if [ X\$g4non_display = X ] ; then
484echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
485fi
486fi 
487
488#+
489if [ X$g4vis_use_vrml = Xy ] ; then
490G4VIS_USE_VRML=1
491export G4VIS_USE_VRML
492if [ X\$g4non_display = X ] ; then
493echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
494fi
495fi 
496
497#+
498if [ X$g4vis_use_openglqt = Xy ] ; then
499G4VIS_USE_OPENGLQT=1
500export G4VIS_USE_OPENGLQT
501if [ X\$g4non_display = X ] ; then
502echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
503fi
504fi
505
506
507
508#+
509if [ X$g4vis_oglhome != X ] ; then
510OGLHOME="$g4vis_oglhome"
511export OGLHOME
512if [ X\$g4non_display = X ] ; then
513echo "On this machine the OGLHOME=\$OGLHOME"
514fi
515fi 
516
517#+
518if [ X$g4vis_oivhome != X ] ; then
519OIVHOME="$g4vis_oivhome"
520export OIVHOME
521if [ X\$g4non_display = X ] ; then
522echo "On this machine the OIVHOME=\$OIVHOME"
523fi
524fi 
525
526
527
528#+
529if [ X$g4vis_build_openglxm_driver != X ] ; then
530XMFLAGS="$g4vis_xmflags"
531export XMFLAGS
532if [ X\$g4non_display = X ] ; then
533echo "On this machine the XMFLAGS=\$XMFLAGS"
534fi
535fi 
536
537#+
538if [ X$g4vis_build_openglxm_driver != X ] ; then
539XMLIBS="$g4vis_xmlibs"
540export XMLIBS
541if [ X\$g4non_display = X ] ; then
542echo "On this machine the XMLIBS=\$XMLIBS"
543fi
544fi 
545
546#+
547if [ X$g4ui_build_xm_session != X ] ; then
548XMFLAGS="$g4vis_xmflags"
549export XMFLAGS
550if [ X\$g4non_display = X ] ; then
551echo "On this machine the XMFLAGS=\$XMFLAGS"
552fi
553fi 
554
555#+
556if [ X$g4vis_build_xm_session != X ] ; then
557XMLIBS="$g4vis_xmlibs"
558export XMLIBS
559if [ X\$g4non_display = X ] ; then
560echo "On this machine the XMLIBS=\$XMLIBS"
561fi
562fi 
563
564#+
565if [ X$g4ui_build_xaw_session != X ] ; then
566XAWFLAGS="$g4ui_xawflags"
567export XAWFLAGS
568if [ X\$g4non_display = X ] ; then
569echo "On this machine the XAWFLAGS=\$XAWFLAGS"
570fi
571fi 
572
573#+
574if [ X$g4ui_build_xaw_session != X ] ; then
575XAWLIBS="$g4ui_xawlibs"
576export XAWLIBS
577if [ X\$g4non_display = X ] ; then
578echo "On this machine the XAWLIBS=\$XAWLIBS"
579fi
580fi 
581
582
583#
584# Qt Flags and Libs, messy, but needed for backward compatibility
585#+
586if [ "X$g4ui_build_qt_session" = "Xy" -o "X$g4ui_use_qt" = "Xy" ] ; then
587QTFLAGS="$g4_qt_cxxflags"
588QTLIBS="$g4_qt_libs"
589QTMOC="$g4_qt_moc"
590export QTFLAGS
591export QTLIBS
592export QTMOC
593echo "On this machine the QTFLAGS=\$QTFLAGS"
594echo "On this machine the QTLIBS=\$QTLIBS"
595echo "On this machine the QTMOC=\$QTMOC"
596fi
597
598if [ "X$g4vis_build_openglqt_driver" = "Xy" -o "X$g4vis_build_openglqt_driver" = "Xy" ] ; then
599if [ "X\$QTFLAGS" = "X" ] ; then
600QTFLAGS="$g4_qt_cxxflags $g4_qt_gl_cxxflags"
601else
602QTFLAGS="\$QTFLAGS $g4_qt_gl_cxxflags"
603fi
604if [ "X\$QTMOC" = "X" ] ; then
605QTMOC="$g4_qt_moc"
606fi
607GLQTLIBS="$g4_qt_libs $g4_qt_gl_libs"
608export QTFLAGS
609export QTMOC
610export GLQTLIBS
611echo "On this machine the QTFLAGS=\$QTFLAGS"
612echo "On this machine the GLQTLIBS=\$GLQTLIBS"
613echo "On this machine the QTMOC=\$QTMOC"
614fi
615
616
617
618#
619# Use GDML module
620#
621#+
622if [ X$g4lib_build_gdml = Xy ] ; then
623G4LIB_BUILD_GDML=1
624export G4LIB_BUILD_GDML
625echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
626fi 
627
628if [ X$g4lib_build_gdml = Xy ] ; then
629XERCESCROOT=$g4gdml_xercesc_root
630export XERCESCROOT
631echo "On this machine the XERCESCROOT=\$XERCESCROOT"
632fi 
633
634
635
636#
637# Use G3TOG4 module
638#
639#+
640if [ X$g4wlib_build_g3tog4 = Xy ] ; then
641G4LIB_BUILD_G3TOG4=1
642export G4LIB_BUILD_G3TOG4
643if [ X\$g4non_display = X ] ; then
644echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
645fi
646fi 
647
648if [ X$g4w_use_g3tog4 = Xy ] ; then
649G4LIB_USE_G3TOG4=1
650export G4LIB_USE_G3TOG4
651if [ X\$g4non_display = X ] ; then
652echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
653fi
654fi 
655
656#
657# Use ZLIB module
658#
659#+
660if [ X$g4wlib_build_zlib = Xy ] ; then
661G4LIB_BUILD_ZLIB=1
662export G4LIB_BUILD_ZLIB
663if [ X\$g4non_display = X ] ; then
664echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
665fi
666fi 
667
668if [ X$g4w_use_zlib = Xy ] ; then
669G4LIB_USE_ZLIB=1
670export G4LIB_USE_ZLIB
671if [ X\$g4non_display = X ] ; then
672echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
673fi
674fi 
675
676
677#+
678#
679# g4shared
680#
681if [ X$g4lib_build_shared = Xy ] ; then
682G4LIB_BUILD_SHARED=1
683export G4LIB_BUILD_SHARED
684if [ X\$g4non_display = X ] ; then
685echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
686fi
687fi 
688
689if [ X$g4lib_build_static = Xy ] ; then
690G4LIB_BUILD_STATIC=1
691export G4LIB_BUILD_STATIC
692if [ X\$g4non_display = X ] ; then
693echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
694fi
695fi 
696
697#+
698#
699# g4granular
700#
701if [ X$g4lib_use_granular = Xy ] ; then
702G4LIB_USE_GRANULAR=1
703export G4LIB_USE_GRANULAR
704if [ X\$g4non_display = X ] ; then
705echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
706fi
707fi 
708
709# Check for Windows!
710if test "X\$G4SYSTEM" != "XWIN32-VC" -a "X\$G4SYSTEM" != "XWIN32-VC7"; then
711#+
712#
713# UI_USE_TCSH for Unix
714#
715G4UI_USE_TCSH=1
716export G4UI_USE_TCSH
717if [ X\$g4non_display = X ] ; then
718echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"
719fi 
720fi
721
722#####################################################################
723
724!GROK!THIS!
725
726: In the following dollars and backticks do not need the extra backslash.
727$spitshell >>env.sh <<'!NO!SUBS!'
728
729
730#+
731#
732# G4WORKDIR
733#
734if [ $G4WORKDIR ] ; then
735
736if [ X\$g4non_display = X ] ; then
737echo "In your environment you have the G4WORKDIR=$G4WORKDIR"
738fi
739
740else
741
742# Check for Windows!
743if test "X$G4SYSTEM" = "XWIN32-VC" -o "X$G4SYSTEM" = "XWIN32-VC7"; then
744
745if [ X\$g4non_display = X ] ; then
746echo "G4WORKDIR will be set to c:/geant4 (in "native" Windows syntax)"
747fi
748
749G4WORKDIR="c:/geant4"
750export G4WORKDIR
751
752else # if Unix
753
754if [ X\$g4non_display = X ] ; then
755echo "G4WORKDIR will be set to HOME/geant4=$HOME/geant4"
756fi
757
758G4WORKDIR=$HOME/geant4
759export G4WORKDIR
760
761fi # if platforms
762
763fi
764
765
766
767
768#
769# Shared libraries
770#
771if [ $G4LIB_BUILD_SHARED ] ; then
772#
773# Warning about LD_LIBRARY_PATH
774#
775echo ''
776echo 'LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
777echo ''
778echo 'NOTE : verify that the correct path for the CLHEP library'
779echo '- $CLHEP_BASE_DIR/lib - is included in the $LD_LIBRARY_PATH'
780echo 'variable in your environment, and no other outdated installations'
781echo 'of CLHEP are by chance referenced through $LD_LIBRARY_PATH and'
782echo 'present in your system !'
783echo ''
784
785if [ $LD_LIBRARY_PATH ] ; then
786LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
787LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_BASE_DIR}/lib
788
789if [ $G4LIB_BUILD_GDML ] ; then
790   LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
791fi
792export LD_LIBRARY_PATH
793
794else
795LD_LIBRARY_PATH=${G4LIB}/${G4SYSTEM}
796LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_BASE_DIR}/lib
797
798if [ $G4LIB_BUILD_GDML ] ; then
799   LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
800fi
801
802export LD_LIBRARY_PATH
803fi
804fi
805
806#
807# Shared libraries for Mac
808#
809if test "X$G4SYSTEM" = "XDarwin-g++" ; then
810
811if [ $G4LIB_BUILD_SHARED ] ; then
812if [ $DYLD_LIBRARY_PATH ] ; then
813DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
814DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_BASE_DIR}/lib
815
816if [ $G4LIB_BUILD_GDML ] ; then
817   DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
818fi
819
820export DYLD_LIBRARY_PATH
821else
822DYLD_LIBRARY_PATH=${G4LIB}/${G4SYSTEM}
823DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_BASE_DIR}/lib
824
825if [ $G4LIB_BUILD_GDML ] ; then
826   DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
827fi
828
829export DYLD_LIBRARY_PATH
830fi
831fi
832
833fi
834
835#
836# For BIN
837#
838PATH=${PATH}:${G4WORKDIR}/bin/${G4SYSTEM}
839export PATH
840
841!NO!SUBS!
842chmod 755 env.sh
843$eunicefix env.sh
Note: See TracBrowser for help on using the repository browser.