autoconf
[Top][All Lists]
Advanced

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

m4 macro that would call AAC_INIT


From: Vincent Torri
Subject: m4 macro that would call AAC_INIT
Date: Wed, 15 Sep 2010 17:21:11 +0200 (CEST)


Hey,

except AC_PREREQ() (and m4 calls), no macro should be called before AC_INIT(). Does this include the call of an m4 macro which itself would call AC_INIT. that is, smething like that:

*** my_init.m4 ***

AC_DEFUN([EFL_INIT],
[

m4_define([v_maj], [$2])
m4_define([v_min], [$3])
m4_define([v_mic], [$4])
m4_define([v_ver], [v_maj.v_min.v_mic])

AC_INIT([$1], [v_ver])

])

*** configure.ac ***

MY_INIT(foo, 1, 2, 3)

etc...


Vincent Torri



reply via email to

[Prev in Thread] Current Thread [Next in Thread]