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