From cea8158fb8e0432f30c46c90151aee0a0b1aa594 Mon Sep 17 00:00:00 2001 From: Richard Hopkins Date: Tue, 27 Sep 2022 18:04:20 -0700 Subject: 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. --- NEWS | 3 ++- doc/automake.texi | 2 +- m4/lispdir.m4 | 2 +- 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)))' 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)))' 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;}' \ -- cgit v1.2.1