On 08/29/2014 08:01 AM, Shawn H Corey wrote:

> I'm new to all this but can this be done?
> 
> m4_define([MAJOR_VERSION], [1])
> m4_define([MINOR_VERSION], [0])
> m4_define([PATCH_VERSION], [0])
> m4_define([VERSION],[MAJOR_VERSION.MINOR_VERSION.PATCH_VERSION])
> 
> AC_INIT(foo,[VERSION])

Sure, but again, you probably want to call:

AC_INIT([foo], VERSION)

instead (quote the package name, so that it is used as a name an not an
expansion of a possible macro foo; leave VERSION unquoted so that it
expands as an m4 macro right away before being an argument to AC_INIT).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to