aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-09-27 17:26:22 +0200
committerLudovic Courtès <ludo@gnu.org>2014-09-27 17:27:21 +0200
commit596fcbf768828bb88c28107c6312e63f8329f430 (patch)
tree88cca45dac2109ede79823d08a2260a86bac9b5f /configure.ac
parent6c4a2884b68b9c3344ef0c9f74e0399c6eb1608c (diff)
downloadguix-596fcbf768828bb88c28107c6312e63f8329f430.tar
guix-596fcbf768828bb88c28107c6312e63f8329f430.tar.gz
build: Don't generate Emacs autoloads when Emacs is unavailable.
Reported by Andreas Enge. * configure.ac: Define 'HAVE_EMACS' Automake conditional. * emacs.am ($(AUTOLOADS)): Wrap in 'if HAVE_EMACS'.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 698dd85784..e516fa57b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -176,6 +176,8 @@ AC_CONFIG_FILES([test-env], [chmod +x test-env])
dnl Emacs interface.
AM_PATH_LISPDIR
+AM_CONDITIONAL([HAVE_EMACS], [test "x$EMACS" != "xno"])
+
emacsuidir="${guilemoduledir}/guix/emacs"
AC_SUBST([emacsuidir])
AC_CONFIG_FILES([emacs/guix-init.el