Steven Woody wrote:
Thank you Peter. I have two more questions:
1, Where and how you set the HAVE_SVN_WC?
I have the following in my configure.ac:
# Check if svnversion is installed
AC_PATH_PROG([SVNVERSION], [svnversion], [no])
# checking if we build in a subversion WC
wc_found="no";
if (test "$SVNVERSION" != "no" &&
test `$SVNVERSION -n $srcdir` != "exported");
then
wc_found="yes";
fi
AM_CONDITIONAL(HAVE_SVN_WC, test "$wc_found" = "yes" )
svnversion returns "exported" when not being in a svn wc, so I set
HAVE_SVN_WC to true if svnversion is available and svnversion does not
return "exported".
2. What's the difference between @varname@ and $(varname) in a
Makefile.am? I noted you use many @xxxx@
I think the difference is that for example @builddir@ is substituted to
'.' when the Makefile is created from Makefile.in, so for instance:
dummy:; echo @builddir@
in Makefile.am will become
dummy:; echo .
in Makefile. On the other
dummy:; echo $(builddir)
in the Makefile.am will be
dummy:; echo $(builddir)
but since $(builddir) is set to `.', I dont think it matters if having
@xxx@ or $(xxx) in this case.
cheers
Peter
Regards,
woody