1 dnl find the ntdb sources. This is meant to work both for
2 dnl ntdb standalone builds, and builds of packages using ntdb
4 ntdbpaths=". lib/ntdb ntdb ../ntdb ../lib/ntdb"
5 for d in $ntdbpaths; do
6 if test -f "$srcdir/$d/ntdb.c"; then
12 if test x"$ntdbdir" = "x"; then
13 AC_MSG_ERROR([cannot find ntdb source in $ntdbpaths])
15 NTDB_OBJ="check.o free.o hash.o io.o lock.o ntdb.o open.o pyntdb.o summary.o transaction.o traverse.o"
17 AC_SUBST(LIBREPLACEOBJ)
24 if test x$libreplace_cv_HAVE_FDATASYNC_IN_LIBRT = xyes ; then
25 NTDB_DEPS="$NTDB_DEPS -lrt"
29 NTDB_CFLAGS="-I$ntdbdir"
32 AC_CHECK_FUNCS(mmap pread pwrite getpagesize utime)
33 AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h)
35 AC_HAVE_DECL(pread, [#include <unistd.h>])
36 AC_HAVE_DECL(pwrite, [#include <unistd.h>])
38 if test x"$VERSIONSCRIPT" != "x"; then
39 EXPORTSFILE=ntdb.exports