automake
[Top][All Lists]
Advanced

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

Re: suggestions about AC_CONFIG_MACRO_DIR


From: Braden McDaniel
Subject: Re: suggestions about AC_CONFIG_MACRO_DIR
Date: Tue, 21 Apr 2009 14:30:27 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2

On 4/21/09 1:35 PM, Lorenzo Bettini wrote:
Hi

I started adding some m4 macros to my program, that I put in the m4
directory in my sources, and that will be installed during the make
install.

I then added

aclocaldir = $(datadir)/aclocal
aclocal_DATA = ax_boost_base.m4 ax_boost_regex.m4

Unless you're Boost, you shouldn't be installing these.

in the m4/Makefile.am

and

ACLOCAL_AMFLAGS = -I m4

And, BTW, setting ACLOCAL_AMFLAGS as such seems to be sufficient for telling recent automake to pull the macros in that directory into the distribution.

in the root Makefile.am (together with m4 in subdirs).

Now, if I run autoreconf, it will install the .m4 files related to
libtool in my m4 directory:

[snip]

is it a good thing? Or would it be better to keep these macros in a
different directory? In that case I should pass
AC_CONFIG_MACRO_DIR([other value?]).
What is the most used convention about this?

I put them all in the same place.  I think that's common.

--
Braden McDaniel                      e-mail: <address@hidden>
<http://endoframe.com>               Jabber: <address@hidden>




reply via email to

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