Salome HOME
Join modifications from branch BR_PR_V320b1
[modules/kernel.git] / salome_adm / unix / config_files / check_htmlgen.m4
1 dnl Copyright (C) 2003  CEA/DEN, EDF R&D
2
3 AC_DEFUN([CHECK_HTML_GENERATORS],[
4
5 #AC_CHECKING(for html generators)
6
7 doxygen_ok=yes
8 dnl were is doxygen ?
9 AC_PATH_PROG(DOXYGEN,doxygen) 
10 if test "x$DOXYGEN" = "x"
11 then
12   AC_MSG_WARN(doxygen not found)
13   doxygen_ok=no
14 fi
15 if test "x$doxygen_ok" = "xyes"
16 then
17   version=`$DOXYGEN --version`
18   AC_MSG_RESULT(doxygen version $version)
19   case "$version" in
20         1.4.4*)
21           DOXYGEN_WITH_PYTHON=yes
22           DOXYGEN_WITH_STL=no
23           ;;
24         1.4.5*)
25           DOXYGEN_WITH_PYTHON=yes
26           DOXYGEN_WITH_STL=yes
27           ;;
28         1.4.6*)
29           DOXYGEN_WITH_PYTHON=yes
30           DOXYGEN_WITH_STL=yes
31           ;;
32         1.4.7*)
33           DOXYGEN_WITH_PYTHON=yes
34           DOXYGEN_WITH_STL=yes
35           ;;
36         1.4.8*)
37           DOXYGEN_WITH_PYTHON=yes
38           DOXYGEN_WITH_STL=yes
39           ;;
40         1.4.9*)
41           DOXYGEN_WITH_PYTHON=yes
42           DOXYGEN_WITH_STL=yes
43           ;;
44         [1-9].[5-9]*)
45           DOXYGEN_WITH_PYTHON=yes
46           DOXYGEN_WITH_STL=yes
47           ;;
48         *)
49           DOXYGEN_WITH_PYTHON=no
50           DOXYGEN_WITH_STL=no
51           ;;
52   esac
53   AC_MSG_RESULT(doxygen with support STL    - $DOXYGEN_WITH_STL)
54   AC_MSG_RESULT(doxygen with support PYTHON - $DOXYGEN_WITH_PYTHON)
55   AC_SUBST(DOXYGEN_WITH_PYTHON)
56   AC_SUBST(DOXYGEN_WITH_STL)
57 fi
58 dnl AC_SUBST(DOXYGEN)
59
60 graphviz_ok=yes
61 dnl were is graphviz ?
62 AC_PATH_PROG(DOT,dot) 
63 if test "x$DOT" = "x" ; then
64   AC_MSG_WARN(graphviz not found)
65   graphviz_ok=no
66 fi
67 dnl AC_SUBST(DOT)
68
69 AC_PATH_PROG(LATEX,latex) 
70 if test "x$LATEX" = "x" ; then
71   AC_MSG_WARN(latex not found)
72 fi
73 AC_SUBST(LATEX)
74
75 AC_PATH_PROG(DVIPS,dvips)
76 if test "x$DVIPS" = "x" ; then
77   AC_MSG_WARN(dvips not found)
78 fi
79 AC_SUBST(DVIPS)
80
81 AC_PATH_PROG(PDFLATEX,pdflatex)
82 if test "x$PDFLATEX" = "x" ; then
83   AC_MSG_WARN(pdflatex not found)
84 fi
85 AC_SUBST(PDFLATEX)
86
87 rst2html_ok=yes
88 dnl were is rst2html ?
89 AC_PATH_PROG(RST2HTML,rst2html) 
90 if test "x$RST2HTML" = "x"; then
91   AC_PATH_PROG(RST2HTML,rst2html.py)
92 fi
93
94 if test "x$RST2HTML" = "x"; then
95   AC_MSG_WARN(rst2html not found)
96   rst2html_ok=no
97 fi
98 AC_SUBST(RST2HTML)
99
100 AM_CONDITIONAL(RST2HTML_IS_OK, [test x"$rst2html_ok" = xyes])
101
102 ])dnl
103 dnl