Re: aclocal or acinclude?

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

 



Tim Dennis wrote:
> Hi Peter,
> 
>> Tim Dennis wrote:
>>> Hi John,
>>>
>>>> In the autoconf manual in Chapter 3, page 5 it states:
>>>>
>>>> ... If you write your own feature tests to supplement those that come
>>>> with Autoconf, you might also write files called ‘aclocal.m4’ and
>>>> ‘acsite.m4’...
>>>>
>>>> I understand acsite.m4, but I thought aclocal.m4 was *generated* by the
>>>> aclocal program, not written by the user. I was under the impression
>>>> that you were supposed to write project-specific macro in a file called
>>>> acinclude.m4 (which the manual doesn't mention at all).
>>> I was recently puzzling over this very question myself. In the end I
>>> just
>>> created acsite.m4 and put the macro there. It seemed to work fine for
>>> me,
>>> but more experienced users likely will have a better answer.
>> It all depends on if you are using autoconf in combination with automake
>> or not. If you use automake, or use its aclocal to generate aclocal.m4,
>> then you can put your own macros in acinclude.m4. The aclocal program
>> will m4_include acinclude.m4 at the end of the generated aclocal.m4.
>>
>> autoconf itself knows nothing about acinclude.m4.
>>
> 
> So then is it fair to say that acinclude.m4 is not deprecated? The on-line
> autoconf manual does not mention this file, only aclocal.m4 and acsite.m4.
> Tim
> 

No, see the automake manual
http://www.gnu.org/software/automake/manual/automake.html#Examples

Peter
-- 
Peter O'Gorman
http://pogma.com


_______________________________________________
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