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

Re: How to force configure script to use curl ?

From
Christian Couder <christian.couder@gmail.com>
Date
Feb 13, 2020, 10:07 UTC
Message-ID
<CAP8UFD3Xi_56qqiDstquHZ9i=RDF_ka7NJMniiw5cvcrV90oLA@mail.gmail.com>
In-Reply-To
<A0910AA2-D24B-4DF5-8D39-8E2D8B56955B@gmail.com>
Hi,

On Wed, Feb 12, 2020 at 11:09 PM Philippe Blain <levraiphilippeblain@gmail.com> wrote:

Show 17 quoted lines
> I was trying to build Git yesterday on a Ubuntu 14 machine that was missing the package "libcurl4-gnutls-dev" necessary to build the http(s) remote helper [1].
>
> Doing just
>
>     ./configure
>     make
>
> built Git without support for the http remote helper, as expected.
>
> However, doing
>
>     ./configure --with-curl
>     make
>
> did the same; it did not result in an error saying that the curl headers could not be found (which I expected).
>
> Is there a way to force the configure script to error out if it does not find curl (or any one of the optional dependencies that I happen to need for my build?)

Using the configure script is not needed. Building Git using just a make command can work.

You might want to try it and see if it fails as you expect when libcurl4-gnutls-dev is not installed.

In the top level Makefile you can see all the variables that can be set to customize the build.

These days the configure infrastructure is not as well maintained as the Makefile.

Best, Christian.

Previous: Philippe BlainNext: Jeff King
Message 2 of 6 in “How to force configure script to use curl ?”
  1. Philippe BlainFeb 12, 2020
  2. Christian CouderFeb 13, 2020
  3. Jeff KingFeb 14, 2020
  4. Junio C HamanoFeb 14, 2020
  5. Jeff KingFeb 14, 2020
  6. Philippe BlainFeb 14, 2020

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.