apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <I...@cnet.com>
Subject Re: dbm changes broke httpd-2.0
Date Thu, 29 Nov 2001 01:19:33 GMT
On Wed, 2001-11-28 at 17:11, Doug MacEachern wrote:
> On Wed, 28 Nov 2001, Aaron Bannert wrote:
>  
> > I'm seeing the same problem, and it is definately because we're not checking
> > if the libraries exist. I was working on this earlier, lemme see if I can
> > come up with a patch.
> 

how is this ?

===============================================================
RCS file: /home/cvs/apr-util/build/apu-conf.m4,v
retrieving revision 1.16
diff -u -r1.16 apu-conf.m4
--- apu-conf.m4	2001/11/28 17:34:17	1.16
+++ apu-conf.m4	2001/11/29 01:01:37
@@ -64,12 +64,14 @@
 dnl if present: sets apu_have_db=1, db_header, and db_lib
 dnl
 AC_DEFUN(APU_CHECK_DB1,[
-AC_CHECK_HEADER(db1/db.h, [
-  apu_have_db=1
-  db_header=db1/db.h
-  db_lib=db1
-  ])
-])
+
+AC_CHECK_LIB( db1, dbopen, 
+    [ AC_CHECK_HEADER( db1/db.h, 
+        [ apu_have_db=1
+        db_header=db1/db.h db_lib=1 ], apu_have_db=0)],
+        ) ]
+      AC_MSG_WARN( "db1 DBM not found"),)
+
 
 dnl
 dnl APU_CHECK_DB185: is DB1.85 present?

> cool.  in the meantime for anybody else who is stuck, this bandaid will
> get you by.
> 
> --- srclib/apr-util/build/apu-conf.m4   2001/11/28 17:34:17     1.16
> +++ srclib/apr-util/build/apu-conf.m4   2001/11/29 00:48:02
> @@ -65,7 +65,7 @@
>  dnl
>  AC_DEFUN(APU_CHECK_DB1,[
>  AC_CHECK_HEADER(db1/db.h, [
> -  apu_have_db=1
> +  apu_have_db=0
>    db_header=db1/db.h
>    db_lib=db1
>    ])
> 
-- 
Ian Holsman
Performance Measurement & Analysis
CNET Networks    -    415 344-2608

Mime
View raw message