Skip to content

Commit 6fd485a

Browse files
committed
Don't promise to install docs if we cannot build them.
Signed-off-by: George Bosilca <[email protected]>
1 parent 5e954b6 commit 6fd485a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

oac_setup_sphinx.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ AC_DEFUN([OAC_SETUP_SPHINX],[
8585
AS_IF([test "$oac_sphinx_result" = "lesser"],
8686
[SPHINX_BUILD=
8787
AC_MSG_RESULT([no])],
88-
[ # If we're building, we're also installing, regardless of
89-
# whether we found pre-build docs or not (above).
90-
oac_install_docs=1
91-
AC_MSG_RESULT([yes])])
88+
[AC_MSG_RESULT([yes])])
9289
])
9390
9491
# If we found Sphinx, check to ensure that we have all the things
@@ -141,6 +138,9 @@ EOF
141138
AC_MSG_NOTICE([are available.])
142139
])
143140
AC_MSG_NOTICE([You will not be able to build a distribution tarball.])
141+
],
142+
[ # If we're building, we're installing !
143+
oac_install_docs=1
144144
])
145145
146146
# Check if we have already-built docs (e.g., if we're

0 commit comments

Comments
 (0)