summaryrefslogtreecommitdiff
path: root/m4/docs_tool.m4
blob: 3e8814ac8d7d6b9cbbe13c58ccd8e2ff1399d53d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
AC_DEFUN([AX_DOCS_TOOL_PROG], [
dnl
    AC_ARG_VAR([$1], [Path to $2 tool])
    AC_PATH_PROG([$1], [$2])
    AS_IF([! test -x "$ac_cv_path_$1"], [
        AC_MSG_WARN([$2 is not available so some documentation won't be built])
    ])
])

AC_DEFUN([AX_DOCS_TOOL_PROGS], [
dnl
    AC_ARG_VAR([$1], [Path to $2 tool])
    AC_PATH_PROGS([$1], [$3])
    AS_IF([! test -x "$ac_cv_path_$1"], [
        AC_MSG_WARN([$2 is not available so some documentation won't be built])
    ])
])