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

Re: svn-config

From: Kalle Olavi Niemitalo <kon_at_iki.fi>
Date: 2003-07-27 17:44:43 CEST

CÚdric Chabanois <cchabanois@ifrance.com> writes:

> ./svn-config: line 1: abs_srcdir: command not found
> -I/home/cedric/srcs/subversion-0.26.0/include -I/neon/src

That happens here too. It's caused by this line in svn-config:

INCLUDES="-I$(abs_srcdir)/neon/src -I/home/kalle/include -I/home/kalle/include/neon -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include -I/usr/include/xmltok"

In Make, $(abs_srcdir) is a variable substitution; but in the
shell, it tries to run abs_srcdir as a command.

The corresponding line in svn-config.in is:

INCLUDES="@SVN_NEON_INCLUDES@ @SVN_DB_INCLUDES@ @SVN_APR_INCLUDES@ @SVN_APRUTIL_INCLUDES@"

And in config.status:

s,@SVN_NEON_INCLUDES@,-I$(abs_srcdir)/neon/src -I/home/kalle/include -I/home/kalle/include/neon ,;t t

This comes from build/ac-macros/neon.m4:

          echo "Using neon found in source directory."
          SVN_NEON_INCLUDES=-'I$(abs_srcdir)/neon/src'
          NEON_LIBS="\$(abs_builddir)/neon/src/libneon.la"

I see two ways to fix the error.

a) Use ${abs_srcdir} rather than $(abs_srcdir). That means a
   variable substitution both in the shell and in Make.
   Then, change svn-config.in to define abs_srcdir.

b) Put the correct directory name directly in SVN_NEON_INCLUDES,
   at configure time.

Similar changes apply to $(abs_builddir) in NEON_LIBS.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 27 17:45:37 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.