diff options
author | Francis Dupont <fdupont@isc.org> | 2020-05-24 09:31:05 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomek@isc.org> | 2020-07-27 14:25:32 +0200 |
commit | e45f5188c99a4a1800c93122c4490ae202ab5edf (patch) | |
tree | 00e57d6b768998a58eb8679a858fd5ff96110145 /configure.ac | |
parent | [#1283] Improved comment (diff) | |
download | kea-e45f5188c99a4a1800c93122c4490ae202ab5edf.tar.xz kea-e45f5188c99a4a1800c93122c4490ae202ab5edf.zip |
[#1248] Made sphinx Makefile portable
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 4928c9d4cb..ab93f83a21 100755 --- a/configure.ac +++ b/configure.ac @@ -1440,11 +1440,12 @@ if test "x$enable_generate_docs" != xno ; then AC_MSG_CHECKING([whether $SPHINXBUILD and $PDFLATEX work]) ti=`mktemp -d` to=`mktemp -d` + oldpath=`pwd` echo 'hello' > $ti/contents.rst - sphinx-build -b latex -C $ti $to > /dev/null 2>&1 - pushd $to > /dev/null 2>&1 + $SPHINXBUILD -b latex -C $ti $to > /dev/null 2>&1 + cd $to > /dev/null 2>&1 $PDFLATEX -interaction nonstopmode [[pP]]ython.tex > /dev/null 2>&1 - popd > /dev/null 2>&1 + cd $oldpath > /dev/null 2>&1 file $to/[[pP]]ython.pdf | grep PDF > /dev/null 2>&1 if test $? -ne 0 ; then AC_MSG_RESULT([no - disabled building docs in PDF]) |