configure.ac revision 772464c842968d6e544118ae1aa7c49a7cda2ad6
ee359fe1384507fed6c2274e7bfe81d288de4542Stephen GallagherAC_PREREQ(2.59)
33396dc46ea52c18f47db1b5d590880806521005Sumit BoseAC_INIT([sssd],
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher VERSION_NUMBER,
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher [sssd-devel@lists.fedorahosted.org])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen GallagherAC_CONFIG_SRCDIR([BUILD.txt])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen GallagherAC_CONFIG_AUX_DIR([build])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagherm4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher [AC_USE_SYSTEM_EXTENSIONS],
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagher [AC_GNU_SOURCE])
ee359fe1384507fed6c2274e7bfe81d288de4542Stephen GallagherCFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
1183d29d87c5c7439cf2364b7d7324d4a13b6e35Stephen GallagherAM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax])
84ae5edab16ad6be5e3be956cb6fa031c1428eb5Stephen Gallagherm4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AM_CONDITIONAL([GIT_CHECKOUT], [git log -1 >/dev/null 2>&1])
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>]],
[Where to install pam modules ($libdir/security)])],
[pammoddir=$libdir/security])
[Where to install libnfsidmap libraries ($libdir/libnfsidmap)])],
[nfsidmaplibdir=$libdir/libnfsidmap])
#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/libcmocka.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/external/pac_responder.m4])
m4_include([src/external/cifsidmap.m4])
m4_include([src/external/signal.m4])
m4_include([src/external/inotify.m4])
m4_include([src/external/samba.m4])
m4_include([src/external/sasl.m4])
m4_include([src/external/configlib.m4])
m4_include([src/external/libnfsidmap.m4])
m4_include([src/external/cwrap.m4])
m4_include([src/external/libresolv.m4])
m4_include([src/external/libaugeas.m4])
m4_include([src/external/libunistring.m4])
m4_include([src/external/glib.m4])
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]))
AM_CONDITIONAL([HAVE_DEVSHM], [test -d /dev/shm])