Line | |
---|
1 | # SYNOPSIS
|
---|
2 | #
|
---|
3 | # AX_PROG_DOXYGEN()
|
---|
4 | #
|
---|
5 | # DESCRIPTION
|
---|
6 | #
|
---|
7 | # Test for the Doxygen
|
---|
8 | #
|
---|
9 | # --enable-doxygen option enable or disable generation of the
|
---|
10 | # documentation, when available.
|
---|
11 | #
|
---|
12 | # LAST MODIFICATION
|
---|
13 | #
|
---|
14 | # 2008-12-11
|
---|
15 |
|
---|
16 | AC_DEFUN([AX_PROG_DOXYGEN],
|
---|
17 | [
|
---|
18 | AC_ARG_VAR([DOXYGEN_PROG],[Doxygen program])
|
---|
19 |
|
---|
20 | AC_ARG_ENABLE([doxygen],
|
---|
21 | AS_HELP_STRING([--enable-doxygen], [Turn on doxygen documentation generation.]))
|
---|
22 |
|
---|
23 | AM_CONDITIONAL([DOXYGEN], [test "x${enable_doxygen}" = "xyes"])
|
---|
24 |
|
---|
25 | if test "${enable_doxygen}" = "yes"; then
|
---|
26 | dnl Check for existance of doxygen
|
---|
27 | AC_CHECK_PROG([DOXYGEN_PROG],
|
---|
28 | [doxygen],
|
---|
29 | doxygen,
|
---|
30 | no)
|
---|
31 | fi
|
---|
32 |
|
---|
33 | if test "$DOXYGEN_PROG" = "no"; then
|
---|
34 | AC_MSG_ERROR([Doxygen was not found. Check for installation or configure with --disable-doxygen])
|
---|
35 | fi
|
---|
36 | ])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.