tdb: fix an early release of the global lock that can cause data corruption
[Samba/fernandojvsilva.git] / lib / tdb / configure.ac
blobdac7bb2673df8d14c982881e6a8bc88bf465e7ce
1 AC_PREREQ(2.50)
2 AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
3 AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
4 AC_DEFUN([SMB_ENABLE], [echo -n ""])
5 AC_INIT(tdb, 1.2.0)
6 AC_CONFIG_SRCDIR([common/tdb.c])
7 AC_CONFIG_HEADER(include/config.h)
8 AC_LIBREPLACE_ALL_CHECKS
9 AC_LD_SONAMEFLAG
10 AC_LD_VERSIONSCRIPT
11 AC_LD_PICFLAG
12 AC_LD_SHLIBEXT
13 AC_LIBREPLACE_SHLD
14 AC_LIBREPLACE_SHLD_FLAGS
15 AC_LIBREPLACE_RUNTIME_LIB_PATH_VAR
16 m4_include(libtdb.m4)
17 AC_PATH_PROGS([PYTHON_CONFIG], [python2.6-config python2.5-config python2.4-config python-config])
18 AC_PATH_PROGS([PYTHON], [python2.6 python2.5 python2.4 python])
20 PYTHON_BUILD_TARGET="build-python"
21 PYTHON_INSTALL_TARGET="install-python"
22 PYTHON_CHECK_TARGET="check-python"
23 AC_SUBST(PYTHON_BUILD_TARGET)
24 AC_SUBST(PYTHON_INSTALL_TARGET)
25 AC_SUBST(PYTHON_CHECK_TARGET)
26 if test -z "$PYTHON_CONFIG"; then
27         PYTHON_BUILD_TARGET=""
28         PYTHON_INSTALL_TARGET=""
29         PYTHON_CHECK_TARGET=""
32 AC_ARG_ENABLE(python,
33         AS_HELP_STRING([--enable-python], [Enables python binding]),
34                 [ if test "x$enableval" = "xno" ; then
35                         PYTHON_BUILD_TARGET=""
36                         PYTHON_INSTALL_TARGET=""
37                         PYTHON_CHECK_TARGET=""
38                   fi
39                 ])
41 AC_PATH_PROG(XSLTPROC,xsltproc)
42 DOC_TARGET=""
43 if test -n "$XSLTPROC"; then
44         DOC_TARGET=doc
46 AC_SUBST(DOC_TARGET)
48 m4_include(build_macros.m4)
49 BUILD_WITH_SHARED_BUILD_DIR
51 AC_OUTPUT(Makefile tdb.pc)