Changeset 1195 for trunk


Ignore:
Timestamp:
Nov 25, 2009, 5:02:54 PM (15 years ago)
Author:
garnier
Message:

update CVS release candidate geant4.9.3.01

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configure

    r1056 r1195  
    1919#
    2020
    21 # $Id: Configure,v 1.116 2009/05/26 17:37:44 bmorgan Exp $
     21# $Id: Configure,v 1.124 2009/11/24 13:10:37 bmorgan Exp $
    2222#
    23 # Generated on Tue May 26 18:39:05 BST 2009 [metaconfig 3.0 PL70]
     23# Generated on Tue Nov 24 13:09:42 GMT 2009 [metaconfig 3.0 PL70]
    2424
    2525cat >/tmp/c1$$ <<EOF
     
    247247g4gdml_xercesc_root=''
    248248g4lib_build_gdml=''
    249 g4wanalysis_build=''
    250 g4wanalysis_build_jas=''
    251 g4wanalysis_build_lab=''
    252 g4wanalysis_build_lizard=''
    253 g4wanalysis_use=''
    254 g4wanalysis_use_jas=''
    255 g4wanalysis_use_lab=''
    256 g4wanalysis_use_lizard=''
    257249g4_gmake=''
    258250g4_gmake_version=''
     
    291283fi
    292284
     285#INITIALIZE LIBRARY BUILD OPTIONS
     286g4lib_build_shared='y'
     287g4lib_use_shared='y'
     288g4lib_build_static='n'
     289g4lib_use_static='n'
     290g4lib_build_dll='n'
     291g4lib_build_dyn='n'
     292#INITIALIZE GLOBAL/GRANULAR LIBRARY OPTIONS
     293g4global='y'
     294g4granular='n'
     295g4lib_use_granular='n'
     296#INITIALIZE DEBUGGING OPTIONS
     297g4debug='n'
    293298#INITIALIZE QT UI OPTIONS
    294 g4ui_build_qt_session='n'
    295 g4ui_use_qt='n'
    296 g4_qthome=''
    297 #END QT UI OPTIONS
     299g4ui_none='n'
     300g4ui_build_terminal_session='y'
     301g4ui_use_terminal='y'
     302g4ui_build_gag_session='y'
     303g4ui_use_gag='y'
     304g4ui_build_xm_session='n'
     305g4ui_use_xm='n'
     306g4ui_build_xaw_session='n'
     307g4ui_use_xaw='n'
     308g4ui_build_win32_session='n'
     309g4ui_use_win32='n'
     310g4ui_use_tcsh='y'
    298311#INITIALIZE QT UI OPTIONS
    299312g4ui_build_qt_session='n'
    300313g4ui_use_qt='n'
    301314#END QT UI OPTIONS
     315#INITIALIZE VIS DRIVER OPTIONS
     316g4vis_none='n'
     317g4vis_build_openglwin32_driver='n'
     318g4vis_use_openglwin32='n'
     319g4vis_build_oiwin32_driver='n'
     320g4vis_use_oiwin32='n'
     321g4vis_build_dawn_driver='n'
     322g4vis_use_dawn='n'
     323g4vis_build_dawnfile_driver='y'
     324g4vis_use_dawnfile='y'
     325g4vis_build_openglx_driver='n'
     326g4vis_use_openglx='n'
     327g4vis_build_openglxm_driver='n'
     328g4vis_use_openglxm='n'
     329g4vis_build_oix_driver='n'
     330g4vis_use_oix='n'
     331g4vis_build_raytracerx_driver='n'
     332g4vis_use_raytracerx='n'
     333g4vis_build_raytracer_driver='y'
     334g4vis_use_raytracer='y'
     335g4vis_build_vrml_driver='y'
     336g4vis_use_vrml='y'
     337g4vis_build_asciitree_driver='y'
     338g4vis_use_asciitree='y'
     339g4vis_build_gagtree_driver='y'
     340g4vis_use_gagtree='y'
    302341#INITIALIZE QT VIS DRIVER OPTIONS
    303342g4vis_build_openglqt_driver='n'
    304343g4vis_use_openglqt='n'
    305344#END QT VIS DRIVER OPTIONS
     345#INITIALIZE GDML OPTIONS
     346g4lib_build_gdml='n'
    306347#INITIALIZE G4MAKE
    307348g4make=""
    308349#END G4MAKE INITIALIZATION
     350#INITIALIZE G3TOG4 OPTIONS
     351g4wlib_build_g3tog4='n'
     352g4wlib_use_g3tog4='n'
     353#INITIALIZE BUILTIN ZLIB OPTIONS
     354g4wlib_build_zlib='n'
     355g4w_use_zlib='n'
    309356
    310357: Find the basic shell for Bourne shell scripts
     
    496543        -e) shift; alldone=cont;;
    497544        -build) shift; g4build=yes;;
    498         -incflags) shift; g4incflags=yes;;
     545        -incflags)
     546                shift
     547                g4incflags=yes
     548                g4query_conf=yes;;
    499549        -install) shift; install=yes;;
    500         -cppflags) shift; g4cppflags=yes;;
    501         -cxxflags) shift; g4cxxflags=yes;;
    502         -ldlibs) shift; g4ldlibs=yes;;
    503         -ldflags) shift; g4ldflags=yes;;
     550        -cppflags)
     551                shift
     552                g4query_conf=yes
     553                g4cppflags=yes;;
     554        -cxxflags)
     555                shift
     556                g4query_conf=yes
     557                g4cxxflags=yes;;
     558        -ldlibs)
     559                shift
     560                g4query_conf=yes
     561                g4ldlibs=yes;;
     562        -ldflags)
     563                shift
     564                g4query_conf=yes
     565                g4ldflags=yes;;
    504566        -f)
    505567                shift
     
    589651: Sanity checks
    590652case "$fastread$alldone" in
    591 yescont|yesexit) ;;
     653yescontyes|yesexityes) ;;
    592654*)
    593         if test ! -t 0; then
     655        if test "x$g4query_conf" != "xyes" ; then
     656            if test ! -t 0; then
    594657                echo "Say 'sh Configure', not 'sh <Configure'"
    595658                exit 1
     659            fi
    596660        fi
    597661        ;;
     
    9561020#echo " "
    9571021: Here we go...
    958 #if [ X$install = Xyes ] ; then
    959 #echo " "
    960 #echo " "
    961 #echo " "
    962 #echo "                --- Geant4 Toolkit Installation  ---"
    963 #echo " "
    964 #echo " "
    965 #echo " "
    966 #echo " "
    967 #else
    968 #echo " "
    969 #echo " "
    970 #echo " "
    971 #echo "                --- Geant4 Toolkit Installation  ---"
    972 #echo "                  (setting environments for USER )"
    973 #echo " "
    974 #echo " "
    975 #echo " "
    976 #fi
    9771022
    9781023trap 'echo " ";rm -rf ../../.config/UU; test -d ../../.config/UU && rm -rf X $rmlist; exit 1' 1 2 3 15
     
    9951040esac
    9961041
    997 #if [ X$install = Xyes ] ; then
    998 #
    999 #echo " "
    1000 #echo " "
    1001 #echo " "
    1002 #echo "                --- Geant4 Toolkit Installation  ---"
    1003 #echo " "
    1004 #echo " "
    1005 #echo " "
    1006 #echo " "
    1007 #
    1008 ##if $contains "^$user\$" ../../.config/instruct >/dev/null 2>&1; then
    1009 ##      firsttime=false
    1010 ##      echo " "
    1011 ##      rp='Would you like to see the instructions?'
    1012 ##      dflt=n
    1013 ##      . ./myread
    1014 ##      case "$ans" in
    1015 ##      [yY]*) ;;
    1016 ##      *) needman=false;;
    1017 ##      esac
    1018 ##fi
    1019 #fi
    1020 
    10211042if [ X$g4build = Xyes ] ; then
    10221043
    1023 echo " "
    1024 echo " "
    10251044echo " "
    10261045echo "                --- Geant4 Toolkit Build  ---"
    10271046echo " "
    1028 echo " "
    1029 echo " "
    1030 echo " "
    10311047
    10321048if $contains "^$user\$" ../../.config/instruct >/dev/null 2>&1; then
    10331049        firsttime=false
    1034         echo " "
    10351050        rp='Would you like to see the instructions?'
    10361051        dflt=n
     
    17141729                                ;;
    17151730                                *2.96*)
    1716                                 echo "WARNING: Found version of 'g++' (2.96.XXX) is known to be buggy!"
     1731                                echo "WARNING: Found version of g++ (2.96.XXX) is known to be buggy!"
    17171732                                g4compiler="g++"
    17181733                                ;;
     
    17301745                'WIN32')
    17311746                                g4compiler=VC
    1732         clcompiler=`( cl 1>/dev/null || echo "ERROR: There is no 'cl' compiler.") 2>&1`
     1747        clcompiler=`( cl 1>/dev/null || echo "ERROR: There is no cl compiler.") 2>&1`
    17331748                                case $clcompiler in
    17341749                                *"Version 12"*) g4compiler=VC6
     
    18041819                if test X$tans != X$g4osnamerec ; then
    18051820                echo ""
    1806 
    1807 cat << EOM
    1808 
    1809                 You are running 'Configure' on NOT native platform!
    1810                 You are on your own way !!!
    1811 
    1812 EOM
     1821                echo "You are configuring Geant4 for a different platform to the native system!"
     1822                echo "You are on your own!!!"
    18131823
    18141824                dflt=$tans
     
    18531863
    18541864                if test X$tans != X$g4compilerrec ; then
    1855                 echo ""
    1856 
    1857 cat << EOM
    1858 
    1859                 The recommmended compiler for this platform ($g4osname) is $g4compilerrec.
    1860                 You are on your own way !!!
    1861 
    1862 EOM
     1865                echo " "
     1866                echo "The recommmended compiler for this platform ($g4osname) is $g4compilerrec."
     1867                echo "Use of $tans on $g4osname is not supported - you are on your own!"
     1868
    18631869
    18641870                dflt=$tans
     
    18701876                g4compiler=$tans
    18711877                ;;
    1872 #       [eE])
    1873 #               break
    1874 #               ;;
    18751878        *)
    1876 #               echo " "
    18771879                break
    18781880                ;;
     
    18881890
    18891891fi
    1890 
    1891 #cat << EOM
    1892 #
    1893 #G4SYSTEM is now set to $g4system.
    1894 #
    1895 #EOM
    18961892
    18971893cd .config/UU
     
    20942090# header for User
    20952091echo " "
    2096 echo " "
    2097 echo " "
    20982092echo "                --- Geant4 Toolkit Installation  ---"
    20992093echo "                  (setting environments for USER )"
    21002094echo " "
    2101 echo " "
    2102 echo " "
    2103 
    2104 #cat << EOM
    2105 #
    2106 #G4SYSTEM is now set to $g4system.
    2107 #
    2108 #EOM
    21092095
    21102096        cat >&2 <<EOM
     
    21372123# header for Installer
    21382124echo " "
    2139 echo " "
    2140 echo " "
    21412125echo "                --- Geant4 Toolkit Installation  ---"
    2142 echo " "
    2143 echo " "
    2144 echo " "
    21452126echo " "
    21462127
     
    24922473        #
    24932474        if test -d "\$g4_qt_dir/lib64" ; then
    2494             g4_qt_lib_dir=\$g4_qt_dir/lib64
     2475            # Damn, this doesn't guarantee we're on a 64bit system, some distros/packages
     2476            # will have a lib64 dir even on an i*86 machine...
     2477            # We don't ever cross-compile Geant4, so must have the native libraries.
     2478            # Double check for this craziness...
     2479            case `uname -m` in
     2480                i*86)
     2481                    g4_qt_lib_dir=\$g4_qt_dir/lib
     2482                    ;;
     2483                *)
     2484                    g4_qt_lib_dir=\$g4_qt_dir/lib64
     2485                    ;;
     2486            esac
    24952487        else
    24962488            g4_qt_lib_dir=\$g4_qt_dir/lib
     
    25802572            $echo $n "Checking \$g4_qtmoc major version is \$g4_qt_major_ver... $c"
    25812573            # Grab version of found moc
    2582             g4_qt_found_moc_major_version=\`\$g4_qtmoc -v 2>&1 | sed -s 's/^.*(Qt \([0-9]\)\..*/\1/'\`
     2574            g4_qt_found_moc_major_version=\`\$g4_qtmoc -v 2>&1 | sed 's/^.*(Qt \([0-9]\)\..*/\1/'\`
    25832575            if test "x\$g4_qt_found_moc_major_version" != "x\$g4_qt_major_ver" ; then
    25842576                # We need to ask the user where correct moc is
     
    26082600                        user_moc="\$ans"
    26092601                        if test -x "\$user_moc" ; then
    2610                             g4_qt_found_moc_major_version=\`\$user_moc -v 2>&1 | sed -s 's/^.*(Qt \([0-9]\)\..*/\1/'\`
     2602                            g4_qt_found_moc_major_version=\`\$user_moc -v 2>&1 | sed 's/^.*(Qt \([0-9]\)\..*/\1/'\`
    26112603                            if test "x\$g4_qt_found_moc_major_version" != "x\$g4_qt_major_ver" ; then
    26122604                                echo "Checking if \$user_moc version is \$g4_qt_major_ver... no"
     
    29752967
    29762968echo " "
    2977 
    2978 #echo "SSS"
    2979 #echo `pwd`
    2980 #echo "SSS"
     2969echo "*OPTIONS FOR GEANT4 INSTALLATION PATHS*"
    29812970
    29822971if [ X$src = X. ] ; then
     
    29942983esac
    29952984
    2996 #echo "g4conf=$g4conf"
    29972985
    29982986case "$g4install" in
    29992987'')
    3000 if test $g4system = "WIN32-VC" -o $g4system = "WIN32-VC7"; then
    3001 #       g4install="c:/geant4"
    3002         g4install=$abssrc
    3003 else
    3004 #       if [ X"$HOME" = X/ ] ; then
    3005 #       HOME=""
    3006 #       fi
    3007 #       g4install="$HOME"/geant4
    3008         g4install=$abssrc
    3009 
    3010 fi
    3011 
    3012 # Check for Windows!
    3013 if test $g4system = "WIN32-VC" -o $g4system = "WIN32-VC7"; then
    3014 
    3015 checkdrive=`echo $g4install|cut -d"/" -f2`
    3016 
    3017 if test $checkdrive = "cygdrive"; then
    3018 
    3019 windrive=`echo $g4install|cut -d"/" -f3`
    3020 winpath=`echo $g4install|cut -d"/" -f4-`
    3021 
    3022 fullwinpath="$windrive:/$winpath"
    3023 g4install=$fullwinpath
    3024 
    3025 fi
    3026 fi
     2988        if test $g4system = "WIN32-VC" -o $g4system = "WIN32-VC7"; then
     2989                g4install=$abssrc
     2990        else
     2991                g4install=$abssrc
     2992        fi
     2993
     2994        # Check for Windows!
     2995        if test $g4system = "WIN32-VC" -o $g4system = "WIN32-VC7"; then
     2996                checkdrive=`echo $g4install|cut -d"/" -f2`
     2997
     2998                if test $checkdrive = "cygdrive"; then
     2999                        windrive=`echo $g4install|cut -d"/" -f3`
     3000                        winpath=`echo $g4install|cut -d"/" -f4-`
     3001                        fullwinpath="$windrive:/$winpath"
     3002                        g4install=$fullwinpath
     3003                fi
     3004        fi
    30273005        ;;
    30283006esac
     
    30473025
    30483026
    3049 g4message=`cat << EOM
    3050 
    3051 Where is Geant4 source installed?
    3052 EOM`
    3053 
    3054 #dflt="NO DEFAULT ANSWER"
     3027g4message="What is the path to the Geant4 source tree?"
    30553028dflt=$g4install
    30563029fn='d~'
     
    30593032g4install=$ans
    30603033g4workdir=$g4install
     3034
    30613035#################################
    3062 g4message=`cat << EOM
    3063 
    3064 Specify the path where Geant4 libraries and source files should be
    3065 installed.
    3066 EOM`
    3067 
    3068 #dflt="NO DEFAULT ANSWER"
     3036echo " "
     3037g4message="Where should Geant4 be installed?"
    30693038dflt=$g4final_install
    30703039fn='d~'
     
    30723041. ./getfile
    30733042g4final_install=$ans
    3074 #g4workdir=$g4install
    30753043
    30763044##################################
    3077 g4message=`cat << EOM
    3078 
    3079 Do you want to copy all Geant4 headers
    3080 in one directory?
    3081 EOM`
    3082 
    3083 #dflt="NO DEFAULT ANSWER"
     3045echo " "
     3046g4message="Do you want to install all Geant4 headers in one directory?"
    30843047dflt=$g4includes_flag
    3085 #fn='d~'
    30863048rp=$g4message
    30873049. ./myread
     
    30893051
    30903052if [ X$g4includes_flag = Xy ] ; then
    3091 
    3092 case "$g4include" in
    3093 '')
    3094         g4include=$g4install/include
    3095 #       g4include=''
    3096         ;;
    3097 esac
    3098 
    3099 #g4message=`cat << EOM
    3100 #
    3101 #Where will be directory to copy all Geant4 headers?
    3102 #EOM`
    3103 #
    3104 ##dflt="NO DEFAULT ANSWER"
    3105 ####dflt=$g4install/include
    3106 #dflt=$g4include
    3107 #fn='d~+'
    3108 #rp=$g4message
    3109 #. ./getfile
    3110 #g4include=$ans
    3111 
    3112 # Set constantly!
    3113 if [ X$g4install != X$g4final_install ] ; then
    3114 g4include=$g4final_install/include/geant4
    3115 else
    3116 g4include=$g4final_install/include
    3117 fi
    3118 
    3119 fi
    3120 
    3121 #if test "X$g4include" = "X[NOT DEFINED]" ; then
    3122 #g4include=""
    3123 #fi
     3053        case "$g4include" in
     3054        '')
     3055                g4include=$g4install/include
     3056                ;;
     3057        esac
     3058
     3059        # Set constantly!
     3060        if [ X$g4install != X$g4final_install ] ; then
     3061                g4include=$g4final_install/include/geant4
     3062        else
     3063                g4include=$g4final_install/include
     3064        fi
     3065fi
     3066
    31243067
    31253068echo " "
    3126 
    3127 case "$g4tmp" in
    3128 '')
    3129         g4tmp=$g4workdir/tmp
    3130         ;;
    3131 esac
    3132 
    3133 case "$g4lib" in
    3134 '')
    3135         g4lib=$g4workdir/lib
    3136         ;;
    3137 esac
    3138 
    3139 #case "$g4bin" in
    3140 #'')
    3141 #       g4bin=$g4workdir/bin
    3142 #       ;;
    3143 #esac
    3144 
    3145 while test 1 = 0  ; do
    3146 
    3147 g4message=`cat << EOM
    3148 
    3149 (OPTIONAL) You can now customise installation directories:
    3150   G4TMP - tmp/ containing temporary dependency (.d) and object (.o) files;
    3151   G4LIB - lib/ containing final static (.a) or shared (.so) libraries;
    3152 
    3153 1) G4TMP:               $g4tmp
    3154 
    3155 2) G4LIB:               $g4lib
    3156 
    3157 To modify default settings, select number above (e.g. 2)
    3158 EOM`
    3159 
    3160 #dflt="NO DEFAULT ANSWER"
    3161 dflt="Press [Enter] for default settings"
    3162 #fn='d~'
     3069echo "*GEANT4 LIBRARY BUILD OPTIONS*"
     3070
     3071if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then
     3072        while test 1 = 1  ; do
     3073                g4message="Do you want to build DLL (.dll) libraries?"
     3074                dflt=$g4lib_build_dll
     3075                rp=$g4message
     3076                . ./myread
     3077                gans=$ans
     3078
     3079                case $gans in
     3080                n*|N*)
     3081                        g4lib_build_dll=n
     3082                        g4lib_build_shared=n
     3083                        g4lib_build_static=y
     3084                        break
     3085                        ;;
     3086                y*|Y*)
     3087                        g4lib_build_dll=y
     3088                        g4lib_build_shared=n
     3089                        g4lib_build_static=n
     3090                        break
     3091                        ;;
     3092                esac
     3093        done
     3094fi
     3095
     3096if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7" ; then
     3097        while test 1 = 1  ; do
     3098                g4message="Do you want to build shared libraries?"
     3099                dflt=$g4lib_build_shared
     3100                rp=$g4message
     3101                . ./myread
     3102                gans=$ans
     3103
     3104                case $gans in
     3105                n*|N*)
     3106                        g4lib_build_shared=n
     3107                        g4lib_build_static=y
     3108                        break
     3109                        ;;
     3110                y*|Y*)
     3111                        g4lib_build_shared=y
     3112                        break
     3113                        ;;
     3114                esac
     3115        done
     3116
     3117        if [ X$g4lib_build_shared = Xy ] ; then
     3118                #
     3119                # Ask about g4lib_build_static - default "n".
     3120                #
     3121                while test 1 = 1  ; do
     3122                        g4message="Do you want to build static libraries too?"
     3123                        dflt=n
     3124                        rp=$g4message
     3125                        . ./myread
     3126                        gans=$ans
     3127
     3128                        case $gans in
     3129                        n*|N*)
     3130                                g4lib_build_static=n
     3131                                break
     3132                                ;;
     3133                        y*|Y*)
     3134                                g4lib_build_static=y
     3135                                break
     3136                                ;;
     3137                        esac
     3138                done
     3139        fi
     3140fi # if !Win
     3141
     3142
     3143
     3144if test \( \( "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7" \) -a "X$g4lib_build_dll" = "Xy" \) -o  \( "X$g4system" = "XDarwin-g++"  -a "X$g4lib_build_dyn" = "Xy" \) ; then
     3145
     3146        g4global=n
     3147        g4granular=n
     3148        g4lib_use_granular=n
     3149
     3150fi
     3151
     3152if test \( "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7" -a "X$g4system" != "XDarwin-g++" \) -o    \( \( "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7" \) -a "X$g4lib_build_dll" = "Xn" \) -o \( "X$g4system" = "XDarwin-g++" -a "X$g4lib_build_dyn" = "Xn" \) ; then
     3153        #
     3154        # Ask about g4global - default "(empty)".
     3155        #
     3156        g4message="Do you want to build global libraries?"
     3157        dflt=$g4global
     3158        rp=$g4message
     3159        . ./myread
     3160        gans=$ans
     3161
     3162        case $gans in
     3163        n*|N*)
     3164                g4global=n
     3165                g4granular=y
     3166                g4lib_use_granular=y
     3167                ;;
     3168        y*|Y*)
     3169                g4global=y
     3170                g4granular=n
     3171                g4lib_use_granular=n
     3172                ;;
     3173        esac
     3174
     3175        if [ X$g4global = Xy ] ; then
     3176                #
     3177                # Ask about g4granular - default "n".
     3178                #
     3179                g4message="Do you want to build granular libraries as well?"
     3180                dflt=$g4granular
     3181                rp=$g4message
     3182                . ./myread
     3183                gans=$ans
     3184
     3185                case $gans in
     3186                n*|N*)
     3187                        g4granular=n
     3188                        ;;
     3189                y*|Y*)
     3190                        g4granular=y
     3191                        ;;
     3192                esac
     3193
     3194                if [ X$g4granular = Xy ] ; then
     3195                        #
     3196                        # Ask about g4lib_use_granular - default "n".
     3197                        #
     3198                        g4message="Do you want to use granular libraries in your applications?"
     3199                        dflt=$g4lib_use_granular
     3200                        rp=$g4message
     3201                        . ./myread
     3202                        gans=$ans
     3203
     3204                        case $gans in
     3205                        n*|N*)
     3206                                g4lib_use_granular=n
     3207                                ;;
     3208                        y*|Y*)
     3209                                g4lib_use_granular=y
     3210                                ;;
     3211                        esac
     3212                fi
     3213        fi
     3214fi # !Win
     3215
     3216### End file - without will be problem! Check in others...
     3217
     3218
     3219g4message="Do you want to build libraries with debugging information?"
     3220dflt=$g4debug
    31633221rp=$g4message
    31643222. ./myread
    31653223gans=$ans
    31663224
    3167 
    3168         case $gans in
    3169 
    3170         1)
    3171                 dflt=$g4tmp
    3172                 fn='d~+'
    3173                 rp="Where will be your Geant4 tmp directory?"
    3174                 . ./getfile
    3175                 g4tmp=$ans
    3176                 ;;
    3177         2)
    3178                 dflt=$g4lib
    3179                 fn='d~+'
    3180                 rp="Where will be your Geant4 lib directory?"
    3181                 . ./getfile
    3182                 g4lib=$ans
    3183                 ;;
    3184 #       3)
    3185 #               dflt=$g4bin
    3186 #               fn='d~+'
    3187 #               rp="Where will be your Geant4 bin directory?"
    3188 #               . ./getfile
    3189 #               g4bin=$ans
    3190 #               ;;
    3191 
    3192 #       [eE])
    3193 #               break
    3194 #               ;;
    3195         *)
    3196                 break
    3197 #               echo " "
    3198                 ;;
    3199         esac
    3200 done
     3225case $gans in
     3226n*|N*)
     3227        g4debug=n
     3228                ;;
     3229y*|Y*)
     3230        g4debug=y
     3231        ;;
     3232esac
    32013233
    32023234g4data_photonevaporation_version='PhotonEvaporation2.0'
    32033235g4data_radioactivedecay_version='RadioactiveDecay3.2'
    3204 g4data_g4emlow_version='G4EMLOW6.2'
     3236g4data_g4emlow_version='G4EMLOW6.9'
    32053237g4data_g4ndl_version='G4NDL3.13'
    32063238g4data_g4abla_version='G4ABLA3.0'
     3239g4data_realsurface_version='RealSurface1.0'
    32073240#END GEANT4 DATA OPTIONS
    32083241echo " "
     3242echo "*CHECKS AND OPTIONS FOR GEANT4 PHYSICS DATA FILES*"
    32093243
    32103244
     
    32483282esac
    32493283
     3284case "$g4realsurfacedata" in
     3285'')
     3286        g4realsurfacedata=$g4data/$g4data_realsurface_version
     3287        ;;
     3288esac
     3289
    32503290
    32513291#
    32523292# Now we have defaults, prompt user to see if this is where they want to use
    32533293#
    3254 g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version"
     3294g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version $g4data_realsurface_version"
    32553295
    32563296g4message=`cat <<EOM
    3257 Specify the path where the Geant4 data libraries
    3258 
    3259 $g4data_alllibs
    3260 
    3261 are installed. For now, a flat directory structure is assumed, and this can
    3262 be customized at the next step if needed.
     3297Specify the path where the Geant4 data libraries are installed:
    32633298EOM`
    32643299
     
    33263361                g4data_foundall="no"
    33273362        fi
     3363
     3364        ### G4REALSURFACE
     3365        $echo $n "checking for $g4data_realsurface_version... $c"
     3366        if test -d "$g4data/$g4data_realsurface_version" ; then
     3367                $echo "yes"
     3368                g4realsurfacedata=$g4data/$g4data_realsurface_version
     3369        else
     3370                $echo "no"
     3371                g4data_foundall="no"
     3372        fi
     3373
     3374
    33283375
    33293376        #
     
    334633931) Another path to search in
    334733942) 'f' to force the use of the path you entered previously (the data libraries
    3348    are not needed to build Geant4, but are needed to run applications later).
     3395   are NOT needed to build Geant4, but are needed to run applications later).
    334933963) 'c' to customize the data paths, e.g. if you have the data libraries
    33503397   installed in different locations.
     
    33633410                        g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version"
    33643411                        g4abladata="$g4data/$g4data_g4abla_version"
     3412                        g4realsurfacedata="$g4data/$g4data_realsurface_version"
    33653413                       
    33663414
     
    33763424                        g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version"
    33773425                        g4abladata="$g4data/$g4data_g4abla_version"
    3378 
     3426                        g4realsurfacedata="$g4data/$g4data_realsurface_version"
    33793427
    33803428                else
     
    340734555) $g4data_g4abla_version:
    34083456        $g4abladata
     34576) $g4data_realsurface_version:
     3458        $g4realsurfacedata
    34093459
    34103460Choose a number from the list above to customize that path (e.g. 2)
     
    34583508                ;;
    34593509
     3510        "6")
     3511                dflt=$g4realsurfacedata
     3512                fn='d~'
     3513                rp="Custom path to $g4data_realsurface_version?"
     3514                . ./getfile
     3515                g4realsurfacedata=$ans
     3516                ;;
     3517
    34603518        *)
    34613519                break
     
    34713529
    34723530
     3531#
     3532# Configure which make to use...
     3533# On WIN32, we have to watch for cygwin/Matlab clash
     3534# Here, cygwin supplies make, Matlab 'gmake', but we must select
     3535# cygwin make.
     3536#
     3537# Yes, we could use Loc's built in make, but want full control
     3538# for now....
     3539#
     3540
     3541echo " "
     3542echo "*CHECKS FOR CORRECT MAKE IMPLEMENTATION*"
     3543
     3544g4_make_loc="no"
     3545g4_gmake_loc="no"
     3546
     3547g4_make_program=make
     3548g4_gmake_program=gmake
     3549
     3550g4_check_make_msg="Checking for $g4_make_program..."
     3551g4_check_gmake_msg="Checking for $g4_gmake_program..."
     3552
     3553g4_make_isgnu="no"
     3554g4_gmake_isgnu="no"
     3555
     3556g4_make_dirs=`echo $PATH | sed 's/\:/ /g'`
     3557
     3558# Check for 'make' on all systems
     3559g4_make_loc=`./loc $g4_make_program no $g4_make_dirs`
     3560echo "$g4_check_make_msg $g4_make_loc"
     3561
     3562
     3563# On anything but Windows, check for gmake as well
     3564if test "x$g4osname" != "xWIN32" ; then
     3565    g4_gmake_loc=`./loc $g4_gmake_program no $g4_make_dirs`
     3566    echo "$g4_check_gmake_msg $g4_gmake_loc"
     3567fi
     3568 
     3569
     3570# Now see if make/gmake are GNU make.
     3571if test "x$g4_make_loc" != "xno" ; then
     3572    g4_make_version=`$g4_make_loc -v 2>/dev/null`
     3573
     3574    case $g4_make_version in
     3575        GNU*)
     3576            g4_make_isgnu=yes
     3577            ;;
     3578        *)
     3579            g4_make_isgnu=no
     3580            ;;
     3581    esac
     3582    echo "Checking if make is GNU make... $g4_make_isgnu"
     3583fi
     3584
     3585if test "x$g4osname" != "xWIN32" ; then
     3586    if test "x$g4_gmake_loc" != "xno" ; then
     3587        g4_gmake_version=`$g4_gmake_loc -v 2>/dev/null`
     3588
     3589        case $g4_gmake_version in
     3590            GNU*)
     3591                g4_gmake_isgnu=yes
     3592                ;;
     3593            *)
     3594                g4_gmake_isgnu=no
     3595                ;;
     3596        esac
     3597        echo "Checking if gmake is GNU make... $g4_gmake_isgnu"
     3598    fi
     3599fi
     3600
     3601# Now perform selection on following logic
     3602# 1) If we have gmake AND it's GNU make, use that
     3603# 2) If we have make AND it's GNU make, use that
     3604# 3) If none of the above, prompt user for path to make program
     3605if test "x$g4_gmake_loc" != "xno" -a "x$g4_gmake_isgnu" = "xyes" ; then
     3606    g4make=$g4_gmake_loc
     3607elif test "x$g4_make_loc" != "xno" -a "x$g4_make_isgnu" = "xyes" ; then
     3608    g4make=$g4_make_loc
     3609else
     3610    g4_got_user_make="no"
     3611    while test "x$g4_got_user_make" = "xno"; do
     3612        g4message=`cat << EOM
     3613
     3614    G4MAKE
     3615
     3616A GNU make program could not be located on your system.
     3617Please enter the full path to the GNU make program you
     3618want to use:
     3619EOM`
     3620        dflt=$g4make
     3621        rp=$g4message
     3622        . ./myread
     3623        gans=$ans
     3624
     3625        #Check if this is GNU make...
     3626        g4_user_make_version=`$gans -v 2>/dev/null`
     3627
     3628        case $g4_user_make_version in
     3629            "GNU Make"*)
     3630                echo "Checking that $gans is GNU Make... yes"
     3631                g4make=$gans
     3632                g4_got_user_make=yes
     3633                ;;
     3634            *)
     3635                echo "Checking that $gans is GNU Make... no"
     3636                ;;
     3637        esac
     3638    done
     3639fi
     3640
     3641
     3642
     3643echo " "
     3644echo "*CHECKS FOR REQUIRED EXTERNAL PACKAGE CLHEP*"
     3645
    34733646if test "X$g4clhep_base_dir" = "X" ; then
    3474 
    3475 clhep_dirs=`find $g4clhep_base_dir /usr/local/include /usr/include -type d -name CLHEP 2>/dev/null |xargs echo`
    3476 #echo clhep_dirs=$clhep_dirs
    3477 
     3647        clhep_dirs=`find $g4clhep_base_dir /usr/local/include /usr/include -type d -name CLHEP 2>/dev/null |xargs echo`
    34783648fi
    34793649
    34803650if test "X$clhep_dirs" != "X" ; then
    3481 
    3482 g4clhep_base_dir_found=`echo $clhep_dirs|cut -d" " -f1`
    3483 #echo g4clhep_base_dir_found=$g4clhep_base_dir_found
    3484 
    3485 
    3486 #g4clhep_base_dir_n=`echo $g4clhep_base_dir_found |awk -F"/" '{print NF}'`
    3487 #echo g4clhep_base_dir_n=$g4clhep_base_dir_n
    3488 g4clhep_base_dir_found=`dirname $g4clhep_base_dir_found`
    3489 g4clhep_base_dir_found=`dirname $g4clhep_base_dir_found`
     3651        g4clhep_base_dir_found=`echo $clhep_dirs|cut -d" " -f1`
     3652        g4clhep_base_dir_found=`dirname $g4clhep_base_dir_found`
     3653        g4clhep_base_dir_found=`dirname $g4clhep_base_dir_found`
    34903654
    34913655        g4clhep_base_dir=$g4clhep_base_dir_found
    3492 
    3493 #else
    3494 #case "$g4clhep_base_dir" in
    3495 #'')
    3496 #       if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then
    3497 #       g4clhep_base_dir="c:/usr/local"
    3498 #       else
    3499 #       g4clhep_base_dir=/usr/local
    3500 #       fi
    3501 #       ;;
    3502 #esac
    3503 fi
    3504 
    3505 
    3506 #while test 1 = 1  ; do
    3507 
    3508 #if test "X$g4clhep_base_dir" != "X" ; then
    3509 #clhep_dirs=$g4clhep_base_dir
    3510 #echo 1 g4clhep_base_dir=$g4clhep_base_dir
    3511 #fi
     3656fi
     3657
    35123658
    35133659if test "X$g4clhep_base_dir" != "X" ; then
    3514 
    3515 g4message=`cat << EOM
    3516 
    3517 Please, specify where CLHEP is installed. It was found in:
    3518 
    3519 CLHEP_BASE_DIR:                 $g4clhep_base_dir
    3520 
    3521 EOM`
    3522 
    3523 dflt=$g4clhep_base_dir
    3524 fn='d~'
    3525 rp=$g4message
    3526 . ./getfile
    3527 
    3528 cend="no"
    3529 while test "$cend" = "no" ; do
    3530 if test -e "$ans/include/CLHEP" ; then
    3531 cend="yes"
    3532 
    3533 g4clhep_base_dir=$ans
    3534 
    3535 else
    3536 
    3537 g4message=`cat << EOM
     3660        echo "checking for a CLHEP installation... $g4clhep_base_dir"
     3661
     3662        echo " "
     3663        g4message="Is this the CLHEP installation you want to use?"
     3664
     3665        dflt=$g4clhep_base_dir
     3666        fn='d~'
     3667        rp=$g4message
     3668        . ./getfile
     3669
     3670        cend="no"
     3671        while test "$cend" = "no" ; do
     3672                if test -e "$ans/include/CLHEP" ; then
     3673                        cend="yes"
     3674                        g4clhep_base_dir=$ans
     3675                else
     3676                        g4message=`cat << EOM
    35383677
    35393678Could not find CLHEP installed in $ans!
     
    35443683EOM`
    35453684
    3546 dflt=""
    3547 fn='d~'
    3548 rp=$g4message
    3549 . ./getfile
    3550 fi
    3551 done
     3685                        dflt=""
     3686                        fn='d~'
     3687                        rp=$g4message
     3688                        . ./getfile
     3689                fi
     3690        done
    35523691
    35533692else
    3554 
    3555 g4message=`cat << EOM
     3693        g4message=`cat << EOM
    35563694
    35573695Could not find CLHEP installed on this system!
     
    35623700EOM`
    35633701
    3564 dflt=""
    3565 fn='d~'
    3566 rp=$g4message
    3567 . ./getfile
    3568 
    3569 cend="no"
    3570 while test "$cend" = "no" ; do
    3571 if test -e "$ans/include/CLHEP" ; then
    3572 cend="yes"
    3573 
    3574 g4clhep_base_dir=$ans
    3575 
    3576 else
    3577 
    3578 g4message=`cat << EOM
     3702        dflt=""
     3703        fn='d~'
     3704        rp=$g4message
     3705        . ./getfile
     3706
     3707        cend="no"
     3708        while test "$cend" = "no" ; do
     3709                if test -e "$ans/include/CLHEP" ; then
     3710                        cend="yes"
     3711                        g4clhep_base_dir=$ans
     3712                else
     3713                        g4message=`cat << EOM
    35793714
    35803715Could not find CLHEP installed in $ans!
     
    35853720EOM`
    35863721
    3587 dflt=""
    3588 fn='d~'
    3589 rp=$g4message
    3590 . ./getfile
    3591 fi
    3592 done
    3593 
    3594 fi
    3595 
    3596 #dflt="Press [Enter] for default settings"
    3597 #fn='d~'
    3598 #####rp=$g4message
    3599 #. ./myread
    3600 #gans=$ans
    3601 
    3602 #       case $gans in
    3603 
    3604 #       1)
    3605 ##              dflt=""
    3606 ##              fn='d~'
    3607 #               rp="Where is CLHEP installed?"
    3608 ##              . ./getfile
    3609 ##              g4clhep_base_dir=$ans
    3610 
    3611 #####           g4clhep_include_dir=$ans/include
    3612 #####           g4clhep_lib_dir=$ans/lib
    3613 #               ;;
    3614 #       2)
    3615 #               dflt=$g4clhep_include_dir
    3616 #               fn='d~'
    3617 #               rp="Where is CLHEP include directory?"
    3618 #               . ./getfile
    3619 #               g4clhep_include_dir=$ans
    3620 #               ;;
    3621 #       3)
    3622 #               dflt=$g4clhep_lib_dir
    3623 #               fn='d~'
    3624 #               rp="Where is CLHEP lib directory?"
    3625 #               . ./getfile
    3626 #               g4clhep_lib_dir=$ans
    3627 #               ;;
    3628 #       4)
    3629 #               dflt=$g4clhep_lib
    3630 #               rp="What is CLHEP lib title?"
    3631 #               . ./myread
    3632 #               g4clhep_lib=$ans
    3633 #               ;;
    3634 ##      [eE])
    3635 ##              break
    3636 ##              ;;
    3637 #       *)
    3638 #               echo " "
    3639 #               break
    3640 #               ;;
    3641 #       esac
    3642 #done
     3722                        dflt=""
     3723                        fn='d~'
     3724                        rp=$g4message
     3725                        . ./getfile
     3726                fi
     3727        done
     3728fi
    36433729
    36443730case "$g4clhep_include_dir" in
     
    36653751
    36663752while test 1 = 1  ; do
    3667 
    3668 g4message_1=`cat << You
     3753        g4message_1=`cat << You
    36693754
    36703755You can customize paths and library name of you CLHEP installation:
     
    36763761You`
    36773762
    3678 g4message_2=" need to use full library name with its extension (e.g. libCLHEP.lib)."
    3679 
    3680 g4message_3=`cat << EOM
     3763        g4message_2=" need to use full library name with its extension (e.g. libCLHEP.lib)."
     3764
     3765        g4message_3=`cat << EOM
    36813766
    36823767To modify default settings, select number above (e.g. 2)
     
    36843769
    36853770
    3686 if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then
    3687 rp=$g4message_1$g4message_3
    3688 else
    3689 rp=$g4message_1$g4message_2$g4message_3
    3690 fi
    3691 
    3692 dflt="Press [Enter] for default settings"
    3693 #fn='d~'
    3694 . ./myread
    3695 gans=$ans
     3771        if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then
     3772                rp=$g4message_1$g4message_3
     3773        else
     3774                rp=$g4message_1$g4message_2$g4message_3
     3775        fi
     3776
     3777        dflt="Press [Enter] for default settings"
     3778        . ./myread
     3779        gans=$ans
    36963780
    36973781        case $gans in
    3698 
    36993782        1)
    37003783                dflt=$g4clhep_include_dir
    37013784                fn='d~'
    3702                 rp="Where is CLHEP include directory?"
     3785                rp="Where is the CLHEP include directory?"
    37033786                . ./getfile
    37043787                g4clhep_include_dir=$ans
     
    37073790                dflt=$g4clhep_lib_dir
    37083791                fn='d~'
    3709                 rp="Where is CLHEP lib directory?"
     3792                rp="Where is the CLHEP lib directory?"
    37103793                . ./getfile
    37113794                g4clhep_lib_dir=$ans
     
    37133796        3)
    37143797                dflt=$g4clhep_lib
    3715                 rp="What is CLHEP lib title?"
     3798                rp="What is the name of the CLHEP library?"
    37163799                . ./myread
    37173800                g4clhep_lib=$ans
    37183801                ;;
    3719 #       [eE])
    3720 ##              break
    3721 ##              ;;
    37223802        *)
    3723 #               echo " "
    37243803                break
    37253804                ;;
     
    37273806done
    37283807
    3729 #if test "X$g4clhep_base_dir" = "X/usr" -o "X$g4clhep_base_dir" = "X/usr/local"; then
    3730 #g4clhep_base_dir=""
    3731 #fi
    3732 #
    3733 #if test "X$g4clhep_include_dir" = "X/usr/include" -o "X$g4clhep_include_dir" = "X/usr/local/include"; then
    3734 #g4clhep_include_dir=""
    3735 #fi
    3736 #
    3737 #if test "X$g4clhep_lib_dir" = "X/usr/lib" -o "X$g4clhep_lib_dir" = "X/usr/local/lib"; then
    3738 #g4clhep_lib_dir=""
    3739 #fi
    37403808
    37413809echo " "
    3742 
    3743 case "$g4lib_build_shared" in
    3744 '')
    3745         g4lib_build_shared=n
    3746         ;;
    3747 esac
    3748 
    3749 echo " "
    3750 
    3751 case "$g4lib_build_static" in
    3752 '')
    3753         g4lib_build_static=n
    3754         ;;
    3755 esac
    3756 
    3757 echo " "
    3758 
    3759 case "$g4lib_use_shared" in
    3760 '')
    3761         g4lib_use_shared=n
    3762         ;;
    3763 esac
    3764 
    3765 echo " "
    3766 
    3767 case "$g4lib_use_static" in
    3768 '')
    3769         g4lib_use_static=n
    3770         ;;
    3771 esac
    3772 
    3773 case "$g4lib_build_dll" in
    3774 '')
    3775         g4lib_build_dll=n
    3776         ;;
    3777 esac
    3778 
    3779 case "$g4lib_build_dyn" in
    3780 '')
    3781         g4lib_build_dyn=n
    3782         ;;
    3783 esac
    3784 
    3785 #
    3786 # Ask about building of SHARED|STATIC libraries - default STATIC.
    3787 #
    3788 echo ""
    3789 
    3790 if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then
    3791 
    3792 while test 1 = 1  ; do
    3793 
    3794 g4message=`cat << EOM
    3795 
    3796 By default 'static'  libraries are built.
    3797 
    3798 Do you want to build DLL (.dll) libraries?
    3799 EOM`
    3800 
    3801 dflt=$g4lib_build_dll
     3810echo "*OPTIONS FOR GEANT4 USER INTERFACE MODULES*"
     3811
     3812g4message="Enable building of User Interface (UI) modules?"
     3813
     3814dflt='y'
    38023815rp=$g4message
    38033816. ./myread
     
    38073820       
    38083821        n*|N*)
    3809                 g4lib_build_dll=n
    3810                 g4lib_build_shared=n
    3811                 g4lib_build_static=y
    3812                 break
     3822                g4ui_none=y
    38133823                ;;
    38143824        y*|Y*)
    3815                 g4lib_build_dll=y
    3816                 g4lib_build_shared=n
    3817                 g4lib_build_static=n
    3818 
    3819 #               g4lib_build_static=""
    3820 #               g4lib_use_shared=1
    3821 #               g4lib_use_static=""
    3822                 break
    3823                 ;;
    3824 #       [eE])
    3825 #               break
    3826 #               ;;
    3827 #       *)
    3828 #               echo " "
    3829 #               break
    3830 #               ;;
     3825                g4ui_none=n
     3826                ;;
    38313827        esac
    3832 done
    3833 
    3834 fi
    3835 
    3836 if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7" ; then
    3837 
    3838 while test 1 = 1  ; do
    3839 
    3840 g4message=`cat << EOM
    3841 
    3842 By default 'static' (.a) libraries are built.
    3843 
    3844 Do you want to build 'shared' (.so) libraries?
    3845 EOM`
    3846 
    3847 dflt=$g4lib_build_shared
    3848 rp=$g4message
    3849 . ./myread
    3850 gans=$ans
    3851 
    3852         case $gans in
    3853        
    3854         n*|N*)
    3855                 g4lib_build_shared=n
    3856                 g4lib_build_static=y
    3857                 break
    3858                 ;;
    3859         y*|Y*)
    3860                 g4lib_build_shared=y
    3861 #               g4lib_build_static=""
    3862 #               g4lib_use_shared=1
    3863 #               g4lib_use_static=""
    3864                 break
    3865                 ;;
    3866 #       [eE])
    3867 #               break
    3868 #               ;;
    3869 #       *)
    3870 #               echo " "
    3871 #               break
    3872 #               ;;
    3873         esac
    3874 done
    3875 
    3876 if [ X$g4lib_build_shared = Xy ] ; then
    3877 #
    3878 # Ask about g4lib_build_static - default "n".
    3879 #
    3880 echo ""
    3881 
    3882 while test 1 = 1  ; do
    3883 
    3884 g4message=`cat << EOM
    3885 
    3886 You selected to build 'shared' (.so) libraries.
    3887 Do you want to build 'static' (.a) libraries too?
    3888 EOM`
    3889 
    3890 #dflt=$g4lib_build_static
    3891 dflt=n
    3892 rp=$g4message
    3893 . ./myread
    3894 gans=$ans
    3895 
    3896         case $gans in
    3897        
    3898         n*|N*)
    3899                 g4lib_build_static=n
    3900                 break
    3901                 ;;
    3902         y*|Y*)
    3903 #               g4lib_build_shared=1
    3904                 g4lib_build_static=y
    3905 #               g4lib_use_shared=1
    3906 #               g4lib_use_static=""
    3907                 break
    3908                 ;;
    3909 #       [eE])
    3910 #               break
    3911 #               ;;
    3912 #       *)
    3913 #               echo " "
    3914 #               break
    3915 #               ;;
    3916         esac
    3917 done
    3918 
    3919 ## Comment out in waiting G4LIB_USE_STATIC and G4LIB_USE_SHARED.
    3920 #
    3921 #if [ X$g4lib_build_static = Xy ] ; then
    3922 ##
    3923 ## Ask about g4lib_use_static - default "n".
    3924 ##
    3925 #echo ""
    3926 #
    3927 #while test 1 = 1  ; do
    3928 #
    3929 #g4message=`cat << EOM
    3930 #
    3931 #You selected to build 'shared' (.so) and 'static' (.a) libraries.
    3932 #Do you want to use 'static' (.a) libraries?
    3933 #EOM`
    3934 #
    3935 #dflt=$g4lib_use_static
    3936 #rp=$g4message
    3937 #. ./myread
    3938 #gans=$ans
    3939 #
    3940 #       case $gans in
    3941 #       
    3942 #       n*|N*)
    3943 #               break
    3944 #               ;;
    3945 #       y*|Y*)
    3946 ##              g4lib_build_shared=1
    3947 ##              g4lib_build_static=1
    3948 ##              g4lib_use_shared=1
    3949 #               g4lib_use_static=y
    3950 #               break
    3951 #               ;;
    3952 ##      [eE])
    3953 ##              break
    3954 ##              ;;
    3955 ##      *)
    3956 ##              echo " "
    3957 ##              break
    3958 ##              ;;
    3959 #       esac
    3960 #done
    3961 #fi
    3962 
    3963 fi
    3964 
    3965 fi # if !Win
    3966 
    3967 echo " "
    3968 case "$g4global" in
    3969 '')
    3970         g4global=n
    3971         ;;
    3972 esac
    3973 
    3974 echo " "
    3975 # By default it's 'grabular'!
    3976 case "$g4granular" in
    3977 '')
    3978         g4granular=y
    3979         ;;
    3980 esac
    3981 
    3982 echo " "
    3983 # Will be set (if needed) in GNUmakefile!
    3984 case "$g4lib_use_granular" in
    3985 '')
    3986         g4lib_use_granular=y
    3987         ;;
    3988 esac
    3989 
    3990 if test \( \( "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7" \) -a "X$g4lib_build_dll" = "Xy" \) -o  \( "X$g4system" = "XDarwin-g++"  -a "X$g4lib_build_dyn" = "Xy" \) ; then
    3991 
    3992         g4global=n
    3993         g4granular=n
    3994         g4lib_use_granular=n
    3995 
    3996 fi
    3997 
    3998 if test \( "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7" -a "X$g4system" != "XDarwin-g++" \) -o    \( \( "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7" \) -a "X$g4lib_build_dll" = "Xn" \) -o \( "X$g4system" = "XDarwin-g++" -a "X$g4lib_build_dyn" = "Xn" \) ; then
    3999 
    4000 #
    4001 # Ask about g4global - default "(empty)".
    4002 #
    4003 echo ""
    4004 
    4005 while test 1 = 1  ; do
    4006 
    4007 g4message=`cat << EOM
    4008 
    4009 Do you want to build 'global' compound libraries?
    4010 EOM`
    4011 
    4012 dflt=$g4global
    4013 rp=$g4message
    4014 . ./myread
    4015 gans=$ans
    4016 
    4017         case $gans in
    4018        
    4019         n*|N*)
    4020                 g4global=n
    4021                 g4granular=y
    4022                 g4lib_use_granular=y
    4023                 break
    4024                 ;;
    4025         y*|Y*)
    4026                 g4global=y
    4027 # Shoud be comment out to keep settings from config.sh - not now to keep as in release
    4028                 g4granular=n
    4029 # Shoud be comment out to keep settings from config.sh - not now to keep as in release
    4030                 g4lib_use_granular=n
    4031                 break
    4032                 ;;
    4033 #       [eE])
    4034 #               break
    4035 #               ;;
    4036 #       *)
    4037 #               echo " "
    4038 #               break
    4039 #               ;;
    4040         esac
    4041 done
    4042 
    4043 if [ X$g4global = Xy ] ; then
    4044 #
    4045 # Ask about g4granular - default "n".
    4046 #
    4047 echo ""
    4048 
    4049 while test 1 = 1  ; do
    4050 
    4051 g4message=`cat << EOM
    4052 
    4053 Granular libraries are used by defaults, you asked to build global
    4054 compound libraries. Do you want to build 'granular' libraries too?
    4055 EOM`
    4056 
    4057 dflt=$g4granular
    4058 rp=$g4message
    4059 . ./myread
    4060 gans=$ans
    4061 
    4062         case $gans in
    4063        
    4064         n*|N*)
    4065                 g4granular=n
    4066                 break
    4067                 ;;
    4068         y*|Y*)
    4069                 g4granular=y
    4070                 break
    4071                 ;;
    4072 #       [eE])
    4073 #               break
    4074 #               ;;
    4075 #       *)
    4076 #               echo " "
    4077 #               break
    4078 #               ;;
    4079         esac
    4080 done
    4081 
    4082 if [ X$g4granular = Xy ] ; then
    4083 #
    4084 # Ask about g4lib_use_granular - default "n".
    4085 #
    4086 echo ""
    4087 
    4088 while test 1 = 1  ; do
    4089 
    4090 g4message=`cat << EOM
    4091 
    4092 Global libraries are used by defaults, you asked to build global
    4093 compound libraries and granular libraries.
    4094 Do you want to use 'granular' libraries instead?
    4095 EOM`
    4096 
    4097 dflt=$g4lib_use_granular
    4098 rp=$g4message
    4099 . ./myread
    4100 gans=$ans
    4101 
    4102         case $gans in
    4103        
    4104         n*|N*)
    4105                 g4lib_use_granular=n
    4106                 break
    4107                 ;;
    4108         y*|Y*)
    4109                 g4lib_use_granular=y
    4110                 break
    4111                 ;;
    4112 #       [eE])
    4113 #               break
    4114 #               ;;
    4115 #       *)
    4116 #               echo " "
    4117 #               break
    4118 #               ;;
    4119         esac
    4120 done
    4121 fi
    4122 fi
    4123 
    4124 fi # !Win
    4125 
    4126 ### End file - without will be problem! Check in others...
    4127 
    4128 
    4129 echo " "
    4130 case "$g4debug" in
    4131 '')
    4132         g4debug=n
    4133         ;;
    4134 esac
    4135 
    4136 #
    4137 # Ask about g4debug - default "(empty)".
    4138 #
    4139 echo ""
    4140 
    4141 while test 1 = 1  ; do
    4142 
    4143 g4message=`cat << EOM
    4144 
    4145 Do you want to compile libraries in DEBUG mode (-g)?
    4146 EOM`
    4147 
    4148 dflt=$g4debug
    4149 rp=$g4message
    4150 . ./myread
    4151 gans=$ans
    4152 
    4153         case $gans in
    4154        
    4155         n*|N*)
    4156                 break
    4157                 ;;
    4158         y*|Y*)
    4159                 g4debug=y
    4160                 break
    4161                 ;;
    4162 #       [eE])
    4163 #               break
    4164 #               ;;
    4165 #       *)
    4166 #               echo " "
    4167 #               break
    4168 #               ;;
    4169         esac
    4170 done
    4171 
    4172 
    4173 echo " "
    4174 
    4175 case "$g4ui_none" in
    4176 '')
    4177         g4ui_none=n
    4178         ;;
    4179 esac
    4180 
    4181 # Set by default!
    4182 case "$g4ui_build_terminal_session" in
    4183 '')
    4184         g4ui_build_terminal_session=y
    4185         ;;
    4186 esac
    4187 
    4188 # Set by default!
    4189 case "$g4ui_use_terminal" in
    4190 '')
    4191         g4ui_use_terminal=y
    4192         ;;
    4193 esac
    4194 
    4195 # Set by default!
    4196 case "$g4ui_build_gag_session" in
    4197 '')
    4198         g4ui_build_gag_session=y
    4199         ;;
    4200 esac
    4201 
    4202 # Set by default!
    4203 case "$g4ui_use_gag" in
    4204 '')
    4205         g4ui_use_gag=y
    4206         ;;
    4207 esac
    4208 
    4209 case "$g4ui_build_xm_session" in
    4210 '')
    4211         g4ui_build_xm_session=n
    4212         ;;
    4213 esac
    4214 
    4215 case "$g4ui_use_xm" in
    4216 '')
    4217         g4ui_use_xm=n
    4218         ;;
    4219 esac
    4220 
    4221 case "$g4ui_build_xaw_session" in
    4222 '')
    4223         g4ui_build_xaw_session=n
    4224         ;;
    4225 esac
    4226 
    4227 case "$g4ui_use_xaw" in
    4228 '')
    4229         g4ui_use_xaw=n
    4230         ;;
    4231 esac
    4232 
    4233 case "$g4ui_build_win32_session" in
    4234 '')
    4235         g4ui_build_win32_session=n
    4236         ;;
    4237 esac
    4238 
    4239 case "$g4ui_use_win32" in
    4240 '')
    4241         g4ui_use_win32=n
    4242         ;;
    4243 esac
    4244 
    4245 # Set by default!
    4246 case "$g4ui_use_tcsh" in
    4247 '')
    4248         g4ui_use_tcsh=y
    4249         ;;
    4250 esac
    4251 
    4252 
    4253 
    4254 
    4255 echo ""
    4256 
    4257 g4message=`cat << EOM
    4258 
    4259   G4UI_NONE
    4260 
    4261 If this variable is set, no UI sessions nor any UI libraries are built.
    4262 This can be useful when running a pure batch job or in a user framework
    4263 having its own UI system.
    4264 Do you want to set this variable ?
    4265 
    4266 EOM`
    4267 
    4268 dflt=$g4ui_none
    4269 rp=$g4message
    4270 . ./myread
    4271 gans=$ans
    4272 
    4273         case $gans in
    4274        
    4275         n*|N*)
    4276                 g4ui_none=n
    4277                 ;;
    4278         y*|Y*)
    4279                 g4ui_none=y
    4280                 ;;
    4281         esac
    42823828
    42833829case $g4ui_none in
     
    42853831n)
    42863832
    4287 g4message=`cat << EOM
    4288 
    4289   G4UI_BUILD_TERMINAL_SESSION
    4290   Specifies to include in kernel library a basic dumb terminal
    4291   user interface (default).
    4292 
    4293   G4UI_USE_TERMINAL
    4294   Specifies to use dumb terminal interface in the application to be
    4295   built (default).
    4296 EOM`
    4297 
    4298 dflt=$g4ui_use_terminal
    4299 rp=$g4message
    4300 #. ./myread
    4301 #gans=$ans
    4302 gans=y
    4303 
    4304         case $gans in
    4305        
    4306         n*|N*)
    4307                 g4ui_build_terminal_session=n
    4308                 g4ui_use_terminal=n
    4309                 ;;
    4310         y*|Y*)
    4311                 g4ui_build_terminal_session=y
    4312                 g4ui_use_terminal=y
    4313                 ;;
    4314         esac
    4315 
    4316 g4message=`cat << EOM
    4317 
    4318   G4UI_BUILD_GAG_SESSION
    4319   Specifies to include in kernel library the GAG based
    4320   user interface.
    4321 
    4322   G4UI_USE_GAG
    4323   Specifies to use the GAG interface in the application to be
    4324   built.
    4325 EOM`
    4326 
    4327 dflt=$g4ui_use_gag
    4328 rp=$g4message
    4329 #. ./myread
    4330 #gans=$ans
    4331 gans=y
    4332 
    4333         case $gans in
    4334        
    4335         n*|N*)
    4336                 g4ui_build_gag_session=n
    4337                 g4ui_use_gag=n
    4338                 ;;
    4339         y*|Y*)
    4340                 g4ui_build_gag_session=y
    4341                 g4ui_use_gag=y
    4342                 ;;
    4343         esac
    4344 
    43453833if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then
    43463834
    4347 g4message=`cat << EOM
    4348 
    4349   G4UI_BUILD_XAW_SESSION
    4350   G4UI_USE_XAW
    4351 
    4352   Specifies to include and use the XAW interfaces in the
    4353   application to be built.
    4354   The XAW (X11 Athena Widget set) extensions are required to activate
    4355   and build this driver.
    4356 EOM`
    4357 
    4358 dflt=$g4ui_use_xaw
     3835g4message="Enable building of the XAW (X11 Athena Widget set) UI module?"
     3836
     3837dflt=$g4ui_build_xaw_session
    43593838rp=$g4message
    43603839. ./myread
     
    44123891g4message=`cat << EOM
    44133892
    4414 You have selected to use the XAW based user interfaces.
    4415 Specify the correct path where XAW is installed in your system.
     3893You have selected to build the XAW based user interfaces.
     3894Specify the correct path where XAW is installed on your system.
    44163895It was found in $g4ui_xawhome. Press [Enter] to set this path or type the correct one.
    44173896
     
    44373916g4ui_build_xaw_session=n
    44383917g4ui_use_xaw=n
     3918echo " "
    44393919
    44403920fi
     
    44433923g4message=`cat << EOM
    44443924
    4445 You have selected to use XAW based user interfaces.
     3925You have selected to build the XAW based user interfaces.
    44463926But XAW was not found in $ans.
    4447 Please specify the correct path where XAW is installed in your system.
     3927Please specify the correct path where XAW is installed on your system.
    44483928
    44493929You can set '-' (without quotation) to CANCEL the XAW flag at all:
     
    44623942g4message=`cat << EOM
    44633943
    4464 You have selected to use XAW based user interfaces.
     3944You have selected to build the XAW based user interfaces.
    44653945But XAW was not found in expected place.
    4466 Please specify the correct path where XAW is installed in your system.
     3946Please specify the correct path where XAW is installed on your system.
    44673947
    44683948You can set '-' (without quotation) to CANCEL the XAW flag at all:
     
    44873967g4ui_build_xaw_session=n
    44883968g4ui_use_xaw=n
     3969echo " "
    44893970
    44903971fi
     
    44933974g4message=`cat << EOM
    44943975
    4495 You have selected to use XAW based user interfaces.
     3976You have selected to build the XAW based user interfaces.
    44963977But XAW was not found in $ans.
    4497 Please specify the correct path where XAW is installed in your system.
     3978Please specify the correct path where XAW is installed on your system.
    44983979
    44993980You can set '-' (without quotation) to CANCEL the XAW flag at all:
     
    45764057###############################################
    45774058
    4578 g4message=`cat << EOM
    4579 
    4580   G4UI_BUILD_XM_SESSION
    4581   G4UI_USE_XM
    4582 
    4583   Specifies to include and use the XM Motif based user interfaces.
    4584   The XM Motif extensions are required to activate and build this
    4585   driver.
    4586 
    4587 EOM`
    4588 
    4589 dflt=$g4ui_use_xm
     4059g4message="Enable building of the X11-Motif (Xm) UI module?"
     4060
     4061dflt=$g4ui_build_xm_session
    45904062rp=$g4message
    45914063. ./myread
     
    46434115g4message=`cat << EOM
    46444116
    4645 You have selected to use the XM Motif based user interfaces.
    4646 Specify the correct path where Xm is installed in your system.
     4117You have selected to build the X11-Motif(Xm) based user interfaces.
     4118Specify the correct path where Xm is installed on your system.
    46474119It was found in $g4vis_xmhome. Press [Enter] to set this path or type the correct one.
    46484120
     
    46684140g4ui_build_xm_session=n
    46694141g4ui_use_xm=n
     4142echo " "
    46704143
    46714144fi
     
    46744147g4message=`cat << EOM
    46754148
    4676 You have selected to use XM Motif based user interfaces.
    4677 But XM Motif was not found in $ans.
    4678 Please specify the correct path where Xm is installed in your system.
     4149You have selected to build the X11-Motif(Xm) based user interfaces.
     4150But Xm was not found in $ans.
     4151Please specify the correct path where Xm is installed on your system.
    46794152
    46804153You can set '-' (without quotation) to CANCEL the XM flag at all:
     
    46934166g4message=`cat << EOM
    46944167
    4695 You have selected to use XM Motif based user interfaces.
    4696 But XM Motif was not found in expected place.
    4697 Please specify the correct path where Xm is installed in your system.
     4168You have selected to build the X11-Motif(Xm) based user interfaces.
     4169But Xm was not found in the expected place.
     4170Please specify the correct path where Xm is installed on your system.
    46984171
    46994172You can set '-' (without quotation) to CANCEL the XM flag at all:
     
    47184191g4ui_build_xm_session=n
    47194192g4ui_use_xm=n
     4193echo " "
    47204194
    47214195fi
     
    47244198g4message=`cat << EOM
    47254199
    4726 You have selected to use XM Motif based user interfaces.
    4727 But XM Motif was not found in $ans.
    4728 Please specify the correct path where Xm is installed in your system.
     4200You have selected to build the X11-Motif(Xm) based user interfaces.
     4201But Xm was not found in $ans.
     4202Please specify the correct path where Xm is installed on your system.
    47294203
    47304204You can set '-' (without quotation) to CANCEL the XM flag at all:
     
    48104284if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then
    48114285
    4812 g4message=`cat << EOM
    4813 
    4814   G4UI_BUILD_WIN32_SESSION
    4815   G4UI_USE_WIN32
    4816 
    4817   Specifies to include and use the terminal interface for
    4818   Windows systems.
    4819 
    4820 EOM`
    4821 
    4822 dflt=$g4ui_use_win32
     4286g4message="Enable building of the WIN32 Terminal UI module?"
     4287
     4288dflt=$g4ui_build_win32_session
    48234289rp=$g4message
    48244290. ./myread
     
    48724338if test "x$g4ui_none" = "xn" ; then
    48734339    # Query the user to see if build of Qt UI module is needed
    4874     g4message=`cat <<EOM
    4875 
    4876     G4UI_BUILD_QT_SESSION
    4877     G4UI_USE_QT
    4878 
    4879 Setting these variables will enable the building of the G4 Qt based
    4880 user interface module and the use of this module in your applications
    4881 respectively.
    4882 The Qt3 or Qt4 headers, libraries and moc application are required to enable
    4883 the building of this module.
    4884 Do you want to enable build and use of this module?
    4885 EOM`
     4340        g4message="Enable building of the Qt UI module?"
    48864341
    48874342    # Read in the user response
     
    49104365    #
    49114366    if test "x$g4ui_build_qt_session" = "xy" ; then
    4912         echo " "
    49134367        # NB Have to supply arg to qt script, just blank in this case!
    49144368        qt_search_dir=""
     
    49584412
    49594413echo " "
    4960 case "$g4vis_none" in
    4961 '')
    4962         g4vis_none=n
    4963         ;;
    4964 esac
    4965 
    4966 
    4967 case "$g4vis_build_openglwin32_driver" in
    4968 '')
    4969         g4vis_build_openglwin32_driver=n
    4970         ;;
    4971 esac
    4972 
    4973 case "$g4vis_use_openglwin32" in
    4974 '')
    4975         g4vis_use_openglwin32=n
    4976         ;;
    4977 esac
    4978 
    4979 case "$g4vis_build_oiwin32_driver" in
    4980 '')
    4981         g4vis_build_oiwin32_driver=n
    4982         ;;
    4983 esac
    4984 
    4985 case "$g4vis_use_oiwin32" in
    4986 '')
    4987         g4vis_use_oiwin32=n
    4988         ;;
    4989 esac
    4990 
    4991 case "$g4vis_build_dawn_driver" in
    4992 '')
    4993         g4vis_build_dawn_driver=n
    4994         ;;
    4995 esac
    4996 
    4997 case "$g4vis_use_dawn" in
    4998 '')
    4999         g4vis_use_dawn=n
    5000         ;;
    5001 esac
    5002 
    5003 # Set by default!
    5004 case "$g4vis_build_dawnfile_driver" in
    5005 '')
    5006         g4vis_build_dawnfile_driver=y
    5007         ;;
    5008 esac
    5009 
    5010 # Set by default!
    5011 case "$g4vis_use_dawnfile" in
    5012 '')
    5013         g4vis_use_dawnfile=y
    5014         ;;
    5015 esac
    5016 
    5017 case "$g4vis_build_openglx_driver" in
    5018 '')
    5019         g4vis_build_openglx_driver=n
    5020         ;;
    5021 esac
    5022 
    5023 case "$g4vis_use_openglx" in
    5024 '')
    5025         g4vis_use_openglx=n
    5026         ;;
    5027 esac
    5028 
    5029 case "$g4vis_build_openglxm_driver" in
    5030 '')
    5031         g4vis_build_openglxm_driver=n
    5032         ;;
    5033 esac
    5034 
    5035 case "$g4vis_use_openglxm" in
    5036 '')
    5037         g4vis_use_openglxm=n
    5038         ;;
    5039 esac
    5040 
    5041 case "$g4vis_build_oix_driver" in
    5042 '')
    5043         g4vis_build_oix_driver=n
    5044         ;;
    5045 esac
    5046 
    5047 case "$g4vis_use_oix" in
    5048 '')
    5049         g4vis_use_oix=n
    5050         ;;
    5051 esac
    5052 
    5053 case "$g4vis_build_raytracerx_driver" in
    5054 '')
    5055         g4vis_build_raytracerx_driver=n
    5056         ;;
    5057 esac
    5058 
    5059 case "$g4vis_use_raytracerx" in
    5060 '')
    5061         g4vis_use_raytracerx=n
    5062         ;;
    5063 esac
    5064 
    5065 # Set by default!
    5066 case "$g4vis_build_raytracer_driver" in
    5067 '')
    5068         g4vis_build_raytracer_driver=y
    5069         ;;
    5070 esac
    5071 
    5072 # Set by default!
    5073 case "$g4vis_use_raytracer" in
    5074 '')
    5075         g4vis_use_raytracer=y
    5076         ;;
    5077 esac
    5078 
    5079 case "$g4vis_build_vrml_driver" in
    5080 '')
    5081         g4vis_build_vrml_driver=n
    5082         ;;
    5083 esac
    5084 
    5085 case "$g4vis_use_vrml" in
    5086 '')
    5087         g4vis_use_vrml=n
    5088         ;;
    5089 esac
    5090 
    5091 # Set by default!
    5092 case "$g4vis_build_asciitree_driver" in
    5093 '')
    5094         g4vis_build_asciitree_driver=y
    5095         ;;
    5096 esac
    5097 
    5098 # Set by default!
    5099 case "$g4vis_use_asciitree" in
    5100 '')
    5101         g4vis_use_asciitree=y
    5102         ;;
    5103 esac
    5104 
    5105 # Set by default!
    5106 case "$g4vis_build_gagtree_driver" in
    5107 '')
    5108         g4vis_build_gagtree_driver=y
    5109         ;;
    5110 esac
    5111 
    5112 # Set by default!
    5113 case "$g4vis_use_gagtree" in
    5114 '')
    5115         g4vis_use_gagtree=y
    5116         ;;
    5117 esac
    5118 
    5119 echo ""
    5120 
    5121 g4message=`cat << EOM
    5122 
    5123   G4VIS_NONE
    5124 
    5125 If this variable is set, no visualization drivers will be built or used.
    5126 Do you want to set this variable ?
    5127 
    5128 EOM`
    5129 
    5130 dflt=$g4vis_none
     4414echo "*OPTIONS FOR GEANT4 VISUALIZATION DRIVERS*"
     4415
     4416g4message="Enable building of visualization drivers?"
     4417dflt='y'
    51314418rp=$g4message
    51324419. ./myread
     
    51364423       
    51374424        n*|N*)
     4425                g4vis_none=y
     4426                ;;
     4427        y*|Y*)
    51384428                g4vis_none=n
    51394429                ;;
    5140         y*|Y*)
    5141                 g4vis_none=y
    5142                 ;;
    51434430        esac
    51444431
     
    51494436if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then
    51504437
    5151 g4message=`cat << EOM
    5152 
    5153   G4VIS_BUILD_OPENGLX_DRIVER
    5154   G4VIS_USE_OPENGLX
    5155 
    5156 It is an interface to the de facto standard 3D graphics library,
    5157 OpenGL. It is well suited for real-time fast visualization
    5158 and prototyping. The X11 version of the OpenGL libraries is
    5159 required.
    5160 EOM`
    5161 
    5162 dflt=$g4vis_use_openglx
     4438g4message="Enable building of the X11 OpenGL visualization driver?"
     4439
     4440dflt=$g4vis_build_openglx_driver
    51634441rp=$g4message
    51644442. ./myread
     
    51774455        esac
    51784456
    5179 #############################################3
    5180 g4message=`cat << EOM
    5181 
    5182   G4VIS_BUILD_OPENGLXM_DRIVER
    5183   G4VIS_USE_OPENGLXM
    5184 
    5185 It is an interface to the de facto standard 3D graphics library,
    5186 OpenGL. It is well suited for real-time fast visualization
    5187 and prototyping. The X11 version of the OpenGL libraries and
    5188 the Motif Xm extension is required.
    5189 
    5190 EOM`
    5191 
    5192 dflt=$g4vis_use_openglxm
     4457#############################################
     4458g4message="Enable building of the X11-Motif OpenGL visualization driver?"
     4459
     4460dflt=$g4vis_build_openglxm_driver
    51934461rp=$g4message
    51944462. ./myread
     
    52544522g4message=`cat << EOM
    52554523
    5256 You have selected to use OPENGLXM driver.
     4524You have selected to build the OpenGL-Motif(Xm) driver.
    52574525Specify the correct path where Xm is installed in your system.
    52584526It was found in $g4vis_xmhome. Press [Enter] to set this path or type the correct one.
     
    52794547g4vis_build_openglxm_driver=n
    52804548g4vis_use_openglxm=n
     4549echo " "
    52814550
    52824551fi
     
    52854554g4message=`cat << EOM
    52864555
    5287 You have selected to use OPENGLXM driver.
    5288 But it was not found in $ans.
     4556You have selected to build the OpenGL-Motif(Xm) driver.
     4557But Xm was not found in $ans.
    52894558Please specify the correct path where Xm is installed in your system.
    52904559
     
    53044573g4message=`cat << EOM
    53054574
    5306 You have selected to use OPENGLXM driver.
    5307 But it was not found in expected place.
     4575You have selected to build the OpenGL-Motif(Xm) driver.
     4576But Xm was not found in expected place.
    53084577Please specify the correct path where Xm is installed in your system.
    53094578
     
    53294598g4vis_build_openglxm_driver=n
    53304599g4vis_use_openglxm=n
     4600echo " "
    53314601
    53324602fi
     
    53354605g4message=`cat << EOM
    53364606
    5337 You have selected to use OPENGLXM driver.
    5338 But it was not found in $ans.
     4607You have selected to build the OpenGL-Motif(Xm) driver.
     4608But Xm was not found in $ans.
    53394609Please specify the correct path where Xm is installed in your system.
    53404610
     
    54224692if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then
    54234693
    5424 g4message=`cat << EOM
    5425 
    5426   G4VIS_BUILD_OPENGLWIN32_DRIVER
    5427   G4VIS_USE_OPENGLWIN32
    5428 
    5429 It is an interface to the de facto standard 3D graphics library,
    5430 OpenGL. It is well suited for real-time fast visualization
    5431 and prototyping. The Windows version of the OpenGL libraries is
    5432 required.
    5433 
    5434 EOM`
    5435 
    5436 dflt=$g4vis_use_openglwin32
     4694g4message="Enable building of the WIN32 OpenGL visualization driver?"
     4695
     4696dflt=$g4vis_build_openglwin32_driver
    54374697rp=$g4message
    54384698. ./myread
     
    54564716if test "X$g4system" != "XWIN32-VC" -a "X$g4system" != "XWIN32-VC7"; then
    54574717
    5458 g4message=`cat << EOM
    5459 
    5460   G4VIS_BUILD_DAWN_DRIVER
    5461   G4VIS_USE_DAWN
    5462 
    5463 DAWN drivers are interfaces to the Fukui Renderer DAWN. DAWN is
    5464 a vectorized 3D PostScript processor suited to prepare technical
    5465 high quality outputs for presentation and/or documentation.
    5466 
    5467 EOM`
    5468 
    5469 dflt=$g4vis_use_dawn
     4718g4message="Enable building of the FukuiRenderer/DAWN visualization driver?"
     4719dflt=$g4vis_build_dawn_driver
    54704720rp=$g4message
    54714721. ./myread
     
    54864736
    54874737#######################################
    5488 g4message=`cat << EOM
    5489 
    5490   G4VIS_BUILD_OIX_DRIVER
    5491   G4VIS_USE_OIX
    5492 
    5493 The OpenInventor driver is based on OpenInventor technology
    5494 for scientific visualization.
    5495 The X11 version of OpenInventor is required.
    5496 
    5497 EOM`
    5498 
    5499 dflt=$g4vis_use_oix
     4738g4message="Enable building of the X11 OpenInventor visualization driver?"
     4739
     4740dflt=$g4vis_build_oix_driver
    55004741rp=$g4message
    55014742. ./myread
     
    55484789g4message=`cat << EOM
    55494790
    5550   OIVHOME/include
    5551   OIVHOME/lib
    5552 
    5553 You have selected to use OpenInventor driver.
    5554 Specify the correct path (OIVHOME) where OpenInventor is installed in your system.
     4791You have selected to build the X11 OpenInventor driver.
     4792Specify the path where OpenInventor is installed on your system.
    55554793It was found in $g4vis_oivhome. Press [Enter] to set this path or type the correct one.
    55564794
     
    55764814g4vis_build_oix_driver=n
    55774815g4vis_use_oix=n
     4816echo " "
    55784817
    55794818fi
     
    55824821g4message=`cat << EOM
    55834822
    5584   OIVHOME/include
    5585   OIVHOME/lib
    5586 
    5587 You have selected to use OpenInventor driver.
    5588 But it was not found in $ans.
    5589 Please specify the correct path where OpenInventor is installed in your system.
     4823You have selected to build the X11 OpenInventor driver.
     4824But OpenInventor was not found in $ans.
     4825Please specify the correct path where OpenInventor is installed on your system.
    55904826
    55914827You can set '-' (without quotation) to CANCEL the OpenInventor flag at all:
     
    56044840g4message=`cat << EOM
    56054841
    5606   OIVHOME/include
    5607   OIVHOME/lib
    5608 
    5609 You have selected to use OpenInventor driver.
    5610 But it was not found in expected place.
    5611 Please specify the correct path where OpenInventor is installed in your system.
     4842You have selected to build the X11 OpenInventor driver.
     4843But OpenInventor was not found in the expected place.
     4844Please specify the correct path where OpenInventor is installed on your system.
    56124845
    56134846You can set '-' (without quotation) to CANCEL the OpenInventor flag at all:
     
    56324865g4vis_build_oix_driver=n
    56334866g4vis_use_oix=n
     4867echo " "
    56344868
    56354869fi
     
    56384872g4message=`cat << EOM
    56394873
    5640   OIVHOME/include
    5641   OIVHOME/lib
    5642 
    5643 You have selected to use OpenInventor driver.
    5644 But it was not found in $ans.
    5645 Please specify the correct path where OpenInventor is installed in your system.
     4874You have selected to build the X11 OpenInventor driver.
     4875But OpenInventor was not found in $ans.
     4876Please specify the correct path where OpenInventor is installed on your system.
    56464877
    56474878You can set '-' (without quotation) to CANCEL the OpenInventor flag at all:
     
    56674898###############################################
    56684899
    5669 g4message=`cat << EOM
    5670 
    5671   G4VIS_BUILD_RAYTRACERX_DRIVER
    5672   G4VIS_USE_RAYTRACERX
    5673 
    5674 Allows for interactive ray-tracing graphics through X11.
    5675 The X11 package is required.
    5676 
    5677 EOM`
    5678 
    5679 dflt=$g4vis_use_raytracerx
     4900g4message="Enable building of the X11 RayTracer visualization driver?"
     4901
     4902dflt=$g4vis_build_raytracerx_driver
    56804903rp=$g4message
    56814904. ./myread
     
    57004923if test "X$g4system" = "XWIN32-VC" -o "X$g4system" = "XWIN32-VC7"; then
    57014924
    5702 g4message=`cat << EOM
    5703 
    5704   G4VIS_BUILD_OIWIN32_DRIVER
    5705   G4VIS_USE_OIWIN32
    5706 
    5707 Specifies to build and use the driver for the free X11 version of
    5708 OpenInventor on Windows systems.
    5709 The Windows version of OpenInventor is required.
    5710 
    5711 EOM`
    5712 
    5713 dflt=$g4vis_use_oiwin32
     4925g4message="Enable building of the WIN32 OpenInventor visualization driver?"
     4926
     4927dflt=$g4vis_build_oiwin32_driver
    57144928rp=$g4message
    57154929. ./myread
     
    57624976g4message=`cat << EOM
    57634977
    5764   OIVHOME/include
    5765   OIVHOME/lib
    5766 
    5767 You have selected to use OpenInventor driver.
    5768 Specify the correct path (OIVHOME) where OpenInventor is installed in your system.
     4978You have selected to build the WIN32 OpenInventor driver.
     4979Specify the correct path where OpenInventor is installed on your system.
    57694980It was found in $g4vis_oivhome. Press [Enter] to set this path or type the correct one.
    57704981
     
    57905001g4vis_build_oiwin32_driver=n
    57915002g4vis_use_oiwin32=n
     5003echo " "
    57925004
    57935005fi
     
    57965008g4message=`cat << EOM
    57975009
    5798   OIVHOME/include
    5799   OIVHOME/lib
    5800 
    5801 You have selected to use OpenInventor driver.
    5802 But it was not found in $ans.
    5803 Please specify the correct path where OpenInventor is installed in your system.
     5010You have selected to build the WIN32 OpenInventor driver.
     5011But OpenInventor was not found in $ans.
     5012Please specify the correct path where OpenInventor is installed on your system.
    58045013
    58055014You can set '-' (without quotation) to CANCEL the OpenInventor flag at all:
     
    58185027g4message=`cat << EOM
    58195028
    5820   OIVHOME/include
    5821   OIVHOME/lib
    5822 
    5823 You have selected to use OpenInventor driver.
    5824 But it was not found in expected place.
    5825 Please specify the correct path where OpenInventor is installed in your system.
     5029You have selected to build the WIN32 OpenInventor driver.
     5030But OpenInventor was not found in expected place.
     5031Please specify the correct path where OpenInventor is installed on your system.
    58265032
    58275033You can set '-' (without quotation) to CANCEL the OpenInventor flag at all:
     
    58465052g4vis_build_oiwin32_driver=n
    58475053g4vis_use_oiwin32=n
     5054echo " "
    58485055
    58495056fi
     
    58525059g4message=`cat << EOM
    58535060
    5854   OIVHOME/include
    5855   OIVHOME/lib
    5856 
    5857 You have selected to use OpenInventor driver.
    5858 But it was not found in $ans.
    5859 Please specify the correct path where OpenInventor is installed in your system.
     5061You have selected to build the WIN32 OpenInventor driver.
     5062But OpenInventor was not found in $ans.
     5063Please specify the correct path where OpenInventor is installed on your system.
    58605064
    58615065You can set '-' (without quotation) to CANCEL the OpenInventor flag at all:
     
    59465150        esac
    59475151
    5948 g4message=`cat << EOM
    5949 
    5950   G4VIS_BUILD_VRML_DRIVER
    5951   G4VIS_USE_VRML
    5952 
    5953 These driver generate VRML files, which describe 3D scenes to be
    5954 visualized with a proper VRML viewer.
    5955 
    5956 EOM`
    5957 
    5958 dflt=$g4vis_use_vrml
     5152g4message="Enable building of the VRML visualization driver?"
     5153
     5154dflt=$g4vis_build_vrml_driver
    59595155rp=$g4message
    59605156. ./myread
     
    61055301g4message=`cat << EOM
    61065302
    6107   OGLHOME/include
    6108   OGLHOME/lib
    6109 
    6110 You have selected to use OpenGL driver.
    6111 Specify the correct path (OGLHOME) where OpenGL is installed in your system.
     5303You have selected to build one or more drivers that require OpenGL.
     5304Specify the correct path (OGLHOME) where OpenGL is installed on your system.
    61125305It was found in $g4vis_oglhome. Press [Enter] to set this path or type the correct one.
    61135306
     
    61405333g4vis_build_openglwin32_driver=n
    61415334g4vis_use_openglwin32=n
     5335echo " "
    61425336
    61435337fi
     
    61465340g4message=`cat << EOM
    61475341
    6148   OGLHOME/include
    6149   OGLHOME/lib
    6150 
    6151 You have selected to use OpenGL driver.
    6152 But it was not found in $ans.
    6153 Please specify the correct path where OpenGL is installed in your system.
     5342You have selected to build one or more drivers that require OpenGL.
     5343But OpenGL was not found in $ans.
     5344Please specify the correct path where OpenGL is installed on your system.
    61545345
    61555346You can set '-' (without quotation) to CANCEL the OpenGL flag at all:
     
    61685359g4message=`cat << EOM
    61695360
    6170   OGLHOME/include
    6171   OGLHOME/lib
    6172 
    6173 You have selected to use OpenGL driver.
    6174 But it was not found in expected place.
    6175 Please specify the correct path where OpenGL is installed in your system.
     5361You have selected to build one or more drivers that require OpenGL.
     5362But OpenGL was not found in the expected place.
     5363Please specify the correct path where OpenGL is installed on your system.
    61765364
    61775365You can set '-' (without quotation) to CANCEL the OpenGL flag at all:
     
    62035391g4vis_build_openglwin32_driver=n
    62045392g4vis_use_openglwin32=n
     5393echo " "
    62055394
    62065395fi
     
    62095398g4message=`cat << EOM
    62105399
    6211   OGLHOME/include
    6212   OGLHOME/lib
    6213 
    6214 You have selected to use OpenGL driver.
    6215 But it was not found in $ans.
    6216 Please specify the correct path where OpenGL is installed in your system.
     5400You have selected to build one or more drivers that require OpenGL.
     5401But OpenGL was not found in $ans.
     5402Please specify the correct path where OpenGL is installed on your system.
    62175403
    62185404You can set '-' (without quotation) to CANCEL the OpenGL flag at all:
     
    62525438if test "x$g4ui_build_qt_session" = "xy" ; then
    62535439    # Query the user to see if build of Qt GL module is needed
    6254     g4message=`cat <<EOM
    6255 
    6256     G4UI_BUILD_OPENGLQT_DRIVER
    6257     G4UI_USE_OPENGLQT
    6258 
    6259 Setting these variables will enable the building of the G4 OpenGL Qt based
    6260 visualisation driver and the use of this driver in your applications
    6261 respectively.
    6262 The Qt3 or Qt4 headers, libraries and moc application are required to enable
    6263 the building of this module.
    6264 Do you want to enable build and use of this module?
    6265 EOM`
     5440        g4message="Enable building of the Qt OpenGL visualization driver?"
    62665441
    62675442    # Read in the user response
     
    62905465    #
    62915466    if test "x$g4vis_build_openglqt_driver" = "xy" ; then
    6292         echo " "
    62935467        # NB Have to supply arg to qt script, just blank in this case!
    62945468        qt_search_dir=""
     
    63435517fi #END TEST g4ui_none = n AND g4vis_none=n
    63445518
    6345 #
    6346 # BEGIN GDML/XERCESC PROBE
    6347 #
    6348 
    6349 # Set default build option to no
     5519
     5520# Now query the user to see if they want to build the GDML plugin
    63505521echo " "
    6351 case "$g4lib_build_gdml" in
    6352 '')
    6353         g4lib_build_gdml=n
    6354         ;;
    6355 esac
    6356 
    6357 
    6358 # Now query the user to see if they want to build the GDML plugin
    6359 echo ""
    6360 
    6361 g4message=`cat << EOM
    6362 
    6363   G4LIB_BUILD_GDML
    6364 
    6365 Setting this variable will enable building of the GDML plugin module embedded
    6366 in Geant4 for detector description persistency.
    6367 It requires your system to have the XercesC library and headers installed.
    6368 Do you want to set this variable?
    6369 
    6370 EOM`
    6371 
    6372 #
    6373 # read in the users response
    6374 #
     5522echo "*OPTIONS FOR GEANT4 OPTIONAL EXTENSION MODULES*"
     5523
     5524g4message="Enable the Geometry Description Markup Language (GDML) module?"
    63755525dflt=$g4lib_build_gdml
    63765526rp=$g4message
     
    64065556         g4gdml_xercesc_root=`dirname $g4gdml_xercesc_root`
    64075557
    6408          echo " "
    64095558         echo "checking for XercesC install... $g4gdml_xercesc_root"
     5559     echo " "
    64105560      else
    64115561         g4gdml_xercesc_root=""
    6412          echo " "
    64135562         echo "checking for XercesC install... no"
    64145563      fi
     
    64445593               g4gdml_xercesc_root=""
    64455594               echo "G4LIB_BUILD_GDML cancelled..."
     5595                   echo " "
    64465596               promptend=yes
    64475597            else
     
    64495599                  g4gdml_xercesc_root=$ans
    64505600                  echo "checking for XercesC install... $g4gdml_xercesc_root"
     5601                  echo " "
    64515602                  promptend=yes
    64525603               else
     
    64705621#END OF GDML/XERCES PROBE
    64715622
    6472 #
    6473 # Configure which make to use...
    6474 # On WIN32, we have to watch for cygwin/Matlab clash
    6475 # Here, cygwin supplies make, Matlab 'gmake', but we must select
    6476 # cygwin make.
    6477 #
    6478 # Yes, we could use Loc's built in make, but want full control
    6479 # for now....
    6480 #
    6481 
    6482 echo " "
    6483 
    6484 g4_make_loc="no"
    6485 g4_gmake_loc="no"
    6486 
    6487 g4_make_program=make
    6488 g4_gmake_program=gmake
    6489 
    6490 g4_check_make_msg="Checking for $g4_make_program..."
    6491 g4_check_gmake_msg="Checking for $g4_gmake_program..."
    6492 
    6493 g4_make_isgnu="no"
    6494 g4_gmake_isgnu="no"
    6495 
    6496 g4_make_dirs=`echo $PATH | sed 's/\:/ /g'`
    6497 
    6498 # Check for 'make' on all systems
    6499 g4_make_loc=`./loc $g4_make_program no $g4_make_dirs`
    6500 echo "$g4_check_make_msg $g4_make_loc"
    6501 
    6502 
    6503 # On anything but Windows, check for gmake as well
    6504 if test "x$g4osname" != "xWIN32" ; then
    6505     g4_gmake_loc=`./loc $g4_gmake_program no $g4_make_dirs`
    6506     echo "$g4_check_gmake_msg $g4_gmake_loc"
    6507 fi
    6508  
    6509 
    6510 # Now see if make/gmake are GNU make.
    6511 if test "x$g4_make_loc" != "xno" ; then
    6512     g4_make_version=`$g4_make_loc -v 2>/dev/null`
    6513 
    6514     case $g4_make_version in
    6515         GNU*)
    6516             g4_make_isgnu=yes
    6517             ;;
    6518         *)
    6519             g4_make_isgnu=no
    6520             ;;
    6521     esac
    6522     echo "Checking if make is GNU make... $g4_make_isgnu"
    6523 fi
    6524 
    6525 if test "x$g4osname" != "xWIN32" ; then
    6526     if test "x$g4_gmake_loc" != "xno" ; then
    6527         g4_gmake_version=`$g4_gmake_loc -v 2>/dev/null`
    6528 
    6529         case $g4_gmake_version in
    6530             GNU*)
    6531                 g4_gmake_isgnu=yes
    6532                 ;;
    6533             *)
    6534                 g4_gmake_isgnu=no
    6535                 ;;
    6536         esac
    6537         echo "Checking if gmake is GNU make... $g4_gmake_isgnu"
    6538     fi
    6539 fi
    6540 
    6541 # Now perform selection on following logic
    6542 # 1) If we have gmake AND it's GNU make, use that
    6543 # 2) If we have make AND it's GNU make, use that
    6544 # 3) If none of the above, prompt user for path to make program
    6545 if test "x$g4_gmake_loc" != "xno" -a "x$g4_gmake_isgnu" = "xyes" ; then
    6546     g4make=$g4_gmake_loc
    6547 elif test "x$g4_make_loc" != "xno" -a "x$g4_make_isgnu" = "xyes" ; then
    6548     g4make=$g4_make_loc
    6549 else
    6550     g4_got_user_make="no"
    6551     while test "x$g4_got_user_make" = "xno"; do
    6552         g4message=`cat << EOM
    6553 
    6554     G4MAKE
    6555 
    6556 A GNU make program could not be located on your system.
    6557 Please enter the full path to the GNU make program you
    6558 want to use:
    6559 EOM`
    6560         dflt=$g4make
    6561         rp=$g4message
    6562         . ./myread
    6563         gans=$ans
    6564 
    6565         #Check if this is GNU make...
    6566         g4_user_make_version=`$gans -v 2>/dev/null`
    6567 
    6568         case $g4_user_make_version in
    6569             "GNU Make"*)
    6570                 echo "Checking that $gans is GNU Make... yes"
    6571                 g4make=$gans
    6572                 g4_got_user_make=yes
    6573                 ;;
    6574             *)
    6575                 echo "Checking that $gans is GNU Make... no"
    6576                 ;;
    6577         esac
    6578     done
    6579 fi
    6580 
    6581 
    6582 
    6583 echo " "
    6584 case "$g4wlib_build_g3tog4" in
     5623case "$g4tmp" in
    65855624'')
    6586         g4wlib_build_g3tog4=n
     5625        g4tmp=$g4workdir/tmp
    65875626        ;;
    65885627esac
    65895628
    6590 case "$g4w_use_g3tog4" in
     5629case "$g4lib" in
    65915630'')
    6592         g4w_use_g3tog4=n
     5631        g4lib=$g4workdir/lib
    65935632        ;;
    65945633esac
    65955634
    6596 echo ""
    6597 
    6598 g4message=`cat << EOM
    6599 
    6600   G4LIB_BUILD_G3TOG4 
    6601 
    6602 The utility module 'g3tog4' will be built by setting this
    6603 variable. NOTE: it requires a valid FORTRAN compiler to be
    6604 installed on your system and the 'cernlib' command in the
    6605 path, in order to build the ancillary tools!
    6606 Do you want to build 'g3tog4' ?
    6607  
    6608 EOM`
    6609 
     5635
     5636
     5637g4message="Enable build of the g3tog4 utility module?"
    66105638dflt=$g4wlib_build_g3tog4
    66115639rp=$g4message
     
    66135641gans=$ans
    66145642
    6615         case $gans in
    6616        
     5643case $gans in
    66175644        n*|N*)
    66185645                g4wlib_build_g3tog4=n
     
    66235650                g4w_use_g3tog4=y
    66245651                ;;
     5652esac
     5653
     5654
     5655#
     5656# On WIN32, if GL or Inventor drivers are built, we MUST
     5657# build zlib
     5658#
     5659if test "X$g4vis_build_oiwin32_driver" = "Xy" -o "X$g4vis_build_openglwin32_driver" = "Xy" ; then
     5660        # Force build of ZLIB
     5661        g4wlib_build_zlib='y'
     5662        g4w_use_zlib='y'
     5663        echo " "
     5664        echo "Configure: Auto-enable builtin zlib to support WIN32 visualization drivers"
     5665        echo " "
     5666else
     5667        g4message="Enable internal zlib compression for HepRep visualization?"
     5668        dflt=$g4wlib_build_zlib
     5669        rp=$g4message
     5670        . ./myread
     5671        gans=$ans
     5672
     5673        case $gans in
     5674                n*|N*)
     5675                        g4wlib_build_zlib=n
     5676                        g4w_use_zlib=n
     5677                        ;;
     5678                y*|Y*)
     5679                        g4wlib_build_zlib=y
     5680                        g4w_use_zlib=y
     5681                        ;;
    66255682        esac
    6626 
    6627 
    6628 echo " "
    6629 case "$g4wlib_build_zlib" in
    6630 '')
    6631         g4wlib_build_zlib=n
    6632         ;;
    6633 esac
    6634 
    6635 case "$g4w_use_zlib" in
    6636 '')
    6637         g4w_use_zlib=n
    6638         ;;
    6639 esac
    6640 
    6641 echo ""
    6642 
    6643 g4message=`cat << EOM
    6644 
    6645   G4LIB_BUILD_ZLIB 
    6646 
    6647 Do you want to activate compression for output files
    6648 generated by the HepRep visualization driver?
    6649  
    6650 EOM`
    6651 
    6652 dflt=$g4wlib_build_zlib
    6653 rp=$g4message
    6654 . ./myread
    6655 gans=$ans
    6656 
    6657         case $gans in
    6658        
    6659         n*|N*)
    6660                 g4wlib_build_zlib=n
    6661                 g4w_use_zlib=n
    6662                 ;;
    6663         y*|Y*)
    6664                 g4wlib_build_zlib=y
    6665                 g4w_use_zlib=y
    6666                 ;;
    6667         esac
    6668 
    6669 
    6670 echo " "
    6671 
    6672 case "$g4wanalysis_use" in
    6673 '')
    6674         g4wanalysis_use=n
    6675         ;;
    6676 esac
    6677 
    6678 echo ""
    6679 
    6680 g4message=`cat << EOM
    6681 
    6682   G4ANALYSIS_USE
    6683 
    6684 Activates the configuration setup for allowing plugins to
    6685 analysis tools based on AIDA (Astract Interfaces for Data
    6686 Analysis). In order to use AIDA features and compliant analysis
    6687 tools, the proper environment for these tools will have to be
    6688 set (see documentation for the specific analysis tools).
    6689 EOM`
    6690 
    6691 dflt=$g4wanalysis_use
    6692 rp=$g4message
    6693 . ./myread
    6694 gans=$ans
    6695 
    6696         case $gans in
    6697        
    6698         n*|N*)
    6699                 g4wanalysis_use=n
    6700                 ;;
    6701         y*|Y*)
    6702                 g4wanalysis_use=y
    6703                 ;;
    6704         esac
    6705 
    6706 
     5683fi
    67075684: end of configuration questions
    67085685echo " "
     
    68745851g4w_use_g3tog4='$g4w_use_g3tog4'
    68755852g4w_use_zlib='$g4w_use_zlib'
    6876 g4wanalysis_build='$g4wanalysis_build'
    6877 g4wanalysis_build_jas='$g4wanalysis_build_jas'
    6878 g4wanalysis_build_lab='$g4wanalysis_build_lab'
    6879 g4wanalysis_build_lizard='$g4wanalysis_build_lizard'
    6880 g4wanalysis_use='$g4wanalysis_use'
    6881 g4wanalysis_use_jas='$g4wanalysis_use_jas'
    6882 g4wanalysis_use_lab='$g4wanalysis_use_lab'
    6883 g4wanalysis_use_lizard='$g4wanalysis_use_lizard'
    68845853g4wlib_build_g3tog4='$g4wlib_build_g3tog4'
    68855854g4wlib_build_zlib='$g4wlib_build_zlib'
  • trunk/config/History

    r1185 r1195  
    1 cvs log $Id: History,v 1.368 2009/11/17 15:17:55 gcosmo Exp $
     1cvs log $Id: History,v 1.370 2009/11/18 17:33:22 gcosmo Exp $
    22-------------------------------------------------------------------
    33
     
    1616     * Reverse chronological order (last date on top), please *
    1717     ----------------------------------------------------------
     18
     1918th November 2009  Gabriele Cosmo (config-V09-02-15)
     20- architecture.gmk: corrected inclusion of -lz for zlib.
     21- WIN32-VC.gmk: added gd32.lib to OGLLIBS.
    1822
    192317th November 2009  Gabriele Cosmo (config-V09-02-14)
  • trunk/config/binmake.gmk

    r1162 r1195  
    1 # $Id: binmake.gmk,v 1.141 2009/06/17 16:37:41 gunter Exp $
     1# $Id: binmake.gmk,v 1.143 2009/11/17 15:17:17 gcosmo Exp $
    22# ----------------------------------------------------------
    33# Script defining rules and paths for making binaries.
     
    8787              -I$(G4BASE)/processes/hadronic/models/cascade/utils/include \
    8888              -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/body/include \
     89              -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/cross_sections/include \
     90              -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/fragmentation/include \
    8991              -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/interface/include \
     92              -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/processes/include \
     93              -I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/xs_dependent/include \
    9094              -I$(G4BASE)/processes/hadronic/models/coherent_elastic/include \
    9195              -I$(G4BASE)/processes/hadronic/models/de_excitation/ablation/include \
     
    231235             -lG4intercoms \
    232236             -lG4global
     237
     238  ifdef G4LIB_USE_ZLIB
     239    LDLIBS2 += -lG4zlib
     240  endif
     241
    233242else
    234243# The next lines specifically should read LDLIBS2 = , not LDLIBS2 :=, so
     
    257266endif
    258267
    259 ifdef G4LIB_USE_ZLIB
    260   LDLIBS2 += -lG4zlib
    261 endif
    262 
    263268# LDLIBS3 contains the first set of low level libraries...
    264269#
     
    336341  ifndef GLOBALLIBS
    337342        @echo "Using granular libraries ..."
     343        @echo $(G4TMP)
    338344        @if [ ! \( -f $(G4LIB)/$(G4SYSTEM)/liblist \
    339345          -a -f $(G4LIB)/$(G4SYSTEM)/libname.map \) ]; then \
     
    353359        @if [ ! -d $(G4BINDIR) ] ; then mkdir $(G4BINDIR) ;fi
    354360ifdef CPPVERBOSE
    355         echo Linking 1 $(LDLIBS1); \
    356         echo Linking 2 $(LDLIBS2); \
    357         echo Linking 3 $(LDLIBS3); \
    358         echo Linking 4 $(LDLIBS4); \
    359         echo G4TMPDIR $(G4TMPDIR); \
    360 
    361361        $(CXX) $(CXXFLAGS) $(CPPFLAGS) \
    362362          $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \
  • trunk/config/scripts/env.csh.SH

    r1045 r1195  
    4141unsetenv  G4RADIOACTIVEDATA
    4242unsetenv  G4ABLADATA
     43unsetenv  G4REALSURFACEDATA
    4344
    4445unsetenv  G4LIB
     
    5455unsetenv  G4SYSTEM
    5556
     57unsetenv  G4UI_NONE
    5658unsetenv  G4UI_BUILD_WIN32_SESSION
    5759unsetenv  G4UI_BUILD_XAW_SESSION
     
    6365unsetenv  G4UI_USE_QT
    6466
     67unsetenv  G4VIS_NONE
    6568unsetenv  G4VIS_BUILD_DAWN_DRIVER
    6669unsetenv  G4VIS_BUILD_OIWIN32_DRIVER
     
    156159endif
    157160
    158 
    159 #+
    160 #if ( X$g4elasticdata != X ) then
    161 #setenv G4ELASTICDATA "$g4elasticdata"
    162 #echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA"
    163 #endif
     161#+
     162if ( X$g4realsurfacedata != X ) then
     163setenv G4REALSURFACEDATA "$g4realsurfacedata"
     164echo "On this machine the G4REALSURFACEDATA=\$G4REALSURFACEDATA"
     165endif
     166
    164167
    165168#
     
    211214#
    212215#+
     216if ( X$g4ui_none == Xy ) then
     217setenv G4UI_NONE 1
     218echo "On this machine G4UI_NONE is set, so no user interfaces are available"
     219endif
     220
     221# Check for Windows!
     222if ( "X\$G4SYSTEM" != "XWIN32-VC" && "X\$G4SYSTEM" != "XWIN32-VC7" ) then
     223if ( X$g4ui_none != Xy ) then
     224setenv G4UI_USE_TCSH 1
     225echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"
     226endif
     227endif
     228
     229#+
    213230if ( X$g4ui_build_xaw_session == Xy ) then
    214231setenv G4UI_BUILD_XAW_SESSION 1
     
    263280# g4vis
    264281#
     282#+
     283if ( X$g4vis_none == Xy ) then
     284setenv G4VIS_NONE 1
     285echo "On this machine G4VIS_NONE is set, so no vis drivers are available"
     286endif
     287
    265288#+
    266289if ( X$g4vis_build_dawn_driver == Xy ) then
     
    520543setenv G4LIB_USE_GRANULAR 1
    521544echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
    522 endif
    523 
    524 # Check for Windows!
    525 if ( "X\$G4SYSTEM" != "XWIN32-VC" && "X\$G4SYSTEM" != "XWIN32-VC7" ) then
    526 setenv G4UI_USE_TCSH 1
    527 echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"
    528545endif
    529546
  • trunk/config/scripts/env.sh.SH

    r1045 r1195  
    4141unset  G4RADIOACTIVEDATA
    4242unset  G4ABLADATA
     43unset  G4REALSURFACEDATA
    4344
    4445unset  G4LIB
     
    5455unset  G4SYSTEM
    5556
     57unset  G4UI_NONE
    5658unset  G4UI_BUILD_WIN32_SESSION
    5759unset  G4UI_BUILD_XAW_SESSION
     
    6365unset  G4UI_USE_QT
    6466
     67
     68unset  G4VIS_NONE
    6569unset  G4VIS_BUILD_DAWN_DRIVER
    6670unset  G4VIS_BUILD_OIWIN32_DRIVER
     
    185189fi
    186190
    187 
    188 
    189 
    190 #+
    191 #if [ X$g4elasticdata != X ] ; then
    192 #G4ELASTICDATA="$g4elasticdata"
    193 #export G4ELASTICDATA
    194 #if [ X\$g4non_display = X ] ; then
    195 #echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA"
    196 #fi
    197 #fi
     191#+
     192if [ X$g4realsurfacedata != X ] ; then
     193G4REALSURFACEDATA="$g4realsurfacedata"
     194export G4REALSURFACEDATA
     195if [ X\$g4non_display = X ] ; then
     196echo "On this machine the G4REALSURFACEDATA=\$G4REALSURFACEDATA"
     197fi
     198fi
    198199
    199200#
     
    263264#
    264265#+
     266if [ X$g4ui_none = Xy ] ; then
     267G4UI_NONE=1
     268export G4UI_NONE
     269if [ X\$g4non_display = X ] ; then
     270echo "On this machine, G4UI_NONE is set, so no user interfaces are available"
     271fi
     272fi
     273
     274
     275# Check for Windows!
     276if test "X\$G4SYSTEM" != "XWIN32-VC" -a "X\$G4SYSTEM" != "XWIN32-VC7"; then
     277#+
     278#
     279# UI_USE_TCSH for Unix
     280#
     281if [ X$g4ui_none != Xy ] ; then
     282G4UI_USE_TCSH=1
     283export G4UI_USE_TCSH
     284if [ X\$g4non_display = X ] ; then
     285echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"
     286fi
     287fi
     288fi
     289
     290
     291#+
    265292if [ X$g4ui_build_xaw_session = Xy ] ; then
    266293G4UI_BUILD_XAW_SESSION=1
     
    340367# g4vis
    341368#
     369#+
     370if [ X$g4vis_none = Xy ] ; then
     371G4VIS_NONE=1
     372export G4VIS_NONE
     373if [ X\$g4non_display = X ] ; then
     374echo "On this machine G4VIS_NONE is set, so no vis drivers are available"
     375fi
     376fi
     377
    342378#+
    343379if [ X$g4vis_build_dawn_driver = Xy ] ; then
     
    715751fi
    716752
    717 # Check for Windows!
    718 if test "X\$G4SYSTEM" != "XWIN32-VC" -a "X\$G4SYSTEM" != "XWIN32-VC7"; then
    719 #+
    720 #
    721 # UI_USE_TCSH for Unix
    722 #
    723 G4UI_USE_TCSH=1
    724 export G4UI_USE_TCSH
    725 if [ X\$g4non_display = X ] ; then
    726 echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"
    727 fi
    728 fi
    729753
    730754#####################################################################
  • trunk/config/scripts/install.sh.SH

    r886 r1195  
    5454unset  G4SYSTEM
    5555
     56unset  G4UI_NONE
    5657unset  G4UI_BUILD_WIN32_SESSION
    5758unset  G4UI_BUILD_XAW_SESSION
     
    6465unset  G4UI_USE_QT
    6566
     67unset  G4VIS_NONE
    6668unset  G4VIS_BUILD_DAWN_DRIVER
    6769unset  G4VIS_BUILD_OIWIN32_DRIVER
     
    233235#
    234236#+
     237if [ X$g4ui_none = Xy ] ; then
     238G4UI_NONE=1
     239export G4UI_NONE
     240echo "On this machine G4UI_NONE is set - no UIs will be built"
     241
     242else
     243echo "On this machine G4UI_NONE is not set - following UIs will be built:"
     244
     245#+
    235246if [ X$g4ui_build_xaw_session = Xy ] ; then
    236247G4UI_BUILD_XAW_SESSION=1
     
    289300fi
    290301
     302fi
     303# END OF G4UI_NONE block
    291304
    292305#
    293306# g4vis
    294307#
     308#+
     309if [ X$g4vis_none = Xy ] ; then
     310G4VIS_NONE=1
     311export G4VIS_NONE
     312echo "On this machine G4VIS_NONE is set - no drivers will be built"
     313
     314else
     315echo "On this machine G4VIS_NONE is not set - following drivers will be built:"
     316
    295317#+
    296318if [ X$g4vis_build_dawn_driver = Xy ] ; then
     
    422444
    423445
    424 
     446fi
     447# End of G4VIS_NONE block
    425448
    426449
Note: See TracChangeset for help on using the changeset viewer.