apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Purpose of defined APU_HAVE_XXX-DBD in apu.h for dso build
Date Wed, 12 Nov 2008 22:47:41 GMT
On Wed, 2008-11-12 at 15:45 +0100, Mladen Turk wrote:

> If the dbd module is compiled with
> APU_DSO_BUILD it is still defined inside apu.h
> which is IMHO wrong.
> 
> For example
> #define APU_HAVE_SQLITE3 1
> is present although the apr_dbd_sqlite3 module
> was build.
> 
> I was under perception that this should be
> defined only if --disable-util-dso is used
> during configure.

If you don't define those things, your drivers will contain nothing. We
have code like this:

#if APU_HAVE_SQLITE3
<sqlite3 driver code>
#endif

What did you have in mind?

-- 
Bojan


Mime
View raw message