Using special characters (quote / space) in compiler-related variables

2011-10-18 Thread Dmitry Katsubo
Dear autoconf users/developers, I have the following question concerning the use of special characters in variables. After reading the documentation chapter [1], I've come to the conclusion, that I cannot define the following in configure.ac: CXXFLAGS="-D__int64=\"long long\" ${CXXFLAGS}" AC_CHEC

Re: Using special characters (quote / space) in compiler-related variables

2011-10-18 Thread Dmitry Katsubo
On 18.10.2011 17:21, Nick Bowler wrote: > A possible solution in this case is to just use AC_DEFINE: > > AC_DEFINE([__int64], [long long], [description if you use autoheader]) > AC_CHECK_HEADER([jni.h]) > > Autoconf will take care of including the definition in subsequent > configure tests. I

Re: Using special characters (quote / space) in compiler-related variables

2011-10-20 Thread Dmitry Katsubo
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