Re: [PATCH] doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac.

2024-04-28 Thread Bruno Haible
Hi Collin,

> I also noticed some macros were missing from the gnulib-cache.m4 list
> starting at line 375.
> 
> Is it just out of date (git blame says ~2005)

Yes. I probably forgot that these macros were documented, when adding
extensions later.

> If it is the first case I can add them later
> today while the gnulib-tool knowledge is still in my brain. :)

Yes, please!

Bruno






Re: [PATCH] doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac.

2024-04-28 Thread Collin Funk
Hi Bruno,

On 4/28/24 5:02 AM, Bruno Haible wrote:
>> +* doc/gnulib-tool.texi (Initial import): Update the example gnulib-tool
>> +invocation. Document the use of AC_CONFIG_MACRO_DIRS as an alternative
>> +to ACLOCAL_AMFLAGS.
> Thanks.

I also noticed some macros were missing from the gnulib-cache.m4 list
starting at line 375.

Is it just out of date (git blame says ~2005) or was there a reason
for not adding the rest? If it is the first case I can add them later
today while the gnulib-tool knowledge is still in my brain. :)

Collin



Re: [PATCH] doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac.

2024-04-28 Thread Bruno Haible
> + * doc/gnulib-tool.texi (Initial import): Update the example gnulib-tool
> + invocation. Document the use of AC_CONFIG_MACRO_DIRS as an alternative
> + to ACLOCAL_AMFLAGS.

Thanks.






[PATCH] doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac.

2024-04-28 Thread Collin Funk
Document the following gnulib-tool change:
2021-12-19  Bruno Haible  
gnulib-tool: Don't insist on ACLOCAL_AMFLAGS.

* doc/gnulib-tool.texi (Initial import): Update the example gnulib-tool
invocation. Document the use of AC_CONFIG_MACRO_DIRS as an alternative
to ACLOCAL_AMFLAGS.
---
 ChangeLog| 10 ++
 doc/gnulib-tool.texi |  8 
 2 files changed, 18 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 5948faf102..137830499a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-04-28  Collin Funk  
+
+   doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac.
+   Document the following gnulib-tool change:
+   2021-12-19  Bruno Haible  
+   gnulib-tool: Don't insist on ACLOCAL_AMFLAGS.
+   * doc/gnulib-tool.texi (Initial import): Update the example gnulib-tool
+   invocation. Document the use of AC_CONFIG_MACRO_DIRS as an alternative
+   to ACLOCAL_AMFLAGS.
+
 2024-04-28  Bruno Haible  
 
bootstrap: Support checking out a recent GNULIB_REVISION, part 2.
diff --git a/doc/gnulib-tool.texi b/doc/gnulib-tool.texi
index 0eb3b247e2..1a34673eb2 100644
--- a/doc/gnulib-tool.texi
+++ b/doc/gnulib-tool.texi
@@ -156,6 +156,7 @@ @node Initial import
   - add "lib/Makefile" to AC_CONFIG_FILES in ./configure.ac,
   - mention "lib" in SUBDIRS in Makefile.am,
   - mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am,
+or add an AC_CONFIG_MACRO_DIRS([m4]) invocation in ./configure.ac,
   - invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC,
   - invoke gl_INIT in ./configure.ac.
 ~/src/libfoo$
@@ -223,6 +224,13 @@ @node Initial import
 ACLOCAL_AMFLAGS = -I m4
 @end example
 
+Alternatively, add an @code{AC_CONFIG_MACRO_DIRS} invocation in your
+@file{configure.ac} file, as in:
+
+@example
+AC_CONFIG_MACRO_DIRS([m4])
+@end example
+
 You are now ready to call the M4 macros in @code{gnulib-comp.m4} from
 @file{configure.ac}.  The macro @code{gl_EARLY} must be called as soon
 as possible after verifying that the C compiler is working.
-- 
2.44.0