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

Re: subversion configure defaults -- please disable --with-apache and --with-apxs by default!

From: Stuart Levy <slevy_at_ncsa.uiuc.edu>
Date: 2007-05-05 23:40:52 CEST

On Sat, May 05, 2007 at 12:00:52PM -0400, Mark Phippard wrote:
> On 5/2/07, Stuart Levy <slevy@ncsa.uiuc.edu> wrote:
> >Hello subversion developers,
> >
> >I recently installed subversion-1.4.3 in the routine way suggested
> >in its installation documentation -- build the dependent libraries,
> >configure with them, make, make install.
> >
> >I expected that it would only change things beneath the prefix directory.
> >
> >However, even though I didn't care about or specify any
> >apache-specific options, they were set by default. So
> >"make install" installed a bunch of things under $prefix as expected,
> >but *also* invoked apxs to add two svn-related Apache modules
> >to the running system's web server configuration, which I didn't
> >expect.
> What was the configure command you ran? Just configure with no
> options? I tend to run it with just --with-ssl --enable-javahl
> --prefix=/usr/local/svn-trunk and I have never had it do this. Maybe
> it has something to do with what it can find though.
> --
> Thanks
> Mark Phippard
> http://markphip.blogspot.com/

Righto, I had just said this:

 ./configure --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config

Since Apache (2.0.52-28.ent.centos4) was installed on the system,
it looks as though the SVN_FIND_APACHE macro successfully
found "apxs" and used it. Digging a bit, it appears that a way to do
what I'm suggesting would be simply to *omit* the following code:
in "build/ac-macros/svn-apache.m4" lines 77-88,
it searches for "apxs" and "apxs2" if no --with-apache nor --with-apxs
configure option was given explicitly:

    if test -z "$BINNAME" && test -z "$APXS"; then
      for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do
        if test -f "$i/apxs2"; then
        if test -f "$i/apxs"; then

(Of course, if you configure subversion on a system without apache
installed, it won't find apxs, and will silently just not use it.
Probably this is the case for most people installing this software.)

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 5 23:41:24 2007

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