TDE core libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
3.0KB

  1. # don't use it yet
  2. HELP_SUBDIR=kdoctools
  3. KDE_FIND_PATH(xml2-config, XML_CONFIG, [${prefix}/bin ${exec_prefix}/bin], [
  4. AC_MSG_WARN([Could not find libxml2 anywhere, check ftp://xmlsoft.org/ for libxml >= 2.4.8. (we also keep a version of it in tdesupport for CVS users' convience)])
  5. HELP_SUBDIR=
  6. ])
  7. if test -n "$XML_CONFIG"; then
  8. vers=`$XML_CONFIG --version 2>/dev/null | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
  9. if test -n "$vers" && test "$vers" -ge 2004008
  10. then
  11. LIBXML_LIBS="`$XML_CONFIG --libs`"
  12. LIBXML_RPATH=
  13. for args in $LIBXML_LIBS; do
  14. case $args in
  15. -L/usr/lib) ;;
  16. -L*)
  17. LIBXML_RPATH="$LIBXML_RPATH $args"
  18. ;;
  19. esac
  20. done
  21. LIBXML_RPATH=`echo $LIBXML_RPATH | sed -e "s/-L/-R/g"`
  22. LIBXML_CFLAGS="`$XML_CONFIG --cflags`"
  23. KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin], [XMLLINT=""])
  24. AC_DEFINE_UNQUOTED(XMLLINT, "$XMLLINT", [Defines the executable of xmllint])
  25. else
  26. AC_MSG_WARN([You need at least libxml 2.4.8])
  27. HELP_SUBDIR=
  28. fi
  29. fi
  30. if test -n "$HELP_SUBDIR"; then
  31. KDE_FIND_PATH(xslt-config, XSLT_CONFIG, [${prefix}/bin ${exec_prefix}/bin], [
  32. AC_MSG_WARN([Could not find libxslt anywhere, check ftp://xmlsoft.org/ for libxslt >= 1.0.7. (we also keep a version of it in tdesupport for CVS users' convience)])
  33. HELP_SUBDIR=
  34. ])
  35. if test -n "$XSLT_CONFIG"; then
  36. vers=`$XSLT_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
  37. if test -n "$vers" && test "$vers" -ge 1000007; then
  38. LIBXSLT_LIBS="`$XSLT_CONFIG --libs`"
  39. LIBXSLT_RPATH=
  40. for args in $LIBXSLT_LIBS; do
  41. case $args in
  42. -L/usr/lib) ;;
  43. -L*)
  44. LIBXSLT_RPATH="$LIBXSLT_RPATH $args"
  45. ;;
  46. esac
  47. done
  48. LIBXSLT_RPATH=`echo $LIBXSLT_RPATH | sed -e "s/-L/-R/g"`
  49. LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`"
  50. else
  51. AC_MSG_WARN([You need at least libxslt 1.0.7])
  52. HELP_SUBDIR=
  53. fi
  54. fi
  55. fi
  56. AC_DEFUN([KDOCTOOLS_CHECK_BZIP2],
  57. [
  58. AC_REQUIRE([AC_FIND_BZIP2])
  59. AC_MSG_CHECKING([for present bzip2 support])
  60. if test -z "$LIBBZ2"; then
  61. AC_MSG_RESULT([no - disabling doc compiler])
  62. HELP_SUBDIR=
  63. else
  64. AC_MSG_RESULT([ok])
  65. fi
  66. ])
  67. KDOCTOOLS_CHECK_BZIP2
  68. if test -n "$HELP_SUBDIR"; then
  69. MEINPROC='$(top_builddir)/kdoctools/meinproc --srcdir=$(top_srcdir)/kdoctools'
  70. MEINPROC_DEP='$(top_builddir)/kdoctools/meinproc'
  71. KDE_XSL_STYLESHEET='$(top_srcdir)/kdoctools/customization/tde-chunk.xsl'
  72. else
  73. MEINPROC=""
  74. MEINPROC_DEP=""
  75. KDE_XSL_STYLESHEET=""
  76. DO_NOT_COMPILE="$DO_NOT_COMPILE kdoctools"
  77. fi
  78. if test ! "$USE_RPATH" = "yes"; then
  79. LIBXSLT_RPATH=
  80. LIBXML_RPATH=
  81. fi
  82. AC_SUBST(LIBXSLT_LIBS)
  83. AC_SUBST(LIBXSLT_CFLAGS)
  84. AC_SUBST(LIBXSLT_RPATH)
  85. AC_SUBST(LIBXML_LIBS)
  86. AC_SUBST(LIBXML_CFLAGS)
  87. AC_SUBST(LIBXML_RPATH)
  88. AC_SUBST(HELP_SUBDIR)
  89. AC_SUBST(MEINPROC)
  90. AC_SUBST(MEINPROC_DEP)
  91. AC_SUBST(KDE_XSL_STYLESHEET)
  92. dnl AC_OUTPUT(kdoctools/checkXML)