[Pvfs2-cvs] commit by mtmoore in pvfs2/maint/config: bdb.m4

CVS commit program cvs at parl.clemson.edu
Tue Apr 5 01:06:04 EDT 2011


Update of /projects/cvsroot/pvfs2/maint/config
In directory parlweb1:/tmp/cvs-serv15122/maint/config

Modified Files:
      Tag: Orange-Branch
	bdb.m4 
Log Message:
Provide warning during configure if version of berkeley db is not at least 4.8.30


Index: bdb.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2/maint/config/bdb.m4,v
diff -p -u -r1.12 -r1.12.28.1
--- bdb.m4	21 Mar 2007 14:32:43 -0000	1.12
+++ bdb.m4	5 Apr 2011 05:06:04 -0000	1.12.28.1
@@ -231,5 +231,24 @@ AC_DEFUN([AX_BERKELEY_DB],
     AC_DEFINE(HAVE_DB_GET_PAGESIZE, 1, [Define if DB has get_pagesize function]),
     AC_MSG_RESULT(no))
     
+    dnl Check BDB version here since it's just a warning
+    AC_MSG_CHECKING([Berkeley DB version])
+    AC_TRY_COMPILE(
+        [
+            #include <db.h>
+        ], 
+        [
+             #if DB_VERSION_MAJOR < 4 || \
+                (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 8) || \
+                (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 8 && \
+                 DB_VERSION_PATCH < 30)
+                 #error "Recommend version of Berkeley DB at least 4.8.30"
+             #endif
+        ], 
+        AC_MSG_RESULT(yes)
+        HAVE_DB_OLD=0,
+        AC_MSG_RESULT(no)
+        HAVE_DB_OLD=1
+    )
     CFLAGS="$oldcflags"    
 ])



More information about the Pvfs2-cvs mailing list