1 dnl Copyright (C) 2006-2008 CEA/DEN, EDF R&D
3 dnl This library is free software; you can redistribute it and/or
4 dnl modify it under the terms of the GNU Lesser General Public
5 dnl License as published by the Free Software Foundation; either
6 dnl version 2.1 of the License.
8 dnl This library is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 dnl Lesser General Public License for more details.
13 dnl You should have received a copy of the GNU Lesser General Public
14 dnl License along with this library; if not, write to the Free Software
15 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 AC_DEFUN([CHECK_HTML_GENERATORS],[
21 AC_CHECKING(for html generators)
25 AC_PATH_PROG(DOXYGEN,doxygen)
26 if test "x$DOXYGEN" = "x"
28 AC_MSG_WARN(doxygen not found)
31 if test "x$doxygen_ok" = "xyes"
33 version=`$DOXYGEN --version`
34 AC_MSG_RESULT(doxygen version $version)
37 DOXYGEN_WITH_PYTHON=yes
41 DOXYGEN_WITH_PYTHON=yes
45 DOXYGEN_WITH_PYTHON=yes
49 DOXYGEN_WITH_PYTHON=yes
53 DOXYGEN_WITH_PYTHON=yes
57 DOXYGEN_WITH_PYTHON=yes
61 DOXYGEN_WITH_PYTHON=yes
65 DOXYGEN_WITH_PYTHON=no
69 AC_MSG_RESULT(doxygen with support STL - $DOXYGEN_WITH_STL)
70 AC_MSG_RESULT(doxygen with support PYTHON - $DOXYGEN_WITH_PYTHON)
71 AC_SUBST(DOXYGEN_WITH_PYTHON)
72 AC_SUBST(DOXYGEN_WITH_STL)
76 AC_SUBST(GRAPHVIZHOME)
77 AC_SUBST(GRAPHVIZ_CPPFLAGS)
78 AC_SUBST(GRAPHVIZ_LDFLAGS)
79 AC_SUBST(GRAPHVIZ_LIBADD)
84 AC_CHECKING([graphviz configuration])
87 dnl were is graphviz ?
89 if test "x$DOT" = "x" ; then
90 AC_MSG_WARN(graphviz not found)
93 GRAPHVIZ_PREFIX=`echo $DOT | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
94 GRAPHVIZ_PREFIX=`echo $GRAPHVIZ_PREFIX | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
95 GRAPHVIZHOME=$GRAPHVIZ_PREFIX
97 GRAPHVIZ_CPPFLAGS="-I${GRAPHVIZHOME}/include/graphviz"
98 GRAPHVIZ_LDFLAGS="-L${GRAPHVIZHOME}/lib/graphviz"
101 CPPFLAGS_old=$CPPFLAGS
102 CPPFLAGS="$CPPFLAGS $GRAPHVIZ_CPPFLAGS"
104 AC_CHECK_HEADERS(dotneato.h, old_graphviz="yes", old_graphviz="no")
105 if test "x$old_graphviz" = "xyes" ; then
106 GRAPHVIZ_LIBADD="-ldotneato"
108 GRAPHVIZ_LIBADD="-lgvc"
110 CPPFLAGS=$CPPFLAGS_old
112 AC_PATH_PROG(LATEX,latex)
113 if test "x$LATEX" = "x" ; then
114 AC_MSG_WARN(latex not found)
118 AC_PATH_PROG(DVIPS,dvips)
119 if test "x$DVIPS" = "x" ; then
120 AC_MSG_WARN(dvips not found)
124 AC_PATH_PROG(PDFLATEX,pdflatex)
125 if test "x$PDFLATEX" = "x" ; then
126 AC_MSG_WARN(pdflatex not found)
131 dnl were is rst2html ?
132 AC_PATH_PROG(RST2HTML,rst2html)
133 if test "x$RST2HTML" = "x"; then
134 AC_PATH_PROG(RST2HTML,rst2html.py)
137 if test "x$RST2HTML" = "x"; then
138 AC_MSG_WARN(rst2html not found)
143 AM_CONDITIONAL(RST2HTML_IS_OK, [test x"$rst2html_ok" = xyes])