help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trouble with autotools/berkeley db


From: Andrei Voropaev
Subject: Re: trouble with autotools/berkeley db
Date: 15 Feb 2005 08:57:24 GMT
User-agent: slrn/0.9.8.1 (Linux)

On 2005-02-15, Lowell Kirsh <lkirsh@cs.ubc.ca> wrote:
> I don't know much about autotools or Berkeley db (bdb) but they are 
> being used by a program I'm trying to compile and it's causing me 
> problems. The line which is the culprit is in a configure.ac file and it's:
>
> AC_CHECK_LIB(db, db_create, ,AC_MSG_ERROR([Berkeley db library not found]))
>
> This is what ends up causing the configure script to fail. The thing is, 
> I am pretty sure I have the newest bdb installed on my system. I am able 
> to compile the following bdb-dependent file, which I would think is a 
> sign that I have bdb installed:
>
> #include <db.h>
> int main() { db_create(0,0,0); }
>
> So to test it out, I read an autotools tutorial and created a tiny 
> configure.ac file:
>
> AC_INIT(dbtest.c)
> AC_CHECK_LIB(db, db_create, ,AC_MSG_ERROR([Berkeley db library not found]))
>
> This generates a configure file which fails with the following message:
>
> checking for db_create in -ldb... no
> configure: error: Berkeley db library not found

Check config.log file. There it usually provides the command line, the
error from compiler and the program that was used for test compilation.
Usually this gives enough information to figure out why particular test
case fails.

-- 
Minds, like parachutes, function best when open


reply via email to

[Prev in Thread] Current Thread [Next in Thread]