|
|
@ -130,14 +130,6 @@ AC_DEFUN([AX_CHECK_QT], [ |
|
|
|
QT_PLUGIN_PATH="${QTDIR}/plugins" |
|
|
|
QT_PLUGIN_PATH="${QTDIR}/plugins" |
|
|
|
elif test -d "${QTDIR}/share/qt5/plugins; then |
|
|
|
elif test -d "${QTDIR}/share/qt5/plugins; then |
|
|
|
QT_PLUGIN_PATH="${QTDIR}/share/qt5/plugins" |
|
|
|
QT_PLUGIN_PATH="${QTDIR}/share/qt5/plugins" |
|
|
|
else |
|
|
|
|
|
|
|
AC_MSG_ERROR([QT_PLUGIN_PATH not found |
|
|
|
|
|
|
|
- not in: ${qt_libdir}/plugins |
|
|
|
|
|
|
|
- not in: ${qt_libdir}/qt5/plugins |
|
|
|
|
|
|
|
- not in: ${qt_host_bins}/../plugins |
|
|
|
|
|
|
|
- not in: ${QTDIR}/plugins |
|
|
|
|
|
|
|
- not in: ${QTDIR}/share/qt5/plugins |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
fi |
|
|
|
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}" |
|
|
@ -181,10 +173,17 @@ AC_DEFUN([AX_CHECK_QT], [ |
|
|
|
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) |
|
|
|
qt_host_bins=$(${PKG_CONFIG} --variable=host_bins QtCore) |
|
|
|
if test -d "${qt_host_bins}"; then |
|
|
|
qt_libdir=$(${PKG_CONFIG} --variable=libdir QtCore) |
|
|
|
QT_PLUGIN_PATH=${qt_host_bins}/../plugins |
|
|
|
if test -d "${qt_libdir}" -a -d "${qt_libdir}/plugins"; then |
|
|
|
else |
|
|
|
QT_PLUGIN_PATH="${qt_libdir}/plugins" |
|
|
|
QT_PLUGIN_PATH=${QTDIR}/share/qt/plugins |
|
|
|
elif test -d "${qt_libdir}/qt5" -a -d "${qt_libdir}/qt5/plugins"; then |
|
|
|
|
|
|
|
QT_PLUGIN_PATH="${qt_libdir}/qt5/plugins" |
|
|
|
|
|
|
|
elif test -d "${qt_host_bins}" -a -d "${qt_host_bins}/../plugins"; then |
|
|
|
|
|
|
|
QT_PLUGIN_PATH="${qt_host_bins}/../plugins" |
|
|
|
|
|
|
|
elif test -d "${QTDIR}/plugins; then |
|
|
|
|
|
|
|
QT_PLUGIN_PATH="${QTDIR}/plugins" |
|
|
|
|
|
|
|
elif test -d "${QTDIR}/share/qt5/plugins; then |
|
|
|
|
|
|
|
QT_PLUGIN_PATH="${QTDIR}/share/qt5/plugins" |
|
|
|
fi |
|
|
|
fi |
|
|
|
MOC_FLAGS+=" -DHAVE_$1=1 ${$1_CFLAGS}" |
|
|
|
MOC_FLAGS+=" -DHAVE_$1=1 ${$1_CFLAGS}" |
|
|
|
[$1]_CPPFLAGS="${[$1]_CFLAGS}" |
|
|
|
[$1]_CPPFLAGS="${[$1]_CFLAGS}" |
|
|
@ -229,9 +228,6 @@ AC_DEFUN([AX_CHECK_QT], [ |
|
|
|
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 |
|
|
|
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], |
|
|
|
AC_ARG_WITH([qt-plugin-path], |
|
|
|
[AS_HELP_STRING([--with-qt-plugin-path=PATH], |
|
|
|
[AS_HELP_STRING([--with-qt-plugin-path=PATH], |
|
|
|
[define a different qt plugin path, current @<:@default=check@:>@])], |
|
|
|
[define a different qt plugin path, current @<:@default=check@:>@])], |
|
|
|