summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 9 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index b7bec5b..e67dad1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,26 +27,27 @@ if test x$with_debug == xyes; then
AC_MSG_WARN([*** Building with debug support!])
CXXFLAGS="$CXXFLAGS -Wall -Werror -g"
HUGIN_PARM=""
-fi
+fi
CXXFLAGS="$CXXFLAGS $HUGIN_PARM"
dnl ======================
dnl Check for Qt
dnl ======================
-PKG_CHECK_MODULES(QT, QtCore QtGui QtXml >= 4.5)
-AC_CHECK_PROGS(QT_MOC, [moc4 moc-qt4 moc], [])
-AC_CHECK_PROGS(QT_RCC, [rcc4 rcc-qt4 rcc], [])
-AC_CHECK_PROGS(QT_UIC, [uic4 uic-qt4 uic], [])
+PKG_CHECK_MODULES(QT, Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0)
+AC_CHECK_PROGS(QT_MOC, [moc5 moc-qt5 moc], [])
+AC_CHECK_PROGS(QT_RCC, [rcc5 rcc-qt5 rcc], [])
+AC_CHECK_PROGS(QT_UIC, [uic5 uic-qt5 uic], [])
if (test "$QT_MOC" = ""); then
- AC_MSG_ERROR([QT4 moc is required.])
+ AC_MSG_ERROR([QT5 moc is required.])
fi
if (test "$QT_RCC" = ""); then
- AC_MSG_ERROR([QT4 rcc is required.])
+ AC_MSG_ERROR([QT5 rcc is required.])
fi
if (test "$QT_UIC" = ""); then
- AC_MSG_ERROR([QT4 uic is required.])
+ AC_MSG_ERROR([QT5 uic is required.])
fi
+CXXFLAGS="$CXXFLAGS -fPIC"
dnl ======================
dnl Check for libao