summaryrefslogtreecommitdiffstats
path: root/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in.in')
-rw-r--r--configure.in.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in
index a90f40f..b116f30 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -78,6 +78,24 @@ fi
UIC=`echo $UIC -L \$\(top_builddir\)/kmymoney2/widgets/.libs`
#
+# get qt plugins directory
+#
+
+if test "$PKG_CONFIG" != "no" ; then
+ if $PKG_CONFIG --exists qt-mt ; then
+ qt_plugins_dir="`pkg-config --variable=pluginsdir qt-mt`"
+ else
+ if $PKG_CONFIG --exists tqt-mt ; then
+ qt_plugins_dir="`pkg-config --variable=pluginsdir tqt-mt`"
+ fi
+ fi
+fi
+if test "x$qt_plugins_dir" = "x"; then
+ qt_plugins_dir=$(qt_libraries)/../plugins
+fi
+AC_SUBST(qt_plugins_dir)
+
+#
# create header directory, make symlinks
#