Skip to content

Commit 7eb0255

Browse files
committed
configure.ac: fix NUT_AM_MAKE_CAN_EXPORT test syntax for Solaris ksh
1 parent d2ee53f commit 7eb0255

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ AM_MAINTAINER_MODE
117117

118118
dnl GNU and BSD make are okay with the syntax, but Sun make/dmake are not:
119119
AC_MSG_CHECKING([whether this make implementation supports export VAR=VAL syntax])
120-
nut_am_output="`printf 'export VAR=VAL\ntest:\n\t@echo "VAR=\$(VAR)"\n' | ${MAKE-make} -f - test`"
120+
dnl # using printf formatting for some funniner shells out there
121+
nut_am_output="`printf 'export VAR=VAL\ntest:\n\t@echo "VAR=%s%sVAR%s"\n' '\$' '(' ')' | ${MAKE-make} -f - test`"
121122
nut_am_result="$?"
122123
AS_IF([test x"${nut_am_result}" = x0 -a x"${nut_am_output}" = x"VAR=VAL"], [
123124
NUT_AM_MAKE_CAN_EXPORT=""

0 commit comments

Comments
 (0)