]> git.notmuchmail.org Git - notmuch/blobdiff - configure
doc: replace use of environment variables with a generated config
[notmuch] / configure
index 4e16ff407e6a8803c94f1601345b117b18f20afd..c8690d3a647b3da7d832c82935dadda56ff4828a 100755 (executable)
--- a/configure
+++ b/configure
@@ -1548,6 +1548,14 @@ NOTMUCH_HAVE_PYTHON3_PYTEST=${have_python3_pytest}
 PLATFORM=${platform}
 EOF
 
+cat > sphinx.config <<EOF
+# Generated by configure, run from doc/conf.py
+EOF
+if [ $WITH_EMACS = "1" ]; then
+    printf "tags.add('WITH_EMACS')\n" >> sphinx.config
+fi
+printf "rsti_dir = '%s'\n" $(realpath emacs) >> sphinx.config
+
 # Finally, after everything configured, inform the user how to continue.
 cat <<EOF