Avoid auto-activating building of API spec docs when pdflatex, etc. are installed in the build environment. PR: 235319