diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /smoke/qt/configure.in.in | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'smoke/qt/configure.in.in')
-rw-r--r-- | smoke/qt/configure.in.in | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/smoke/qt/configure.in.in b/smoke/qt/configure.in.in new file mode 100644 index 00000000..688e3c81 --- /dev/null +++ b/smoke/qt/configure.in.in @@ -0,0 +1,82 @@ + +AC_HAVE_GL +KDE_HAVE_GL=yes; +if test "X$GLLIB" = "X"; then + KDE_HAVE_GL=no +fi + +AC_SUBST(KDE_HAVE_GL) + +AC_ARG_WITH( + threshold, + [ --with-threshold@<:@=0..15@:>@ Smoke: Qt tests threshold Default:15 Lower=more tests], + [ qt_test_threshold="$withval" ], + [ qt_test_threshold=15 ] +) +AC_SUBST(qt_test_threshold) + +if test "X$kde_build_libsmoke" = "Xqt" -o "X$kde_build_libsmoke" = "Xqt kde"; then + + AC_CONFIG_FILES([ smoke/qt/qtguess.pl ], [ + cd smoke/qt + perl qtguess.pl + cd ../.. + ]) + AC_CONFIG_FILES([ smoke/qt/generate.pl ], [ + ]) +fi + +dnl ------- +dnl Test for libqscintilla (QScintilla support) +dnl ------- + +AC_ARG_ENABLE( + qscintilla, + [ --enable-qscintilla@<:@=yes|no@:>@ Smoke: build Smoke with QScintilla extention for qt @<:@default:no@:>@], + [ qtextscintilla="$enableval" ], + [ qtextscintilla="no" ] +) +AC_SUBST(qtextscintilla) + +AC_DEFUN([AC_FIND_QSCINTILLA], +[ +AC_MSG_CHECKING([for libqscintilla]) +AC_CACHE_VAL(ac_cv_lib_qscintilla, +[ + kde_ldflags_save="$LDFLAGS" + kde_libs_save="$LIBS" + kde_cxxflags_save="$CXXFLAGS" + + LIBS="-lqscintilla $LIBQT $LIBS" + CXXFLAGS="$CXXFLAGS $all_includes" + LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS" + +AC_TRY_LINK([ + #include <qextscintillabase.h> +], +[ + QextScintillaBase s; +], + eval "ac_cv_lib_qscintilla='-lqscintilla'", + eval "ac_cv_lib_qscintilla=no") + + LDFLAGS=$kde_ldflags_save + LIBS=$kde_libs_save + CXXFLAGS=$kde_cxxflags_save +]) + +if test ! "$ac_cv_lib_qscintilla" = no; then + AC_DEFINE_UNQUOTED(HAVE_LIBQSCINTILLA, 1, [Define if you have libqscintilla]) + LIBQSCINTILLA="$ac_cv_lib_qscintilla" + AC_MSG_RESULT($ac_cv_lib_qscintilla) +else + AC_MSG_ERROR(not found. + Check your installation and look into config.log) + LIBQSCINTILLA="" +fi +AC_SUBST(LIBQSCINTILLA) +]) + +if test "X$qtextscintilla" = "Xyes" ; then + AC_FIND_QSCINTILLA +fi |