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

Re: [PATCH 0/4] More tests for hand-written configure (resend)

From
Junio C Hamano <junkio@cox.net>
Date
Jul 7, 2006, 19:40 UTC
Message-ID
<7vhd1tw6dd.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060707162513.25746.57374.stgit@leonov.stosberg.net>
Dennis Stosberg <dennis@stosberg.net> writes:
> I noticed that the autoconf-based solution has replaced Pasky's
> scripts in the pu branch.  Has a final decision been made?

My preference has been to see both sides battle it out without forcing me to decide, but...

> I must admit that I'm less convinced today that a hand-written
> configuration script is better than I was yesterday when I started
> to write the tests.

... I started to share the same feeling after Pavel Roskin made a good point in "git on HP-UX" thread,

    http://thread.gmane.org/gmane.comp.version-control.git/23380/focus=23393

and then after seeing the messages in response to your patch that used `which` from yesterday.

Shell scripts generated by autoconf are almost unreadable, but the way how they detect features have been polished in the field for portability for a long time, and there is no point for us to spend time reinventing the wheel. The configure.ac files are often quite readable even when generated configure scripts are not.

So, I would not veto the use of autoconf, as long as configure stays as an _optional_ mechanism to manage config.mak.gen that is used by the main Makefile. The users for whom the configure script breaks for whatever reason can work it around by simply not using it, instead of having to debug either the unreadable configure or having to install autoconf and debug configure.ac just to build git.

The _optional_ is really the key word here. So "make clean" to clean autoconf intermediate files is good, "make realclean" to remove "configure" script generated from "configure.ac" is also good, but if "make rpm" by default runs "configure", then that is BAD and I would be very unhappy.

I could probably live with "make rpm-using-configure", though.
Previous: Dennis Stosberg
Message 6 of 6 in “More tests for hand-written configure (resend)”
  1. 0/4 More tests for hand-written configure (resend)Dennis Stosberg, Jul 7, 2006
  2. 1/4 configure: Add test for PerlDennis Stosberg, Jul 7, 2006
  3. 2/4 configure: Add test for PythonDennis Stosberg, Jul 7, 2006
  4. 3/4 configure: Try to figure out compiler optionsDennis Stosberg, Jul 7, 2006
  5. 4/4 configure: Fixes for SolarisDennis Stosberg, Jul 7, 2006
  6. Junio C HamanoJul 7, 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.