summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimoun <zimon.toutoune@gmail.com>2019-11-07 19:27:25 +0100
committerLudovic Courtès <ludo@gnu.org>2019-11-09 00:36:53 +0100
commitc8364ebca82f39fc10ca8b578584b7d1ff546cb1 (patch)
tree1aa02c4d2409006f41b1d555ee52bff6dfcf40dc
parentc52555559a509dc51b6ce31016e362af994ffc44 (diff)
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 <ludo@gnu.org>
-rw-r--r--configure.ac12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 689b28d984f..69ab9a97b8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -280,9 +280,14 @@ dnl Documentation translation.
280AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate]) 280AM_MISSING_PROG([PO4A_TRANSLATE], [po4a-translate])
281AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo]) 281AM_MISSING_PROG([PO4A_UPDATEPO], [po4a-updatepo])
282 282
283dnl Emacs (optional), for 'etc/indent-package.el'. 283dnl Emacs (optional), for 'etc/indent-code.el'.
284AC_PATH_PROG([EMACS], [emacs], [/usr/bin/emacs]) 284AC_PATH_PROG([EMACS], [emacs])
285AC_SUBST([EMACS]) 285if test "x$EMACS" = x; then
286 AC_MSG_WARN([Please install GNU Emacs to use etc/indent-code.el.])
287else
288 AC_SUBST([EMACS])
289 AC_CONFIG_FILES([etc/indent-code.el], [chmod +x etc/indent-code.el])
290fi
286 291
287case "$storedir" in 292case "$storedir" in
288 /gnu/store) 293 /gnu/store)
@@ -302,6 +307,5 @@ AC_CONFIG_FILES([Makefile
302AC_CONFIG_FILES([test-env:build-aux/test-env.in], [chmod +x test-env]) 307AC_CONFIG_FILES([test-env:build-aux/test-env.in], [chmod +x test-env])
303AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in], 308AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
304 [chmod +x pre-inst-env]) 309 [chmod +x pre-inst-env])
305AC_CONFIG_FILES([etc/indent-code.el], [chmod +x etc/indent-code.el])
306 310
307AC_OUTPUT 311AC_OUTPUT