[PATCH] Cygwin: Conditionally build documentation
Mike Frysinger
vapier@gentoo.org
Wed Dec 8 17:47:09 GMT 2021
On 08 Dec 2021 15:03, Jon Turney wrote:
> +AC_ARG_ENABLE(doc,
> + [AS_HELP_STRING([--enable-doc], [Build documentation])],
> + enable_doc=$enableval,
> + enable_doc=yes)
the 3rd arg is redundant. you can just write ,, to use the default iirc.
> +AC_CHECK_PROGS([DOCBOOK2XTEXI], [docbook2x-texi db2x_docbook2texi])
> +AC_CHECK_PROGS([XMLTO], [xmlto])
> +
> +if test "x$enable_doc" != "xno"; then
> + if test -z "$DOCBOOK2XTEXI" || test -z "$XMLTO"; then
> + AC_MSG_ERROR([Required documentation tools not found])
> + fi
> +fi
i think AM_MISSING_PROG would be more appropriate. then you don't need
the `test` logic.
https://www.gnu.org/software/automake/manual/html_node/Public-Macros.html#index-AM_005fMISSING_005fPROG
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20211208/c33d30e3/attachment.sig>
More information about the Newlib
mailing list