summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2009-09-27 17:17:32 +0200
committerAlbert Astals Cid <aacid@kde.org>2009-09-27 17:17:32 +0200
commit9dcb3e8be2cd52a795605548e43d6bfc149b2ea5 (patch)
tree786c5441ad7c75ce1060a3fcc8af217d4ebaa62b /m4
parented4a6f1cfc7ccd2717d939841c092347c3307547 (diff)
Fix the linking not to use the .so directly but the lib
Fixes check on cygwin
Diffstat (limited to 'm4')
-rw-r--r--m4/qt.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/qt.m4 b/m4/qt.m4
index c309e756..8de2628c 100644
--- a/m4/qt.m4
+++ b/m4/qt.m4
@@ -69,7 +69,7 @@ if test "x$have_qt" = "xyes"; then
save_CXXFLAGS=$CXXFLAGS
save_LIBS=$LIBS
CXXFLAGS="$CXXFLAGS -I$qt_incdir"
- LIBS="$LIBS $qt_libdir/$qt_test_library"
+ LIBS="$LIBS -L$qt_libdir -lqt-mt"
AC_MSG_CHECKING([if Qt needs -pthread])
AC_TRY_LINK([#include <qt.h>], [QString s;], [pthread_needed=no], [pthread_needed=yes])
if test "x$pthread_needed" = "xyes"; then
@@ -89,7 +89,7 @@ if test "x$have_qt" = "xyes"; then
fi
$1[]_CXXFLAGS="-I$qt_incdir"
- $1[]_LIBS="$qtpthread $qt_libdir/$qt_test_library"
+ $1[]_LIBS="$qtpthread -L$qt_libdir -lqt-mt"
ifelse([$2], , :, [$2])
else
ifelse([$3], , [AC_MSG_FAILURE(dnl