Skip to content

Commit 81fbff0

Browse files
author
g_j_m
committed
Fail if the Qt version is less than 4.2 (since the code now requires 4.2)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6147 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 456662f commit 81fbff0

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

acinclude.m4

+2-26
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ fi
183183
AC_MSG_CHECKING([Qt version in $QTVERTEST])
184184
QT_VER=`grep 'define.*QT_VERSION_STR\W' $QTVERTEST/qglobal.h | perl -p -e 's/\D//g'`
185185
case "${QT_VER}" in
186-
41*|42*)
186+
42*)
187187
QT_MAJOR="${QT_VER:0:1}"
188188
QT_MINOR="${QT_VER:1:1}"
189189
case "${host}" in
@@ -220,24 +220,11 @@ case "${QT_VER}" in
220220
QT4_DEFAULTINC=$QTDIR/mkspecs/default
221221
;;
222222
*)
223-
AC_MSG_ERROR([*** Qt version 4.1 or higher is required])
223+
AC_MSG_ERROR([*** Qt version 4.2 or higher is required])
224224
;;
225225
esac
226226
AC_MSG_RESULT([$QT_VER ($QT_MAJOR)])
227227
228-
if test $QT_MAJOR = "3" ; then
229-
# Check that moc is in path
230-
AC_CHECK_PROG(MOC, moc, moc)
231-
if test x$MOC = x ; then
232-
AC_MSG_ERROR([*** moc must be in path])
233-
fi
234-
# uic is the Qt user interface compiler
235-
AC_CHECK_PROG(UIC, uic, uic)
236-
if test x$UIC = x ; then
237-
AC_MSG_ERROR([*** uic must be in path])
238-
fi
239-
fi
240-
241228
if test $QT_MAJOR = "4" ; then
242229
# Hard code things for the moment
243230
@@ -280,9 +267,6 @@ fi
280267
# manually, we'll let it slide if it isn't present
281268
### AC_CHECK_PROG(QEMBED, qembed, qembed)
282269
# Calculate Qt include path
283-
if test $QT_MAJOR = "3" ; then
284-
QT_CXXFLAGS="-I$QTINC"
285-
fi
286270
if test $QT_MAJOR = "4" ; then
287271
QT_CXXFLAGS="-DQT3_SUPPORT -I$QT4_DEFAULTINC -I$QT4_3SUPPORTINC -I$QT4_COREINC -I$QT4_DESIGNERINC -I$QT4_GUIINC -I$QT4_NETWORKINC -I$QT4_OPENGLINC -I$QT4_SQLINC -I$QT4_XMLINC -I$QTINC -I$QT4_SVGINC -I$QT4_TESTINC -I$QT4_DESIGNERINC"
288272
fi
@@ -467,15 +451,8 @@ case "${host}" in
467451
468452
if test $QT_IS_STATIC = yes ; then
469453
QT_LIBS="$QT_LIBS $QT_LIB kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib shell32.lib imm32.lib advapi32.lib wsock32.lib winspool.lib winmm.lib netapi32.lib"
470-
if test $QT_MAJOR = "3" ; then
471-
QT_LIBS="$QT_LIBS qtmain.lib"
472-
fi
473454
else
474455
QT_LIBS="$QT_LIBS $QT_LIB"
475-
if test $QT_MAJOR = "3" ; then
476-
QT_CXXFLAGS="$QT_CXXFLAGS -DQT_DLL"
477-
QT_LIBS="$QT_LIBS qtmain.lib qui.lib user32.lib netapi32.lib"
478-
fi
479456
fi
480457
QASSISTANTCLIENT_LDADD="qassistantclient.lib"
481458
;;
@@ -611,7 +588,6 @@ dnl PKG_CHECK_MODULES(QT_TEST, QtTest >= $QT_MIN_VER)
611588
dnl Assume for the moment that Qt4 installations will still compile against uic3
612589
dnl AM_CONDITIONAL([NO_UIC_IMPLEMENTATIONS], [test "$QT_MAJOR" = "4"])
613590
AM_CONDITIONAL([NO_UIC_IMPLEMENTATIONS], [test "$QT_MAJOR" = "0"])
614-
AM_CONDITIONAL([HAVE_QT3], [test "$QT_MAJOR" = "3"])
615591
AM_CONDITIONAL([HAVE_QT4], [test "$QT_MAJOR" = "4"])
616592
617593
AM_CONDITIONAL([HAVE_QTMAC], [test "$have_qtmac" = "yes"])

0 commit comments

Comments
 (0)