curl-library
Re: [PATCH] add support for pkg-config detection of libidn
Date: Tue, 29 Nov 2011 10:31:07 +0100
>> I fully agree to what you say here
>
> I do too. Let's work on getting rid of PKG_CHECK_MODULES again.
>
Hi,
Sorry for causing trouble. I modeled the patch on the way gnutls 3.0.8
does it, so I didn't anticipate that this would cause trouble for curl
builders.
Searching CURL_CHECK_PKGCONFIG in configure.ac turns up several places
where pkg-config is used These probably model the pattern you would like
to see used, but I would like to ask for confirmation of this. It's
rather verbose, especially compared to PKG_CHECK_MODULES and there is a
lot of repeated logic. I would almost suggest implementing something
like PKG_CHECK_MODULES to tidy this up, but then it already exists! In
the real world the best option might be just to repeat the logic again
for libidn. What is your view?
[..]
>> Up to now libcurl configure script could be 'bootstrapped' on systems
>> which lacked pkg-config support or did not want to have it installed
>> due to other problems it carries along (lack of cross-compilation
>> support, lack of multi-ABI support, unexpected reordering of libraries)
>>
[..]
> ..what do you mean with 'lack of cross-compilation support' ? Provided
> that you use the host pkg-config (means prefix the same as the
> compiler and other tools) it should work, no?
> With the newer mingw cross compilers it seems to me that it works ...
Funny that you mention this. I wrote the patch to help mingw-cross-env
[1]. This is a cross-compiling environment featuring static linking.
Pkg-config is especially useful to provide the static dependencies of
libidn.
Mark
[1] http://mingw-cross-env.nongnu.org/
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-29