Improve TQt detection. Use CFLAGS from pkg-config

instead of hard-coded include paths.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/23/head
Slávek Banko 1 year ago
parent fb9f93be9a
commit 3bdc9fd55f
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1084,10 +1084,11 @@ AC_DEFUN([KDE_USE_TQT],
kde_tqtver=0
kde_tqtsubver=0
KDE_PKG_CHECK_MODULES(TQt, tqt)
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
ac_cxxflags_safe="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -I/usr/include/tqt -I/usr/include/tqt3"
CXXFLAGS="$CXXFLAGS $TQt_CFLAGS"
AC_TRY_COMPILE([
#include <tqt.h>
], ,

Loading…
Cancel
Save