apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <phi...@codematters.co.uk>
Subject Re: [PATCH] allow apr-util to detect Debian's db4.0
Date Tue, 17 Dec 2002 21:58:01 GMT
Justin Erenkrantz <jerenkrantz@apache.org> writes:

> > Look for the symbol db_create_4000 (as used by Debian) when checking
> > for db4.
> >
> > Index: build/apu-conf.m4
> > ===================================================================
> > RCS file: /home/cvspublic/apr-util/build/apu-conf.m4,v
> > retrieving revision 1.47
> > diff -u -r1.47 apu-conf.m4
> > --- build/apu-conf.m4	15 Dec 2002 19:36:41 -0000	1.47
> > +++ build/apu-conf.m4	16 Dec 2002 22:29:44 -0000
> > @@ -144,12 +144,17 @@
> >    ])])])
> >  if test "$apu_db_version" != "4"; then
> >  AC_CHECK_HEADER(db.h, [
> > +  AC_CHECK_LIB(db, db_create_4000, [
> > +  apu_db_header=db.h
> > +  apu_db_lib=db
> > +  apu_db_version=4
> > +  ], [
> 
> Why should we check for db_create_4000 first?  Why not wait until
> after db_create is not found?  -- justin

Here's a patch that does it in the other order

Index: build/apu-conf.m4
===================================================================
RCS file: /home/cvspublic/apr-util/build/apu-conf.m4,v
retrieving revision 1.47
diff -u -r1.47 apu-conf.m4
--- build/apu-conf.m4	15 Dec 2002 19:36:41 -0000	1.47
+++ build/apu-conf.m4	17 Dec 2002 21:42:31 -0000
@@ -149,6 +149,11 @@
         apu_db_header=db.h
         apu_db_lib=db
         apu_db_version=4
+    ])], [
+      AC_CHECK_LIB(db, db_create_4000, [
+      apu_db_header=db.h
+      apu_db_lib=db
+      apu_db_version=4
     ])])])
 fi
 ])

-- 
Philip Martin

Mime
View raw message