[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
124/182: build: Warn about etc/indent-code.el when Emacs is absent.
From: |
guix-commits |
Subject: |
124/182: build: Warn about etc/indent-code.el when Emacs is absent. |
Date: |
Fri, 15 Nov 2019 00:01:53 -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
- 141/182: services: 'fold-services' memoizes service values., (continued)
- 141/182: services: 'fold-services' memoizes service values., guix-commits, 2019/11/15
- 145/182: gnu: Add matcha-theme., guix-commits, 2019/11/15
- 144/182: doc: Mention value /var to localstatedir option., guix-commits, 2019/11/15
- 146/182: gnu: Add artyfx, guix-commits, 2019/11/15
- 152/182: gnu: gegl: Add source URIs., guix-commits, 2019/11/15
- 151/182: gnu: babl: Update to 0.1.72., guix-commits, 2019/11/15
- 159/182: gnu: cgal: Use HTTPS home page., guix-commits, 2019/11/15
- 157/182: gnu: faad2: Update to 2.8.6., guix-commits, 2019/11/15
- 163/182: gnu: monero-gui: Update to 0.15.0.0., guix-commits, 2019/11/15
- 126/182: gnu: neovim: Update to 0.4.3., guix-commits, 2019/11/15
- 124/182: build: Warn about etc/indent-code.el when Emacs is absent.,
guix-commits <=
- 147/182: gnu: youtube-dl: Update to 2019.11.05., guix-commits, 2019/11/15
- 148/182: gnu: qtractor: Update to 0.9.11., guix-commits, 2019/11/15
- 122/182: ui: Emit hyperlinks for 'license' in package search results., guix-commits, 2019/11/15
- 127/182: gnu: signify: Update to 27., guix-commits, 2019/11/15
- 131/182: gnu: python-reportlab: Update to 3.5.32., guix-commits, 2019/11/15
- 132/182: gnu: rdesktop: Update to 1.9.0., guix-commits, 2019/11/15
- 135/182: gnu: parcimonie: Update to 0.11.0., guix-commits, 2019/11/15
- 134/182: gnu: Add perl-moox-strictconstructor., guix-commits, 2019/11/15
- 138/182: services: hpcguix-web: Explicitly import (guix build utils)., guix-commits, 2019/11/15
- 140/182: tests: Update references to the now-deprecated 'guile-json' variable., guix-commits, 2019/11/15