|
|
@ -103,7 +103,12 @@ AC_DEFUN([AX_CHECK_QT], [ |
|
|
|
HAVE_$1=1 |
|
|
|
HAVE_$1=1 |
|
|
|
AC_DEFINE([HAVE_$1]) |
|
|
|
AC_DEFINE([HAVE_$1]) |
|
|
|
QTDIR=$(${PKG_CONFIG} --variable=prefix Qt5Core) |
|
|
|
QTDIR=$(${PKG_CONFIG} --variable=prefix Qt5Core) |
|
|
|
|
|
|
|
qt_host_bins=$(${PKG_CONFIG} --variable=host_bins Qt5Core) |
|
|
|
|
|
|
|
if test -d "${qt_host_bins}"; then |
|
|
|
|
|
|
|
QT_PLUGIN_PATH=${qt_host_bins}/../plugins |
|
|
|
|
|
|
|
else |
|
|
|
QT_PLUGIN_PATH=${QTDIR}/share/qt5/plugins |
|
|
|
QT_PLUGIN_PATH=${QTDIR}/share/qt5/plugins |
|
|
|
|
|
|
|
fi |
|
|
|
MOC_FLAGS+=" -DHAVE_$1=1 ${[$1]5_CFLAGS}" |
|
|
|
MOC_FLAGS+=" -DHAVE_$1=1 ${[$1]5_CFLAGS}" |
|
|
|
[$1]_CPPFLAGS="${[$1]5_CFLAGS}" |
|
|
|
[$1]_CPPFLAGS="${[$1]5_CFLAGS}" |
|
|
|
[$1]_CXXFLAGS="${[$1]5_CFLAGS}" |
|
|
|
[$1]_CXXFLAGS="${[$1]5_CFLAGS}" |
|
|
@ -145,7 +150,12 @@ AC_DEFUN([AX_CHECK_QT], [ |
|
|
|
HAVE_$1=1 |
|
|
|
HAVE_$1=1 |
|
|
|
AC_DEFINE([HAVE_$1]) |
|
|
|
AC_DEFINE([HAVE_$1]) |
|
|
|
QTDIR=$(${PKG_CONFIG} --variable=prefix QtCore) |
|
|
|
QTDIR=$(${PKG_CONFIG} --variable=prefix QtCore) |
|
|
|
|
|
|
|
qt_host_bins=$(${PKG_CONFIG} --variable=host_bins QtCore) |
|
|
|
|
|
|
|
if test -d "${qt_host_bins}"; then |
|
|
|
|
|
|
|
QT_PLUGIN_PATH=${qt_host_bins}/../plugins |
|
|
|
|
|
|
|
else |
|
|
|
QT_PLUGIN_PATH=${QTDIR}/share/qt/plugins |
|
|
|
QT_PLUGIN_PATH=${QTDIR}/share/qt/plugins |
|
|
|
|
|
|
|
fi |
|
|
|
MOC_FLAGS+=" -DHAVE_$1=1 ${$1_CFLAGS}" |
|
|
|
MOC_FLAGS+=" -DHAVE_$1=1 ${$1_CFLAGS}" |
|
|
|
[$1]_CPPFLAGS="${[$1]_CFLAGS}" |
|
|
|
[$1]_CPPFLAGS="${[$1]_CFLAGS}" |
|
|
|
[$1]_CXXFLAGS="${[$1]_CFLAGS}" |
|
|
|
[$1]_CXXFLAGS="${[$1]_CFLAGS}" |
|
|
@ -188,6 +198,16 @@ AC_DEFUN([AX_CHECK_QT], [ |
|
|
|
if test -n "${MINGW}"; then |
|
|
|
if test -n "${MINGW}"; then |
|
|
|
AX_CHECK_VALID_CXX_FLAG([-Wl,-subsystem,windows], [windows console flag]) |
|
|
|
AX_CHECK_VALID_CXX_FLAG([-Wl,-subsystem,windows], [windows console flag]) |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
|
|
|
|
|
|
if test "${QT_PLUGIN_PATH}" = "${QT_PLUGIN_PATH#${prefix}}"; then |
|
|
|
|
|
|
|
QT_PLUGIN_PATH=${prefix}${QT_PLUGIN_PATH#/usr} |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
AC_ARG_WITH([qt-plugin-path], |
|
|
|
|
|
|
|
[AS_HELP_STRING([--with-qt-plugin-path=PATH], |
|
|
|
|
|
|
|
[define a different qt plugin path, current @<:@default=check@:>@])], |
|
|
|
|
|
|
|
[QT_PLUGIN_PATH=$with_qt_plugin_path], |
|
|
|
|
|
|
|
[]) |
|
|
|
|
|
|
|
AC_MSG_NOTICE([Qt Plugins are installed to ${QT_PLUGIN_PATH}]) |
|
|
|
AC_SUBST(QTDIR) |
|
|
|
AC_SUBST(QTDIR) |
|
|
|
AC_SUBST(QT_PLUGIN_PATH) |
|
|
|
AC_SUBST(QT_PLUGIN_PATH) |
|
|
|
AC_SUBST(CPPFLAGS) |
|
|
|
AC_SUBST(CPPFLAGS) |
|
|
|