summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hopkins <emacs@unbit.co.uk>2022-09-27 18:04:20 -0700
committerKarl Berry <karl@freefriends.org>2022-09-27 18:04:20 -0700
commitcea8158fb8e0432f30c46c90151aee0a0b1aa594 (patch)
tree5dc2f82f444c41242d46918c06bb418bd4d4b5c9
parentd4801dffecfb7ed2beb0815853f89a720aac0fbc (diff)
downloadautomake-cea8158fb8e0432f30c46c90151aee0a0b1aa594.tar.gz
automake: do not use -Q with emacs invocations.
This change is for https://bugs.gnu.org/58102. (By the way, the previous two commits were for bugs 58026 (silent .elc compilation) and 58025 (load bytecomp), respectively, but I forgot to mention them.) * m4/lispdir.m4 (AM_PATH_LISPDIR): omit -Q option. Also (from karl), use -no-site-file (one hyphen) for consistency with the other options. * NEWS: mention this. * doc/automake.texi (Hard-Coded Install Paths): likewise.
-rw-r--r--NEWS3
-rw-r--r--doc/automake.texi2
-rw-r--r--m4/lispdir.m42
3 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 406c5f1ec..89187669c 100644
--- a/NEWS
+++ b/NEWS
@@ -11,7 +11,8 @@ New in 1.17:
levels.
- When compiling Emacs Lisp files, emacs is run with --no-site-file to
- disable user config files that might hang or access the terminal.
+ disable user config files that might hang or access the terminal;
+ and -Q is not used, since its support and behavior varies.
- Emacs Lisp compilations respects silent make output.
diff --git a/doc/automake.texi b/doc/automake.texi
index 21c49645e..48744e24f 100644
--- a/doc/automake.texi
+++ b/doc/automake.texi
@@ -13350,7 +13350,7 @@ instance, here is how @code{AM_PATH_LISPDIR} (@pxref{Emacs Lisp})
computes @samp{$(lispdir)}:
@example
-$EMACS -batch -Q --no-site-file -eval '(while load-path
+$EMACS -batch -no-site-file -eval '(while load-path
(princ (concat (car load-path) "\n"))
(setq load-path (cdr load-path)))' >conftest.out
lispdir=`sed -n
diff --git a/m4/lispdir.m4 b/m4/lispdir.m4
index 6f9b89d2c..a60095c3f 100644
--- a/m4/lispdir.m4
+++ b/m4/lispdir.m4
@@ -34,7 +34,7 @@ AC_DEFUN([AM_PATH_LISPDIR],
# which is non-obvious for non-emacs users.
# Redirecting /dev/null should help a bit; pity we can't detect "broken"
# emacsen earlier and avoid running this altogether.
- AC_RUN_LOG([$EMACS -batch -Q --no-site-file -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
+ AC_RUN_LOG([$EMACS -batch -no-site-file -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
am_cv_lispdir=`sed -n \
-e 's,/$,,' \
-e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \