+dnl Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+dnl
+dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+dnl
+dnl This library is free software; you can redistribute it and/or
+dnl modify it under the terms of the GNU Lesser General Public
+dnl License as published by the Free Software Foundation; either
+dnl version 2.1 of the License.
+dnl
+dnl This library is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+dnl Lesser General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU Lesser General Public
+dnl License along with this library; if not, write to the Free Software
+dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+dnl
+dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+dnl
AC_DEFUN([CHECK_HTML_GENERATORS],[
#AC_CHECKING(for html generators)
-AC_CHECKING(for doxygen)
doxygen_ok=yes
-
dnl were is doxygen ?
-
AC_PATH_PROG(DOXYGEN,doxygen)
-
if test "x$DOXYGEN" = "x"
then
- doxygen_ok=no
- AC_MSG_RESULT(no)
AC_MSG_WARN(doxygen not found)
-else
- dnl AC_SUBST(DOXYGEN)
- AC_MSG_RESULT(yes)
+ doxygen_ok=no
fi
-
-AC_CHECKING(for graphviz)
+if test "x$doxygen_ok" = "xyes"
+then
+ version=`$DOXYGEN --version`
+ AC_MSG_RESULT(doxygen version $version)
+ case "$version" in
+ 1.4.4*)
+ DOXYGEN_WITH_PYTHON=yes
+ DOXYGEN_WITH_STL=no
+ ;;
+ 1.4.5*)
+ DOXYGEN_WITH_PYTHON=yes
+ DOXYGEN_WITH_STL=yes
+ ;;
+ 1.4.6*)
+ DOXYGEN_WITH_PYTHON=yes
+ DOXYGEN_WITH_STL=yes
+ ;;
+ 1.4.7*)
+ DOXYGEN_WITH_PYTHON=yes
+ DOXYGEN_WITH_STL=yes
+ ;;
+ 1.4.8*)
+ DOXYGEN_WITH_PYTHON=yes
+ DOXYGEN_WITH_STL=yes
+ ;;
+ 1.4.9*)
+ DOXYGEN_WITH_PYTHON=yes
+ DOXYGEN_WITH_STL=yes
+ ;;
+ [[1-9]].[[5-9]]*)
+ DOXYGEN_WITH_PYTHON=yes
+ DOXYGEN_WITH_STL=yes
+ ;;
+ *)
+ DOXYGEN_WITH_PYTHON=no
+ DOXYGEN_WITH_STL=no
+ ;;
+ esac
+ AC_MSG_RESULT(doxygen with support STL - $DOXYGEN_WITH_STL)
+ AC_MSG_RESULT(doxygen with support PYTHON - $DOXYGEN_WITH_PYTHON)
+ if test "$DOXYGEN_WITH_PYTHON" == "yes" ; then
+ DOXYGEN_PYTHON_EXTENSION="*.py"
+ else
+ DOXYGEN_PYTHON_EXTENSION=""
+ fi
+ if test "$DOXYGEN_WITH_STL" == "yes" ; then
+ DOXYGEN_SUPPORT_STL="YES"
+ else
+ DOXYGEN_SUPPORT_STL="NO"
+ fi
+ AC_SUBST(DOXYGEN_WITH_PYTHON)
+ AC_SUBST(DOXYGEN_PYTHON_EXTENSION)
+ AC_SUBST(DOXYGEN_WITH_STL)
+ AC_SUBST(DOXYGEN_SUPPORT_STL)
+fi
+dnl AC_SUBST(DOXYGEN)
graphviz_ok=yes
-
dnl were is graphviz ?
-
AC_PATH_PROG(DOT,dot)
-
if test "x$DOT" = "x" ; then
- graphviz_ok=no
- AC_MSG_RESULT(no)
AC_MSG_WARN(graphviz not found)
-else
- AC_MSG_RESULT(yes)
+ graphviz_ok=no
+fi
+dnl AC_SUBST(DOT)
+
+AC_PATH_PROG(LATEX,latex)
+if test "x$LATEX" = "x" ; then
+ AC_MSG_WARN(latex not found)
+fi
+AC_SUBST(LATEX)
+
+AC_PATH_PROG(DVIPS,dvips)
+if test "x$DVIPS" = "x" ; then
+ AC_MSG_WARN(dvips not found)
fi
+AC_SUBST(DVIPS)
+
+AC_PATH_PROG(PDFLATEX,pdflatex)
+if test "x$PDFLATEX" = "x" ; then
+ AC_MSG_WARN(pdflatex not found)
+fi
+AC_SUBST(PDFLATEX)
+
+rst2html_ok=yes
+dnl were is rst2html ?
+AC_PATH_PROG(RST2HTML,rst2html)
+if test "x$RST2HTML" = "x"; then
+ AC_PATH_PROG(RST2HTML,rst2html.py)
+fi
+
+if test "x$RST2HTML" = "x"; then
+ AC_MSG_WARN(rst2html not found)
+ rst2html_ok=no
+fi
+AC_SUBST(RST2HTML)
+
+AM_CONDITIONAL(RST2HTML_IS_OK, [test x"$rst2html_ok" = xyes])
])dnl
dnl