+2002-10-31 Akim Demaille <akim@epita.fr>
+
+ * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
+ `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
+ Make variable, not a shell variable.
+ Suggested by Bruno Haible.
+
2002-10-31 Akim Demaille <akim@epita.fr>
* bin/autom4te.in (load_configuration): Reject #args out of any
@defmac AC_PROG_MAKE_SET
@acindex PROG_MAKE_SET
@ovindex SET_MAKE
-If @command{make} predefines the variable @code{MAKE}, define output
-variable @code{SET_MAKE} to be empty. Otherwise, define @code{SET_MAKE}
-to contain @samp{MAKE=make}. Calls @code{AC_SUBST} for @code{SET_MAKE}.
+If @command{make} predefines the Make variable @code{MAKE}, define
+output variable @code{SET_MAKE} to be empty. Otherwise, define
+@code{SET_MAKE} to contain @samp{MAKE=make}. Calls @code{AC_SUBST} for
+@code{SET_MAKE}.
@end defmac
If you use this macro, place a line like this in each @file{Makefile.in}
AN_MAKEVAR([MAKE], [AC_PROG_MAKE_SET])
AN_PROGRAM([make], [AC_PROG_MAKE_SET])
AC_DEFUN([AC_PROG_MAKE_SET],
-[AC_MSG_CHECKING([whether ${MAKE-make} sets \${MAKE}])
+[AC_MSG_CHECKING([whether ${MAKE-make} sets \$(MAKE)])
set dummy ${MAKE-make}; ac_make=`echo "$[2]" | sed 'y,./+-,__p_,'`
AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set,
[cat >conftest.make <<\_ACEOF
all:
- @echo 'ac_maketemp="${MAKE}"'
+ @echo 'ac_maketemp="$(MAKE)"'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`