docs: fallback to html4 for compatibility with ancient shit distros

This commit is contained in:
Andrei Alexeyev 2018-01-20 05:27:53 +02:00
parent af82877c7d
commit 21cab2435d
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -1,6 +1,17 @@
if get_option('docs')
rst2html5 = find_program('rst2html5', 'rst2html5.py', 'rst2html5-docutils', required : false)
rst2html5 = find_program(
'rst2html5',
'rst2html5.py',
'rst2html5-docutils',
'rst2html4',
'rst2html4.py',
'rst2html4-docutils',
'rst2html',
'rst2html.py',
'rst2html-docutils',
required : false
)
if not rst2html5.found()
error('rst2html5 from docutils is required to build documentation. Please install it, or disable the `docs` option if you don\'t want it.')