[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
124/184: build: Warn about etc/indent-code.el when Emacs is absent.
From: |
guix-commits |
Subject: |
124/184: build: Warn about etc/indent-code.el when Emacs is absent. |
Date: |
Wed, 27 Nov 2019 14:37:12 -0500 (EST) |
kkebreau pushed a commit to branch wip-gnome-updates
in repository guix.
commit 54ae2131131dfff12871b5d78971f5158864e9c0
Author: zimoun <address@hidden>
Date: Thu Nov 7 19:27:25 2019 +0100
build: Warn about etc/indent-code.el when Emacs is absent.
* configure.ac: Warn when 'emacs' is not found, and emit
'etc/indent-code.el' otherwise.
Signed-off-by: Ludovic Courtès <address@hidden>
---
configure.ac | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 689b28d..69ab9a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -280,9 +280,14 @@ dnl Documentation translation.
AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate])
AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo])
-dnl Emacs (optional), for 'etc/indent-package.el'.
-AC_PATH_PROG([EMACS], [emacs], [/usr/bin/emacs])
-AC_SUBST([EMACS])
+dnl Emacs (optional), for 'etc/indent-code.el'.
+AC_PATH_PROG([EMACS], [emacs])
+if test "x$EMACS" = x; then
+ AC_MSG_WARN([Please install GNU Emacs to use etc/indent-code.el.])
+else
+ AC_SUBST([EMACS])
+ AC_CONFIG_FILES([etc/indent-code.el], [chmod +x etc/indent-code.el])
+fi
case "$storedir" in
/gnu/store)
@@ -302,6 +307,5 @@ AC_CONFIG_FILES([Makefile
AC_CONFIG_FILES([test-env:build-aux/test-env.in], [chmod +x test-env])
AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
[chmod +x pre-inst-env])
-AC_CONFIG_FILES([etc/indent-code.el], [chmod +x etc/indent-code.el])
AC_OUTPUT
- 127/184: gnu: signify: Update to 27., (continued)
- 127/184: gnu: signify: Update to 27., guix-commits, 2019/11/27
- 67/184: gnu: linux-libre@4.19: Update to 4.19.82., guix-commits, 2019/11/27
- 105/184: gnu: certbot, python-acme: Update to 0.40.1., guix-commits, 2019/11/27
- 106/184: news: Add 'de' translation., guix-commits, 2019/11/27
- 107/184: services: mpd: Connect to the user's PulseAudio socket., guix-commits, 2019/11/27
- 109/184: guix: package: lock profiles when processing them., guix-commits, 2019/11/27
- 118/184: gnu: python-mpi4py: Update to 3.0.3., guix-commits, 2019/11/27
- 128/184: gnu: miniupnpc: Don't use NAME in source URI., guix-commits, 2019/11/27
- 148/184: gnu: qtractor: Update to 0.9.11., guix-commits, 2019/11/27
- 147/184: gnu: youtube-dl: Update to 2019.11.05., guix-commits, 2019/11/27
- 124/184: build: Warn about etc/indent-code.el when Emacs is absent.,
guix-commits <=
- 138/184: services: hpcguix-web: Explicitly import (guix build utils)., guix-commits, 2019/11/27
- 136/184: gnu: perl-class-inspector: Update to 1.36., guix-commits, 2019/11/27
- 125/184: gnu: Add homebank., guix-commits, 2019/11/27
- 135/184: gnu: parcimonie: Update to 0.11.0., guix-commits, 2019/11/27
- 133/184: gnu: fribidi: Fix CVE-2019-18397., guix-commits, 2019/11/27
- 149/184: gnu: fvwm: Don't use NAME in source URI., guix-commits, 2019/11/27
- 142/184: gnu: make-bootstrap: Memoize GCC variant., guix-commits, 2019/11/27
- 146/184: gnu: Add artyfx, guix-commits, 2019/11/27
- 140/184: tests: Update references to the now-deprecated 'guile-json' variable., guix-commits, 2019/11/27
- 139/184: services: hpcguix-web: Delete lock files during activation., guix-commits, 2019/11/27