diff options
author | Lennart Poettering <lennart@poettering.net> | 2003-12-14 15:29:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2003-12-14 15:29:33 +0000 |
commit | 0eb042e4184cfae8662e9c7e780541d84cf5bf3a (patch) | |
tree | f13626a58ddc13ac55d6c9ba3b8cffd9b21b3e99 | |
parent | 6f43d026062e4dba529e6a0b3057663a98ecaf75 (diff) |
libd4.1 autoconf check
git-svn-id: file:///home/lennart/svn/public/syrep/trunk@50 07ea20a6-d2c5-0310-9e02-9ef735347d72
-rw-r--r-- | configure.ac | 16 | ||||
-rw-r--r-- | doc/README.html.in | 2 |
2 files changed, 16 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 88d14e4..203b481 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. AC_PREREQ(2.57) -AC_INIT([syrep], [0.3], [mzflerc (at) 0pointer (dot) de]) +AC_INIT([syrep], [0.4], [mzflerc (at) 0pointer (dot) de]) AC_CONFIG_SRCDIR([src/syrep.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign -Wall]) @@ -49,6 +49,19 @@ AC_CHECK_HEADER([zlib.h],, [AC_MSG_ERROR([*** Sorry, you have to install the zli AC_CHECK_HEADER([db.h],, [AC_MSG_ERROR([*** Sorry, you have to install the Berkeley Database Library (libdb) 4.1 or newer ***])]) LIBS="$LIBS -ldb" +# Checking libdb version number +AC_MSG_CHECKING([for Berkeley libdb 4.1]) +AC_LANG_PUSH(C) +AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ +#include <db.h> +#if (DB_VERSION_MAJOR != 4) || (DB_VERSION_MINOR != 1) +#error "foo" +#endif +]])], +[AC_MSG_RESULT([yes])], +[AC_MSG_FAILURE([Berkeley libdb 4.1 required])]) +AC_LANG_POP(C) + # Check for Linux sendfile() AC_CHECK_HEADER([sys/sendfile.h], sendfile=yes, sendfile=no) @@ -86,6 +99,7 @@ AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_MMAP AC_FUNC_STAT +AC_FUNC_REALLOC AC_CHECK_FUNCS([atexit ftruncate getcwd gethostname memset mkdir munmap rmdir setenv strchr strdup strerror strrchr strtol]) # LYNX documentation generation diff --git a/doc/README.html.in b/doc/README.html.in index 896e28a..97a5a95 100644 --- a/doc/README.html.in +++ b/doc/README.html.in @@ -190,7 +190,7 @@ a "symmetric" way as described above.</p> <h2><a name="requirements">Requirements</a></h2> -<p><tt>syrep</tt> requires installed development versions of <tt><a href="http://www.gzip.org/zlib/">zlib</a></tt> and <tt><a href="http://www.sleepycat.com/">Berkeley DB</a></tt>.</p> +<p><tt>syrep</tt> requires installed development versions of <tt><a href="http://www.gzip.org/zlib/">zlib</a></tt> and <tt><a href="http://www.sleepycat.com/">Berkeley DB</a></tt> 4.1.</p> <p><tt>syrep</tt> was developed and tested on Debian GNU/Linux "testing" from September 2003, it should work on most other Linux |