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

[PATCH] add --db-version/header/lib to apr-2-config for Subversion

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 21 Jun 2011 17:38:26 +0100

"C. Michael Pilato" <cmpilato_at_collab.net> writes:

> I'd be interested in knowing why the --db-version parameter was
> dropped. In the absence of a solid reason, I think APR should be
> changed to support as much.

The following patch adds --db-version, --db-header and --db-lib to
apr-2-config. I haven't tried to adapt Subversion yet.

Index: apr-config.in
===================================================================
--- apr-config.in (revision 1137909)
+++ apr-config.in (working copy)
@@ -44,6 +44,9 @@
 APR_SO_EXT="@so_ext@"
 APR_LIB_TARGET="@export_lib_target@"
 APR_LIBNAME="@APR_LIBNAME@"
+APU_DB_VERSION="@apu_db_version@"
+APU_DB_HEADER="@apu_db_header@"
+APU_DB_LIB="@apu_db_lib@"
 
 # NOTE: the following line is modified during 'make install': alter with care!
 location=@APR_CONFIG_LOCATION@
@@ -230,6 +233,18 @@
     fi
     exit 0
     ;;
+ --db-version)
+ echo $APU_DB_VERSION
+ exit 0
+ ;;
+ --db-header)
+ echo $APU_DB_HEADER
+ exit 0
+ ;;
+ --db-lib)
+ echo $APU_DB_LIB
+ exit 0
+ ;;
     --help)
     show_usage
     exit 0
Index: build/dbm.m4
===================================================================
--- build/dbm.m4 (revision 1137909)
+++ build/dbm.m4 (working copy)
@@ -1004,6 +1004,7 @@
   AC_SUBST(apu_have_gdbm)
   AC_SUBST(apu_have_ndbm)
   AC_SUBST(apu_have_db)
+ AC_SUBST(apu_db_lib)
   AC_SUBST(apu_db_header)
   AC_SUBST(apu_db_version)
 

-- 
Philip
Received on 2011-06-21 18:39:04 CEST

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.