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

Re: [PATCH] autoconf: Use autoconf to write installation directories to config.mak

From
Junio C Hamano <junkio@cox.net>
Date
Jun 29, 2006, 18:23 UTC
Message-ID
<7vr717rfbw.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<E1FvvuX-0002Lr-Nt@moooo.ath.cx>
Matthias Lederhofer <matled@gmx.net> writes:
Show 16 quoted lines
>> This is beginning of patch series introducing installation configuration
>> using autoconf (and no other autotools) to git. The idea is to generate
>> config.mak using ./configure (generated from configure.ac) from
>> config.mak.in, so one can use autoconf as an _alternative_ to ordinary
>> Makefile, and creating one's own config.mak.
>
> Are you sure this should be named config.mak? From INSTALL:
>> You can place local settings in config.mak and the Makefile
>> will include them.  Note that config.mak is not distributed;
>> the name is reserved for local settings.
>
> So with another filename either include it
> - before config.mak: the user may override ./configure options with
>   config.mak
> - after config.mak: ./configure overrides config.mak
> At least do not overwrite config.mak if it exists.

Think of it as an incredibly smart editor that you can use to edit your config.mak. As far as I understand it, this is an "opt-in" way for you to manage config.mak without editing it yourself, so I do not have much objections to the series in principle.

I think it is fair to say that autoconf is not so bad compared to its worse friends, but I am biased -- I used to deal with autoconf quite a lot in old days (before there were automake nor libtool), and my own changes to autoconf might still be surviving in a few .m4 files but I doubt it it was so long ago.

Having said that, I am skeptical how well we can keep this contained only to config.mak and keep it "opt-in", so I am not enthused to have this series at the toplevel of the tree.

It would have been a bit easier to swallow if this whole machinery to build config.mk were somewhere under contrib/ (say in contrib/autoconf), with an instruction to make an "opt-in" symlink "ln -s contrib/autoconf/config.mk config.mk" for people who want to use it in the toplevel INSTALL file, perhaps.

The one that touches the Makefile to propagate some variables down to submakes is probably a desirable change but that is pretty much independent from the series.

Previous: Jakub NarebskiNext: Jakub Narebski
Message 27 of 30 in “autoconf: Use autoconf to write installation directories to config.mak”
  1. autoconf: Use autoconf to write installation directories to config.makJakub Narebski, Jun 29, 2006
  2. Uwe ZeisbergerJun 29, 2006
  3. autoconf: Use autoconf to check for libraries: openssl/crypto, curl, expatJakub Narebski, Jun 29, 2006
  4. autoconf: Use autoconf to check for some types and library functionsJakub Narebski, Jun 29, 2006
  5. autoconf: Cleanup generation of config.mak.append by ./configureJakub Narebski, Jun 29, 2006
  6. Allow INSTALL, bindir, mandir to be set in main MakefileJakub Narebski, Jun 29, 2006
  7. autoconf: Set mandir in config.mak.in and export variables not in MakefileJakub Narebski, Jun 29, 2006
  8. autoconf: configure.ac uses variables to set in, out and temp filesJakub Narebski, Jun 30, 2006
  9. autoconf: ./configure script outputs to config.mac.autoJakub Narebski, Jun 30, 2006
  10. autoconf: Cleanup generation of temporary "append" fileJakub Narebski, Jun 30, 2006
  11. autoconf: Write how to use ./configure generated file in git build processJakub Narebski, Jun 30, 2006
  12. autoconf: Rename ./configure output file to config.mak.autogenJakub Narebski, Jun 30, 2006
  13. Revert "autoconf: Write how to use ./configure generated file in git build process"Jakub Narebski, Jun 30, 2006
  14. autoconf: Append '-include config.mak.autogen' to config.mak if it is not presentJakub Narebski, Jun 30, 2006
  15. Jakub NarebskiJun 30, 2006
  16. autoconf: Added --with/--without for openssl, curl, expat to ./configureJakub Narebski, Jun 30, 2006
  17. Pavel RoskinJun 30, 2006
  18. Jakub NarebskiJun 30, 2006
  19. Jakub NarebskiJun 30, 2006
  20. Junio C HamanoJun 29, 2006
  21. Jakub NarebskiJun 29, 2006
  22. Matthias LederhoferJun 29, 2006
  23. Jakub NarebskiJun 29, 2006
  24. Andreas EricssonJun 30, 2006
  25. Jakub NarebskiJun 30, 2006
  26. Jakub NarebskiJul 1, 2006
  27. Junio C HamanoJun 29, 2006
  28. Jakub NarebskiJul 1, 2006
  29. Pavel RoskinJul 8, 2006
  30. Jakub NarebskiJul 1, 2006

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.