summaryrefslogtreecommitdiffstats
path: root/khotkeys/configure.in.in
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /khotkeys/configure.in.in
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.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/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/configure.in.in')
-rw-r--r--khotkeys/configure.in.in68
1 files changed, 68 insertions, 0 deletions
diff --git a/khotkeys/configure.in.in b/khotkeys/configure.in.in
new file mode 100644
index 000000000..ad9ab0c55
--- /dev/null
+++ b/khotkeys/configure.in.in
@@ -0,0 +1,68 @@
+dnl ---------------------------------------------------------------------------
+dnl check if compiler compiles correctly something like this :
+dnl class A { virtual A* me(); };
+dnl class X {};
+dnl class B : public X, public A { virtual B* me(); };
+dnl stupid gcc doesn't even bother to warn it can't do it correctly
+dnl ---------------------------------------------------------------------------
+
+AC_MSG_CHECKING(if covariant return works)
+AC_CACHE_VAL(kde_cv_covariant_return,
+ [
+ kde_cv_covariant_return=no
+ AC_LANG_SAVE
+ AC_LANG_CPLUSPLUS
+ AC_TRY_RUN(
+ [
+ class A { public: virtual A* me(); };
+ class X { public: int x; virtual void ff() {}; };
+ class B : public X, public A { public: virtual B* me(); };
+ int foo( A* a )
+ {
+ A* aa = a->me();
+ return a == aa;
+ }
+ int main()
+ {
+ B* b = new B;
+ return foo( b ) == 0;
+ }
+ A* A::me() { return this; }
+ B* B::me() { return this; }
+ ],
+ [ kde_cv_covariant_return=yes ])
+ AC_LANG_RESTORE
+ ])
+
+if test "$kde_cv_covariant_return" = "no"; then
+ AC_MSG_RESULT(no)
+ AC_DEFINE(COVARIANT_RETURN_BROKEN, 1,
+ [Define if covariant return in virtual methods works])
+else
+ AC_MSG_RESULT(yes)
+fi
+
+
+dnl ---------------------------------------------------------------------------
+dnl check for arts for speech recognition
+dnl ---------------------------------------------------------------------------
+
+
+artsc_config_test_path=$prefix/bin:$exec_prefix/bin:$KDEDIR/bin:$PATH
+AC_PATH_PROG(ARTSCCONFIG, artsc-config, no, $artsc_config_test_path)
+
+if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then
+ LIB_ARTS="-lartskde"
+ ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`]
+ ARTS_CFLAGS="-I$ARTS_PREFIX/include/arts"
+ AC_DEFINE(HAVE_ARTS, 1, [Defined for arts support in khotkeys])
+ KHOTKEYS_ARTS_SUBDIR=arts
+else
+ LIB_ARTS=""
+ ARTS_CFLAGS=""
+ KHOTKEYS_ARTS_SUBDIR=
+fi
+
+AC_SUBST(LIB_ARTS)
+AC_SUBST(ARTS_CFLAGS)
+AC_SUBST(KHOTKEYS_ARTS_SUBDIR)