AS_VAR_IF and the resulting shell code

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

 



This:

xx=yes
AS_VAR_IF([xx],[yes],[echo equal],[echo not equal])
results in this:

xx=yes
if test "x$xx" = x""yes; then
  echo equal
else
  echo not equal
fi
with autoconf 2.63.

How come the right hand side of the test is x""yes, as in, with two
double quotes between the x and the yes?  Why isn't it just "xyes", or
just xyesy?


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://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