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