Re: m4 macro that would call AAC_INIT

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

 



On 09/15/2010 10:01 AM, Vincent Torri wrote:

AC_DEFUN([EFL_INIT],
[

Well, i already tried to do that, with always the same message:

configure.ac:3: error: m4_defn: undefined macro: _m4_divert_diversion
configure.ac:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1

A-ha. Thanks for that additional information. The problem is that any macro defined via AC_DEFUN includes a prologue that _requires_ that AC_INIT has already been called.

If you s/AC_DEFUN/m4_define/ in your my_init.m4 file, that should make the difference. The whole point of AC_DEFUN is that it allows macro dependency tracing, via things like AC_REQUIRE, but since you don't need to do any dependencies on EFL_INIT (that is, no one should be doing AC_REQUIRE([EFL_INIT]), it's overkill to use that. So, by using a plain-and-simple m4_define'd macro instead of an overboard AC_DEFUN'd macro, I think you can get further.

--
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux