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

Re: [PATCH]: --with-neon switch should ignore neon/ subdir.

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-04-15 18:12:03 CEST

David Kimdon <dwhedon@debian.org> writes:
> The included patch makes subversion's neon configuration behave in a
> more obvious way. The current behavior is odd given that subversion
> release tarballs include a neon/ subdir. At present if one wants to
> use the system's neon then the neon/ subdir must be deleted from the
> source tree. As the Debian package maintainer I would rather make
> fewer changes to the pristine upstream source. This patch allows the
> user to ignore the neon/ subdir by passing the --with-neon switch to
> configure.

Based on the above description, the log message, and the new dnl
comment in the code, I infer that `--with-neon' will cause a
$srcdir/neon subdirectory to be ignored even if no value is passed to
`--with-neon'. (It's not clear to me from the actual code what will
happen, though, so maybe I'm wrong?)

Anyway, if that's true, it seems a bit counterintuitive. Certainly
--with-neon=FOO should cause svn to find neon in FOO, but what should
--with-neon alone mean? Hmmm...

-K

> * ac-helpers/neon.m4 (SVN_LIB_NEON): During configure if
> --with-neon option is passed ignore any neon/ subdir in
> the source tree.
>
> Index: ./neon.m4
> ===================================================================
> --- ./neon.m4
> +++ ./neon.m4 Mon Apr 15 07:09:46 2002
> @@ -5,15 +5,16 @@
> dnl to match versions of Neon that can be used. latest_working_ver
> dnl is the latest version of neon that can be used, which is not
> dnl necessarily the latest released version of neon that exists.
> -dnl can be used. url is the URL of the latest version of Neon.
> +dnl url is the URL of the latest version of Neon.
> dnl
> -dnl If there is a neon/ subdir we assume we want to use it.
> -dnl If the subdir is the wrong version we exit with a failure
> -dnl regardless if neon is installed somewhere else on the system.
> +dnl If a --with-neon[=ARG] option is passed search for a suitable
> +dnl neon installed on the system [as indicated by ARG]. In this case
> +dnl ignore any neon/ subdir within the source tree.
> dnl
> -dnl If there isn't a neon/ subdir then we look for 'neon-config'
> -dnl in PATH (or the location specified by a --with-neon=PATH
> -dnl switch).
> +dnl If no --with-neon option is passed look first for a neon/ subdir.
> +dnl If a neon/ subdir exists and is the wrong version exit with a
> +dnl failure. If no neon/ subdir is present search for a neon installed
> +dnl on the system.
>
> AC_DEFUN(SVN_LIB_NEON,
> [
> @@ -30,18 +31,13 @@
> in a subdirectory of the top source directory and then to
> look for neon-config in $PATH.])],
> [
> - if test -d $abs_srcdir/neon ; then
> - AC_MSG_ERROR([--with-neon option but neon/ subdir exists.
> -Please either remove that subdir or don't use the --with-neon option.])
> + if test "$withval" = "yes" ; then
> + AC_PATH_PROG(neon_config,neon-config)
> else
> - if test "$withval" = "yes" ; then
> - AC_PATH_PROG(neon_config,neon-config)
> - else
> - neon_config="$withval/bin/neon-config"
> - fi
> -
> - SVN_NEON_CONFIG()
> + neon_config="$withval/bin/neon-config"
> fi
> +
> + SVN_NEON_CONFIG()
> ],
> [
> if test -d $abs_srcdir/neon ; then
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 15 18:08:06 2002

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.