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