r6790: Use config.h file for ldb and add test for stdint.h
[samba.git] / source / lib / ldb / configure.in
1 AC_DEFUN([AC_CHECK_LIB_EXT], [
2         AC_CHECK_LIB([$1],[$3],[$4],[$5],[$7])
3         ac_cv_lib_ext_$1_$3=$ac_cv_lib_$1_$3
4 ])
5 AC_DEFUN([AC_CHECK_FUNC_EXT], [
6         AC_CHECK_FUNC([$1],[$3],[$4])
7         ac_cv_func_ext_$1=$ac_cv_func_$1
8 ])
9 AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
10 AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
11 AC_DEFUN([SMB_EXT_LIB_ENABLE], [echo -n ""])
12 AC_DEFUN([SMB_EXT_LIB], [echo -n ""])
13 AC_INIT(include/ldb.h)
14 WITH_GCOV=0
15 AC_ARG_ENABLE(gcov,
16         [  --enable-gcov        Enable GCOV code coverage tests],
17         [ WITH_GCOV=1])
18 AC_SUBST(WITH_GCOV)
19 AC_PROG_CC
20 AC_FUNC_MMAP
21 AC_PATH_PROG(YODL2MAN,yodl2man)
22 AC_PATH_PROG(GCOV,gcov)
23 AC_CHECK_HEADERS(stdint.h)
24 AC_CONFIG_HEADER(include/config.h)
25 sinclude(ldap.m4)
26 WITH_LDAP=$with_ldap_support
27 AC_SUBST(WITH_LDAP)
28 sinclude(config.m4)
29 AC_OUTPUT(Makefile ldb.pc)