Fix:core:Made Qt version detection better
authorakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 1 Apr 2010 14:52:18 +0000 (14:52 +0000)
committerakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 1 Apr 2010 14:52:18 +0000 (14:52 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3110 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/configure.in

index 7c7a5cb..6d4c2a6 100644 (file)
@@ -791,7 +791,8 @@ if test "x${gui_qml}" = "xyes" -a "x${QT_GUI_CFLAGS}" = "x" -a "x${QT_GUI_LIBS}"
 fi
 if test "x${gui_qml}" = "xyes" -a "x${QT_DECLARATIVE_CFLAGS}" = "x" -a "x${QT_DECLARATIVE_LIBS}" = "x"; then
        PKG_CHECK_MODULES(QT_DECLARATIVE, [QtDeclarative >= 4.6.0 ], ,gui_qml=no;gui_qml_reason="Packages QtDeclarative missing")
-       PKG_CHECK_MODULES(QT_DECLARATIVE, [QtDeclarative >= 4.7.0 ], AM_CONDITIONAL(QT_DECLARATIVE_NEWAPI,test "x${gui_qml}" = "xyes"), )
+       QmlApiVersion=`$PKG_CONFIG QtDeclarative --modversion`
+       AM_CONDITIONAL(QT_DECLARATIVE_NEWAPI,test "x${QmlApiVersion}" != "x4.6.0" -a "x${QmlApiVersion}" != "x4.6.2" )
 fi
 if test "x${gui_qml}" = "xyes" ; then
        AC_DEFINE(USE_GUI_QML, 1, [Build with gui qml])