You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by aa...@apache.org on 2001/11/29 10:07:09 UTC
cvs commit: apr-util/build apu-conf.m4
aaron 01/11/29 01:07:09
Modified: build apu-conf.m4
Log:
Make sure we check for the various DB libs when we look for the headers.
Also collapse the gdbm test into something more palatable.
Reviewed by: Ian Holsman
Revision Changes Path
1.17 +9 -11 apr-util/build/apu-conf.m4
Index: apu-conf.m4
===================================================================
RCS file: /home/cvs/apr-util/build/apu-conf.m4,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- apu-conf.m4 2001/11/28 17:34:17 1.16
+++ apu-conf.m4 2001/11/29 09:07:09 1.17
@@ -65,11 +65,11 @@
dnl
AC_DEFUN(APU_CHECK_DB1,[
AC_CHECK_HEADER(db1/db.h, [
+ AC_CHECK_LIB(db1, dbopen, [
apu_have_db=1
db_header=db1/db.h
db_lib=db1
- ])
-])
+ ])])])
dnl
dnl APU_CHECK_DB185: is DB1.85 present?
@@ -78,11 +78,11 @@
dnl
AC_DEFUN(APU_CHECK_DB185,[
AC_CHECK_HEADER(db_185.h, [
+ AC_CHECK_LIB(db, dbopen, [
apu_have_db=1
db_header=db_185.h
db_lib=db1
- ])
-])
+ ])])])
dnl
dnl APU_CHECK_DB2or3: are DB2 or DB3 present?
@@ -91,11 +91,11 @@
dnl
AC_DEFUN(APU_CHECK_DB2or3,[
AC_CHECK_HEADER(db.h, [
+ AC_CHECK_LIB(db2, db_open, [
apu_have_db=1
db_header=db.h
db_lib=db
- ])
-])
+ ])])])
dnl
dnl APU_CHECK_DB_VSN: check the actual version of db (for db2 or db3)
@@ -125,6 +125,7 @@
dnl if found, then which_dbm is set to one of: db1, db185, db2, db3
dnl
AC_DEFUN(APU_FIND_DB,[
+ apu_have_db=0
APU_CHECK_DB2or3
if test $apu_have_db = 1; then
APU_CHECK_DB_VSN
@@ -169,11 +170,8 @@
look_for=default
])
-AC_CHECK_LIB( gdbm, gdbm_open,
- [ AC_CHECK_HEADER( gdbm.h,
- apu_have_gdbm=1,
- apu_have_gdbm=0)],
- AC_MSG_WARN( "gdbm DBM not found"),)
+apu_have_gdbm=0
+AC_CHECK_HEADER(gdbm.h, AC_CHECK_LIB(gdbm, gdbm_open, [apu_have_gdbm=1]))
APU_FIND_DB
Re: cvs commit: apr-util/build apu-conf.m4
Posted by Aaron Bannert <aa...@clove.org>.
On Thu, Nov 29, 2001 at 09:07:09AM -0000, aaron@apache.org wrote:
> aaron 01/11/29 01:07:09
>
> Modified: build apu-conf.m4
> Log:
> Make sure we check for the various DB libs when we look for the headers.
> Also collapse the gdbm test into something more palatable.
I should mention a couple other things while I'm at it:
- Removes the warning when gdbm isn't found -- since we have sdbm
in our tree, it's not necessary to have some sort of external db
support, so the lack of gdbm is not an error.
- This should get us building again for those of you who reported
breakage. I can't possible check all the various installations and
half-installations that this code covers, so please verify on your
system. It seems to work on my Solaris machine with a db.h but
no libdb.so, and also with my Linux machine with every DB under
the sun.
-aaron