-# Check for asciidoc and xmlto if we enabled building the man pages.
-have_asciidoc_xmlto=no
-warn_prebuilt_man_pages=no
-
-AS_IF([test "x$man_pages_opt" = "xyes"], [
- AC_PATH_PROG([ASCIIDOC], [asciidoc], [no])
- AC_PATH_PROG([XMLTO], [xmlto], [no])
-
- AS_IF([test "x$ASCIIDOC" = "xno" || test "x$XMLTO" = "xno"], [
- AS_IF([test "x$in_git_repo" = "xyes"], [
- # This is an error because we're in the Git repo, which
- # means the man pages are not already generated for us,
- # thus asciidoc/xmlto are required because we were asked
- # to build the man pages.
- AC_MSG_ERROR([
-Both asciidoc and xmlto are needed to build the LTTng-UST man pages. Use
---disable-man-pages to disable building the man pages, in which case
-they will not be installed.
- ])
- ], [
- # Only warn here: since we're in the tarball, the man
- # pages should already be generated at this point, thus
- # asciidoc/xmlto are not strictly required.
- warn_prebuilt_man_pages=yes
- ])
- ], [
- have_asciidoc_xmlto=yes
- ])
-])