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

First steps towards neon 0.8.0

From: Mo DeJong <mdejong_at_cygnus.com>
Date: 2000-12-16 07:21:43 CET

Hello.

Attached is a little patch that fixes the first (of 2)
build problems with the 0.8.0 release of neon.

Mo DeJong
Red Hat Inc

Index: configure.in
===================================================================
RCS file: /cvs/subversion/configure.in,v
retrieving revision 1.44
diff -u -r1.44 configure.in
--- configure.in 2000/11/26 15:20:15 1.44
+++ configure.in 2000/12/16 06:15:09
@@ -118,6 +124,24 @@
 dnl svn_error's default warning handler uses vfprintf()
 AC_FUNC_VPRINTF
 
+dnl neon renamed hip_xml_add_handler to hip_xml_push_handler after 0.7.7
+
+AC_CACHE_CHECK(for hip_xml_push_handler function in neon,
+ac_cv_have_hip_xml_push_handler, [
+ CPPFLAGS_saved=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I${srcdir}/neon/src"
+ AC_EGREP_HEADER(hip_xml_push_handler,
+ [hip_xml.h],
+ ac_cv_have_hip_xml_push_handler=yes,
+ ac_cv_have_hip_xml_push_handler=no
+ )
+ CPPFLAGS=$CPPFLAGS_saved
+])
+
+if test "x$ac_cv_have_hip_xml_push_handler" = "xyes" ; then
+ AC_DEFINE(HAVE_HIP_XML_PUSH_HANDLER, 1,
+ [hip_xml_add_handler was renamed to hip_xml_push_handler after neon 0.7.7])
+fi
 
 dnl Process some configuration options ----------
 
Index: subversion/libsvn_ra_dav/fetch.c
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_ra_dav/fetch.c,v
retrieving revision 1.26
diff -u -r1.26 fetch.c
--- subversion/libsvn_ra_dav/fetch.c 2000/12/01 04:25:25 1.26
+++ subversion/libsvn_ra_dav/fetch.c 2000/12/16 06:15:10
@@ -31,6 +31,7 @@
 #include "svn_delta.h"
 #include "svn_ra.h"
 #include "svn_path.h"
+#include "config.h"
 
 #include "ra_dav.h"
 
@@ -313,7 +314,12 @@
   dav_propfind_set_resource_handlers(fc->dph, start_resource, end_resource);
   hip = dav_propfind_get_parser(fc->dph);
 
- hip_xml_add_handler(hip, fetch_elems,
+#ifndef HAVE_HIP_XML_PUSH_HANDLER
+ hip_xml_add_handler(
+#else
+ hip_xml_push_handler(
+#endif
+ hip, fetch_elems,
                       validate_element, start_element, end_element, fc);
 
   if (fc->activity_href == NULL)
Received on Sat Oct 21 14:36:17 2006

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.