]> git.cworth.org Git - notmuch-old/blobdiff - configure
doc: replace use of environment variables with a generated config
[notmuch-old] / configure
index 4e16ff407e6a8803c94f1601345b117b18f20afd..0c4e5af189d513dc509fcf7cf38cf5b0654d900f 100755 (executable)
--- a/configure
+++ b/configure
@@ -1548,6 +1548,14 @@ NOTMUCH_HAVE_PYTHON3_PYTEST=${have_python3_pytest}
 PLATFORM=${platform}
 EOF
 
+cat > sphinx.config <<EOF
+# Generate 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