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