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