diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-20 12:22:01 -0600 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-20 12:22:01 -0600 |
commit | 603daf68446c83af5e6cdc87e6b3b651a7f2e4c2 (patch) | |
tree | 9f9fa986bcfab5960d408608dbc56187d17ae282 /m4 | |
parent | c1059cf72b6d55953b53cbb5c431b1f433e3f64d (diff) | |
download | groff-git-603daf68446c83af5e6cdc87e6b3b651a7f2e4c2.tar.gz |
m4/groff.m4 (GROFF_MAKE_DEFINES_RM): Honor $MAKE.
* m4/groff.m4 (GROFF_MAKE_DEFINES_RM): Test the make(1) in the
environment variable $MAKE if defined, instead a literal "make".
Required on (some) Solaris 10 configurations where traditional make(1)
is not installed but GNU make is installed as "gmake".
Diffstat (limited to 'm4')
-rw-r--r-- | m4/groff.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/groff.m4 b/m4/groff.m4 index fcc676f64..7bb4466a7 100644 --- a/m4/groff.m4 +++ b/m4/groff.m4 @@ -1775,6 +1775,11 @@ AC_DEFUN([GROFF_PROG_XPMTOPPM], AC_DEFUN([GROFF_MAKE_DEFINES_RM], [ AC_MSG_CHECKING(whether make defines 'RM') + make=make + if test -n "$MAKE" + then + make=$MAKE + fi cat <<EOF > test_make_rm.mk all: @if test -n "\$(RM)"; \ @@ -1784,7 +1789,7 @@ all: echo no; \ fi EOF - groff_make_defines_rm=`make -sf test_make_rm.mk` + groff_make_defines_rm=`"$make" -sf test_make_rm.mk` AC_MSG_RESULT([$groff_make_defines_rm]) rm -f test_make_rm.mk ]) |