Re: AC_CONFIG_HEADERS & AC_CONFIG_FILES combo

2009-11-01 Thread Ralf Wildenhues
* Paolo Bonzini wrote on Tue, Oct 20, 2009 at 07:41:12PM CEST: > AC_CONFIG_HEADERS has to have a very specific format. You'd do > > AC_DEFINE_UNQUOTED([LIBFFCALL_VERSION], ["$PACKAGE_VERSION"], >[Version of libffcall, for avcall.h]) > > and in avcall.h.in > > #ifndef LIBFFCA

about the version number of the package

2009-11-01 Thread Vincent Torri
Hey, I wanted to write an m4 macro to be put in a lot of our configure.ac files. The problem is that the code contain '$1' to compute the parts of the version of the package (major, minor, etc...). The code is the following: VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'` VMIN

Re: about the version number of the package

2009-11-01 Thread Ralf Wildenhues
* Vincent Torri wrote on Sun, Nov 01, 2009 at 12:00:13PM CET: > I wanted to write an m4 macro to be put in a lot of our configure.ac > files. The problem is that the code contain '$1' to compute the > parts of the version of the package (major, minor, etc...). The code > is the following: > > VMAJ