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

messed up APR location...

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-05-28 19:04:03 CEST

Ever since revision 1922, Karl and I have been having problems linking
svn (on Debian and FreeBSD). I don't think this patch was wrong, but
somehow it exposed a deeper bug.

The problem we're having: if we're building statically (passing
nothing but --disable-shared to ./configure), then somehow we end up
compiling and linking against the installed libapr within
/usr/local/apache2. This is definitely wrong: if no --with-apr switch
is given, then ./configure should always search *within* our svn
working copy for an apr tree (or library) first, then search in
external locations.

Revision 1922 simply adds /usr/local/apache2 to the list of locations
to search, no big deal:

rev 1922: kevin | Thu 9 May 2002 21:51:51 | 6 lines

Look in /usr/local/apache2 for apr and apr-util by default, since they are the
default install locations for httpd.

This allows people to just build and install httpd, then have svn's configure
find apr and apr-util automatically.

Index: ac-helpers/find_apr.m4
===================================================================
--- ac-helpers/find_apr.m4
+++ tmp.28964.00001 Tue May 28 11:53:17 2002
@@ -77,7 +77,7 @@
       apr_config="apr-config"
     else
       dnl look in some standard places (apparently not in builtin/default)
- for lookdir in /usr /usr/local /opt/apr ; do
+ for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
         if $TEST_X "$lookdir/bin/apr-config"; then
           apr_found="yes"
           apr_config="$lookdir/bin/apr-config"

Index: ac-helpers/find_apu.m4
===================================================================
--- ac-helpers/find_apu.m4
+++ tmp.28964.00001 Tue May 28 11:53:17 2002
@@ -75,7 +75,7 @@
       apu_config="apu-config"
     else
       dnl look in the some standard places (apparently not in builtin/default)
- for lookdir in /usr /usr/local /opt/apr ; do
+ for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
         if test -x "$lookdir/bin/apu-config"; then
           apu_found="yes"
           apu_config="$lookdir/bin/apu-config"

I think our m4 script is just wrong. It's looking within the bundled
apr source directory *after* the paths above are searched. Can
someone who understands our build system comment on my analysis?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 28 19:07:23 2002

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