KOffice – TDE office suite
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

114 linhas
3.3 KiB

  1. KDE_CHECK_LIB(Xi, XOpenDisplay, [
  2. LIB_XINPUTEXT="-lXi"
  3. AC_DEFINE(HAVE_XINPUTEXT, 1, [Define if you have the X11 Input Extension])
  4. ])
  5. AC_SUBST(LIB_XINPUTEXT)
  6. # Check for lcms
  7. AC_MSG_CHECKING([for lcms >= 1.15])
  8. have_lcms_header='no'
  9. KDE_CHECK_HEADER(lcms/lcms.h,have_lcms_header='yes',,)
  10. if test "$have_lcms_header" = 'yes'
  11. then
  12. AC_DEFINE(LCMS_HEADER, <lcms/lcms.h>, [The correct header])
  13. echo "#include <lcms/lcms.h>" > conftest.$ac_ext
  14. echo "#if LCMS_VERSION < 115" >> conftest.$ac_ext
  15. echo "#error Need lcms >= 1.15" >> conftest.$ac_ext
  16. echo "#endif" >> conftest.$ac_ext
  17. echo "int main() {}" >> conftest.$ac_ext
  18. else
  19. # Alternative! Debian does it this way...
  20. KDE_CHECK_HEADER(lcms.h,have_lcms_header='yes',,)
  21. if test "$have_lcms_header" = 'yes'
  22. then
  23. AC_DEFINE(LCMS_HEADER, <lcms.h>, [The correct header])
  24. echo "#include <lcms.h>" > conftest.$ac_ext
  25. echo "#if LCMS_VERSION < 115" >> conftest.$ac_ext
  26. echo "#error Need lcms >= 1.15" >> conftest.$ac_ext
  27. echo "#endif" >> conftest.$ac_ext
  28. echo "int main() {}" >> conftest.$ac_ext
  29. else
  30. KDE_CHECK_HEADER(lcms.h,have_lcms_header='yes',,)
  31. # and now debian also does it this way... can't they decide for one way of doing stuff ?
  32. AC_DEFINE(LCMS_HEADER, <liblcms1/lcms.h>, [The correct header])
  33. echo "#include <liblcms1/lcms.h>" > conftest.$ac_ext
  34. echo "#if LCMS_VERSION < 115" >> conftest.$ac_ext
  35. echo "#error Need lcms >= 1.15" >> conftest.$ac_ext
  36. echo "#endif" >> conftest.$ac_ext
  37. echo "int main() {}" >> conftest.$ac_ext
  38. fi
  39. fi
  40. ac_link='$LIBTOOL_SHELL --mode=link --tag=LD ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries -ltqt conftest.$ac_ext -llcms 1>&5'
  41. if AC_TRY_EVAL(ac_link) && test -s conftest; then
  42. AC_MSG_RESULT(yes)
  43. HAVELCMS="yes"
  44. LCMS_LIBS="-llcms"
  45. else
  46. AC_MSG_RESULT(no)
  47. HAVELCMS="no"
  48. LCMS_LIBS=""
  49. DO_NOT_COMPILE="$DO_NOT_COMPILE chalk"
  50. fi
  51. AC_SUBST(LCMS_LIBS)
  52. # IM 6.1.3 changed the number of arguments to GetMagickInfoList
  53. AC_MSG_CHECKING(if GetMagickInfoList has only 2 arguments)
  54. CPPFLAGS_TMP="$CPPFLAGS" # Save preprocessor flags
  55. CPPFLAGS="$LIBMAGICK_CPPFLAGS"
  56. LDFLAGS_TMP="$LDFLAGS"
  57. LDFLAGS="$LDFLAGS -ltqt"
  58. AC_TRY_COMPILE(
  59. [#include <stdio.h>
  60. #if HAVE_SYS_TYPES_H
  61. #include <sys/types.h>
  62. #endif
  63. #include "magick/api.h"],
  64. [const char *pattern; unsigned long ncolors; (void)GetMagickInfoList(pattern, &ncolors)],
  65. magick_info_list='yes',
  66. magick_info_list='no')
  67. CPPFLAGS="$CPPFLAGS_TMP" # Restore preprocessor flags
  68. LDFLAGS="$LDFLAGS_TMP"
  69. if test "$magick_info_list" = 'yes'; then
  70. AC_MSG_RESULT(yes)
  71. AC_DEFINE([HAVE_OLD_GETMAGICKINFOLIST], 1, [GetMagickInfoList has different number of arguments with versions >= 6.1.3])
  72. else
  73. AC_MSG_RESULT(no)
  74. fi
  75. # Check for tdeunittest
  76. AC_MSG_CHECKING([for tdeunittest])
  77. have_tdeunittest_header="no"
  78. KDE_CHECK_HEADER(tdeunittest/tester.h, have_tdeunittest_header="yes", , )
  79. AM_CONDITIONAL(include_tdeunittest_tests, test "$have_tdeunittest_header" = "yes")
  80. # --- OpenGL check ---
  81. AC_HAVE_GL( [], [] )
  82. # --- End of OpenGL check ---
  83. # Check for powf.
  84. AC_CHECK_FUNC(powf, [have_powf="yes"], [AC_CHECK_LIB(m, powf, [have_powf="yes"], [have_powf="no"])])
  85. if test "$have_powf" = 'yes'; then
  86. AC_DEFINE([HAVE_POWF], 1, [Define to 1 if your system has powf in <maths.h>])
  87. fi\