m4: fix output of sphinx-build version check
authorMichael Wallner <mike@php.net>
Wed, 8 Jan 2020 16:05:02 +0000 (17:05 +0100)
committerMichael Wallner <mike@php.net>
Wed, 8 Jan 2020 16:05:02 +0000 (17:05 +0100)
m4/ax_prog_sphinx_build.m4

index 653c7bcec8eab47c32ede4095a1857203523e0d7..ff64650b93014c25effed02aaf56eb7ddf3f32be 100644 (file)
@@ -19,7 +19,7 @@
 #   and this notice are preserved. This file is offered as-is, without any
 #   warranty.
 
-#serial 5
+#serial 6
 
 AC_DEFUN([AX_PROG_SPHINX_BUILD],
          [AX_WITH_PROG([SPHINXBUILD],[sphinx-build],[:])
@@ -33,12 +33,12 @@ AC_DEFUN([AX_PROG_SPHINX_BUILD],
                             [junk=`$SPHINXBUILD &> version_file`
                             ax_sphinx_build_version=`head -1 version_file`
                             rm version_file
-                            AC_MSG_RESULT([$SPHINXBUILD is version "$ax_sphinx_build_version"])
                             $SPHINXBUILD -Q -C -b man -d conftest.d . . >/dev/null 2>&1
                             AS_IF([test $? -eq 0], ,[SPHINXBUILD=])
                             rm -rf conftest.d ])
                       ])
                       rm -f version_file
+                      AC_MSG_RESULT(["$ax_sphinx_build_version"])
                ])
 
          AS_IF([test -n "${SPHINXBUILD}"],