cURL / Mailing Lists / curl-library / Single Mail

curl-library

Overwriting PKGCONFIG when building curl

From: Rainer Jung <rainer.jung_at_kippdata.de>
Date: Sat, 10 Oct 2015 18:31:53 +0200

Hi there,

the acinclude.m4 file contains the macro CURL_CHECK_PKGCONFIG to check
for installed libraries. The macro also searches for the pkg-config to
use by calling

AC_PATH_TOOL( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)

Before calling AC_PATH_TOOL, the macro explicitly sets

PKGCONFIG="no"

That means a user can not overwrite the result of AC_PATH_TOOL by simply
setting PKGCONFIG. I think such an overwrite feature is common, and I
don't see a good reason for the

PKGCONFIG="no"

line. You might want to simply remove it.

Currently the only way to use a special pkg-config is either using the
PATH - which might draw in many mire unwanted binaries, or set
ac_cv_path_PKGCONFIG, which is likely beyond knowledge of most builders.

Regards,

Rainer
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-10-10