On Sat, 2006-19-08 at 10:18 -0300, Davi Arnaut wrote:
> Em 19/08/2006, às 07:55, Mladen Turk escreveu:
> 
> > Hi,
> >
> > Anyone knows how to detect the mpm used so that
> > module can be build with/without threading code
> > depending if the mpm is prefork or any other threaded
> > one like worker by using apxs?
> 
> Why use apxs ?

or if you've already compiled it ...

$ /usr/sbin/apache2 -V | grep MPM
 -D APACHE_MPM_DIR="server/mpm/worker"


> 
> mpm.h:
> 
> #define WORKER_MPM
> #define MPM_NAME "Worker"

I thought he must already know this ...

> 
> >
> > The only way I can imagine is to parse the stdout from
> > httpd, but IMHO something like
> > apxs -q MPM should do the trick like it does for CFLAGS
> > or INCLUDES.
> >
> > Regards,
> > Mladen.
> 

-- 
--gh


Reply via email to