[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion 1.7.4 should use pkg-config for sqlite3 libraries

From: Alan Hourihane <alanh_at_fairlite.co.uk>
Date: Wed, 25 Apr 2012 23:41:24 +0100

On 04/25/12 23:34, Philip Martin wrote:
> Alan <alanh_at_fairlite.co.uk> writes:
>
>> It seems that subversion just tries linking explicitly with -lsqlite3
>> during configure, yet sqlite3 itself may be linked against other
>> libraries which need to be pulled in. And this can fail on some systems.
>>
>> The configure script should use "pkg-config --libs sqlite3" to obtain a
>> list of libraries.
> Subversion does use pkg-config after first trying /usr. Are you saying
> this does not work? If I temporarily remove the library from /usr I see
>
> configure: checking sqlite library
> checking sqlite amalgamation... no
> checking sqlite3.h usability... yes
> checking sqlite3.h presence... yes
> checking for sqlite3.h... yes
> checking sqlite library version (via header)... okay
> checking for sqlite3_close in -lsqlite3... no
> checking sqlite library version (via pkg-config)... 3.7.10
>
>

Yes, it doesn't work as you are checking /usr first, yet it should be
pkg-config first (or only)....

This is what I get....

configure: checking sqlite library
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking sqlite library version (via header)... okay
checking for sqlite3_close in -lsqlite3... no
configure: WARNING: no suitable sqlite found in /usr

Because the check for sqlite3_close in -lsqlite3 fails as it doesn't
have the extra libraries available to link the test case.

Alan.
Received on 2012-04-26 00:42:14 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.