annotate acinclude.m4 @ 1709:54280e8b8309

improved scroll on slower machines patch by Stanislav Brabec
author nadvornik
date Tue, 28 Jul 2009 22:27:24 +0000
parents fbd02e4d709e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1454
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
1 # This file is part of Autoconf. -*- Autoconf -*-
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
2
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
3 # Copyright (C) 2004 Oren Ben-Kiki
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
4 # This file is distributed under the same terms as the Autoconf macro files.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
5
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
6 ########## CHANGELOG ##################
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
7 # 2009-01-14 Martin Mann
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
8 # * DX_ARG_ABLE : new variable 'DX_FLAG_DX_CURRENT_FEATURE'
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
9 # * DX_CLEAR_DEPEND : use of explicit variable 'DX_FLAG_DX_CURRENT_FEATURE'
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
10 # in AC_SUBST instead of 'DX_FLAG[]DX_CURRENT_FEATURE' which is rejected by
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
11 # newer autotools
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
12
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
13 # Generate automatic documentation using Doxygen. Works in concert with the
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
14 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
15 # following public macros:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
16 #
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
17 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
18 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
19 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
20 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
21 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
22 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
23 # paper size.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
24 #
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
25 # By default, HTML, PDF and PS documentation is generated as this seems to be
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
26 # the most popular and portable combination. MAN pages created by Doxygen are
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
27 # usually problematic, though by picking an appropriate subset and doing some
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
28 # massaging they might be better than nothing. CHM and RTF are specific for MS
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
29 # (note that you can't generate both HTML and CHM at the same time). The XML is
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
30 # rather useless unless you apply specialized post-processing to it.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
31 #
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
32 # The macro mainly controls the default state of the feature. The use can
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
33 # override the default by specifying --enable or --disable. The macros ensure
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
34 # that contradictory flags are not given (e.g., --enable-doxygen-html and
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
35 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
36 # Finally, each feature will be automatically disabled (with a warning) if the
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
37 # required programs are missing.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
38 #
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
39 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
40 # the following parameters: a one-word name for the project for use as a
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
41 # filename base etc., an optional configuration file name (the default is
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
42 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
43 # name (the default is 'doxygen-doc').
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
44
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
45 ## ----------##
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
46 ## Defaults. ##
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
47 ## ----------##
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
48
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
49 DX_ENV=""
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
50 AC_DEFUN([DX_FEATURE_doc], ON)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
51 AC_DEFUN([DX_FEATURE_dot], ON)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
52 AC_DEFUN([DX_FEATURE_man], OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
53 AC_DEFUN([DX_FEATURE_html], ON)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
54 AC_DEFUN([DX_FEATURE_chm], OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
55 AC_DEFUN([DX_FEATURE_chi], OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
56 AC_DEFUN([DX_FEATURE_rtf], OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
57 AC_DEFUN([DX_FEATURE_xml], OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
58 AC_DEFUN([DX_FEATURE_pdf], ON)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
59 AC_DEFUN([DX_FEATURE_ps], ON)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
60
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
61 ## --------------- ##
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
62 ## Private macros. ##
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
63 ## --------------- ##
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
64
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
65 # DX_ENV_APPEND(VARIABLE, VALUE)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
66 # ------------------------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
67 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
68 AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
69
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
70 # DX_DIRNAME_EXPR
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
71 # ---------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
72 # Expand into a shell expression prints the directory part of a path.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
73 AC_DEFUN([DX_DIRNAME_EXPR],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
74 [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
75
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
76 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
77 # -------------------------------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
78 # Expands according to the M4 (static) status of the feature.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
79 AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
80
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
81 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
82 # ----------------------------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
83 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
84 AC_DEFUN([DX_REQUIRE_PROG], [
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
85 AC_PATH_TOOL([$1], [$2])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
86 if test "$DX_FLAG_DX_CURRENT_FEATURE$$1" = 1; then
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
87 AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
88 AC_SUBST([DX_FLAG_DX_CURRENT_FEATURE], 0)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
89 fi
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
90 ])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
91
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
92 # DX_TEST_FEATURE(FEATURE)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
93 # ------------------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
94 # Expand to a shell expression testing whether the feature is active.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
95 AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
96
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
97 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
98 # -------------------------------------------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
99 # Verify that a required features has the right state before trying to turn on
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
100 # the DX_CURRENT_FEATURE.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
101 AC_DEFUN([DX_CHECK_DEPEND], [
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
102 test "$DX_FLAG_$1" = "$2" \
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
103 || AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
104 requires, contradicts) doxygen-DX_CURRENT_FEATURE])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
105 ])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
106
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
107 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
108 # ----------------------------------------------------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
109 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
110 AC_DEFUN([DX_CLEAR_DEPEND], [
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
111 test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_DX_CURRENT_FEATURE], 0)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
112 ])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
113
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
114
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
115 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
116 # CHECK_DEPEND, CLEAR_DEPEND,
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
117 # REQUIRE, DO-IF-ON, DO-IF-OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
118 # --------------------------------------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
119 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
120 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
121 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
122 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
123 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
124 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
125 AC_DEFUN([DX_ARG_ABLE], [
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
126 AC_DEFUN([DX_CURRENT_FEATURE], [$1])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
127 AC_DEFUN([DX_FLAG_DX_CURRENT_FEATURE], [DX_FLAG_$1])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
128 AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
129 AC_ARG_ENABLE(doxygen-$1,
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
130 [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
131 [--enable-doxygen-$1]),
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
132 DX_IF_FEATURE([$1], [don't $2], [$2]))],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
133 [
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
134 case "$enableval" in
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
135 #(
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
136 y|Y|yes|Yes|YES)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
137 AC_SUBST([DX_FLAG_$1], 1)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
138 $3
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
139 ;; #(
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
140 n|N|no|No|NO)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
141 AC_SUBST([DX_FLAG_$1], 0)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
142 ;; #(
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
143 *)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
144 AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
145 ;;
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
146 esac
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
147 ], [
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
148 AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
149 $4
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
150 ])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
151 if DX_TEST_FEATURE([$1]); then
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
152 $5
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
153 :
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
154 fi
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
155 if DX_TEST_FEATURE([$1]); then
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
156 AM_CONDITIONAL(DX_COND_$1, :)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
157 $6
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
158 :
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
159 else
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
160 AM_CONDITIONAL(DX_COND_$1, false)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
161 $7
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
162 :
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
163 fi
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
164 ])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
165
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
166 ## -------------- ##
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
167 ## Public macros. ##
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
168 ## -------------- ##
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
169
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
170 # DX_XXX_FEATURE(DEFAULT_STATE)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
171 # -----------------------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
172 AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
173 AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
174 AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
175 AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
176 AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
177 AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
178 AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
179 AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
180 AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
181 AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
182
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
183 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
184 # ---------------------------------------------------------
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
185 # PROJECT also serves as the base name for the documentation files.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
186 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
187 AC_DEFUN([DX_INIT_DOXYGEN], [
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
188
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
189 # Files:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
190 AC_SUBST([DX_PROJECT], [$1])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
191 AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
192 AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
193
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
194 # Environment variables used inside doxygen.cfg:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
195 DX_ENV_APPEND(SRCDIR, $srcdir)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
196 DX_ENV_APPEND(PROJECT, $DX_PROJECT)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
197 DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
198 DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
199
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
200 # Doxygen itself:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
201 DX_ARG_ABLE(doc, [generate any doxygen documentation],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
202 [],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
203 [],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
204 [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
205 DX_REQUIRE_PROG([DX_PERL], perl)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
206 [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
207
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
208 # Dot for graphics:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
209 DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
210 [DX_CHECK_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
211 [DX_CLEAR_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
212 [DX_REQUIRE_PROG([DX_DOT], dot)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
213 [DX_ENV_APPEND(HAVE_DOT, YES)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
214 DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
215 [DX_ENV_APPEND(HAVE_DOT, NO)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
216
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
217 # Man pages generation:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
218 DX_ARG_ABLE(man, [generate doxygen manual pages],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
219 [DX_CHECK_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
220 [DX_CLEAR_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
221 [],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
222 [DX_ENV_APPEND(GENERATE_MAN, YES)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
223 [DX_ENV_APPEND(GENERATE_MAN, NO)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
224
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
225 # RTF file generation:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
226 DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
227 [DX_CHECK_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
228 [DX_CLEAR_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
229 [],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
230 [DX_ENV_APPEND(GENERATE_RTF, YES)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
231 [DX_ENV_APPEND(GENERATE_RTF, NO)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
232
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
233 # XML file generation:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
234 DX_ARG_ABLE(xml, [generate doxygen XML documentation],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
235 [DX_CHECK_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
236 [DX_CLEAR_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
237 [],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
238 [DX_ENV_APPEND(GENERATE_XML, YES)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
239 [DX_ENV_APPEND(GENERATE_XML, NO)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
240
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
241 # (Compressed) HTML help generation:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
242 DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
243 [DX_CHECK_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
244 [DX_CLEAR_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
245 [DX_REQUIRE_PROG([DX_HHC], hhc)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
246 [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
247 DX_ENV_APPEND(GENERATE_HTML, YES)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
248 DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
249 [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
250
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
251 # Seperate CHI file generation.
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
252 DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
253 [DX_CHECK_DEPEND(chm, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
254 [DX_CLEAR_DEPEND(chm, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
255 [],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
256 [DX_ENV_APPEND(GENERATE_CHI, YES)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
257 [DX_ENV_APPEND(GENERATE_CHI, NO)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
258
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
259 # Plain HTML pages generation:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
260 DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
261 [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
262 [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
263 [],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
264 [DX_ENV_APPEND(GENERATE_HTML, YES)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
265 [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
266
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
267 # PostScript file generation:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
268 DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
269 [DX_CHECK_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
270 [DX_CLEAR_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
271 [DX_REQUIRE_PROG([DX_LATEX], latex)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
272 DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
273 DX_REQUIRE_PROG([DX_DVIPS], dvips)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
274 DX_REQUIRE_PROG([DX_EGREP], egrep)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
275
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
276 # PDF file generation:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
277 DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
278 [DX_CHECK_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
279 [DX_CLEAR_DEPEND(doc, 1)],
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
280 [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
281 DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
282 DX_REQUIRE_PROG([DX_EGREP], egrep)])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
283
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
284 # LaTeX generation for PS and/or PDF:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
285 if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
286 AM_CONDITIONAL(DX_COND_latex, :)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
287 DX_ENV_APPEND(GENERATE_LATEX, YES)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
288 else
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
289 AM_CONDITIONAL(DX_COND_latex, false)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
290 DX_ENV_APPEND(GENERATE_LATEX, NO)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
291 fi
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
292
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
293 # Paper size for PS and/or PDF:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
294 AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
295 [a4wide (default), a4, letter, legal or executive])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
296 case "$DOXYGEN_PAPER_SIZE" in
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
297 #(
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
298 "")
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
299 AC_SUBST(DOXYGEN_PAPER_SIZE, "")
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
300 ;; #(
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
301 a4wide|a4|letter|legal|executive)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
302 DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
303 ;; #(
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
304 *)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
305 AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
306 ;;
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
307 esac
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
308
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
309 #For debugging:
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
310 #echo DX_FLAG_doc=$DX_FLAG_doc
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
311 #echo DX_FLAG_dot=$DX_FLAG_dot
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
312 #echo DX_FLAG_man=$DX_FLAG_man
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
313 #echo DX_FLAG_html=$DX_FLAG_html
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
314 #echo DX_FLAG_chm=$DX_FLAG_chm
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
315 #echo DX_FLAG_chi=$DX_FLAG_chi
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
316 #echo DX_FLAG_rtf=$DX_FLAG_rtf
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
317 #echo DX_FLAG_xml=$DX_FLAG_xml
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
318 #echo DX_FLAG_pdf=$DX_FLAG_pdf
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
319 #echo DX_FLAG_ps=$DX_FLAG_ps
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
320 #echo DX_ENV=$DX_ENV
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents:
diff changeset
321 ])