On 18.10.2011 21:21, Paul Eggert wrote:
> Yes, you're right: 'configure' does this:
> 
>   CXXFLAGS="-D__int64=\"long long\""
>   g++ $CXXFLAGS ...

I think, more flexible would be:

echo "g++ $CXXFLAGS" | bash

BTW, "make" is fine with following definition:

CXXFLAGS := -D__int="long long"

and it also evaluates the expansion for internal expression
"$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)" correctly.

> (because you told it to), and this is equivalent to:
> 
>   g++ "-D__int64=\"long" "long\"" ...
> 
> because that's how the shell works.  For this particular
> example, the splitting isn't what you want, but for
> other examples it is, and I'm afraid that it's unlikely that
> Autoconf would change its behavior in this area.

Double escaping should work in this case, but the problem is that the
substitution in Makefile will also contain double escapes, which will be
wrong.

-- 
With best regards,
Dmitry

_______________________________________________
Autoconf mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to