Macros by Category Revision History
Search:

berkeley_db

SYNOPSIS

AX_BERKELEY_DB([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])

DESCRIPTION

This macro tries to find Berkeley DB. It honors MINIMUM-VERSION if given.

If libdb is found, DB_HEADER and DB_LIBS variables are set and ACTION-IF-FOUND shell code is executed if specified. DB_HEADER is set to location of db.h header in quotes (e.g. "db3/db.h") and AC_DEFINE_UNQUOTED is called on it, so that you can type

     #include DB_HEADER

in your C/C++ code. DB_LIBS is set to linker flags needed to link against the library (e.g. -ldb3.1) and AC_SUBST is called on it.

SOURCE CODE

http://autoconf-archive.cryp.to/berkeley_db.m4

LICENSE

Copyright © 2008 Vaclav Slavik <vaclav.slavik@matfyz.cz>

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.