You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Branko Čibej <br...@xbc.nu> on 2002/11/30 15:03:50 UTC

Re: svn commit: rev 3937 - trunk/ac-helpers

kraai@tigris.org wrote:

>Author: kraai
>Date: 2002-11-30 02:17:37 -0600 (Sat, 30 Nov 2002)
>New Revision: 3937
>
>Modified:
>   trunk/ac-helpers/berkeley-db.m4
>Log:
>* ac-helpers/berkeley-db.m4
>  (SVN_LIB_BERKELEY_DB): Extract major and minor version for local
>  Berkeley DB build.
>
>
>Modified: trunk/ac-helpers/berkeley-db.m4
>==============================================================================
>--- trunk/ac-helpers/berkeley-db.m4	(original)
>+++ trunk/ac-helpers/berkeley-db.m4	Sat Nov 30 02:17:37 2002
>@@ -105,7 +105,9 @@
>     # Linking directly to the .la is broken with --disable-shared
>     # because Berkeley db does not seem to generate a .la library.
>     if test "$enable_shared" = "yes"; then
>-        SVN_DB_LIBS="$dbdir/libdb-4.0.la"
>+	DB_VERSION_MAJOR=`sed -n s/DB_VERSION_MAJOR=//p db/dist/RELEASE`
>+	DB_VERSION_MINOR=`sed -n s/DB_VERSION_MINOR=//p db/dist/RELEASE`
>+	SVN_DB_LIBS="$dbdir/libdb-$DB_VERSION_MAJOR.$DB_VERSION_MINOR.la"
>
Should we really parse the version number from db/dist/RELEASE? wouldn't
db.h be a better place?

Oh, and please lose the tabs. We don't use tabs in sources.

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org