]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Support more special chars in $(LIBDIR) etc
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Aug 2024 06:09:58 +0000 (23:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Aug 2024 00:59:36 +0000 (17:59 -0700)
* 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.

lib/autoconf/libs.m4
lib/autoconf/programs.m4

index 924d82d4d4b8436c1b1236d79114c397da50ed33..20daf8dd4c387ad76504c75d4c2109b072041ee2 100644 (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.
index 24a4677cb59069c4675e0f307b9872f8d9a99a7a..9e415f333a3d13ac3472715d5daac6926ac88a01 100644 (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