KDialog not needed
[kdeaccessibility.git] / configure.in.in
blob5f790d5d84ee17dd59eeb3f2c1b6717f05a09b76
1 #MIN_CONFIG(3.2)
3 AM_INIT_AUTOMAKE(kdeaccessibility,1.0.0)
4 KDE_ENABLE_HIDDEN_VISIBILITY
5 AC_CHECK_SETENV
6 AC_CHECK_UNSETENV
8 CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
10 #AC_CHECK_HEADERS(sys/stropts.h stropts.h)
12 dnl ================================================================================
14 dnl See if the latest kspeech.h is installed and if not, compile against
15 dnl kttsd/compat directory.
17 if test "$KTTS_KSPEECH_DIR" = ""; then
18     KDE_CHECK_HEADER(kspeech.h, ktts_have_kspeech_h=yes, ktts_have_kspeech_h=no)
19     have_latest_kspeech=no
20     if test "x$ktts_have_kspeech_h" = xyes; then
21         AC_MSG_CHECKING([whether installed kspeech.h is latest version])
22         ktts_save_cppflags=$CPPFLAGS
23         AC_LANG_SAVE
24         CPPFLAGS="$all_includes $CPPFLAGS"
25         AC_LANG_CPLUSPLUS
26         AC_TRY_COMPILE(
27             [#include <kspeech.h>],
28             [
29             if (4 == KSpeech::mtHtml);
30             ],
31             have_latest_kspeech=yes,
32             have_latest_kspeech=no)
33         AC_MSG_RESULT($have_latest_kspeech)
34         CPPFLAGS=$ktts_save_cppflags
35         AC_LANG_RESTORE
36     fi
37     if test "x$have_latest_kspeech" = xyes; then
38         KTTS_KSPEECH_DIR='$(kde_includes)'
39         KTTS_KSPEECH_INCLUDE=""
40         KTTS_INTERFACES_DIR=""
41     else
42         KTTS_KSPEECH_DIR='$(top_srcdir)/kttsd/compat/interfaces/kspeech'
43         KTTS_KSPEECH_INCLUDE='-I$(top_srcdir)/kttsd/compat/interfaces/kspeech'
44         KTTS_INTERFACES_DIR="interfaces"
45         AC_MSG_WARN([Latest kspeech.h not installed. Compiling using kttsd/compat directory.])
46     fi
48     AC_SUBST(KTTS_KSPEECH_DIR)
49     AC_SUBST(KTTS_KSPEECH_INCLUDE)
50     AC_SUBST(KTTS_INTERFACES_DIR)