[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: best aclocal include practice wanted
From: |
Andreas Schwab |
Subject: |
Re: best aclocal include practice wanted |
Date: |
Sat, 04 Mar 2006 22:52:04 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
Thomas Porschberg <address@hidden> writes:
> what is the recommended way to include project-written m4 macros ?
Many projects use a directory named m4, but there is no common convention.
> I include the macros in <project-root>/config/m4
> and call in autogen.sh "aclocal -I config/m4"
>
> The config directory itself is configured in configure.ac
> with AC_CONFIG_AUX_DIR(config).
This macro is unrelated to the placement of the input files for aclocal.
> Is there something wrong with this approach ?
No.
> What could be done better ?
> How should autoreconf find the m4-macros in such a case ?
Add this line to the toplevel Makefile.am:
ACLOCAL_AMFLAGS = -I config/m4
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."