summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2023-11-09 19:09:34 +0100
committerSlávek Banko <[email protected]>2023-11-09 19:16:49 +0100
commit3bdc9fd55ff86f033cc1ffab9178d8453fa1ab2f (patch)
tree7c8d4ddfc5b57dc5c7edc04199ca96281ca3a21b
parentfb9f93be9a4442beeca2765ca75e149ea5c1ad8a (diff)
downloadadmin-3bdc9fd55ff86f033cc1ffab9178d8453fa1ab2f.tar.gz
admin-3bdc9fd55ff86f033cc1ffab9178d8453fa1ab2f.zip
Improve TQt detection. Use CFLAGS from pkg-config
instead of hard-coded include paths. Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r--acinclude.m4.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/acinclude.m4.in b/acinclude.m4.in
index 9189858..6f39a26 100644
--- a/acinclude.m4.in
+++ b/acinclude.m4.in
@@ -1083,11 +1083,12 @@ 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>
], ,