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

Re: [RFC PATCH] Makefile: Turn off the configure target by default

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 11, 2010, 08:39 UTC
Message-ID
<201010111039.59779.jnareb@gmail.com>
In-Reply-To
<AANLkTikGSj-x4hk7NFysWETuR80=REZ81Qy8Zu3Pks-L@mail.gmail.com>
On Mon, 11 Oct 2010, Ævar Arnfjörð Bjarmason wrote:
> On Mon, Oct 11, 2010 at 07:47, Michael J Gruber
> <git@drmicha.warpmail.net> wrote:
> 
> (CC-ing Jakub Narebski, who maintains configure.ac)

I wouldn't say that I maintain it. I was one of people who started it, and I try to keep it from being too bitrotten, by asking to provide configure test when adding new configure knob to main Makefile.

I am certainly not an expert on autoconf.
Show 16 quoted lines
> I don't like it. For one this would break build scripts that use `make
> configure && ./configure && ...`. It's also annoying to have to set
> some variable to *really* invoke a target that I just indicated I
> *really* wanted by invoking it in the first place.
> 
> Perhaps a @echo from the configure script itself indicating that it's
> complimentary would be better.
> 
> > For most software packages, untar-autoconf/make configure-configure-make
> > is the preferred way to build the package; not so for Git. But the
> > presence of the make target makes people believe so.
> 
> Unlike in most packages autoconf is strictly complimentary for Git,
> but it usually gives you much better results. Instead of the Makefile
> guessing based on `uname -s` we actually check for features and set
> the config.mak.autogen variables accordingly.
That's why we have it, to be able to check for features, rather than
guess based on operating system and its version.
 
> So it's less likely to break on odd systems, and given that (as you
> point out) mostly everyone has autoconf already recommending it as the
> default would make more sense than the other way around.

But thanks to having ./configure optional step, we can build git also on platforms that doesn't have autoconf installed (though the same could be achieved by bundling ./configure script with release tarballs).

> >    On an annecdotical note: When I decided to switch to a dvcs, I failed building
> >    Git (with configure) and tried out hg instead. Imagine!
> 
> What sort of failure? Has it been fixed since then?
-- 
Jakub Narebski
Poland
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 3 of 14 in “Makefile: Turn off the configure target by default”
  1. Makefile: Turn off the configure target by defaultMichael J Gruber, Oct 11, 2010
  2. Ævar Arnfjörð BjarmasonOct 11, 2010
  3. Jakub NarebskiOct 11, 2010
  4. Ævar Arnfjörð BjarmasonOct 11, 2010
  5. Michael J GruberOct 11, 2010
  6. Makefile: point out "make" if "make configure" failsÆvar Arnfjörð Bjarmason, Oct 11, 2010
  7. Jakub NarebskiOct 11, 2010
  8. Sverre RabbelierOct 11, 2010
  9. Jakub NarebskiOct 11, 2010
  10. Michael J GruberOct 11, 2010
  11. Ævar Arnfjörð BjarmasonOct 11, 2010
  12. Jonathan NiederOct 11, 2010
  13. Michael J GruberOct 12, 2010
  14. Tor ArntsenOct 12, 2010

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.