summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2019-06-11 21:12:38 -0300
committerDavid Bremner <david@tethera.net>2019-06-12 19:58:30 -0300
commita6a8df7e0379bfb6e69b9541d7813ac71f624f2e (patch)
tree880cb7683a59c238500d9143dcc342f2c6a38af5 /configure
parent0a2929c341b6d5f20210725facf37a6e2c3a19b4 (diff)
build: drop variable HAVE_EMACS. use WITH_EMACS instead
The extra flexibility of having both HAVE_EMACS (for yes, there is an emacs we can use) and WITH_EMACS (the user wants emacs support) lead to confusion and bugs. We now just force WITH_EMACS to 0 if no suitable emacs is detected.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 8 insertions, 10 deletions
diff --git a/configure b/configure
index 8b80f0e0..554e10c9 100755
--- a/configure
+++ b/configure
@@ -677,13 +677,14 @@ if [ -z "${EMACSETCDIR-}" ]; then
EMACSETCDIR="\$(prefix)/share/emacs/site-lisp"
fi
-printf "Checking if emacs (>= 24) is available... "
-if emacs --quick --batch --eval '(if (< emacs-major-version 24) (kill-emacs 1))' > /dev/null 2>&1; then
- printf "Yes.\n"
- have_emacs=1
-else
- printf "No (so will not byte-compile emacs code)\n"
- have_emacs=0
+if [ $WITH_EMACS = "1" ]; then
+ printf "Checking if emacs (>= 24) is available... "
+ if emacs --quick --batch --eval '(if (< emacs-major-version 24) (kill-emacs 1))' > /dev/null 2>&1; then
+ printf "Yes.\n"
+ else
+ printf "No (disabling emacs related parts of build)\n"
+ WITH_EMACS=0
+ fi
fi
have_doxygen=0
@@ -1165,9 +1166,6 @@ BASH_ABSOLUTE = ${bash_absolute}
HAVE_PERL = ${have_perl}
PERL_ABSOLUTE = ${perl_absolute}
-# Whether there's an emacs binary available for byte-compiling
-HAVE_EMACS = ${have_emacs}
-
# Whether there's a sphinx-build binary available for building documentation
HAVE_SPHINX=${have_sphinx}