[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AS_VAR_IF and the resulting shell code
From: |
NightStrike |
Subject: |
AS_VAR_IF and the resulting shell code |
Date: |
Fri, 16 Oct 2009 12:45:57 -0400 |
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?
- AS_VAR_IF and the resulting shell code,
NightStrike <=