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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/18/11 12:06, Dmitry Katsubo wrote:
> From this I conclude (maybe I am wrong) that
> autoconf does not pipe this string to shell (that will do the correct
> string / argument expansion), but somehow tries to execute compiler
> going the primitive split of arguments by spaces (as you have shown by
> your small example).

Yes, you're right: 'configure' does this:

  CXXFLAGS="-D__int64=\"long long\""
  g++ $CXXFLAGS ...

(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.

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux