several updated in configure.
[crywrap.git] / m4 / Mk.m4
blobc55a3b7c123794bc9e58a8df6a5ef8f989e40682
1 # arch-tag: ace75c56-7f84-4e88-b2d4-31fada4e6122
3 AC_DEFUN([BHMK_MAKE_CHECK],[
5 AC_PROG_MAKE_SET
6 AC_MSG_CHECKING([whether ${MAKE-make} supports per-target variable appending])
7 AC_CACHE_VAL(ac_cv_prog_make_target_var_append,
8 [cat >conftest.make <<\_ACEOF
9 foo = bar
10 all: foo += baz
11 all:
12         @echo 'ac_maketemp="${foo}"'
13 _ACEOF
14 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
16 if test -n "$ac_maketemp"; then
17   eval ac_cv_prog_make_target_var_append=yes
18 else
19   eval ac_cv_prog_make_target_var_append=no
21 rm -f conftest.make])
22 if eval "test \"`echo '$ac_cv_prog_make_target_var_append'`\" = yes"; then
23   AC_MSG_RESULT([yes])
24 else
25   AC_MSG_RESULT([no])
27 MAKE_TARGET_VAR_APPEND=$ac_cv_prog_make_target_var_append
28 AC_SUBST([MAKE_TARGET_VAR_APPEND])