cURL / Mailing Lists / curl-library / Single Mail


linking/using libcurl in apps: curl-config

From: Daniel Stenberg <>
Date: Tue, 17 Apr 2001 16:30:05 +0200 (MET DST)

Hey libcurlers

In the same style as many other libs, I created a 'curl-config' tool today to
help applications to find/detect libcurl information. (It's in the CVS

curl-config is a tiny tool (shell script) that'll get installed on 'make
install' and that can be invoked with a few simple options in order to
extract information.

The information curl-config provides is meant to ease the use of libcurl.
Applications could typically invoke it to get to know which flags they need
to link with libcurl or which libcurl version that is currently installed.

A few example outputs:

% curl-config --prefix

% curl-config --version
libcurl 7.7.1

% curl-config --libs
-L/home/dast/athena/lib -L/usr/local/ssl/lib -lssl -lcrypto -lkrb -ldes
-lresolv -ldl -lsocket -lnsl

The curl-config is automatically generated by configure on build-time.

Is there anything else you think applications will need to know?

  Daniel Stenberg -- curl project maintainer --
Curl-library mailing list
Received on 2001-04-17