meson: add docs, docs_pdf options

Detect and report if the tools necessary to build documentation are available
during configure. This is represented as two new options 'docs' and
'docs_pdf', both defaulting to 'auto'.

This should also fix a meson error about the installdocs target, when none of
the doc tools are found.

Reviewed-by: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://postgr.es/m/20230325201414.sh7c6xlut2fpunnv@awork3.anarazel.de
Discussion: https://postgr.es/m/ZB8331v5IhUA/pNu@telsasoft.com
This commit is contained in:
Andres Freund
2023-04-04 21:29:39 -07:00
parent 0ba827ecfc
commit ef07d351a1
4 changed files with 86 additions and 16 deletions

View File

@@ -79,6 +79,12 @@ option('bonjour', type : 'feature', value: 'auto',
option('bsd_auth', type : 'feature', value: 'auto',
description: 'build with BSD Authentication support')
option('docs', type : 'feature', value: 'auto',
description: 'documentation in HTML and man page format')
option('docs_pdf', type : 'feature', value: 'auto',
description: 'documentation in PDF format')
option('dtrace', type : 'feature', value: 'disabled',
description: 'DTrace support')
@@ -159,6 +165,9 @@ option('DTRACE', type : 'string', value: 'dtrace',
option('FLEX', type : 'array', value: ['flex', 'win_flex'],
description: 'path to flex binary')
option('FOP', type : 'string', value: 'fop',
description: 'path to fop binary')
option('GZIP', type : 'string', value: 'gzip',
description: 'path to gzip binary')