From: Ralf Wildenhues Date: Sun, 6 Mar 2011 12:28:42 +0000 (+0100) Subject: docs: BSD and Solaris make trailing space macro issue. X-Git-Tag: v2.68b~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd0e10b3f3173b43d7ecc644f6f9db34fcc74811;p=thirdparty%2Fautoconf.git docs: BSD and Solaris make trailing space macro issue. * doc/autoconf.texi (Trailing whitespace in Make Macros): Document issue with trailing whitespace in macro settings. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index ed4c467d..ba2750f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-03-08 Ralf Wildenhues + + docs: BSD and Solaris make trailing space macro issue. + * doc/autoconf.texi (Trailing whitespace in Make Macros): + Document issue with trailing whitespace in macro settings. + 2011-03-05 Ralf Wildenhues Fix Cray Fortran flag for AC_FC_IMPLICIT_NONE. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index b5528836..91839814 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -19853,6 +19853,19 @@ print: ; @@echo $(foo:=.test) @noindent prints @samp{bar.test .test}. +BSD and Solaris @command{make} implementations do not honor trailing +whitespace in macro definitions as Posix requires: + +@example +foo = bar # Note the space after "bar". +print: ; @@echo $(foo)t +@end example + +@noindent +prints @samp{bart} instead of @samp{bar t}. To work around this, you +can use a helper macro as in the previous example. + + @node Command-line Macros and whitespace @section Command-line Macros and whitespace @cindex whitespace in command-line macros