imessaging: Add irpc_all_servers() to list all available servers
[Samba/gbeck.git] / lib / ntdb / libntdb.m4
blobb713ababfddcf3dae54a6d74749ea3a025e5d923
1 dnl find the ntdb sources. This is meant to work both for
2 dnl ntdb standalone builds, and builds of packages using ntdb
3 ntdbdir=""
4 ntdbpaths=". lib/ntdb ntdb ../ntdb ../lib/ntdb"
5 for d in $ntdbpaths; do
6         if test -f "$srcdir/$d/ntdb.c"; then
7                 ntdbdir="$d"
8                 AC_SUBST(ntdbdir)
9                 break;
10         fi
11 done
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"
16 AC_SUBST(NTDB_OBJ)
17 AC_SUBST(LIBREPLACEOBJ)
18 AC_SUBST(CCAN_OBJ)
20 NTDB_LIBS=""
21 AC_SUBST(NTDB_LIBS)
23 NTDB_DEPS=""
24 if test x$libreplace_cv_HAVE_FDATASYNC_IN_LIBRT = xyes ; then
25         NTDB_DEPS="$NTDB_DEPS -lrt"
27 AC_SUBST(NTDB_DEPS)
29 NTDB_CFLAGS="-I$ntdbdir"
30 AC_SUBST(NTDB_CFLAGS)
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
40     AC_SUBST(EXPORTSFILE)