git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] configure.ac: move the private git m4 macro to a dedicated directory

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 9, 2013, 16:51 UTC
Message-ID
<7v61ve7qpk.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1376059045-14866-1-git-send-email-gitter.spiros@gmail.com>
Elia Pinto <gitter.spiros@gmail.com> writes:
Show 26 quoted lines
> Git use, as many project that use autoconf, private m4 macros.
>
> When not using automake, and just relying on autoconf, the macro
> files are not picked up by default.
>
> A possibility, as git do today, is to put the private m4 macro
> in the configure.ac file, so they will copied over  the final configure
> when calling autoreconf(that call also autocon). But this makes configure.ac difficult
> to read and maintain, especially if you want to introduce new macros later.
>
> Starting from version 2.58, autoconf provide the macro AC_CONFIG_MACRO_DIR
> to declare where additional macro files are to be put and found.
> The argument passed to this macro is commonly m4.
>
> This macro, for the longest time, has been used only by libtool
> starting from version 2.0, to identify where to copy its own macro files
> when using libtoolize --copy.
>
> Starting from version 1.13, automake augments autoconf with a macro
> called AC_CONFIG_MACRO_DIRS, that provides a space-separated list
> of directories to use for looking up m4 files.
> The same macro will be available as part of autoconf 2.70,
> actually in development. Anyway also this version permit
> to use AC_CONFIG_MACRO_DIR and not need automake.
>
> Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>

That explains why you created a separate directory to for the new file and why you needed to use AC_CONFIG_MACRO_DIR while doing so.

But in the above explanation, I fail to see the reason why we would want to create that new file out of the existing file, only to include it in the original file.

Why is it needed?  Why is it a good idea?
Previous: Elia PintoNext: Elia Pinto
Message 2 of 3 in “configure.ac: move the private git m4 macro to a dedicated directory”
  1. configure.ac: move the private git m4 macro to a dedicated directoryElia Pinto, Aug 9, 2013
  2. Junio C HamanoAug 9, 2013
  3. Elia PintoAug 9, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.