Changeset 993


Ignore:
Timestamp:
Apr 17, 2009, 3:06:54 PM (15 years ago)
Author:
garnier
Message:

en test pour moc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configure

    r921 r993  
    1919#
    2020
    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]
     21# $Id: Configure,v 1.112 2009/01/22 14:26:31 bmorgan Exp $
     22#
     23# Generated on Thu Jan 22 14:06:57 GMT 2009 [metaconfig 3.0 PL70]
    2424
    2525cat >/tmp/c1$$ <<EOF
     
    23772377        if test -x "/usr/bin/moc" ; then
    23782378            g4_qt_moc="/usr/bin/moc"
    2379             echo "checking for moc... \$g4_qt_moc"
    2380 
    2381             g4_qt_dir=\`dirname \$g4_qt_include_dir\`
    2382             g4_qt_dir=\`dirname \$g4_qt_dir\`
    2383 
    23842379            g4_qt_version="4"
    2385             g4_qt_cxxflags="-I\$g4_qt_dir/QtCore.framework/Headers -I\$g4_qt_dir/QtGui.framework/Headers"
    2386             g4_qt_gl_cxxflags="-I\$g4_qt_dir/QtOpenGl.framework/Headers"
    2387             g4_qt_libs="-F\$g4_qt_dir -framework QtCore -framework QtGui"
    2388             g4_qt_gl_libs="-framework QtOpenGL"
     2380            # checking moc version
     2381            g4_qt_moc_major_version=\`\$g4_qt_moc -v 2>&1|sed 's/^.*(Qt \(.*\)\..*\..*)/\1/'\`
     2382            if test "$g4_qt_version" = "$g4_qt_moc_major_version" ; then
     2383                echo "checking for moc... found \$g4_qt_moc version \$g4_qt_moc_major_version"
     2384
     2385                g4_qt_dir=\`dirname \$g4_qt_include_dir\`
     2386                g4_qt_dir=\`dirname \$g4_qt_dir\`
     2387               
     2388                g4_qt_version="4"
     2389                g4_qt_cxxflags="-I\$g4_qt_dir/QtCore.framework/Headers -I\$g4_qt_dir/QtGui.framework/Headers"
     2390                g4_qt_gl_cxxflags="-I\$g4_qt_dir/QtOpenGl.framework/Headers"
     2391                g4_qt_libs="-F\$g4_qt_dir -framework QtCore -framework QtGui"
     2392                g4_qt_gl_libs="-framework QtOpenGL"
     2393            else
     2394                echo "checking for moc... found \$g4_qt_moc for Qt version \$g4_qt_moc_major_version, but Qt \$g4_qt_version path is used. Please update/move \$g4_qt_moc to Qt \$g4_qt_version"
     2395                g4_havegoodqt=no
     2396            fi
    23892397        else
    23902398            echo "checking for moc... no"
     
    25442552            g4_havegoodqt=no
    25452553        fi
    2546         echo "checking for moc... \$g4_qtmoc"
     2554        # checking moc version
     2555        g4_qt_moc_major_version=\`\$g4_qtmoc -v 2>&1|sed 's/^.*(Qt \(.*\)\..*\..*)/\1/'\`
     2556        echo "checking for moc... found \$g4_qtmoc version \$g4_qt_moc_major_version"
    25472557
    25482558        ## THIS IS POINT AT WHICH TO DO FALLBACK TESTS I.E DOES
     
    25892599
    25902600            g4_qt_moc=\$g4_qtmoc
    2591 
    2592             g4_qt_is_configured=yes
     2601            if test '$g4_qt_version' = '$g4_qt_moc_major_version' ; then
     2602                g4_qt_is_configured=''
     2603            else
     2604                echo "checking for moc... found \$g4_qt_moc for Qt version \$g4_qt_moc_major_version, but Qt \$g4_qt_version path is used. Please update/move \$g4_qt_moc to Qt \$g4_qt_version"
     2605                g4_qt_is_configured=yes
     2606            fi
    25932607        else
    25942608            g4_qt_is_configured=''
     
    32183232        if test -d "$g4data/$g4data_g4emlow_version" ; then
    32193233                $echo "yes"
    3220                 g4ledata=$g4data/$g4data_emlow_version
     3234                g4ledata=$g4data/$g4data_g4emlow_version
    32213235        else
    32223236                $echo "no"
     
    32383252        if test -d "$g4data/$g4data_g4abla_version" ; then
    32393253                $echo "yes"
    3240                 g4levelgammadata=$g4data/$g4data_g4abla_version
     3254                g4abladata=$g4data/$g4data_g4abla_version
    32413255        else
    32423256                $echo "no"
     
    32973311                else
    32983312                        #try again
     3313                        g4data_foundall=yes
    32993314                        g4data=$gans
    33003315                fi
Note: See TracChangeset for help on using the changeset viewer.