|
|
|
@ -104,24 +104,14 @@ AC_DEFUN([AX_CHECK_QT], [ |
|
|
|
|
MOC_FLAGS+=" -DHAVE_$1=1 ${[$1]5_CFLAGS}" |
|
|
|
|
AM_CXXFLAGS+=" ${[$1]5_CFLAGS}" |
|
|
|
|
LIBS+=" ${[$1]5_LIBS}" |
|
|
|
|
modules=${qt_modules//Qt/Qt5} |
|
|
|
|
if test -z "$PKG_REQUIREMENTS"; then |
|
|
|
|
PKG_REQUIREMENTS="${modules// /, }" |
|
|
|
|
else |
|
|
|
|
PKG_REQUIREMENTS="${PKG_REQUIREMENTS}, ${modules// /, }" |
|
|
|
|
fi |
|
|
|
|
PKG_REQUIREMENTS+=" ${qt_modules//Qt/Qt5}" |
|
|
|
|
if test -n "${qt_modules_optional}"; then |
|
|
|
|
PKG_CHECK_MODULES([$1]5_OPTIONAL, [${qt_modules_optional//Qt/Qt5}], [ |
|
|
|
|
AM_CPPFLAGS+=" ${[$1]5_OPTIONAL_CFLAGS}" |
|
|
|
|
MOC_FLAGS+=" ${[$1]5_OPTIONAL_CFLAGS}" |
|
|
|
|
AM_CXXFLAGS+=" ${[$1]5_OPTIONAL_CFLAGS}" |
|
|
|
|
LIBS+=" ${[$1]5_OPTIONAL_LIBS}" |
|
|
|
|
modules=${qt_modules_optional//Qt/Qt5} |
|
|
|
|
if test -z "$PKG_REQUIREMENTS"; then |
|
|
|
|
PKG_REQUIREMENTS="${modules// /, }" |
|
|
|
|
else |
|
|
|
|
PKG_REQUIREMENTS="${PKG_REQUIREMENTS}, ${modules// /, }" |
|
|
|
|
fi |
|
|
|
|
PKG_REQUIREMENTS+=" ${qt_modules_optional//Qt/Qt5}" |
|
|
|
|
], [ |
|
|
|
|
AC_MSG_NOTICE([Not found: ${qt_modules_optional//Qt/Qt5}]) |
|
|
|
|
]) |
|
|
|
@ -134,24 +124,14 @@ AC_DEFUN([AX_CHECK_QT], [ |
|
|
|
|
MOC_FLAGS+=" -DHAVE_$1=1 ${$1_CFLAGS}" |
|
|
|
|
AM_CXXFLAGS+=" ${$1_CFLAGS}" |
|
|
|
|
LIBS+=" ${$1_LIBS}" |
|
|
|
|
modules=${qt_modules} |
|
|
|
|
if test -z "$PKG_REQUIREMENTS"; then |
|
|
|
|
PKG_REQUIREMENTS="${modules// /, }" |
|
|
|
|
else |
|
|
|
|
PKG_REQUIREMENTS="${PKG_REQUIREMENTS}, ${modules// /, }" |
|
|
|
|
fi |
|
|
|
|
PKG_REQUIREMENTS+=" ${qt_modules}" |
|
|
|
|
if test -n "$3"; then |
|
|
|
|
PKG_CHECK_MODULES($1_OPTIONAL, [${qt_modules_optional}], [ |
|
|
|
|
AM_CPPFLAGS+=" ${$1_OPTIONAL_CFLAGS}" |
|
|
|
|
MOC_FLAGS+=" ${$1_OPTIONAL_CFLAGS}" |
|
|
|
|
AM_CXXFLAGS+=" ${$1_OPTIONAL_CFLAGS}" |
|
|
|
|
LIBS+=" ${$1_OPTIONAL_LIBS}" |
|
|
|
|
modules=${qt_modules_optional} |
|
|
|
|
if test -z "$PKG_REQUIREMENTS"; then |
|
|
|
|
PKG_REQUIREMENTS="${modules// /, }" |
|
|
|
|
else |
|
|
|
|
PKG_REQUIREMENTS="${PKG_REQUIREMENTS}, ${modules// /, }" |
|
|
|
|
fi |
|
|
|
|
PKG_REQUIREMENTS+=" ${qt_modules_optional}" |
|
|
|
|
], [ |
|
|
|
|
AC_MSG_NOTICE([Not found: ${qt_modules_optional}]) |
|
|
|
|
]) |
|
|
|
|