Changeset 921 for trunk/Configure


Ignore:
Timestamp:
Feb 16, 2009, 10:14:30 AM (17 years ago)
Author:
garnier
Message:

en test de gl2ps. Problemes de libraries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configure

    r884 r921  
    1919#
    2020
    21 # $Id: Configure,v 1.107 2008/11/14 15:14:46 bmorgan Exp $
    22 #
    23 # Generated on Fri Nov 14 15:14:32 GMT 2008 [metaconfig 3.0 PL70]
     21# $Id: Configure,v 1.110 2008/12/03 15:34:57 bmorgan Exp $
     22#
     23# Generated on Wed Dec  3 15:33:49 GMT 2008 [metaconfig 3.0 PL70]
    2424
    2525cat >/tmp/c1$$ <<EOF
     
    11441144awk
    11451145cat
     1146echo
    11461147expr
    11471148grep
     
    23032304            \`ls -dr /System/Library/Frameworks/QtCore.framework/Headers 2>/dev/null\`
    23042305            /usr/include/QtCore
    2305             \`ls -dr /usr/include/qt*/QtCore 2>/dev/null\`
     2306            \`ls -dr /usr/include/qt*/QtCore 2>/dev/null\`
     2307            \`ls -dr /usr/local/include/QtCore 2>/dev/null\`
     2308            \`ls -dr /usr/local/include/qt*/QtCore 2>/dev/null\`
     2309            \`ls -dr /usr/local/qt*/include/QtCore 2>/dev/null\`
    23062310            \`ls -dr /opt/qt*/include/QtCore 2>/dev/null\`
    23072311            \`ls -dr /usr/qt*/include/QtCore 2>/dev/null\`
     
    23132317            /usr/include
    23142318            \`ls -dr /usr/include/qt* 2>/dev/null\`
     2319            \`ls -dr /usr/local/include 2>/dev/null\`
     2320            \`ls -dr /usr/local/include/qt* 2>/dev/null\`
     2321            \`ls -dr /usr/local/qt*/include 2>/dev/null\`
    23152322            \`ls -dr /opt/qt*/include 2>/dev/null\`
    23162323            \`ls -dr /usr/qt*/include 2>/dev/null\`
     
    23212328            \`ls -dr /sw/qt/*/include 2>/dev/null\`
    23222329            /usr/include/Qt
    2323             \`ls -dr /usr/include/qt*/Qt 2>/dev/null\`
     2330            \`ls -dr /usr/include/qt*/Qt 2>/dev/null\`
     2331            \`ls -dr /usr/local/include/Qt 2>/dev/null\`
     2332            \`ls -dr /usr/local/include/qt*/Qt 2>/dev/null\`
    23242333            \`ls -dr /opt/qt*/include/Qt 2>/dev/null\`
    23252334            \`ls -dr /usr/qt*/include/Qt 2>/dev/null\`
     
    25922601fi #END TEST "x\$g4_qt_is_configured" = "x"
    25932602
    2594 
    2595 echo ""
    2596 echo "DEBUG#####"
    2597 echo "g4_qt_cxxflags    = \$g4_qt_cxxflags"
    2598 echo "g4_qt_gl_cxxflags = \$g4_qt_gl_cxxflags"
    2599 echo "g4_qt_libs        = \$g4_qt_libs"
    2600 echo "g4_qt_gl_libs     = \$g4_qt_gl_libs"
    2601 echo "g4_qt_moc         = \$g4_qt_moc"
    2602 echo "..."
    2603 echo "g4_havegoodqt       = \$g4_havegoodqt"
    2604 echo "g4_qt_is_configured = \$g4_qt_is_configured"
    2605 echo "##########"
    26062603EOSC
    26072604: decide how portable to be
     
    31203117done
    31213118
     3119g4data_photonevaporation_version='PhotonEvaporation2.0'
     3120g4data_radioactivedecay_version='RadioactiveDecay3.2'
     3121g4data_g4emlow_version='G4EMLOW6.2'
     3122g4data_g4ndl_version='G4NDL3.13'
     3123g4data_g4abla_version='G4ABLA3.0'
     3124#END GEANT4 DATA OPTIONS
    31223125echo " "
    31233126
     3127
     3128#
     3129# Set defaults for data paths - here, because we depend on g4install
     3130#
    31243131case "$g4data" in
    31253132'')
     
    31303137case "$g4levelgammadata" in
    31313138'')
    3132         g4levelgammadata=$g4data/PhotonEvaporation2.0
     3139        g4levelgammadata=$g4data/$g4data_photonevaporation_version
    31333140        ;;
    31343141esac
     
    31363143case "$g4radioactivedata" in
    31373144'')
    3138         g4radioactivedata=$g4data/RadioactiveDecay3.2
     3145        g4radioactivedata=$g4data/$g4data_radioactivedecay_version
    31393146        ;;
    31403147esac
     
    31423149case "$g4ledata" in
    31433150'')
    3144         g4ledata=$g4data/G4EMLOW6.1
     3151        g4ledata=$g4data/$g4data_g4emlow_version
    31453152        ;;
    31463153esac
     
    31483155case "$g4neutronhpcrosssections" in
    31493156'')
    3150         g4neutronhpcrosssections=$g4data/G4NDL3.12
     3157        g4neutronhpcrosssections=$g4data/$g4data_g4ndl_version
    31513158        ;;
    31523159esac
     
    31543161case "$g4abladata" in
    31553162'')
    3156         g4abladata=$g4data/G4ABLA3.0
    3157         ;;
    3158 esac
    3159 
    3160 
    3161 #case "$g4elasticdata" in
    3162 #'')
    3163 #       g4elasticdata=$g4data/G4ELASTIC1.1
    3164 #       ;;
    3165 #esac
    3166 
    3167 #########################################################################
    3168 
    3169 # while test 1 = 1  ; do
    3170 
    3171 g4message=`cat << EOM
    3172 
    3173 Please, specify default directory where ALL the Geant4 data is installed:
    3174 
    3175  G4LEVELGAMMADATA:              $g4levelgammadata
    3176 
    3177  G4RADIOACTIVEDATA:             $g4radioactivedata
    3178 
    3179  G4LEDATA:                      $g4ledata
    3180 
    3181  G4NEUTRONHPDATA:               $g4neutronhpcrosssections
    3182 
    3183  G4ABLADATA:                    $g4abladata
    3184 
    3185 You will be asked about customizing these next.
    3186 
    3187 EOM`
    3188 
    3189 #dflt="NO DEFAULT ANSWER"
     3163        g4abladata=$g4data/$g4data_g4abla_version
     3164        ;;
     3165esac
     3166
     3167
     3168#
     3169# Now we have defaults, prompt user to see if this is where they want to use
     3170#
     3171g4data_alllibs="$g4data_photonevaporation_version $g4data_radioactivedecay_version $g4data_g4emlow_version $g4data_g4ndl_version $g4data_g4abla_version"
     3172
     3173g4message=`cat <<EOM
     3174Specify the path where are the Geant4 data libraries
     3175
     3176$g4data_alllibs
     3177
     3178are installed. For now, a flat directory structure is assumed, and this can
     3179be customized at the next step if needed.
     3180EOM`
     3181
    31903182dflt=$g4data
    3191 #fn='d~'
    3192 rp=$g4message
    3193 #. ./myread
    3194 gans=$ans
    3195 
    3196                 dflt=$g4data
    3197                 fn='d~'
    3198                 . ./getfile
    3199 
    3200                 if [ X$g4data != X$ans ] ; then
    3201                 g4data=$ans
    3202 
    3203                 g4levelgammadata=$g4data/PhotonEvaporation2.0
    3204                 g4radioactivedata=$g4data/RadioactiveDecay3.2
    3205                 g4ledata=$g4data/G4EMLOW6.1
    3206                 g4neutronhpcrosssections=$g4data/G4NDL3.12
    3207                 g4abladata=$g4data/G4ABLA3.0
    3208 #               g4elasticdata=$g4data/G4ELASTIC1.1
    3209                 fi
    3210 # done
    3211 
    3212 ###################################################################
    3213 
    3214 while test 1 = 1  ; do
    3215 
    3216 g4message=`cat << EOM
    3217 
    3218 Please, specify default directory where the Geant4 data is installed:
    3219 
    3220 1) G4LEVELGAMMADATA:            $g4levelgammadata
    3221 
    3222 2) G4RADIOACTIVEDATA:           $g4radioactivedata
    3223 
    3224 3) G4LEDATA:                    $g4ledata
    3225 
    3226 4) G4NEUTRONHPDATA:             $g4neutronhpcrosssections
    3227 
    3228 5) G4ABLADATA:                  $g4abladata
    3229 
    3230 To modify default settings, select number above (e.g. 2)
    3231 EOM`
    3232 
    3233 #dflt="NO DEFAULT ANSWER"
    3234 dflt="Press [Enter] for default settings"
    3235 #fn='d~'
    32363183rp=$g4message
    32373184. ./myread
    3238 gans=$ans
    3239 
     3185g4data=$ans
     3186
     3187#
     3188# Using this, we can now check that the libs exist, but only on a directory
     3189# level
     3190#
     3191g4data_foundall='yes'
     3192promptend="no"
     3193g4data_customize="no"
     3194
     3195while test "x$promptend" = "xno" ; do
     3196        ### PhotonEvaporation
     3197        $echo $n "checking for $g4data_photonevaporation_version... $c"
     3198        if test -d "$g4data/$g4data_photonevaporation_version" ; then
     3199                $echo "yes"
     3200                g4levelgammadata=$g4data/$g4data_photonevaporation_version
     3201        else
     3202                $echo "no"
     3203                g4data_foundall="no"
     3204        fi
     3205
     3206        ### RadioactiveDecay
     3207        $echo $n "checking for $g4data_radioactivedecay_version... $c"
     3208        if test -d "$g4data/$g4data_radioactivedecay_version" ; then
     3209                $echo "yes"
     3210                g4radioactivedata=$g4data/$g4data_radioactivedecay_version
     3211        else
     3212                $echo "no"
     3213                g4data_foundall="no"
     3214        fi
     3215
     3216        ### G4EMLOW
     3217        $echo $n "checking for $g4data_g4emlow_version... $c"
     3218        if test -d "$g4data/$g4data_g4emlow_version" ; then
     3219                $echo "yes"
     3220                g4ledata=$g4data/$g4data_emlow_version
     3221        else
     3222                $echo "no"
     3223                g4data_foundall="no"
     3224        fi
     3225
     3226        ### G4NDL
     3227        $echo $n "checking for $g4data_g4ndl_version... $c"
     3228        if test -d "$g4data/$g4data_g4ndl_version" ; then
     3229                $echo "yes"
     3230                g4neutronhpcrosssections=$g4data/$g4data_g4ndl_version
     3231        else
     3232                $echo "no"
     3233                g4data_foundall="no"
     3234        fi
     3235
     3236        ### G4ABLA
     3237        $echo $n "checking for $g4data_g4abla_version... $c"
     3238        if test -d "$g4data/$g4data_g4abla_version" ; then
     3239                $echo "yes"
     3240                g4levelgammadata=$g4data/$g4data_g4abla_version
     3241        else
     3242                $echo "no"
     3243                g4data_foundall="no"
     3244        fi
     3245
     3246        #
     3247        # If we haven't found all the data, query the user as to whether they
     3248        # want to
     3249        # 1) try again with a different path
     3250        # 2) use the path they input
     3251        # 3) customize paths
     3252        #
     3253        if test "x$g4data_foundall" = "xyes" ; then
     3254                promptend=yes
     3255        else
     3256                g4message=`cat << EOM
     3257
     3258Failed to locate one or more of the Geant4 data libraries in
     3259
     3260$g4data
     3261
     3262Please enter
     32631) Another path to search in
     32642) 'f' to force the use of the path you entered previously (the data libraries
     3265   are not needed to build Geant4, but are needed to run applications later).
     32663) 'c' to customize the data paths, e.g. if you have the data libraries
     3267   installed in different locations.
     3268EOM`
     3269                dflt="f"
     3270                rp=$g4message
     3271                . ./myread
     3272                gans=$ans
     3273
     3274                if test "x$gans" = "xf" ; then
     3275                        # Force paths
     3276                        promptend="yes"
     3277                        g4levelgammadata="$g4data/$g4data_photonevaporation_version"
     3278                        g4radioactivedata="$g4data/$g4data_radioactivedecay_version"
     3279                        g4ledata="$g4data/$g4data_g4emlow_version"
     3280                        g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version"
     3281                        g4abladata="$g4data/$g4data_g4abla_version"
     3282                       
     3283
     3284                elif test "x$gans" = "xc" ; then
     3285                        # enable customization - we use input g4data to set
     3286                        # defaults
     3287                        promptend="yes"
     3288                        g4data_customize="yes"
     3289
     3290                        g4levelgammadata="$g4data/$g4data_photonevaporation_version"
     3291                        g4radioactivedata="$g4data/$g4data_radioactivedecay_version"
     3292                        g4ledata="$g4data/$g4data_g4emlow_version"
     3293                        g4neutronhpcrosssections="$g4data/$g4data_g4ndl_version"
     3294                        g4abladata="$g4data/$g4data_g4abla_version"
     3295
     3296
     3297                else
     3298                        #try again
     3299                        g4data=$gans
     3300                fi
     3301        fi
     3302done
     3303
     3304
     3305#
     3306# Now customize paths if required
     3307#
     3308if test "x$g4data_customize" = "xyes" ; then
     3309while test "x" = "x" ; do
     3310
     3311        g4message=`cat <<EOM
     3312
     3313You have chosen to customize the Geant4 data library paths.
     3314
     33151) $g4data_photonevaporation_version:
     3316        $g4levelgammadata
     33172) $g4data_radioactivedecay_version:
     3318        $g4radioactivedata
     33193) $g4data_g4emlow_version:
     3320        $g4ledata
     33214) $g4data_g4ndl_version:
     3322        $g4neutronhpcrosssections
     33235) $g4data_g4abla_version:
     3324        $g4abladata
     3325
     3326Choose a number from the list above to customize that path (e.g. 2)
     3327EOM`
     3328
     3329        dflt="Press [Enter] to exit customization with paths as above"
     3330        rp=$g4message
     3331        . ./myread
     3332        gans=$ans
    32403333
    32413334        case $gans in
    32423335
    3243         1)
     3336        "1")
    32443337                dflt=$g4levelgammadata
    32453338                fn='d~'
    3246                 rp="Where is Geant4 PhotonEvaporation2.0 data installed?"
     3339                rp="Custom path to $g4data_photonevaporation_version?"
    32473340                . ./getfile
    32483341                g4levelgammadata=$ans
    32493342                ;;
    3250         2)
     3343
     3344        "2")
    32513345                dflt=$g4radioactivedata
    32523346                fn='d~'
    3253                 rp="Where is Geant4 RadioactiveDecay3.2 data installed?"
     3347                rp="Custom path to $g4data_radioactivedecay_version?"
    32543348                . ./getfile
    32553349                g4radioactivedata=$ans
    32563350                ;;
    3257         3)
     3351
     3352        "3")
    32583353                dflt=$g4ledata
    32593354                fn='d~'
    3260                 rp="Where is G4EMLOW6.1 data installed ?"
     3355                rp="Custom path to $g4data_g4emlow_version?"
    32613356                . ./getfile
    32623357                g4ledata=$ans
    32633358                ;;
    3264         4)
     3359
     3360        "4")
    32653361                dflt=$g4neutronhpcrosssections
    32663362                fn='d~'
    3267                 rp="Where is G4NDL3.12 data installed?"
     3363                rp="Custom path to $g4data_g4ndl_version?"
    32683364                . ./getfile
    32693365                g4neutronhpcrosssections=$ans
    32703366                ;;
    32713367
    3272         5)
     3368        "5")
    32733369                dflt=$g4abladata
    32743370                fn='d~'
    3275                 rp="Where is G4ABLA3.0 data installed?"
     3371                rp="Custom path to $g4data_g4abla_version?"
    32763372                . ./getfile
    32773373                g4abladata=$ans
    32783374                ;;
    32793375
    3280 #       5)
    3281 #               dflt=$g4elasticdata
    3282 #               fn='d~'
    3283 #               rp="Where is G4ELASTIC1.1 data installed?"
    3284 #               . ./getfile
    3285 #               g4elasticdata=$ans
    3286 #               ;;
    3287 
    3288 #       [eE])
    3289 #               break
    3290 #               ;;
    3291         *)
     3376        *)
    32923377                break
    3293 #               echo " "
    3294                 ;;
     3378                ;;
     3379
    32953380        esac
     3381
    32963382done
     3383fi
     3384
     3385
     3386
    32973387
    32983388
     
    43554445
    43564446if test "X$g4osname" = "XLinux" ; then
    4357 g4ui_xawflags=" -I$g4ui_xawhome/include "
    4358         if test "X$g4ui_xawhome" = "X/usr/X11R6" ; then
     4447        if test "X$g4ui_xawhome" = "X" ; then
     4448                g4ui_xawflags=""
     4449        else
     4450                g4ui_xawflags=" -I$g4ui_xawhome/include "
     4451        fi
     4452
     4453        if test "X$g4ui_xawhome" = "X/usr/X11R6" -o "X$g4ui_xawhome" = "X" ; then
    43594454                g4ui_xawlibs=" -lXaw "
    43604455        else
    4361                 g4ui_xawlibs=" -L$g4ui_xawhome/lib -lXaw "
     4456                if test -d "$g4ui_xawhome/lib64" ; then
     4457                        g4ui_xawlibs=" -L$g4ui_xawhome/lib64 -lXaw "
     4458                else
     4459                        g4ui_xawlibs=" -L$g4ui_xawhome/lib -lXaw "
     4460                fi
    43624461        fi
    43634462fi
     
    45584657
    45594658if test "X$g4osname" = "XLinux"; then
    4560 
    4561 if test "X$g4vis_xmhome" = "X/usr" -o "X$g4vis_xmhome" = "X/usr/local" ; then
    4562 g4vis_xmhome=""
    4563 fi
     4659        if test "X$g4vis_xmhome" = "X/usr" -o "X$g4vis_xmhome" = "X/usr/local" ; then
     4660                g4vis_xmhome=""
     4661        fi
    45644662fi
    45654663fi # g4vis_build_opheglxm_driver
     
    45774675
    45784676if test "X$g4osname" = "XLinux" ; then
    4579 g4vis_xmflags=" -I$g4vis_xmhome/include "
    4580         if test "X$g4vis_xmhome" = "X/usr/X11R6" ; then
     4677        if test "X$g4vis_xmhome" = "X" ; then
     4678                g4vis_xmflags=""
     4679        else
     4680                g4vis_xmflags=" -I$g4vis_xmhome/include "
     4681        fi
     4682
     4683        if test "X$g4vis_xmhome" = "X/usr/X11R6" -o "X$g4vis_xmhome" = "X" ; then
    45814684                g4vis_xmlibs=" -lXm -lXpm "
    45824685        else
    4583                 g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm "
     4686                if test -d "$g4vis_xmhome/lib64" ; then
     4687                        g4vis_xmlibs=" -L$g4vis_xmhome/lib64 -lXm -lXpm "
     4688                else
     4689                        g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm "
     4690                fi
    45844691        fi
    45854692fi
     
    51805287
    51815288if test "X$g4osname" = "XLinux" ; then
    5182 g4vis_xmflags=" -I$g4vis_xmhome/include "
    5183         if test "X$g4vis_xmhome" = "X/usr/X11R6" ; then
     5289        if test "X$g4vis_xmhome" = "X" ; then
     5290                g4vis_xmflags=""
     5291        else
     5292                g4vis_xmflags=" -I$g4vis_xmhome/include "
     5293        fi
     5294
     5295        if test "X$g4vis_xmhome" = "X/usr/X11R6" -o "X$g4vis_xmhome" = "X" ; then
    51845296                g4vis_xmlibs=" -lXm -lXpm "
    51855297        else
    5186                 g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm "
     5298                if test -d "$g4vis_xmhome/lib64" ; then
     5299                        g4vis_xmlibs=" -L$g4vis_xmhome/lib64 -lXm -lXpm "
     5300                else
     5301                        g4vis_xmlibs=" -L$g4vis_xmhome/lib -lXm -lXpm "
     5302                fi
    51875303        fi
    51885304fi
Note: See TracChangeset for help on using the changeset viewer.