File: Mk.m4

package info (click to toggle)
crywrap 0.2.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 784 kB
  • ctags: 241
  • sloc: sh: 2,751; ansic: 1,979; makefile: 166
file content (29 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# arch-tag: ace75c56-7f84-4e88-b2d4-31fada4e6122

AC_DEFUN([BHMK_MAKE_CHECK],[

AC_MSG_CHECKING([whether ${MAKE-make} supports per-target variable appending])
AC_CACHE_VAL(ac_cv_prog_make_target_var_append,
[cat >conftest.make <<\_ACEOF
foo = bar
all: foo += baz
all:
	@echo 'ac_maketemp="${foo}"'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_target_var_append=yes
else
  eval ac_cv_prog_make_target_var_append=no
fi
rm -f conftest.make])
if eval "test \"`echo '$ac_cv_prog_make_target_var_append'`\" = yes"; then
  AC_MSG_RESULT([yes])
else
  AC_MSG_RESULT([no])
fi
MAKE_TARGET_VAR_APPEND=$ac_cv_prog_make_target_var_append
AC_SUBST([MAKE_TARGET_VAR_APPEND])

])