configure.ac revision 8b1f525acd20f36c836e827de3c251088961c5d9
ee359fe1384507fed6c2274e7bfe81d288de4542Stephen GallagherAC_PREREQ(2.59)
33396dc46ea52c18f47db1b5d590880806521005Sumit BoseAC_INIT([sssd],
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher VERSION_NUMBER,
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher [sssd-devel@lists.fedorahosted.org])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagherm4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher [AC_USE_SYSTEM_EXTENSIONS],
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher [AC_GNU_SOURCE])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen GallagherCFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
ee359fe1384507fed6c2274e7bfe81d288de4542Stephen GallagherAC_CONFIG_SRCDIR([BUILD.txt])
cc98edd9479d4622634a1275c98058916c14059aStephen GallagherAC_CONFIG_AUX_DIR([build])
1183d29d87c5c7439cf2364b7d7324d4a13b6e35Stephen GallagherAM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen GallagherAC_DISABLE_STATIC
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])
m4_include([src/external/libunistring.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]))