configure.ac revision 2a5790216f57e9bdfb2930d52860bb5300366536
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen GallagherAC_PREREQ(2.59)
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen GallagherAC_DEFUN([AC_CHECK_LIB_EXT], [
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher AC_CHECK_LIB([$1],[$3],[$4],[$5],[$7])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher ac_cv_lib_ext_$1_$3=$ac_cv_lib_$1_$3
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen GallagherAC_DEFUN([AC_CHECK_FUNC_EXT], [
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher AC_CHECK_FUNC([$1],[$3],[$4])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher ac_cv_func_ext_$1=$ac_cv_func_$1
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen GallagherAC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen GallagherAC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
m4_include([version.m4])
AC_CONFIG_SRCDIR([BUILD.txt])
AM_CONDITIONAL([GIT_CHECKOUT], [git log -1 &>/dev/null])
AC_CONFIG_HEADER(config.h)
AC_CHECK_TYPES([errno_t], [], [], [[#include <errno.h>]])
m4_include([src/build_macros.m4])
[AC_LANG_PROGRAM([[#include <pthread.h>]],
[AC_CHECK_LIB(pam, pam_get_item, [ PAM_LIBS="-lpam" ], [AC_MSG_ERROR([PAM must support pam_get_item])])],
[Where to install pam modules ($libdir/security)])],
[pammoddir=$libdir/security])
#Include here cause WITH_INIT_DIR requires $osname set in platform.m4
m4_include([src/external/platform.m4])
m4_include(src/conf_macros.m4)
m4_include([src/external/pkg.m4])
m4_include([src/external/libpopt.m4])
m4_include([src/external/libtalloc.m4])
m4_include([src/external/libtdb.m4])
m4_include([src/external/libtevent.m4])
m4_include([src/external/libldb.m4])
m4_include([src/external/libdhash.m4])
m4_include([src/external/libcollection.m4])
m4_include([src/external/libini_config.m4])
m4_include([src/external/pam.m4])
m4_include([src/external/ldap.m4])
m4_include([src/external/libpcre.m4])
m4_include([src/external/krb5.m4])
m4_include([src/external/libcares.m4])
m4_include([src/external/docbook.m4])
m4_include([src/external/sizes.m4])
m4_include([src/external/python.m4])
m4_include([src/external/selinux.m4])
m4_include([src/external/crypto.m4])
m4_include([src/external/nscd.m4])
m4_include([src/external/nsupdate.m4])
m4_include([src/external/libkeyutils.m4])
m4_include([src/external/libnl.m4])
m4_include([src/external/systemd.m4])
m4_include([src/util/signal.m4])
AC_CHECK_HEADERS([sys/inotify.h])
AC_CHECK_HEADERS([sasl/sasl.h],,AC_MSG_ERROR([Could not find SASL headers]))
AC_MSG_WARN([Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite])
AC_CHECK_HEADERS([check.h],,AC_MSG_ERROR([Could not find CHECK headers]))