summaryrefslogtreecommitdiff
path: root/libgphoto2_port/gphoto-m4/gp-check-doxygen.m4
blob: fe4075d069c347b15836525df3f59806cc199bde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# gp-check-doxygen.m4 - check for doxygen tool                 -*- Autoconf -*-
# serial 13
dnl | Increment the above serial number every time you edit this file.
dnl | When it finds multiple m4 files with the same name,
dnl | aclocal will use the one with the highest serial.
dnl
dnl ####################################################################
dnl doxygen related stuff
dnl look for tools
dnl define substitutions for Doxyfile.in
dnl ####################################################################
dnl
AC_DEFUN([GP_CHECK_DOXYGEN], [dnl
dnl
AC_ARG_VAR([DOT],          [graphviz dot directed graph drawing command])
AC_PATH_PROG([DOT],        [dot], [no])
AM_CONDITIONAL([HAVE_DOT], [test "x$DOT" != xno])
dnl
AC_ARG_VAR([DOXYGEN],          [software documentation generator command])
AC_PATH_PROG([DOXYGEN],        [doxygen], [no])
AM_CONDITIONAL([HAVE_DOXYGEN], [test "x$DOXYGEN" != xno])
dnl
dnl Substitutions for Doxyfile.in
AM_COND_IF([HAVE_DOT],
           [AC_SUBST([HAVE_DOT], [YES])],
           [AC_SUBST([HAVE_DOT], [NO])])
AC_SUBST([HTML_APIDOC_DIR], ["${PACKAGE_TARNAME}-api.html"])
AC_SUBST([DOXYGEN_OUTPUT_DIR], [doxygen-output])
AC_SUBST([HTML_APIDOC_INTERNALS_DIR], ["${PACKAGE_TARNAME}-internals.html"])
dnl
])dnl
dnl
dnl
dnl ####################################################################
dnl
dnl Local Variables:
dnl mode: autoconf
dnl End: