tsocket: Fixed documentation for tsocket_address_bsd_sockaddr().
[ira/wip.git] / lib / tdb / configure.ac
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])
19
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=""
30 fi
31
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                 ])
40
41 m4_include(build_macros.m4)
42 BUILD_WITH_SHARED_BUILD_DIR
43
44 AC_OUTPUT(Makefile tdb.pc)