Support more special chars in $(LIBDIR) etc

* lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF):
* lib/autoconf/programs.m4 (AC_PROG_MAKE_SET):
Allow more special characters in ‘make’ macros like LIBDIR and MAKE.
This commit is contained in:
Paul Eggert 2024-08-05 23:09:58 -07:00
parent 2160962cf7
commit d675dd3451
2 changed files with 4 additions and 4 deletions

View File

@ -170,11 +170,11 @@ if mkdir conftest.dir; then
cd conftest.dir
cat >Imakefile <<'_ACEOF'
incroot:
@echo incroot='${INCROOT}'
@printf '%s\n' incroot='${INCROOT}'
usrlibdir:
@echo usrlibdir='${USRLIBDIR}'
@printf '%s\n' usrlibdir='${USRLIBDIR}'
libdir:
@echo libdir='${LIBDIR}'
@printf '%s\n' libdir='${LIBDIR}'
_ACEOF
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.

View File

@ -936,7 +936,7 @@ AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set,
[cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
@echo '@@@%%%=$(MAKE)=@@@%%%'
@printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in