3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
7 +++ scew-0.3.1/m4/doxygen.m4
10 +# $Id: doxygen.m4,v 1.1 2003/07/09 21:56:03 aleix Exp $
12 +# Author: Aleix Conchillo Flaque <aleix@member.fsf.org>
13 +# Start date: Sun Jul 06, 2003 04:41
15 +# Copyright (C) 2003 Aleix Conchillo Flaque
18 +# Locate doxygen and auxiliary programs.
19 +# SCEW_DOXYGEN declares the configure arguments
24 +# The conditional macro DOC marks whether doxygen is enabled
25 +# (or found, if not disabled). In the doxyfile.in file,
28 +# @enable_latex_docs@
29 +# can be used to setup the documentation's generation.
31 +AC_DEFUN(SCEW_DOXYGEN,
33 +AC_ARG_ENABLE(doxygen,
34 +[ --enable-doxygen enable documentation generation with doxygen (auto)])
36 +[ --enable-dot use 'dot' to generate graphs in doxygen (auto)])
37 +AC_ARG_ENABLE(html-docs,
38 +[ --enable-html-docs enable HTML generation with doxygen (yes)], [], [ enable_html_docs=yes])
39 +AC_ARG_ENABLE(latex-docs,
40 +[ --enable-latex-docs enable LaTeX documentation generation with doxygen (no)], [], [ enable_latex_docs=no])
42 +if test "x$enable_doxygen" = xno; then
45 + AC_PATH_PROG(DOXYGEN, doxygen, , $PATH)
46 + if test x$DOXYGEN = x; then
47 + if test "x$enable_doxygen" = xyes; then
48 + AC_MSG_ERROR([could not find doxygen])
53 + AC_PATH_PROG(DOT, dot, , $PATH)
56 +AM_CONDITIONAL(DOC, test x$enable_doc = xyes)
58 +if test x$DOT = x; then
59 + if test "x$enable_dot" = xyes; then
60 + AC_MSG_ERROR([could not find dot])
67 +AC_SUBST(enable_html_docs)
68 +AC_SUBST(enable_latex_docs)